Skip to content

Login into UI (Browser) not working anymore #9909

Closed

Description

@StefanBertels

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

  1. added
    bug
    needs-triage
    on Jan 9, 2025
  2. calmh commented on Jan 9, 2025

    @calmh
    Member

    A view from the browser console on what it think about the request would be helpful. You can also try to enable api tracing in Syncthing (STTRACE=api) to possibly get more information from that side.

  3. StefanBertels commented on Jan 9, 2025

    @StefanBertels
    Author

    Browser console:

    loadFormIntoScope deviceEditor
    syncthingController.js:2249 loadFormIntoScope folderEditor
    syncthingController.js:2249 loadFormIntoScope deviceEditor
    :8384/rest/noauth/auth/password:1 
            
            
           Failed to load resource: net::ERR_EMPTY_RESPONSE
    syncthingController.js:123 Password authentication failed: Object
    angular.js:9912 
            
            
           POST http://127.0.0.1:8384/rest/noauth/auth/password net::ERR_EMPTY_RESPONSE
    (anonymous) @ angular.js:9912
    sendReq @ angular.js:9713
    serverRequest @ angular.js:9425
    processQueue @ angular.js:13337
    (anonymous) @ angular.js:13353
    $eval @ angular.js:14589
    $digest @ angular.js:14405
    $apply @ angular.js:14694
    (anonymous) @ angular.js:21724
    dispatch @ jquery-2.2.2.js:4755
    elemData.handle @ jquery-2.2.2.js:4567Understand this errorAI
    syncthingController.js:123 Password authentication failed: {data: null, status: -1, config: {…}, statusText: '', headers: ƒ}
    
  4. calmh commented on Jan 9, 2025

    @calmh
    Member

    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 Content response code, which is a success code...

    This code changed last 12 months ago...

  5. calmh commented on Jan 9, 2025

    @calmh
    Member

    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:

    Screenshot 2025-01-09 at 19 45 57
  6. StefanBertels commented on Jan 9, 2025

    @StefanBertels
    Author

    Looks like the response is really empty...

    image
  7. calmh commented on Jan 9, 2025

    @calmh
    Member
  8. StefanBertels commented on Jan 9, 2025

    @StefanBertels
    Author

    Yes, that dev build does not run into the error (i.e. works as expected).
    Thanks for the blazing fast response and problem solving!

  9. added this to the v1.29.1 milestone on Jan 9, 2025
  10. added a commit that references this issue on Mar 10, 2025
    70b5f09
  11. added
    frozen-due-to-age
    on Jul 1, 2026
  12. locked and limited conversation to collaborators on Jul 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugfrozen-due-to-ageneeds-triage

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions