desktop icon indicating copy to clipboard operation
desktop copied to clipboard

Desktop client can't sync some files, says WindowsError: 5 Access denied

Open ImaCrea opened this issue 5 years ago • 18 comments

How to use GitHub

  • Please use the 👍 reaction to show that you are affected by the same issue.
  • Please don't comment if you have no relevant information to add. It's just extra noise for everyone subscribed to this issue.
  • Subscribe to receive notifications on status change and new comments.

Expected behaviour

Files should synchronize between cloud and desktop client.

Actual behaviour

Some files are not being synchronized because of this error showing:

Capture d’écran 2021-10-19 à 12 32 54

It may happen on all sorts of files, no matter the type. Majority of them is synchronized well but I'd say about 5~10% encounters this error. Files are well shared in the organization and the user has access to them through their browser without issues. It's the local synchronization through the desktop client that is not happening.

Steps to reproduce

  1. Start sync
  2. See errors coming : WindowsError : 5 Access Denied

Client configuration

Client version: 3.3.5

Operating system: Win 10

OS language: French

Server configuration

Nextcloud version: 20.0.13.1

Storage backend (external storage): S3

Logs

  1. Client logfile:

You can find the zip of logs at this link 👉 https://nuage.liiib.re/s/LgJ6DDH9Wnp4s3D

Thanks for your dear help and to all NC contributors! 🤗

ImaCrea avatar Oct 19 '21 10:10 ImaCrea

@mgallien That looks similar to the issues you once had with one customer where the client had trouble renaming files for no reason. The logs are full of errors because of renaming not only the tmp files.

FlexW avatar Oct 20 '21 14:10 FlexW

@ImaCrea can you please test again with 3.4.1 and sends us back log files ? the current link as expired and I was not able to copy them locally before

mgallien avatar Jan 12 '22 11:01 mgallien

hey @mgallien I'm sorry but not comfortable anymore sharing it since I've seen into the archive that data are not anonymized. I don't want risking a breach of privacy here. Thanks for understanding.

ImaCrea avatar Jan 12 '22 16:01 ImaCrea

hey @mgallien I'm sorry but not comfortable anymore sharing it since I've seen into the archive that data are not anonymized. I don't want risking a breach of privacy here. Thanks for understanding.

there is always the option of sending it directly to us as we have in any case strong obligations regarding confidentiality without the logs and because we do not reproduce the error, we cannot fix it

mgallien avatar Jan 12 '22 16:01 mgallien

We had the same issue on an instance where virtual files were disabled, just before I found this issue. We solved it by completely deleting the user profile and enabling virtual files while logging back in. Will try to get some logs, if I encounter this again.

Edit: Something weird: On said device it's not possible to remove the folder, because the user seemingly lacks access to delete it, even when recursively given via the explorer security advanced tab.

danir-de avatar Mar 14 '22 11:03 danir-de

Possibly related: #4894

joshtrichards avatar Aug 31 '24 14:08 joshtrichards

Possibly similar to #5473 and was remedied via #6053.

@ImaCrea Are you still experiencing this / able to reproduce this behavior in newer versions of the client?

joshtrichards avatar Aug 31 '24 14:08 joshtrichards

Possibly similar to #5473 and was remedied via #6053.

@ImaCrea Are you still experiencing this / able to reproduce this behavior in newer versions of the client?

Hi there, sorry this was a while ago and I'm afraid I can't reproduce it at the moment.

ImaCrea avatar Sep 09 '24 15:09 ImaCrea

Hello, since the issue seems to not be reproducible I will close this issue -- please feel free to reopen if the problem reappears

claucambra avatar Nov 08 '24 08:11 claucambra

I'm having the same issue, but I found a workaround: My setup is a folder on a Synology NAS synced via Syncthing to a VPS running Nextcloud and then externally mounted via Local Folder This gave me the WindowsError: 5 now I mounted the same folder directly via SMB (also in NC via external files) and it syncs without problems.

I still haven't found the cause though

UPDATE: This didn't solve it. We are still getting this error on some of our about 50 machines and it is absolutely not reproducable and driving us insane tbh.

It is always different machines, and different files that throw this error, so it feels imposssible to track this down. Also there is nothing avaluable in the logs. at least not for me.

I would much appreciate if this issue gets reopened @claucambra

Fplusplus avatar Dec 29 '25 16:12 Fplusplus

I am having the same issue here. Temporary files are being created, but never properly synced. The issue is on files that were shared with me from another person. Some are from TALK, others are normal folder shares. This can be only resolved by going into the web interface and clicking on "Leave this share". It affects multiple devices that share is being used on. In other words, this is not an issue of the destination machine (apart from the operating system) but rather how nextcloud is trying to share it on the machine.

uncovery avatar Mar 04 '26 02:03 uncovery

Hello, this is closed, I know, but just because I've experienced the issue (or better a client experienced the issue) today I would like to comment on this. Several files did not synchronise to the windows client (newest version) with windows error 5. Changing the synchronising mode to virtual on the client, wait for synchronisation, changed back again - every file is synchronised. (5 webservers, 2 redis, S3 primary storage, 2FA)

uhhbeku avatar Mar 12 '26 14:03 uhhbeku

I can also reproduce this with a current Nextcloud client, annoying indeed

thalunil avatar Mar 13 '26 09:03 thalunil

Hello, since the issue seems to not be reproducible I will close this issue -- please feel free to reopen if the problem reappears

@claucambra can you please reopen?

hex-m avatar Mar 13 '26 09:03 hex-m

I just installed on a new computer. 100% of my images from nextcloud talk are subject to that issue.

uncovery avatar Apr 21 '26 02:04 uncovery

Same here with 33.0.4. Temporary files which are never finished due to "error 5" Clicking on the item in the client's file list opens the start-page of the nextcloud instance - not very helpful. If it would at least jump to the file or give some clue on how to solve the problem - e.g. remove the temporary file and start re-syncing it.

svenb1234 avatar May 08 '26 14:05 svenb1234

Same here with 33.0.4. Temporary files which are never finished due to "error 5" Clicking on the item in the client's file list opens the start-page of the nextcloud instance - not very helpful. If it would at least jump to the file or give some clue on how to solve the problem - e.g. remove the temporary file and start re-syncing it.

Check if this is the same as here: https://github.com/nextcloud/desktop/issues/9885 I provided a script to fix the issue temporarily there.

uncovery avatar May 09 '26 02:05 uncovery

I posted a workaround that works for me at https://github.com/nextcloud/desktop/issues/9885#issuecomment-5494043807 - maybe it helps :')

mrtomatwo avatar Sep 01 '26 12:09 mrtomatwo