How to fix the Synology Cloud Sync Unknown error occurs non sense

I sync my data from my Seafile instance back to my NAS. Well, when it works.

In the most random fashion, my Synology NAS “Cloud Sync” enjoys to take a break. And up until now, it seemed impossible to get it back to sync.

You would expect that restarting the app would trigger a resync, but alas, no, it doesn’t. We’re talking about Synology here, right.

The only option was to unlinking and relinking stuff, which meant reconfiguring. A massive pain when Cloud Sync fails every couple of weeks.

After an hour of digging in the logs, searching the dark corner of the internet, I finally found the solution by one brave man called @mback2k on Github.

https://github.com/nextcloud/server/issues/10123#issuecomment-412640597

So yeah, there it is. When Cloud Sync gets stuck, Cloud Sync will NEVER try to sync again.

Procedure to fix this non sense:

root@crappynas:/volume1/@cloudsync/db# sqlite3 
SQLite version 3.10.2 2016-01-20 15:27:19
Enter ".help" for usage hints.
Connected to a transient in-memory database.
Use ".open FILENAME" to reopen on a persistent database.
sqlite> .open config.sqlite
sqlite> SELECT sync_folder,error FROM session_table;
/@Snapshot/@PushServ|0
/ANDROID|-12
/DATA|-12
sqlite> UPDATE session_table SET error = 0 WHERE error = -12;
sqlite> SELECT sync_folder,error FROM session_table;
/@Snapshot/@PushServ|0
/ANDROID|0
/DATA|0

Syncing should resume.

Thank you Synology, you never disappoint.




Thanks for reading this post!


Did you find an issue in this article?

- click on the following Github link
- log into Github with your account
- click on the line number containing the error
- click on the "..." button
- choose "Reference in new issue"
- add a title and your comment
- click "Submit new issue"

Your feedback is much appreciated! πŸ€œπŸΌπŸ€›πŸΌ

You can also drop me a line below!