Syncthing save path change - no gui

Creating a bug report/issue

I have searched the existing open and closed issues

Required Information

  • DietPi version | 9
  • Distro version | bookworm
  • Kernel version | Linux DietPi 6.6.62+rpt-rpi-2712
  • Architecture | arm64
  • SBC model | RPi5
  • Power supply used | Beseus 100w PD
  • SD card used | SanDisk Extreme 128Gb + Samsung Evo 970 + Data X8200Pro

Additional Information (if applicable)

  • Software title: SyncThing
  • Fresh install
  • It is fresh install

Steps to reproduce

  1. All SSD mounted and visible (and shared by samba with full access)
  2. Syncthing installed
  3. GUI working
  4. Create folder “storage_main” in /mnt folder and “syncthing” folder in /storage_main
  5. Add dietpi user to group root and root user to group dietpi (to be sure you have access to the folder /mnt)
  6. Check permission to /mnt, /mnt/storage_main and /mint/storage_main/wyncthing folder (should be full acces to it)
  7. Edit /etc/systemd/ system/syncthing.service and change “dietpi_userdata” in line “ExecStart=/opt/syncthing/syncthing --no-browser --no-restart --logflags=O -home=/mnt/dietpi_userdata/syncthing” to different folder (in my case “storage_main”)
  8. Save file
  9. Run sudo systemctl daemon-reload
    sudo systemctl restart syncthing.service
  10. GUI doesn’t work
  11. Change back to dietpi_userdata
  12. GUI works

Expected behaviour

Syncthing main catalog changed, gui works

Actual behaviour

GUI doesn’t work

Extra details

  • in folder/mnt/storage_main/syncthing I can find same data as in folder/mnt/dietpi_userdata/syncthing
  • log:
