Knowledgebase
Why do I get "The process cannot access the file because it is being used by another process" error when I use Win 7 offline files with NAS share? (No problem when using XP)
Posted by Daniel Orme on 23 December 2011 05:14 PM

Win 7 can have problem with Samba shares due to different oplocks setting. Enable oplocks in Windows as follows:

  1. Using regedit, go to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\LanmanServer\Parameters
  2. Change value of EnableOplocks from 0 to 1 (if EnableOplocks is not present, add it manually)
  3. Reboot your PC

Reference: http://answers.microsoft.com/en-us/windows/forum/windows_7-networking/using-offline-files-within-windows-7-when/640ddb56-3059-4fe6-91cf-e2d60e06ea28

 

Applied Models: All NAS Series

(2 vote(s))
Helpful
Not helpful

Comments (3)
Oliver Krist
09 April 2012 08:06 PM
The answer is bullshit. It is an "old" error which occurs again:
Using windows offline files feature is only possible for the owner of a file. If you are not the owner and try to work offline the file is not accessible.
This issue existed also with v3.5.1. It was solved the with v3.5.2 and now occurs again with v3.6.1 Build0302T. I did not change my windows config. SO I guess that there is an error in the Samba implementation of the QNAP firmware.
Ben Turvill
22 April 2012 11:33 PM
I have had this problem trying to attach several domain users to a single QNAP samba share. I used the following workaround:

1. Create a domain user, I used the username "QNAPuser"
2. On the QNAP web interface, make DOMAIN\QNAPuser the owner of all files and folders of the desired target
3. For each user you wish to access the share, map a drive to the QNAP folder. Select the "Connect using different credentials" check box and when prompted enter the DOMAIN\QNAPuser credentials and check remember password.
3. Make desired folders or entire drive "always available offline" as required.

The files should now sync successfully.
Adam Leathorn
03 January 2013 07:30 AM
Hey,

I got this working by clicking "work online" when in the share. If you have Windows 7 and keep getting these errors, that could be your issue as well. I went through this whole reg edit stuff to find that I just needed to work online. I don't know why or when I clicked on work offline, but that should help some people with this issue.