alonjr Posted May 9, 2016 Report Share Posted May 9, 2016 Setup I have the latest BTSync running on two headless-linux devices. The two devices are linked; Device A is located in my home while device B is a virtual server in some datacenter. Device A generates approx. 50 images (100Kb each) on a regular basis (45 mins on average) and stores those under a new sub-directory; At the same time, it creates a static symbolic link which points to the new images directory just created. Issue Observed All files are synced from device A to B as expected. However very often, the files that were added are unexpectedly removed from device A and device B. This typically occurs anywhere from 30 to 90 minutes after the files completed syncing from device A to B. Question I'm looking for suggestions on how to trace which device is triggering the deletion of the files and for what reason? Quote Link to comment Share on other sites More sharing options...
Helen Posted May 9, 2016 Report Share Posted May 9, 2016 To trace down the "deleter", look at History. On headless machines that will he history.dat in storage folder - plain text file, search for "Removed file ....." line - this is how it'll be written on local peer who did remove the file, or "Peer name removed file ...", if the file was initially deleted on remote peer. Also, look into archive (/your_sync_share/.sync/Archive). The peer who did not delete the file, but rather got it synced from remote, will keep the file in Archive. To check for a reason - there might be a number of. For a targeted analysis can you please submit logs from both peer right after it happens and indicate which files got deleted. But apparently, Sync gets a notification about file being deleted from its location = no longer being there. The trick with symlinks is not that clear though, I suppose this link is somewhere outside sync share? Quote Link to comment Share on other sites More sharing options...
zbigb69 Posted May 9, 2016 Report Share Posted May 9, 2016 Hello, just to said that i had the same issue. i'm preparing logs to send you, and i don't know if it's the cause, but i had to temporarly eject an usb drive, and on the second computer, it start to delete all files and put in archive. Now it sync again, some files are just moved then others seems to sync again. Quote Link to comment Share on other sites More sharing options...
Helen Posted May 10, 2016 Report Share Posted May 10, 2016 @zbigb69 As for USB drive - before unplugging it, make sure its indeed (!) ejected from the system. or quit Sync. Unsafe ejection can indeed lead to the problem: the files are no longer there (drive is missing), but it's still in file system, so Sync doesn't know about it being unplugged and starts thinking that files are deleted. Quote Link to comment Share on other sites More sharing options...
zbigb69 Posted May 15, 2016 Report Share Posted May 15, 2016 On 10/5/2016 at 10:55 AM, Helen said: @zbigb69 As for USB drive - before unplugging it, make sure its indeed (!) ejected from the system. or quit Sync. Unsafe ejection can indeed lead to the problem: the files are no longer there (drive is missing), but it's still in file system, so Sync doesn't know about it being unplugged and starts thinking that files are deleted. yes, it's what i did, but i opened a ticket to send you logs, becouse it's really strange. thanks Quote Link to comment Share on other sites More sharing options...
alonjr Posted May 15, 2016 Author Report Share Posted May 15, 2016 @Helen, Upgrading to the latest btsync version fixed the issue. I'm happy as clam! (this is regarding my issue at the top of this thread) 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.