Skip to content

Instantly share code, notes, and snippets.

@chenbojian
Created September 19, 2025 03:05
Show Gist options
  • Select an option

  • Save chenbojian/9c948104399a14261094d79266616aed to your computer and use it in GitHub Desktop.

Select an option

Save chenbojian/9c948104399a14261094d79266616aed to your computer and use it in GitHub Desktop.
Fix for Synology Cloud Sync: Sync folder does not exist
#!/usr/bin/env bash
output=$(ssh nas "sqlite3 /volume1/@cloudsync/db/config.sqlite 'select * from session_table where error = -12'")
if [[ -n "$output" ]]; then
echo "Got error in CloudSync: $output"
ssh nas "sudo sqlite3 /volume1/@cloudsync/db/config.sqlite 'UPDATE session_table SET error = 0 WHERE error = -12'"
ssh nas "sudo synopkg restart CloudSync"
else
echo "No error"
fi
@chenbojian
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment