First off: thanks all for the great software! I’ve been using syncthing as my only file sync solution for… dunno, a long time, feels like forever.
I’ve been unable to start syncthing on one of my machines for a while now and don’t know how to solve it. All I can get out of it is this:
[monitor] 14:41:17 INFO: Starting syncthing [NE3US] 14:41:18 INFO: syncthing v1.0.0 "Erbium Earthworm" (go1.11.4 linux-amd64) firstname.lastname@example.org 2018-12-26 16:23:05 UTC [noupgrade] [NE3US] 14:41:18 INFO: My ID: NE3US4X-YHFO3C4-E375RVH-IDM2XDR-CPRK2IV-IWYNU4T-3QDLCLO-EVXADQD [NE3US] 14:41:19 INFO: Single thread SHA256 performance is 92 MB/s using minio/sha256-simd (62 MB/s using crypto/sha256). [NE3US] 14:41:20 INFO: Hashing performance is 47.01 MB/s [NE3US] 14:41:20 FATAL: Error opening database: sync /home/syncthinger/.config/syncthing/index-v0.14.0.db: invalid argument (is another instance of Syncthing running?) [monitor] 14:41:20 INFO: Syncthing exited: exit status 1
This is on a VPS using a separate user
syncthinger and launched via
systemctl or by hand. Of course, I checked, and no, there is no second syncthing process running. That would have been too easy
This started when I moved the homedir of
syncthinger to an CIFS share. Since I began using it, my usage pattern has expanded “a bit” (because it’s awesome and convenient ) and it started using up most of the system’s disk. So I moved the entire homedir to CIFS (a storage box I rent) and mounted it like this in
//<mystoragebox>/syncthinger_home /home/syncthinger cifs iocharset=utf8,rw,credentials=/etc/cifs-credentials.txt,uid=syncthinger,gid=syncthinger,file_mode=0660,dir_mode=0770 0 0
The files are all there. I found some advice on similar situations and deleted the
/home/syncthinger/.config/syncthing/index-v0.14.0.db. And sure enough, it gets recreated on launch, with these files:
syncthinger:~/.config/syncthing$ ls -l index-v0.14.0.db/ total 11 -rw-r--r--+ 1 syncthinger syncthinger 16 Jan 16 14:56 CURRENT -rw-r--r--+ 1 syncthinger syncthinger 0 Jan 16 14:56 LOCK -rw-r--r--+ 1 syncthinger syncthinger 798 Jan 16 14:56 LOG
Luckily, the VPS is not critical to the syncing between the other devices (yay for P2P!) but it does make syncs much more timely and reliable, especially since none of my devices are always online, so I’d like to get it back up and running.
If anyone has an idea what to do about it, that would be great. Thanks all!