Hopkins Posted October 19, 2014 Report Share Posted October 19, 2014 This problem did not seem to exist with the earlier versions, e.g. 1.3.109 (which I still run on some machines just to avoid it). I assume that it is a side effect of some other change - I'd be interested (purely out of curiosity) to know what this change was. Quote Link to comment Share on other sites More sharing options...
GreatMarko Posted October 19, 2014 Report Share Posted October 19, 2014 This problem did not seem to exist with the earlier versions, e.g. 1.3.109 (which I still run on some machines just to avoid it). I assume that it is a side effect of some other change - I'd be interested (purely out of curiosity) to know what this change was. RomanZ has already indicated what the change was. Quote Link to comment Share on other sites More sharing options...
mbob Posted October 19, 2014 Author Report Share Posted October 19, 2014 @Hopkins: I assume the main difference is/was, that in the 1.3 version there was a (10s) delay between file change and syncing. But as RomanZ already stated, this delay caused other issues. In theory I think it is correct to work without delay. Of course the goal should be to get files synced to other peers as fast as possible. I'm also not sure in what way Office (or other applications) is responsible for the problem. With Office for example I have this problem only when writing the old .DOC format, but not when using the newer .DOCX format. My theory is:BTSync needs to exclusively lock the file in order to guarantee that no one can change the files during the sync process, so that the other peers get a consistent state of the file.This lock seems to prevent applications from saving the file.Now: the question is, if BTSync can get a lock, this means the other application has no lock on the file - so why does Office not have any lock on the file while saving?Another idea: what about the use of Volume Shadow Copies (in Windows at least)? This should grant BTSync access to(a copy) of the file without interfering with other applications ...? Quote Link to comment Share on other sites More sharing options...
GreatMarko Posted October 19, 2014 Report Share Posted October 19, 2014 @mbob, the issue is more to do with the way that Office saves files - it doesn't seem to save changes directly back to the file you're working on, instead, when you save, Office (Excel, Word, etc) appears to do the following "behind the scenes":Creates a temporary file in the same folder Writes the document you're working on to the temporary file it's just created Deletes the original file Renames the temporary file to have the same name as the original Opens this new file in place of the original you were working on It's this creation/deletion/renaming/opening process that appears to be causing the problem, and causing the problem for Office, rather than Sync - as Office seems to then have trouble re-opening the file created in Step 4 above if Sync happens to be accessing/indexing it at the same time. This is likely why the issue wasn't present in 1.3, as the "10 second delay" that Sync had allowed all 5 steps above to complete before Sync took any action. Now, Sync starts doing its stuff as soon as Step 1 completes! Quote Link to comment Share on other sites More sharing options...
Hopkins Posted October 19, 2014 Report Share Posted October 19, 2014 RomanZ has already indicated what the change was.Ah, apologies, I did not read that reply carefully enough! Quote Link to comment Share on other sites More sharing options...
MCB529 Posted October 20, 2014 Report Share Posted October 20, 2014 Hello! I am syncing files between my computer at work and my private computers using BTSync. Since I've updated my computer at work (Windows 7) to BTSync 1.4.93, I am having trouble to edit Word files inside synced folders. I can create new files and initially save them (Using "Save as..."), but when I change something in the file and use "Save" to save the changes, I get an error telling me about wrong file permissions (Error Code 200635). What I have tested: - This happens exclusively only with Word files. Excel is ok, other programms such as Notepad++ are fine.- Switching off BTSync or disconnecting the folder (removing it from sync) solves the problem. Then I am able to save changes as one would expect.- Moving the file to another folder (even one that has another key for syncing) does not solve the problem- The problem is independend from the file name Do you have any suggestion on what is going on here? Cheers,MCB Quote Link to comment Share on other sites More sharing options...
MCB529 Posted October 20, 2014 Report Share Posted October 20, 2014 Hello again! Well, apparently my post was moved to this thread. So I guess I found a solution to my problem: It is not an exclusive problem with BTSync - it is a interference from BTSync and our virus protection (Symantec Endpoint Protection). When I switch the virus scanner off or deselect "All file types" in the auto-protection settings, everything is back to normal. Hope that helps a little in finding the cause of the problem(s). Cheers,MCB Quote Link to comment Share on other sites More sharing options...
KostyaNext Posted October 20, 2014 Report Share Posted October 20, 2014 (edited) I had the same problem with Word and Excel, when Kaspersky Antivirus protection is active.It seems that BT Sync is incompatible with antivirus protection. BT Sync 1.4.93 betaKaspersky Endpoint Security for Windows 10.2.1.23 (a) Edited October 20, 2014 by KostyaNext Quote Link to comment Share on other sites More sharing options...
mbob Posted October 20, 2014 Author Report Share Posted October 20, 2014 I have no Antivirus installed (except MS default Security Essentials / Defender on Win 8), and I have this problem, so it is obviously not related to Symantec or Kaspersky. However, virus protection may slow down everything, and thus makes it more likely to get into timing problems. But then again: why does normal virus protection software not interfere with Office? Isn't there the same problem that virus protection needs to open the files after they have been written? Why can BTSync not use a delay? This would prevent the application from syncing temporay files also (which I often see in BTSync's history). Which issue has been causes by the delay? Actually BTSync must be able to initiate the sync process at anytime anyway (after system startup, every 10 minutes per default, etc.) - so what difference does it make to run it <n> seconds after a file has been modified? Quote Link to comment Share on other sites More sharing options...
RomanZ Posted October 20, 2014 Report Share Posted October 20, 2014 @mbob- BTSync needs to exclusively lock the file in order to guarantee that no one can change the files during the sync process, so that the other peers get a consistent state of the file.Vice versa. Sync opens the file for a moment to check if someone opened it for writing, and Office attempts to open the file for exclusive use at this moment - and gets a violation. why does normal virus protection software not interfere with Office?Anti-malwares work with files completely differently. Anti-malware brings a filter driver, which subscribes to filesystem events and gets a chance to get a file read / file write event just a moment before it is opened by a requester (and block file operation until it completes whatever it wants - scanning, hashing, etc.).Sync is pure user-space application and does not bring any drivers with it. So it is pretty limited in tools it can utilize to monitor file changes and actual status. As I mentioned, our devs are working on solution to both minimize sync delay and make it tolerant to such interoperability issues. Quote Link to comment Share on other sites More sharing options...
ChrisH Posted October 22, 2014 Report Share Posted October 22, 2014 While you can't prevent Sync from opening the file (it happens before the ignore list is checked) What? Who thought that would be a good idea?Surely the principle should be to skip handling a file as soon as possible if it is to be ignored anyway. So why open it at all? Quote Link to comment Share on other sites More sharing options...
KostyaNext Posted October 24, 2014 Report Share Posted October 24, 2014 When the problem will be solved? BTSync has become impossible to use. Quote Link to comment Share on other sites More sharing options...
GreatMarko Posted October 24, 2014 Report Share Posted October 24, 2014 When the problem will be solved? BTSync has become impossible to use. Please be patient - the devs are working to resolve this, and as RomanZ indicated last week: "Unfortunately the fix is not ready yet. We know the root cause of the issue, but fix is much more complex than expected." Quote Link to comment Share on other sites More sharing options...
RomanZ Posted October 24, 2014 Report Share Posted October 24, 2014 Working on the fix at the moment! Will release fixed build as soon as fix is ready and tested. Quote Link to comment Share on other sites More sharing options...
lupus Posted October 29, 2014 Report Share Posted October 29, 2014 I have a problem with Sync and Access 2010. If Sync is running i often cant backup my access-database with the access-feature. Often an error-message appears like this: "cant create a backup, the file is still in use or locked". The same when i try to comprimize or repair a database with the access-feature.When i shutdown Sync the error-messages do not appear... Quote Link to comment Share on other sites More sharing options...
RomanZ Posted October 30, 2014 Report Share Posted October 30, 2014 @all, If anyone is interested to test experimental build with the fix for the issue - write me to PM. Anyone who subscribes - I'll likely will ask you for logs or maybe more debugs! Quote Link to comment Share on other sites More sharing options...
lupus Posted October 31, 2014 Report Share Posted October 31, 2014 sorry for that silly question: how can i pm you? Quote Link to comment Share on other sites More sharing options...
mversion Posted October 31, 2014 Report Share Posted October 31, 2014 I don't think it's you, I couldn't find a way to send a PM either. The only thing that comes close is the Profile Feed tab after you click on the avatar, but that seems more like a facebook style wall post or something.Confusing. *Edit: Alright, it seems *after* you make a post, and then visit the users profile, you see the SEND MESSAGE button. There you go. Quote Link to comment Share on other sites More sharing options...
lupus Posted October 31, 2014 Report Share Posted October 31, 2014 @all, If anyone is interested to test experimental build with the fix for the issue - write me to PM. Anyone who subscribes - I'll likely will ask you for logs or maybe more debugs!but how? PM? edit:Ah, i got it. The Mail-Symbol on top Quote Link to comment Share on other sites More sharing options...
RomanZ Posted October 31, 2014 Report Share Posted October 31, 2014 @lupusYep. PM. I've already sent you a response. @all who received experimental buildPlease do not hesitate to report on issues you see with the build to current topic. Quote Link to comment Share on other sites More sharing options...
GreatMarko Posted October 31, 2014 Report Share Posted October 31, 2014 @all, if you're unable to PM RomanZ, just express your interest in this thread instead and I'll ensure RomanZ sees it. ...and just to give you an update, it looks like the team have now been able to address this issue! The fix itself hasn't been included in today's public 1.4.99 build however, as it needs further testing to ensure there are no knock-on issues as a result of the fix. Quote Link to comment Share on other sites More sharing options...
zeropluszero Posted October 31, 2014 Report Share Posted October 31, 2014 Hello, sorry, i might be blind, but i can't find the PM fonction !? Would like to test the experimental release to check if it solvemy troubles Quote Link to comment Share on other sites More sharing options...
lupus Posted November 1, 2014 Report Share Posted November 1, 2014 i dont understand..is the bug tried to fixed in built 1.4.99 or not? i installed it, but the bug is still there Quote Link to comment Share on other sites More sharing options...
GreatMarko Posted November 1, 2014 Report Share Posted November 1, 2014 i dont understand..is the bug tried to fixed in built 1.4.99 or not? i installed it, but the bug is still there Please read my previous post: "The fix itself hasn't been included in today's public 1.4.99 build" Quote Link to comment Share on other sites More sharing options...
mversion Posted November 2, 2014 Report Share Posted November 2, 2014 Hey guys, FWIW I've installed the 64bit test version @RomanZ has sent to me and I'm still getting access denied errors when trying to modify files as they sync in the background. 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.