Syncthing Device ID keeps switching

A desktop I have paired with my laptop has switched device ID’s twice now. I open the syncthing UI on my laptop and the desktop won’t connect and I get a message up top saying the desktop is requesting to connect. I check the ID on the desktop and sure enough it has switched to something new. This is the second time this has happened in the last week or two. I’m running Syncthing 1.29.4 on both devices with auto updates to the stable branch enabled. Any reason this may happen? Syncthing has been running fine on both devices with no issues for a few years now until the past 2 weeks.

Crosspost of Syncthing Device ID keeps switching?

The only way this happens is if something else has deleted the certificate files on disk, or changed the directory Syncthing uses to store them.

1 Like

Yep

1 Like

Any idea what could have done that? It’s a mostly standard Windows 10 machine. Could it be anti-virus?

Also could happen if some program was modifying the files themselves directly, but this is less likely.

Maybe something caused by chore(syncthing): use file lock on certificate to prevent multiple in… · syncthing/syncthing@7762e39 · GitHub? The change came in v1.29.4, so the time frame would match.

I think a log file would be helpful here.

1 Like

I’ve noticed that if I close St and reopen before St has fully shutdown, it will generate a new ID. Not sure if it’s related to Syncthing Tray as I have only just started using it and has happened only in the same time frame.

I have had to restore backups to get the ID back, but remote devices saw the new IDs and wanted me to reconnect to them…

That could definitely be it. I have a scheduled task set to restart syncyhing every hour to make sure it’s running properly. I had issues where syncthing would be running and the ui was accessible, but it never connected to other devices. A restart fixed it and the scheduled task automated that.

2 Likes

A fix for this is out in 1.29.5 now.

1 Like

Excellent! Wow that was fast. You guys rock!

2 Likes

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.