Because of the conversion of the database from v1.3.4 to v1.4.0-rc.x, I always have had problems matching two of my Synology servers. When trying to clean up or reset the databases with the commands
-reset-database
-reset-deltas
until today, even with the rc.11, no effects have been observed. So far, deviations or errors have not been changed or corrected. I don’t know if this is a specific Synology problem or a general one.
It is also strange for me, I can rename, move, delete the directory /var/packages/syncthing/target/var/index-v0.14.0.db/. Syncthing still work as if it were nothing after starting, but the directory will not be recreated and to create the database again. Maybe I waited too short, because it was not plausibel for me.
I would like clarification on how to reset the database manually. Should I just delete the contents of the /var/packages/syncthing/target/var/index-v0.14.0.db/ directory?
Until this is clarified, I can only disconnect and reconnect the peers (folders), but this is basically not a solution. If nothing helps, finally I must delete the configuration.
It can’t be both not recreated and also full of database files being changed. You are being rather confusing.
But also keep in mind that what Syncthing uses as the database dir depends on the user it’s running under and the environment variables set and parameters. There is nothing to say that the database dir when running as a service under sc-syncthing is the same database dir it defaults to when you run it from the command line.
On my Synology servers, Syncthing runs exclusively via the Synology DSM and there via the package center. I also stop and start Syncthing in the package center, if I do something via CMD. Autostart of Syncthing is also carried out via the Synology DSM.
There are no actions with CMD. Also I don’t have a second database directory.
Understand your setup and system, so that you know how Syncthing is started, what user it runs as and where its settings and database are. Admittedly that may not be totally easy on a Synology. Perhaps better experiment on a normal computer instead.
As I understood, that -reset-database will delete the folder /var/packages/syncthing/target/var/index-v0.14.0.db/, I made a backup of the content and delete manually all files in that folder.
After restarting of Syncthing the whole database is building new. This I make on both servers. This now needs a couple of hours and I come back after finishing.