Repository navigation
Description
What happened?
Login using password is no longer working.
Seems I have the same problem as described here: https://forum.syncthing.net/t/login-keeps-failing/23573
If I enter wrong credentials, I get Incorrect user name or password.
LOG then shows: Wrong credentials supplied during API authorization from 127.0.0.1:50860
If I enter correct credentials, I get Login failed, see Syncthing logs for details.
No line gets added to the LOG.
When I delete the password from config, I can access the UI (without login of course).
It doesn't matter how I store the password (syncthing generate --gui-password or using the UI after removing it from config). I replace the password by something simple to avoid problems with special chars, but even test123 resulted in the same issue.
I'm sure it worked before and I didn't change anything. I definitely had the correct password.
After getting this error, I've reset the password multiple times, updated to the latest version 1.29 (old was 1.27 I think). Nothing helped fix the problem.
My guess: Maybe something changed regarding encryption/decryption of the password (Windows update) causing a bug?
Note: I set debugging attribute to true in the tag in config. Is there is anything else I can do to generate (more) log lines and help debug this issue?
Syncthing version
v1.29.0 "Gold Grasshopper" (go1.23.4 windows-amd64) [email protected] 2024-12-30 03:46:20 UTC
Platform & operating system
Windows 11
Browser version
Chrome 131.0.6778.205
Relevant log output
[KAVAC] 2025/01/09 18:43:09 INFO: Wrong credentials supplied during API authorization from 127.0.0.1:50860
[KAVAC] 2025/01/09 18:43:13 INFO: Wrong credentials supplied during API authorization from 127.0.0.1:50860
[KAVAC] 2025/01/09 18:43:26 INFO: Wrong credentials supplied during API authorization from 127.0.0.1:50860
Activity
calmh commentedon Jan 9, 2025
A view from the browser console on what it think about the request would be helpful. You can also try to enable
apitracing in Syncthing (STTRACE=api) to possibly get more information from that side.StefanBertels commentedon Jan 9, 2025
Browser console:
calmh commentedon Jan 9, 2025
So the funny thing is, empty response is what we've always sent and it's expected. There's a cookie header, no content, and a
204 No Contentresponse code, which is a success code...This code changed last 12 months ago...
calmh commentedon Jan 9, 2025
What I'm looking for is a view of the request in the network console like this, in the hope that it might shed some light on what is different in your setup:
StefanBertels commentedon Jan 9, 2025
Looks like the response is really empty...
calmh commentedon Jan 9, 2025
See if this build fixes it?
StefanBertels commentedon Jan 9, 2025
Yes, that dev build does not run into the error (i.e. works as expected).
Thanks for the blazing fast response and problem solving!
Merge branch 'main' into infrastructure