-
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]: Directory Symbolic Link _and_ Junction from a Nextcloud share to another Nextcloud share is synced on Windows, with errors #7157
Comments
I recently saw something that also looks to be related to this issue. On a windows laptop, "My Documents" and "My Pictures" are synchronised to the sever to separate folders. Since the installation of 3.14.0, the 'My Documents' sync included the standard hidden junctions: "My Music", "My Pictures" and "My Videos". Some files in both "My Music" and "My Pictures" were sent to the server with also some "Unknown server errors" in the log. When I checked #4770, it describes local junction contents being deleted if they are removed from the sync list so for now I just added the folders to the exclude list. My investigation was prompted by some performance issues where I saw nextcloud taking more CPU then usual and also being unresponsive whilst opening the drop down list of folders in the sync connection. Reverting to 3.13.4 avoids any performance issues. I can collect more detailed logs if they would be useful. |
I just ran in to the very same issue with a fresh Windows 11 24H2 installation and desktop client v3.14.1. #4770 was just recently closed without reference to any fix Update:
It seems to me that symbolic links / junction points in Windows aren't ignored anymore by default. Cleaning this up is turning into a nightmare as I'm usually syncing the very same folders from multiple clients. At the moment I'm stuck. Please help! |
I reverted back to "Version 3.13.4stable-Win64 (build 20240912)" (3.13.4.20240912) on the same machine (and disabled automatic updates - see "Preventing Automatic Updates" at https://docs.nextcloud.com/desktop/3.14/autoupdate.html). It now works again as expected. Junction points are being recognized correctly and not being synchronized twice. |
Confirming I've noticed this in 3.14.x as well - junction mishandling caused massive data loss of family photos for me... |
Seems confirmed this was an issue with the .lnk handling in 3.14.x |
Also confirming I see this issue in 3.14.x. Took me quite a long time to realize it was Nextcloud that was doing it though. It effectively caused the deletion of all of my pictures, videos, and music, but fortunately I had a snapshot backup system in place that I was able to restore from. |
This is outrageous. The Nextcloud client for Windows and thus my entire installation have been unusable for weeks. How do I get out of this? Where can I find previous versions of the Windows client? I assume 3.13.3 is the last version without this bug, correct? |
First, in 3.14.x turn off the option to auto check for updates. Then uninstall and install 3.13.4 from here Don't update until they fix this then. |
It deleted all my photos and videos, what a mess. @Rello This is a fatal bug! Who can do something about it? |
I have already mentioned this |
I've just been hit with something similar. I've got separate syncs for Documents, Pictures and Music, and found that that client kept diligently deleting the contents of the Pictures and Music syncs. It was as if it was trying to replace the contents with the contents of the 'empty' hardlinks found under the Documents sync. This happened shortly after updating Windows 11 to 24H2, using the latest 3.15.0 client. Just in case someone else might find it useful, I used the following to batch restore the deleted files (all ~10k of them). Just glad I noticed it in time before the trash was purged.
|
I can say for sure it's not a 24H2 issue. I experienced it on 2 different machines both on Win 11 23H2 still. Wish Someone from Nextcloud would actually acknowledge this issue though... @claucambra @mgallien @camilasan @dragotin @ogoffart @danimo |
Yes, I saw the error on three different systems, 1x Win 10 22H2 and 2x Win 11. |
I can confirm this was basically my exact use case, and I also observed this behavior. The first time it happened I didn't notice for a long time and so had some files get lost. I fortunately have a backup system I was able to restore from. Each subsequent time I was simply able to restore from the trash can as you described since I was keeping a closer eye on it. This was on 3.14.x too, so both versions are affected. For now, I've mitigated the issue by moving the contents of my Documents folder into another folder. I'm instead synchronizing that, however this is far from an ideal solution for me because save games, powershell profiles, and a bunch of other items by default are placed into the Documents folder. One of the largest uses of Nextcloud for me is to keep this data synchronized across systems so that I don't have to maintain a development environment (or save games) on six different computers. |
Close #7157 Signed-off-by: Matthieu Gallien <[email protected]>
Close #7157 Signed-off-by: Matthieu Gallien <[email protected]>
bugfix build out of master branch |
Just noting I've been using the bugfix build on my own personal installation for a few days now without issue. I reconnected the synchronization to my Documents folder, and I've not seen any improper junction syncing since installing it. Granted, I've only installed it on one system, so perhaps tomorrow I'll try installing it elsewhere to see if it misbehaves. But so far so good! |
Close #7157 Signed-off-by: Matthieu Gallien <[email protected]>
Close #7157 Signed-off-by: Matthieu Gallien <[email protected]>
Close #7157 Signed-off-by: Matthieu Gallien <[email protected]>
I see this issue is now closed and backported - will this be available in 3.15.1 or when should we expect to see versioned released w/ this change? I don't want to jump the gun w/ upgrading! |
yes. this will be 3.15.1, planned for the next days.... |
Bug description
With the latest Nextcloud client on Windows 11, I started seeing upload errors with "unknown" in the client. After inspecting, I traced the errors to a Directory symbolic link I created from a share within my Nextcloud sync folder to another sync folder. I tested with Junctions and saw the same effect.
Steps to reproduce
The same applies to Junctions:
Observe Nextcloud attempting to upload files again
Observe Nextcloud to fail after scanning files with "Unknown Server error"
I have both folders as individual shares:
Other observations:
*.lnk
), it is not synced (only the *.lnk file is synced, as expected)Expected behavior
Directory Junctions are not synced, as is documented.
Which files are affected by this bug
ExpNature1to5.pdf
Operating system
Windows
Which version of the operating system you are running.
Windows 11
Package
Official Windows MSI
Nextcloud Server version
28.0.9
Nextcloud Desktop Client version
4.14.0
Is this bug present after an update or on a fresh install?
Updated from a minor version (ex. 3.4.2 to 3.4.4)
Are you using the Nextcloud Server Encryption module?
Encryption is Disabled
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: