-
Notifications
You must be signed in to change notification settings - Fork 87
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
Nested groupfolder sync broken with Nextcloud desktop client #1787
Comments
Same Problem at my device Server Version: 22.2.3 The behavior exists for a long time and many versions. Only ignored it and got the changed new and chaned files by disabling and enabling the sync for the folder. |
Additional info: I've made some tests with a 3rd level of group folder right now. It seems that changes to files in the 1st and 3rd level trigger sync, but not on 2nd level. |
Related or duplicate: #652 and nextcloud/desktop#1773 |
I see the same issue on my configuration Server Version: 25.0.2 I understand that we can use groupfolders with the sync client only if we don't use subfolders. |
We also stumbled about this problem and it took us quite a while to narrow it down to be a groupfolder issue and then finally to find this issue. In our case, syncing was working in some folders and for some people without problems, while for others it did never work without hard tricks like clearing sync.db or resetting the ignore file list. We now implemented a crude solution: Using Likely not something you want to do in large installations, but for the time being it saves us from completely rebuilding our structure to a flat layout etc. Would be really nice if a fix finally could be implemented for that. What is the show stopper here? Is there something we can contribute? If not code, maybe something else? ;-) |
It isn't just Windows related - on other platforms it doesn't work too.
My environment: Server configurationOperating system: FreeBSD 13.2-p9 amd64 Client configurationBrowser: Firefox 121.0, Nextcloud Desktop-Client 3.10.1, 3.11.0 @Abraxas0, please rename issue - replace P.S. 4 years have already passed, but the bug is still here... |
Hi all, if I got you right I've got the strange behavior with some of my group folders too. The Windows Desktop Client is not downloading the content of a group folder but uploading new files (as I can see right away on the web gui). The client shows every folder (downwards too) in the client settings (so permissions are working). Do you have any idea? NC Client: 3.11 Windows 10/11 |
Hi stullekovski, if your problem appears only in nested group folders (e.g. Folders with a "/" in the name), then it clearly sounds like you are affected from the same issue. As your wrote, if you change something, it gets uploaded right away, but incoming changes are not synced unless you do what you did. But for us, it helped (actually 100% solved the issue), if the top level group folder has an update. So if your problem is in group folder "upper/lower", then try changing something in group folder "upper" and I guess then outstanding changes in "upper/lower" will be synced with it. As written above, we use If you are interested in this crude fix (until hopefully a final fix is released) feel free to ask. |
I added to system cron on my workstation (crontab -e):
This workaround work for subfolders of |
Yes, but that triggers a sync in groupfolder1 and all nested subfolders groupfolder1/a groupfolder1/b etc. every minute, even if there is no change otherwise. Therefore the idea with watchman, so that the touch only occurs if something was changed in one fo the affected folders. Additionally, we had issues when touching files directly in the ncdata folder on the file system. This was not always working. So we actually mounted a the cloud directory via davfs and touched the file there. This works reliably. |
Alright, I see. And thanks for your workarounds.
Will see. Even it's a weird way. ;) |
Ooookay, that would be interesting. From my understanding of the issue, I would be quite amazed, if that really works. Let us know! We are still talking separate groupfolders group1, group1/a and group1/b and not just groupfolder group1 with normal subfolder a and b in it? Because the latter works of course, as non-nested groupfolders sync without an issue. But the latter is also a hassle if you have very specific permissions, as you need to grant all permissions on group1 and then revoke them again etc., as you wrote. For our setup to complicated and risk of error too high... |
The issue might be fixed with the following PR: nextcloud/server#44279 |
Testing will take a while for us, as we cannot test this on our productive system and it requires some initial setup to test. However, I am very sure we had this issue also on subfolders that were created after the top folder. So it might be, that we created first g1/g2 and then g1 but afterwards we created g1/g3 and that folder showed the same buggy non-syncing behaviour. So if the now fixed bug really only triggers due to creation order, I doubt it will fix the issue completely? |
Patch work for me on 27! |
Closing, feel free to reopen if we missed a use case. |
Steps to reproduce
This behaviour affects only nested group folders, not plain sub directories in a group folder.
Expected behaviour
All changes of files pushed to or made on the server (create, modify, delete of a file) inside nested group folders should be pushed to all clients.
Actual behaviour
Changes of files pushed to or made on the server (create, modify, delete of a file) inside nested group folders are pushed to Windows clients only if any change have been made to at least one file inside the root group folder.
Server configuration
Operating system: CentOS Linux release 7.9.2009
Web server: Apache/2.4.35
Database: 10.4.21-MariaDB MariaDB Server
PHP version: PHP 7.4.25
Nextcloud version: 22.2.3
Group folders version: 10.0.0
Updated from an older Nextcloud or fresh install: Update
Where did you install Nextcloud from: tar.gz from official source
Are you using external storage, if yes which one: no (local)
Are you using encryption: no
Are you using an external user-backend, if yes which one: ActiveDirectory
Client configuration
Browser: Firefox 94.0.2, Nextcloud Desktop-Client 3.3.6
Operating system: Windows 10 Pro, 10.0.19043
Logs
Web server error log
I'm sorry, but no errors have been logged to Apache vhost log during test.
Nextcloud log (data/nextcloud.log)
I'm sorry, but no events have been logged to nextcloud.log during test.
Nextcloud loglevel is 3.
The text was updated successfully, but these errors were encountered: