Syncthing not working (userdata-error?) Topic is solved

Having issues with your DietPi installation, or, found a bug? Post it here.
User avatar
Joulinar
Posts: 2287
Joined: Sat Nov 16, 2019 12:49 am

Re: Syncthing not working (userdata-error?)

Post by Joulinar »

As you can see on your first output, dietpi_userdata is pointing to your HDD 14BEBE5BBEBE3558

Code: Select all

dietpi_userdata -> /mnt/14BEBE5BBEBE3558/dietpi_userdata
You don't have 2 folder dietpi_userdata because it's same.

pls restart your system and post output of systemctl status syncthing.service afterwards.
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
Mr.Roboto
Posts: 23
Joined: Tue Nov 05, 2019 10:28 am

Re: Syncthing not working (userdata-error?)

Post by Mr.Roboto »

Thank you so much for trying to help me!

Code: Select all

● syncthing.service - Syncthing (DietPi)
   Loaded: loaded (/etc/systemd/system/syncthing.service; disabled; vendor prese
t: enabled)
   Active: active (running) since Thu 2020-10-08 14:35:44 CEST; 1min
19s ago
 Main PID: 649 (syncthing)
    Tasks: 22 (limit: 1485)
   CGroup: /system.slice/syncthing.service
           ├─649 /opt/syncthing/syncthing -no-browser -no-restart -logflags=0 -h
ome=/mnt/dietpi_userdata/syncthing
           └─745 /opt/syncthing/syncthing -no-browser -no-restart -logflags=0 -h
ome=/mnt/dietpi_userdata/syncthing

Okt 08 14:35:51 MediaPi syncthing[649]: [7VQ4O] INFO: TCP listener ([::]:22000)
starting
Okt 08 14:35:51 MediaPi syncthing[649]: [7VQ4O] INFO: Relay listener (dynamic+ht
tps://relays.syncthing.net/endpoint) starting
Okt 08 14:35:51 MediaPi syncthing[649]: [7VQ4O] INFO: Completed initial scan of
sendreceive folder "Default Folder" (default)
Okt 08 14:35:52 MediaPi syncthing[649]: [7VQ4O] INFO: GUI and API listening on 1
27.0.0.1:8384
Okt 08 14:35:52 MediaPi syncthing[649]: [7VQ4O] INFO: Access the GUI via the fol
lowing URL: http://127.0.0.1:8384/
Okt 08 14:35:52 MediaPi syncthing[649]: [7VQ4O] INFO: My name is "MediaPi"
Okt 08 14:36:02 MediaPi syncthing[649]: [7VQ4O] INFO: Detected 4 NAT services
Okt 08 14:36:11 MediaPi syncthing[649]: [7VQ4O] INFO: quic://0.0.0.0:22000 detec
ted NAT type: Port restricted NAT
Okt 08 14:36:11 MediaPi syncthing[649]: [7VQ4O] INFO: quic://0.0.0.0:22000 resol
ved external address quic://93.135.20.201:63402 (via stun.syncthing.net:3478)
Okt 08 14:36:27 MediaPi syncthing[649]: [7VQ4O] INFO: Joined relay relay://195.2
19.166.59:443
User avatar
Joulinar
Posts: 2287
Joined: Sat Nov 16, 2019 12:49 am

Re: Syncthing not working (userdata-error?)

Post by Joulinar »

ok looks like your Syncthing Gui is LISTEN on local internal interface only.

Code: Select all

Okt 08 14:35:52 MediaPi syncthing[649]: [7VQ4O] INFO: GUI and API listening on 127.0.0.1:8384
let's check configuration file

Code: Select all

cat config.xml|grep address
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
Mr.Roboto
Posts: 23
Joined: Tue Nov 05, 2019 10:28 am

Re: Syncthing not working (userdata-error?)

Post by Mr.Roboto »

cat: config.xml: Datei oder Verzeichnis nicht gefunden ("file or directory not found")
User avatar
Joulinar
Posts: 2287
Joined: Sat Nov 16, 2019 12:49 am

Re: Syncthing not working (userdata-error?)

Post by Joulinar »

Ah sorry my fault, should be following

Code: Select all

cat /mnt/dietpi_userdata/syncthing/config.xml|grep address
PS: kein Problem, ich verstehe die Fehlermeldung ;)
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
Mr.Roboto
Posts: 23
Joined: Tue Nov 05, 2019 10:28 am

Re: Syncthing not working (userdata-error?)

Post by Mr.Roboto »

:D

Code: Select all

<address>dynamic</address>
<address>127.0.0.1:8384</address>
User avatar
Joulinar
Posts: 2287
Joined: Sat Nov 16, 2019 12:49 am

Re: Syncthing not working (userdata-error?)

Post by Joulinar »

ok this should fix it

Code: Select all

sed -i 's/127.0.0.1:8384/0.0.0.0:8384/g' /mnt/dietpi_userdata/syncthing/config.xml
systemctl restart syncthing.service
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
Mr.Roboto
Posts: 23
Joined: Tue Nov 05, 2019 10:28 am

Re: Syncthing not working (userdata-error?)

Post by Mr.Roboto »

So sorry, but web ui stilll does not work. I keep getting page loading error.
User avatar
Joulinar
Posts: 2287
Joined: Sat Nov 16, 2019 12:49 am

Re: Syncthing not working (userdata-error?)

Post by Joulinar »

ok let's check if Syncthing is LISTEN on port 8384

Code: Select all

lsof -i -P -n | grep LISTEN
might be lsof is not installed on your system. Just use apt install lsof if it's missing
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
Mr.Roboto
Posts: 23
Joined: Tue Nov 05, 2019 10:28 am

Re: Syncthing not working (userdata-error?)

Post by Mr.Roboto »

Doesn't look like it:

Code: Select all

dropbear  586      root    3u  IPv4  16513      0t0  TCP *:22 (LISTEN)
dropbear  586      root    4u  IPv6  16514      0t0  TCP *:22 (LISTEN)
smbd      652      root   29u  IPv6  16742      0t0  TCP *:445 (LISTEN)
smbd      652      root   30u  IPv6  16743      0t0  TCP *:139 (LISTEN)
smbd      652      root   31u  IPv4  16744      0t0  TCP *:445 (LISTEN)
smbd      652      root   32u  IPv4  16745      0t0  TCP *:139 (LISTEN)
java      660 ubooquity   44u  IPv6  16212      0t0  TCP *:2039 (LISTEN)
java      660 ubooquity   52u  IPv6  17130      0t0  TCP *:2038 (LISTEN)
jellyfin  667  jellyfin  280u  IPv6  16382      0t0  TCP *:8096 (LISTEN)
kodi.bin_ 752      root   28u  IPv4  18841      0t0  TCP 127.0.0.1:50067 (LISTEN)
kodi.bin_ 752      root   30u  IPv4  18802      0t0  TCP 127.0.0.1:52530 (LISTEN)
kodi.bin_ 752      root   34u  IPv4  18850      0t0  TCP 127.0.0.1:60113 (LISTEN)
kodi.bin_ 752      root   38u  IPv6  16197      0t0  TCP *:8080 (LISTEN)
kodi.bin_ 752      root   39u  IPv4  16198      0t0  TCP *:8080 (LISTEN)
kodi.bin_ 752      root   40u  IPv6  16204      0t0  TCP [::1]:9090 (LISTEN)
kodi.bin_ 752      root   42u  IPv4  16205      0t0  TCP 127.0.0.1:9090 (LISTEN)
kodi.bin_ 752      root   43u  IPv4  18852      0t0  TCP 127.0.0.1:44901 (LISTEN)
Post Reply