Syncthing crashes on a raspberry pi

Running ST 0.49 on several machines, but it keeps crashing on a raspberry pi. It started crashing on a 2+ a few weeks ago and after upgrading the pi, continues to crash on a 3+.

When newly installed, ST runs and syncs for several (10s of?) minutes, can sync sever GB of files over a LAN, but then dies. Restarting from the command line yields:

pi@pi:~ $ syncthing
[monitor] 06:20:03 INFO: Starting syncthing
[3Y7FH] 06:20:05 INFO: syncthing v0.14.49 "Dysprosium Dragonfly" (go1.10.3 linux-arm) deb@build.syncthing.net 2018-07-10 15:40:06 UTC [noupgrade]
[3Y7FH] 06:20:05 INFO: My ID: 3Y7FHLY-43ZTNSQ-5DPWLPG-L6VTFVB-2QLCSQJ-D6CIEJZ-NKIWYSP-CJEPVAP
[3Y7FH] 06:20:06 INFO: Single thread SHA256 performance is 19 MB/s using minio/sha256-simd (19 MB/s using crypto/sha256).
[3Y7FH] 06:20:07 INFO: Hashing performance is 17.72 MB/s
[3Y7FH] 06:20:07 FATAL: Error opening database: write /home/pi/.config/syncthing/index-v0.14.0.db/606781.ldb: no space left on device (is another instance of Syncthing running?)
[monitor] 06:20:07 INFO: Syncthing exited: exit status 1
[monitor] 06:20:08 INFO: Starting syncthing
[3Y7FH] 06:20:10 INFO: syncthing v0.14.49 "Dysprosium Dragonfly" (go1.10.3 linux-arm) deb@build.syncthing.net 2018-07-10 15:40:06 UTC [noupgrade]
[3Y7FH] 06:20:10 INFO: My ID: 3Y7FHLY-43ZTNSQ-5DPWLPG-L6VTFVB-2QLCSQJ-D6CIEJZ-NKIWYSP-CJEPVAP
[3Y7FH] 06:20:11 INFO: Single thread SHA256 performance is 19 MB/s using crypto/sha256 (19 MB/s using minio/sha256-simd).
[3Y7FH] 06:20:11 INFO: Hashing performance is 17.50 MB/s
[3Y7FH] 06:20:12 FATAL: Error opening database: write /home/pi/.config/syncthing/index-v0.14.0.db/606781.ldb: no space left on device (is another instance of Syncthing running?)
[monitor] 06:20:12 INFO: Syncthing exited: exit status 1
[monitor] 06:20:13 INFO: Starting syncthing
[3Y7FH] 06:20:14 INFO: syncthing v0.14.49 "Dysprosium Dragonfly" (go1.10.3 linux-arm) deb@build.syncthing.net 2018-07-10 15:40:06 UTC [noupgrade]
[3Y7FH] 06:20:14 INFO: My ID: 3Y7FHLY-43ZTNSQ-5DPWLPG-L6VTFVB-2QLCSQJ-D6CIEJZ-NKIWYSP-CJEPVAP
[3Y7FH] 06:20:15 INFO: Single thread SHA256 performance is 19 MB/s using crypto/sha256 (19 MB/s using minio/sha256-simd).
[3Y7FH] 06:20:16 INFO: Hashing performance is 17.70 MB/s
[3Y7FH] 06:20:16 FATAL: Error opening database: write /home/pi/.config/syncthing/index-v0.14.0.db/606781.ldb: no space left on device (is another instance of Syncthing running?)
[monitor] 06:20:16 INFO: Syncthing exited: exit status 1
[monitor] 06:20:17 INFO: Starting syncthing
[3Y7FH] 06:20:19 INFO: syncthing v0.14.49 "Dysprosium Dragonfly" (go1.10.3 linux-arm) deb@build.syncthing.net 2018-07-10 15:40:06 UTC [noupgrade]
[3Y7FH] 06:20:19 INFO: My ID: 3Y7FHLY-43ZTNSQ-5DPWLPG-L6VTFVB-2QLCSQJ-D6CIEJZ-NKIWYSP-CJEPVAP
[3Y7FH] 06:20:20 INFO: Single thread SHA256 performance is 19 MB/s using crypto/sha256 (19 MB/s using minio/sha256-simd).
[3Y7FH] 06:20:21 INFO: Hashing performance is 17.68 MB/s
[3Y7FH] 06:20:21 FATAL: Error opening database: write /home/pi/.config/syncthing/index-v0.14.0.db/606781.ldb: no space left on device (is another instance of Syncthing running?)
[monitor] 06:20:21 INFO: Syncthing exited: exit status 1
[monitor] 06:20:22 WARNING: 4 restarts in 18.629236285s; not retrying further
pi@pi:~ $

What gives?

I think the error message is self explanatory?

Have you checked the size of the database? It probably fills up your sd card. You should try to put the config and database directory on an external device if you do not have enough space. I am not sure if that decreases performance.

The combination of “no space left” and “is there another instance running” is a bit weird.

After I posted, I did some investigation and discovered the filled up .db directory. Is the size based only on the the number (and maybe size) of files syncing to the machine? So even though the sync is stored on an external drive, the only way to sync a large number of files is to have a sufficiently large sd card?

It is also dependent on the amount of devices in your cluster. The database holds the information about the current state of all neighboring devices and his own. It therefore depends on the amount of neighbors, amount of synced files and size of files. It can grow pretty large, but it does not necessarily need to be on the SD card. You should be able to set the home directory of syncthing with the -home option.

you can set the directory of config+db using -home command line option so it can be on your external drive if you want

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