Dec 28 16:03:35 DietPi syncthing[2344]: [monitor] INFO: Signal 15 received; exiting
Dec 28 16:03:35 DietPi systemd[1]: Stopping syncthing.service - Syncthing (DietPi)...
Dec 28 16:03:35 DietPi syncthing[2344]: [U566R] INFO: QUIC listener ([::]:22000) shutting down
Dec 28 16:03:35 DietPi syncthing[2344]: [U566R] INFO: Relay listener (dynamic+https://relays.syncthing.net/endpoint) shutting down
Dec 28 16:03:36 DietPi syncthing[2344]: [U566R] INFO: TCP listener ([::]:22000) shutting down
Dec 28 16:03:36 DietPi syncthing[2344]: [U566R] INFO: Exiting
Dec 28 16:03:36 DietPi systemd[1]: syncthing.service: Deactivated successfully.
Dec 28 16:03:36 DietPi systemd[1]: Stopped syncthing.service - Syncthing (DietPi).
Dec 28 16:03:36 DietPi systemd[1]: syncthing.service: Consumed 3.381s CPU time.
Dec 28 16:03:36 DietPi systemd[1]: Started syncthing.service - Syncthing (DietPi).
Dec 28 16:03:36 DietPi syncthing[2431]: [start] INFO: syncthing v1.28.1 "Gold Grasshopper" (go1.23.3 linux-arm64) builder@github.syncthing.net 2024-11-24 21:55:12 UTC
Dec 28 16:03:37 DietPi syncthing[2431]: [OMYDV] INFO: My ID: OMYDVNB-AMKWCKC-UPUMQVZ-S4XUTKZ-PSKYTZG-KLCK3CF-PBJVIQB-FGG6MQT
Dec 28 16:03:37 DietPi syncthing[2431]: [OMYDV] INFO: Hashing performance is 712.89 MB/s
Dec 28 16:03:37 DietPi syncthing[2431]: [OMYDV] INFO: Overall send rate is unlimited, receive rate is unlimited
Dec 28 16:03:37 DietPi syncthing[2431]: [OMYDV] INFO: Relay listener (dynamic+https://relays.syncthing.net/endpoint) starting
Dec 28 16:03:37 DietPi syncthing[2431]: [OMYDV] INFO: Using discovery mechanism: global discovery server https://discovery-lookup.syncthing.net/v2/?noannounce
Dec 28 16:03:37 DietPi syncthing[2431]: [OMYDV] INFO: Using discovery mechanism: global discovery server https://discovery-announce-v4.syncthing.net/v2/?nolookup
Dec 28 16:03:37 DietPi syncthing[2431]: [OMYDV] INFO: Using discovery mechanism: global discovery server https://discovery-announce-v6.syncthing.net/v2/?nolookup
Dec 28 16:03:37 DietPi syncthing[2431]: [OMYDV] INFO: Using discovery mechanism: IPv4 local broadcast discovery on port 21027
Dec 28 16:03:37 DietPi syncthing[2431]: [OMYDV] INFO: Using discovery mechanism: IPv6 local multicast discovery on address [ff12::8384]:21027
Dec 28 16:03:37 DietPi syncthing[2431]: [OMYDV] INFO: Ready to synchronize "Default Folder" (default) (sendreceive)
Dec 28 16:03:37 DietPi syncthing[2431]: 2024/12/28 16:03:37 failed to sufficiently increase receive buffer size (was: 208 kiB, wanted: 7168 kiB, got: 416 kiB). See https://github.com/quic-go/quic-go/wiki/UDP-Buffer-Sizes for details.
Dec 28 16:03:37 DietPi syncthing[2431]: [OMYDV] INFO: QUIC listener ([::]:22000) starting
Dec 28 16:03:37 DietPi syncthing[2431]: [OMYDV] INFO: TCP listener ([::]:22000) starting
Dec 28 16:03:37 DietPi syncthing[2431]: [OMYDV] INFO: Completed initial scan of sendreceive folder "Default Folder" (default)
Dec 28 16:03:37 DietPi syncthing[2431]: [OMYDV] INFO: GUI and API listening on 127.0.0.1:8384
Dec 28 16:03:37 DietPi syncthing[2431]: [OMYDV] INFO: Access the GUI via the following URL: http://127.0.0.1:8384/
Dec 28 16:03:37 DietPi syncthing[2431]: [OMYDV] INFO: My name is "DietPi"
Dec 28 16:03:42 DietPi syncthing[2431]: [OMYDV] INFO: UPnP parse: [http://192.168.38.1:60000/9ba67396/gatedesc.xml] Malformed device description: no compatible service descriptions found.
Dec 28 16:03:56 DietPi syncthing[2431]: [OMYDV] INFO: quic://0.0.0.0:22000 detected NAT type: Port restricted NAT
Dec 28 16:03:56 DietPi syncthing[2431]: [OMYDV] INFO: quic://0.0.0.0:22000 resolved external address quic://83.24.210.18:22000 (via stun.syncthing.net:3478)
Dec 28 16:03:57 DietPi syncthing[2431]: [OMYDV] INFO: New external port opened: external TCP address(es) [83.24.210.18:63103] to local address [::]:22000.
Dec 28 16:03:57 DietPi syncthing[2431]: [OMYDV] INFO: Detected 1 NAT service

Looks like Syncting has been started with some kind of default config, probably due to missing config files. Actually it’s LISTEN to localhost only and can’t be accessed from LAN.

I guess you would need to copy configuration from old /mnt/dietpi_userdata/syncthing to new location /mnt/storage_main/syncthing

everything is copied over there by default (just after running systemctl restart syncthing.service) but will give a try to copy file manualy

Nothing is copied. Syncthing simply creates new/empty configuration files with default values. Therefore it is only LISTEN to localhost and you are not able to connect.

Ok, i didnt check what inside file and folders. Yes, after copying files from folder to folder everything works flawless - great !!

Will have issue with starting mariadb as well - will post another topic for that

BTW. You are the best - not a single forum helping as much as You guys. I was trying few distros or “frontends” for simple usage of home server - and only DietPi solving all issues in minutes - have 4 boards runnig already with dietpi - community here is just amazing. Thx and next donnation going to You.

1 Like

Thank you for the compliment.