thx Posted July 13, 2016 Report Share Posted July 13, 2016 Hi all, I have troubles automatically syncing directories in my user context with having the Sync instance encapsulated in a Docker container (having a Pro licence) Using the Sync-Dockerfile [1] [2] (afais Ubuntu 15.04), I have setup an instance on a Ubuntu based server and anothe rinstance on my Fedora 23 desktop. the server's data directory points to a btrfs subvolume, i.e., DATA_FOLDER="/data/sync/" > docker run -d --name Sync -p 127.0.0.1:$WEBUI_PORT:8888 -p 55555 -v $DATA_FOLDER:/mnt/sync --restart on-failure bittorrent/sync on the desktop I mount additionally my user's home to be able to sync selectively directories, i.e., into the containers /mnt/mounted_folders path (afais the target path for additional directories in the container's default config) > docker run -d --name Sync -p 127.0.0.1:$WEBUI_PORT:8888 -p 55555 -v $DATA_FOLDER:/mnt/sync -v /home/MYUSER:/mnt/mounted_folders/MYUSER --restart on-failure bittorrent/sync When I add on my desktop a directory from my user's home path, it appears in principle after some time in the server's WebUI and the base directory created in server:/data/sync/folder/... However, no files are being synced and the directory on the server stays empty. On the desktop, a .sync firectory is created being owned by root as the docker daemon's owner. I have already tried to decrease the scan frequency to 300s just in case the file system notifies are not being passed through to the container(??) - but without success and the content of the user folder is not synced. Maybe somebody has an idea for me, how to get the user folder synced? Cheers and thanks, Thomas Quote Link to comment Share on other sites More sharing options...
Helen Posted July 14, 2016 Report Share Posted July 14, 2016 Thomas, And do files appear in sync queue on desktop? It's hard to tell what exactly is wrong, can you please send the logs from both peers? they shall be in $data_folder/config to support? Quote Link to comment Share on other sites More sharing options...
thx Posted July 14, 2016 Author Report Share Posted July 14, 2016 Hi Helen, unfortunately, I have moved on my desktop in the meantime from the containerized client to run it directly within my user's context, i.e., > systemctl --user {start,enable} btsync I have to see, if I have kept the container logs in a snapshot Anyway, running sync directly in the user context has no problems syncing. So, I suspect with the container either network issues (which would be strange, since both setups have been using the same ports on the host) or file system permission/ACLs related problems (would also be strange, because the user directory was readable/writable in the containter context (root...) with .sync in the folder successfully created. Does Sync use inotify for tracking file system changes on Linux? If so, my best guess would be, that inotifies are not passed through to a container (but should be the same kernel, so...?). But I am not really an expert on containers or file systems Cheers, Thomas Quote Link to comment Share on other sites More sharing options...
Helen Posted July 15, 2016 Report Share Posted July 15, 2016 Yes, Sync uses inotify. and btrfs also has it implemented. Even if notifications fail, Sync has folder rescan option. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.