I just upgraded from Debian wheezy to jessie. Had a backup of my .config/syncthing
directory, but the upgrade process didn’t modify anything in it (.pem
keys and config.xml
are binary identical). Syncthing is run from the user’s LXDE autostart:
john@pc:~/.config/lxsession/LXDE$ cat autostart | grep syncthing
@/usr/bin/syncthing -no-browser -home="/home/john/.config/syncthing"
When I looked at the Syncthing GUI at https://127.0.0.1:8384/, the device ID has changed from LNTX
to ZEH5
(IDs truncated).
I had this problem before on Windows, where the system-wide autostart launched Syncthing under a different user. But all running Syncthing processes use the user’s configuration:
$ ps aux | grep syncthing
john 1230 0.0 0.2 800832 7072 ? Sl 13:06 0:00 /usr/bin/syncthing -no-browser -home="/home/john/.config/syncthing"
john 1248 0.5 0.7 801664 27688 ? Sl 13:06 0:30 /usr/bin/syncthing -no-browser -home="/home/john/.config/syncthing"
And checking open files of the GUI process shows it to be listening at 127.0.0.1:8384
:
$ lsof -p 1248 | grep LISTEN
syncthing 1248 john 12u IPv6 18157 0t0 TCP *:22000 (LISTEN)
syncthing 1248 john 18u IPv4 17370 0t0 TCP localhost:8384 (LISTEN)
Yet, when I check the device ID on the command line, I get:
$ syncthing -device-id
LNTX [truncated]
In the user’s config.xml
, there is no tag containing ZEH5
:
$ cat config.xml | grep ZEH5
john@pc:~/.config/syncthing$
But when I kill Syncthing and launch it manually with the same command as in the user’s autostart file, the GUI as well as the command line show device id LNTX
.
How can I autostart Syncthing so the GUI shows device id LNTX
? And where does the ZEH5
id come from?