bt-sync / sync-docker

Resilio Sync docker image
https://www.resilio.com
178 stars 59 forks source link

FC[7507]: Mutex file check failed with error : 103 #29

Closed 01e9 closed 5 years ago

01e9 commented 5 years ago

I am pulling my hair for a few hours.

I do:

I tried different combinations, with/without volumes, but still get the error.

What may be the cause?

[20180917 12:13:07.589] SyncFolderNotify: SyncFolderNotify: "backup-17.09.2018-15_13_06.tar.gz", event = "IN_CREATE"
[20180917 12:13:07.589] [OnNotifyFileChange] "/mnt/mounted_folders/sync/backup-17.09.2018-15_13_06.tar.gz"
[20180917 12:13:07.590] SyncFolderNotify: SyncFolderNotify: "backup-17.09.2018-15_13_06.tar.gz", event = "IN_MODIFY"
[20180917 12:13:07.590] [OnNotifyFileChange] "/mnt/mounted_folders/sync/backup-17.09.2018-15_13_06.tar.gz"
[20180917 12:13:07.591] SyncFolderNotify: SyncFolderNotify: "backup-17.09.2018-15_13_06.tar.gz", event = "IN_CLOSE_WRITE"
[20180917 12:13:07.591] [OnNotifyFileChange] "/mnt/mounted_folders/sync/backup-17.09.2018-15_13_06.tar.gz"
[20180917 12:13:08.067] SyncFolderNotify: SyncFolderNotify: "ID", event = "IN_DELETE"
[20180917 12:13:08.067] [OnNotifyFileChange] "/mnt/mounted_folders/sync/.sync/ID"
[20180917 12:13:08.099] MUTEX[/mnt/mounted_folders/sync]: mutex file not found
[20180917 12:13:08.099] FolderState[7507]: Added error=103, scope=5, active=1, description=""
[20180917 12:13:08.599] FC[7507]: Mutex file check failed with error : 103
[20180917 12:13:08.599] SyncFolderScanner: Removing notifier "/mnt/mounted_folders/sync"
[20180917 12:13:08.599] SyncFolderNotify: Removing folder /mnt/mounted_folders/sync from inotify
[20180917 12:13:08.599] SyncFolderNotify: Removing folder /mnt/mounted_folders/sync/.sync from inotify
[20180917 12:13:08.599] SyncFolderNotify: SyncFolderNotify: <empty>, event = "IN_IGNORED"
[20180917 12:13:08.599] SyncFolderNotify: SyncFolderNotify: <empty>, event = "IN_IGNORED"
[20180917 12:13:09.599] FC[7507]: Mutex file check failed with error : 103
[20180917 12:13:10.187] 16TunnelConnection[0x00007f82d405e740]: received ping
[20180917 12:13:10.600] FC[7507]: Mutex file check failed with error : 103
[20180917 12:13:11.601] FC[7507]: Mutex file check failed with error : 103
[20180917 12:13:12.601] FC[7507]: Mutex file check failed with error : 103
01e9 commented 5 years ago

This error happens with 2.6 and 2.5. It works with resilio/sync:release-2.4.5.

artempronevskiy commented 5 years ago

@arteniioleg this is not Docker related issue, according to the log provided there is some issue with /mnt/mounted_folders/sync/.sync folder, in particular with service files inside .sync folder. Please contact support and provide full log to analyze the issue https://help.resilio.com/hc/en-us/requests/new?ticket_form_id=91563

01e9 commented 5 years ago

This issue is hard to reproduce with regular resilio usage on PC, so reporting it will be confusing for testers/developers. I will keep this issue open until I will have enough motivation and time to create a full docker-compose configuration to reproduce it easily.

artempronevskiy commented 5 years ago

@arteniioleg got it, once it's done please contact support directly using the link provided. Thanks.

01e9 commented 5 years ago

My bad.

I use Resilio for backups. After creating a new backup archive I delete old files with this command

docker exec ${CONTAINER} find /mnt/mounted_folders/sync -mtime +30 -type f -delete

and it deleted /mnt/mounted_folders/sync/.sync/ID because it scanned files recursively.

The fix is to add -maxdepth 1

docker exec ${CONTAINER} find /mnt/mounted_folders/sync -maxdepth 1 -mtime +30 -type f -delete