Login to syncthing fails on one machine

Hi all!

I’ve been using syncthing for two years now on several machines without issue.

But recently I’ve set up a new machine and I’m having an issue popping up. It has happened twice so far, within a few days.

Basically, I see the login window of syncthing in the browser. I enter the data and hit Enter, then the site returns to the login page. And it loops that way.

There is no error shown, like invalid username or password. And I know that is not the issue because I use a password manager to enter them.

Today was especially interesting, because I had been logged in and was looking at the UI. Then I refreshed the page and it returned to login. After that, it entered that loop.

I checked the logs with docker logs syncthing but couldn’t find anything related to this.

Is there anything else I can do to figure out why this is happening and find a fix?

Later edit: I was able to recover from this by deleting the password from config.xml, so that is not an issue. But I wouldn’t want to leave syncthing without a username and password in order to try and avoid this.

I will add a couple more details, if it helps:

  • I remember that the issue always appears spontaneously. So, I’m logged in, I’m using syncthing, but then if I refresh the page, I am logged out. And this is after days of being logged into this instance of syncthing in this same browser.
  • Restarting the docker container does not solve this. I am greeted by the login screen and get the same loop
  • I am not sure if this is related or not, but it seems too much to be a coincidence: With this particular container, I see the database migration screen every time I restart the container. Even if I haven’t updated the container in the meantime.