-
Notifications
You must be signed in to change notification settings - Fork 815
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug]: new files and folders being synced back from server after renaming them on the macOS client #6500
Comments
I have observed the same problems in a similar environment |
I can also observe this issue for some weeks now on many different windows machines. I tried a lot because not all clients and instances are affected. I thought sometime it is related to groupfolders. After reading your input I think there is something bigger? |
I can confirm this in Win11. If there is a delay sync parameter, it will be helpful at this time. |
I did some testing today and found that I can reproduce the problem very well with the current Nextcloud client 3.12.0git (build 20569), while the problem does not occur with the Nextcloud client 3.11.0git (build 19195). Can you also reproduce this or is it just me? The bug has definitely been around for a while but for me the bug was apparently fixed in version 3.11 of the client and broken again with the new version. |
I've had this problem happen for the last several months now. Ive updated to the most recent version 3.12.0 (build 20569) only last week (feb. 26th I think) but had this happen before. |
OK, I had a little time this morning and installed the older version 3.11.0git (build 19195) to verify #6500 (comment) and was surprised that the odd behavior I outlined above does indeed not happen in this version. One thing I noticed though was a small delay after duplicating an existing folder right before I could rename it. I'm not sure if this version did behave back when like it does right now – interesting! I think Its worth investigating the differences between the versions. |
Problem is still reproducable with the actual 3.12.1. And I can confirm the issue isn't reproducable with the 3.11.3 release. |
Same here with my current set up. Hope for a soonish fix. :) Nextcloud version: 27.1.5.1 |
Same problem on multiple Windows 10 Pro machines. Nextcloud: 28.0.3 |
Same issue with Mac and Windows clients in similar environment as OP and follow up posters. |
We (~10 people using the same nextcloud instance) see the same. All working with the macOS client in the newest version (3.12.2) |
This issue will be resolved by updating to version 3.12.3 |
will or is? can't find any hint in the release notes. |
3.12.3 didn't fix it for me on Windows 11 (and neither did 3.13.0). I have only managed to reproduce it in an "External storage" location.
What seems a little odd is that it occurs even if you wait a second or two for the copied file to sync (green tick and all) before renaming the file. I used to have the same problem with new folders reappearing after renaming them but I'm struggling to replicate that at the minute. |
I've got a similar behavior. When creating a new folder manually or programms saving temporary files (and deleting them) they are going to be synced backwards. So this means: When creating a folder and while creating renaming it after updating the current folders there are two new folders the one renamed and the folder "new folder". |
Just for the records: on macOS there's a brand new vfs implementation based on Apple's FileProvider framework. The new implementation may still suffer from some "youth bugs" but since it relies on the FileProvider API, it has an entirely different approach. |
Windows 11 (updated until today). |
It seems this bug has re-appeared for me. Hub 7 v28.0.6 (snap version) and macOS client v3.13.0 |
For testing purpose I turned off VFS for my clients clients :) Should we open a extra issue for the windows versions? |
Could you try 3.13.2 just released? It has a fix for it. |
Worked for me, thanks @camilasan👍 |
Today I went to a client that uses Nextcloud on their macOS devices and observed this exact same issue on the latest version of the client with Virtual Files available on the website (3.13.2). In order to gather some useful data to share, I restarted their MacBook, created a new folder named Here is the debug archive exported from the Virtual Files tab in the client:
This specific test and log is relative to a MacBook Air M3 2024 with macOS Sonoma 14.6, but it's reproducible on an iMac Retina 2020 with macOS Sonoma 14.5. |
I have the same issue
|
Bug description
I (and other colleagues at work) experiencing strange behaviour of nextcloud desktop client for macOS when
The new file/folder is synced immediately to the server while the user renames the file or folder.
The renamed folder/file most of the time stays but the originally created/duplicated folder/file is being synced back from the server either in the meantime or up to 5 seconds after the file/folder was renamed and also synced to the server.
On rare occasions (I only observed this twice) the renamed file/folder vanishes and get replaced by the originally duplicated one.
This behavior was first observed about 10 months or so back in early 2023 on my MacBook Pro M1 Max under macOS 12.6.4 and Nextcloud Desktop client 3.6.6 or 3.7.3 i think. It persists til this day with macOS 14.3.1 and DT-client 3.12.0.
Other colleagues have same issues on older and newer MacBooks (intel and apple silicon) too.
I searched the issues database and found similar behaviors for the windows client open since 2022 and the macOS client but with VFS enabled which we have not!
There are two feature requests being made wich could potentially circumvent this behavior:
I think the better way would be to track the local inode number + name for the folder/file being synced and check if it was renamed in the meanwhile before syncing back the file/folder from the server with the previous name and instead push the new name to the server (and subsequent clients)
Steps to reproduce
The same happens if you duplicate and rename the duplicated folder or existing file.
Expected behavior
The desktop client should recognise the renaming of the file/folder and not sync it back from the server because the old filename does not exist any more due to the renaming.
Which files are affected by this bug
any new or duplicated file/folder being renamed while syncing
Operating system
Mac OS
Which version of the operating system you are running.
several from 12.6.x to 14.3.x
Package
Appimage
Nextcloud Server version
25.0.3 (was same on 24.x)
Nextcloud Desktop Client version
3.6.6 - 3.12
Is this bug present after an update or on a fresh install?
Updated to a major version (ex. 3.3.6 to 3.4.0)
Are you using the Nextcloud Server Encryption module?
Encryption is Enabled
Are you using an external user-backend?
Nextcloud Server logs
No response
Additional info
No response
The text was updated successfully, but these errors were encountered: