Error creating config files for syncthing raspberry

Hello community,
i have an issue when i try to install syncthing on a raspberry b+.
I followd this <a href=https://znil.net/index.php?title=Raspberry_Pi_Syncthing_installieren>instruction and executed all commands as root.
But when executing the command “syncthing” to start the program for the first time I get this error Messages:

[monitor] 09:25:19 INFO: Starting syncthing
[J445T] 09:25:20 INFO: syncthing v0.13.6 “Copper Cockroach” (go1.6.2 linux-arm)
unknown-user@lx-buildslave.syncthing.net 2016-06-12 14:21:34 UTC
[J445T] 09:25:20 INFO: My ID: J445TWG-GDUWV7J-V7JL3Q7-JIJ55IG-UOAB5MJ-AG4GMIL-6M2OV25-5C4AVQ4
[J445T] 09:25:20 INFO: Single thread hash performance is ~3.8 MB/s
[J445T] 09:25:20 INFO: Error loading config file; using defaults for now
[J445T] 09:25:20 INFO: Default folder created and/or linked to new config
[J445T] 09:25:20 FATAL: get free port (GUI): listen tcp 127.0.0.1:0: bind: cannot assign requested address
[monitor] 09:25:20 INFO: Syncthing exited: exit status 1
[monitor] 09:25:21 INFO: Starting syncthing
[J445T] 09:25:22 INFO: syncthing v0.13.6 “Copper Cockroach” (go1.6.2 linux-arm)
unknown-user@lx-buildslave.syncthing.net 2016-06-12 14:21:34 UTC
[J445T] 09:25:22 INFO: My ID: J445TWG-GDUWV7J-V7JL3Q7-JIJ55IG-UOAB5MJ-AG4GMIL-6M2OV25-5C4AVQ4
[J445T] 09:25:22 INFO: Single thread hash performance is ~3.8 MB/s
[J445T] 09:25:22 INFO: Error loading config file; using defaults for now
[J445T] 09:25:22 INFO: Default folder created and/or linked to new config
[J445T] 09:25:22 FATAL: get free port (GUI): listen tcp 127.0.0.1:0: bind: cannot assign requested address
[monitor] 09:25:22 INFO: Syncthing exited: exit status 1

[monitor] 09:25:28 WARNING: 4 restarts in 9.191268958s; not retrying further



Furthermore the program creates in the .config Folder only a key.pem and cert.pem file.


Does anyone have an idea how to correct this error?

Do you have a loopback interface (lo or lo0 in the results from running ifconfig)? Not having that would be unusual but would cause the above.

another thing: running syncthing as root is not needed and not a good idea as synced files will belong to root and for security reasons it is always better to run things that don’t need root as normal user.

2 Likes

Thanks for your fast help. I solved the problem by adding the loopback interface! no idea why i deleted this one :smiley:
But i am not able to execute commands like apt-get as user pi. So I thought i make the install as root and the service will be started from the user pi. This should be working, or is this not a good idea becaus starting the service as pi would cause errors because the installation was made by root?

Yeah don’t do that, it’s essential for the system. :wink:

Install the package as root. Run Syncthing as a normal user. Don’t run Syncthing as root.

1 Like

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