none
Windows 10 sync center error "The process cannot access the file because it is being used by another process" for all files RRS feed

  • Question

  • On Windows 10 Pro, enabled offline files, while sync with a NAS (hard drive attached to my router), got same error for every files. 
    Sunday, January 13, 2019 1:58 AM

All replies

  • Hi

    Are you seeing any errors related to file locks? just try take a backup of that file, and then delete and restart the machine to see if its resolved.<o:p></o:p>

    Please take a look at the below thread on the same issue: https://social.technet.microsoft.com/Forums/en-US/426b6c5d-ad41-4e30-aa1c-23c4075f8706/offline-files-will-not-sync-process-cannot-access-file-being-used-by-another-process?forum=win10itpronetworking

    Hope this helps!

    ---------------------------------------------------------------------------------------------------------

    Please don't forget to “mark the replies as answers” if they helped, also set "like" it’s a boost for us to keep blogging J

    Click here to learn more. Visit the dedicated Community forum to shareexplore and talk to experts about Microsoft Kaizala.


    Sunday, January 13, 2019 4:58 AM
  • I have tried to clear the offline file cache a couple of times. 

    Basically for every file, the sync center results have the same error: The process cannot access the file because it is being used by another process.

    When I view offline files via sync center, I can see the folder structure and file name, but file size is 0 bytes. 

    Sunday, January 13, 2019 3:21 PM
  • Any errors from the event log?
    Sunday, January 13, 2019 4:58 PM
  • Thanks for your reply. I have issue to upload an image to this box, but my error log is same as: https://social.technet.microsoft.com/Forums/en-US/20707e67-1fbd-4e13-8337-a8a9adb569cc/using-offline-files-within-windows-10-when-syncronising-i-get-the-error-the-process-cannot-access?forum=win10itprogeneral

    Basically, for every file, there is warning with detail saying "The process cannot access the file because it is being used by another process."

    Sunday, January 13, 2019 5:45 PM
  • Hi,

     

    This may because the Oplocks is not enabled.

    Have you tried the instructions in the link Thuyavan Ganesan offered? If not would you please have a try to see if this works?

     

    For your reference:

    https://social.technet.microsoft.com/Forums/en-US/426b6c5d-ad41-4e30-aa1c-23c4075f8706/offline-files-will-not-sync-process-cannot-access-file-being-used-by-another-process?forum=win10itpronetworking

     

    Regards,

    Zoe


    Please remember to mark the replies as answers if they help and unmark them if they provide no help.
    If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com.


    Tuesday, January 15, 2019 7:46 AM
  • I tried, but it didn't help. 
    Thursday, January 17, 2019 12:31 AM
  • Hi,

    Do you mean that you've turned off your firewall and

    1. On client :

    HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\MRXSmb\Parameters\ 

    OplocksDisabled REG_DWORD set to 0 to enable.

    1. On server:

    HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\LanmanServer\Parameters

    EnableOplocks REG_DWORD set to 1.

     

    Regards,

    Zoe


    Please remember to mark the replies as answers if they help and unmark them if they provide no help.
    If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com.

    Friday, January 18, 2019 6:38 AM
  • Thanks for your reply Zoe. 

    No, I didn't realize that I need to turn off the firewall. I'll give a try to that to turn off private network firewall. 

    Also, in my computer, I only have HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\mrxsmb, there is no parameters, I assume registry is not case sensitive. 

    What do you refer to by "on server"? I do see that setting is 1 on my computer. Unless you are referring a remote server. To be clear, I'm trying to sync with a hard driver attached to a router. 

    Sunday, January 20, 2019 3:00 PM
  • Hi,

    Would you please follow the instructions below:

    • Locate HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\LanmanServer\Parameters
    • Right click to create a DWORD value and name it EnableOplocks
    • Double click the entry and set the value data to 1
    • Restart your computer to make the configurations take effect

    Regards

    Zoe


    Please remember to mark the replies as answers if they help and unmark them if they provide no help.
    If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com.

    Monday, January 21, 2019 7:30 AM
  • Hi, 

    I have done that. It's not working. I have also tried disabling firewall. Nothing works. There are many ask for help with the exact same problem online, but I have never a solution that solved the problem. 

    Monday, January 21, 2019 8:23 PM
  • Hi,

    Have you tried process monitor to see which process is using the files?

    Would you please double click the entry in the monitor and post the details in the forum? We can to do further analysis based on the description.

    You may download from the link below:

    https://docs.microsoft.com/en-us/sysinternals/downloads/procmon

    Please pay attention to your personal information if there is any. Thanks for your understanding and efforts.

    Regards,

    Zoe


    Please remember to mark the replies as answers if they help and unmark them if they provide no help.
    If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com.

    Tuesday, January 22, 2019 2:27 AM
  • Hi,

     

    Just checking in to see if the information provided was helpful.

    Please let us know if you would like further assistance.

     

    Best Regards,

    Zoe


    Please remember to mark the replies as answers if they help and unmark them if they provide no help.
    If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com.

    Thursday, January 24, 2019 2:52 AM
  • Hi,

     

    Was your issue resolved?

    If the information provided was helpful, please "mark it as answer" to help other community members find the helpful reply quickly.

    If no, please reply and tell us the current situation in order to provide further help.

     

    Best Regards,

    Zoe


    Please remember to mark the replies as answers if they help and unmark them if they provide no help.
    If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com.

    Monday, January 28, 2019 2:05 AM
  • Hi, 

    No. The issue is still there, and I don't understand why. 

    And clearly I'm not the only one who has experienced this same issue, and I haven't not seen any satisfied resolution across the whole forum... sad!!! This is a main factor for me to get my Windows Professional upgrade, and it doesn't work!!!

    Tuesday, January 29, 2019 2:12 AM
  • Hi,

    Thanks for the reply.

    Would you please reproduce the issue and try Process Monitor to see which process is using the files?

    This may help a lot if you double click the entry in the monitor and post the details in the forum. We can to do further analysis based on the description.

    Regards,

    Zoe


    Please remember to mark the replies as answers if they help and unmark them if they provide no help.
    If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com.

    Tuesday, January 29, 2019 2:27 AM
  • Hi,

    We'd love to hear your feedback about the solution.

    If there is anything else we can do for you, please feel free to post in the forum.

    Thank you for your understanding and support.

    Regards,

    Zoe


    Please remember to mark the replies as answers if they help and unmark them if they provide no help.
    If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com.

    Thursday, January 31, 2019 8:44 AM
  • Hello Zoe,

    Maybe you can help me? I have the same exact problem. Config is:

    Unraid server -> other pc's have no problem caching

    2x2670 xeon desktop.

    I tried all the steps reg entries etc. (Enableoplocks CLIENT side/reset offline files/etc)

    Still no go.

    I am quite sure nothing is using the files: i tried it with several different folders on the server, unfortanatly none work.

    Some other things I can try?

    Friday, September 20, 2019 11:51 AM