What can I do when the file list in Synology Drive and File Station are not the same?
What can I do when the file list in Synology Drive and File Station are not the same?
Symptoms
You notice that certain files or folders are missing on Synology Drive but show up in File Station or other file transfer protocols, making the file lists inconsistent.
Resolution
Some file types are not supported by Synology Drive. If your file type is supported by Synology Drive but missing, try rescanning team folders in Synology Drive. This process allows Synology Drive to reindex team folders and retrieve the missing files.
- Sign in to DSM with an admin account and go to DSM > Control Panel > Task Scheduler > Create > Scheduled Task > User-defined script.
- Configure the following settings:
- General
- Name the task and select the account that you are currently logged in to.
- Name the task and select the account that you are currently logged in to.
- Schedule
- Select Run on the following date. Set to start on the current date and Do not repeat.
- Select Run on the following date. Set to start on the current date and Do not repeat.
- Task Settings
- Copy and paste the following command into the User-defined script field:
sqlite3 --json /var/packages/SynologyDrive/etc/repo/user-db.sqlite 'select view_id from user_table' | jq .[].view_id | xargs -I {} /var/packages/SynologyDrive/target/bin/cloud-control synotifyd-rescan --view_id {} --path /
- Copy and paste the following command into the User-defined script field:
- Leave all other settings unchanged.
- General
- After creating the rescan task1, select it from the task list and click Run to manually execute the task.
Monitor the rescan task progress
Since the rescan task execution time may vary based on your data size, you can create a task to monitor the progress.
- Go to Control Panel > Task Scheduler > Settings, select Save output results, and select a folder to store the result.
- In Task Scheduler, click Create > Scheduled Task > User-defined script and use the following settings:
- General
- Name the task and select the account that you are currently logged in to.
- Schedule
- Select Run on the following date. Set to start on the current date and Do not repeat.
- Task Settings
- Copy and paste the following command into the User-defined script field:
/var/packages/SynologyDrive/target/bin/cloud-control synotifyd-status | grep -E 'Queue:|Total events in queue files'
- Copy and paste the following command into the User-defined script field:
- Leave all other settings unchanged.
- General
- After creating the checking task1, select it from the task list and click Run, then click Action > View Result to check the rescan progress.
- The Run Result will show "0" after Total events in queue files, indicating that the rescan is complete. If the queue files count is not 0, run the task again later and check the count until it becomes 0.