-
Notifications
You must be signed in to change notification settings - Fork 813
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
Sync Pending - Windows 10 #4226
Comments
While possibly related to #4201, it would appear to be a slightly different manifestation. I have the same issue: Files are synchronised properly (as far as I can tell), but all files are shown as sync pending. Windows 11, Nextcloud Desktop-Client Version 3.4.2 (Windows). |
Issue persists with client version 3.4.3 |
This bug report did not receive an update in the last 4 weeks. Please take a look again and update the issue with new details, otherwise the issue will be automatically closed in 2 weeks. Thank you! |
I managed to fix it by removing Nextcloud and all Nextcloud files located in AppData as well as the sync folder. |
Hi devs! Is there anything we can do to help figuring out what is happening here ? I have this problem on new client installations so I am not sure it depends on old files in appdata{local,roaming}. I am running 3.4.4 on Win10 21H2 against the official docker image for 23.0.3. By playing with "Always keep on this device" and then "Free up space", some files would go back to the normal "Available when online" (cloud status icon) and some others would go back to "Sync pending". For those, it would be interesting to know if space is actually freed or not. Happy to help with debug here and "keep up with the great work!" |
A quick update to let everyone know that 3.5RC3 doesn't help with this problem. |
Having same issue with Windows 11. Desktop client 3.4.4 and Nextcloud 23.0.3 on docker. |
Same issue here, but only with files which size is < 5kb and VFS enabled. |
Now that I read this, I think you are right and this happens on small files. Is there a desktop debug procedure one can follow in order to better understand what is happening ? |
Same issue here, and it definitely only happens with small files. In my case there are about 1,600 files under 5KB that stay in the "waiting to sync" state. These are files that are on the local hard drive, and at some point I told the client to "free up space". The client freed up all of the bigger files, but left these on the hard drive stuck in this state. The client periodically tries to sync the 1,600 files again, which is slightly annoying, but the bigger problem with this is that every time I make real changes to other files, or create new files (triggering a sync), the client tries to sync the 1,600 small files first, then it finally gets to the one or two files that actually needed to be sync'd. I've found that if I right click on these small files and select "Always keep on this device", the status changes to solid green checkmark, then I can right-click them again and clear the checkmark next to "Always keep on this device", and the status changes to green/white checkmark (as it should), and then the sync client will stop worrying about that particular file. I just found out that I can open the Nextcloud folder and type size:tiny in the search box and it'll find all the files under 15K, so I can try the "Always keep..." workaround on all of them... |
Hi, Now that 3.5.0 is out it would be great to tackle this issue. In order to validate and confirm the link with file size, I have done the following. Wrote a simple Powershell script that writes files with random content. File size is incremented from 0 to 8k in steps of 8 bytes and the file name is the actual content size written in HEX $outDir="$PSScriptRoot\nc4226";
if (!(Test-Path -path $outDir)) {new-item -path $outDir -itemtype directory}
for ($i=0; $i -le 8192; $i=$i+8 ) {
$fSize = $i;
$fName = $i.ToString("X4");
$fContent = [Byte[]]::new($fSize);
$rng = [System.Random]::new();
$rng.NextBytes($fContent);
[System.IO.File]::WriteAllBytes("$outDir\$fName", $fContent);
} You can download a zip archive of the output here: https://cloud-dev.lesz.ch/s/BYT4ktYnqKAkXTL When I drop this folder within the NC folder (with Virtual Filesystem enabled) and wait for the initial sync, the folder appears as locally available, as expected: All files within the folder are also locally available, as expected: Now if I "Free up space" on the folder, I can see that the empty file gets the correct status but all larger files get the wrong "sync in progress" status: I can easily sort the folder by file size and we can see that all files below 4k get the wrong status and all files >4k are showing the correct status: Also, any sync activity from this point will trigger a resync of all the file <4k in size (except the empty file). |
Any news regarding this? New Win client (3.5.1) still showing this bug. |
I just want to confirm, I have the exact same problem under Windows 10, running newest Win Client 3.5.1. In my case it is related to all my files <=4 kB and it is very annoying, especially when there is a git or subversion folder included, I had more than 10k files continuously being synced in a loop generating quite some load on the system. My workaround was now to fully delete the connection, set it up again and do not mark anything with "Always keep on this device". Then I can at least work without always pausing the sync. Looking very much for a solution. |
Dear @camilasan @mgallien @allexzander @matthieugallien According to the repo history you seem to be the devs making changes to the Windows "vfs" and "cfapi" code and therefore you might want to have a look at this bug which (I think) is affecting the entire userbase (Windows+VFS). I have created a simple reproducer in the issue thread. Also, I tried to find places where the code would depend on a 4k buffer/size limit and I could only find those two:
desktop/src/gui/folderwatcher_win.cpp Line 61 in 8f7646d
Could one of them be part of the issue ? Cheers! |
I have just updated my client to 3.5.2 and the problem is still there. I don't know yet if it will help, but I am attaching 2 debug log files. These where generated by doing a "Free up local space", first on a <4k file (NOT.txt) and then a >4k (OK.txt) file I couldn't spot an obvious error/difference but expert eyes are needed here. |
Interesting note that may or may no be related: even the excluded files get a "pending sync" status icon. Disabling VFS give the correct behaviour. |
I'm just giving a gentle bump to this issue. Could someone add it to the "clients team" board here: https://github.com/orgs/nextcloud/projects/48 This might give it some additional visibility. |
to be honest, I am working on this but because of poor documentation from Microsoft I am struggling to find the exact wrong API call within the desktop client code |
Thx @mgallien, knowing that someone knowledgeable is working on this has made my day! I think we all appreciate the hard work here. Cheers! |
Hello, client : 3.5.2 client : windows 10.0.19044 The issue you are facing : I have to keep some files on my desktop because they can’t be “Free up” Is this the first time you’ve seen this error? (Y/N): Y Steps to replicate it :
I also notice that the desktop client stops suddenly and repeatedly |
Hi. I can confirm that is still an issue in 3.7.1 also for me. I got another weird behavior but I don't know whether this is releated. Once I open a MS office file the sync status also gets pending and never returns to green. I only open the file but not changing anything. Happens also with files larger than 4k. If we can help in anyway to test further this issue please let me know. Regards Rob |
I can confirm that this is still an issue in 3.7.1. |
Still an issue in 3.7.3 |
I'm also dealing with this bug, mostly with all sorts of files below 1Mb. |
the currently recommended workaround is really to use classic sync and selectively selecting the folders needed |
Sadly, as stated above, I'm facing the same issue when using the classic sync method. (see screenshot) Or is there even another way of syncing? Glad to hear, that you guys are on it! |
Hi @mgallien, it is refreshing to read that this bug will get some attention from "the people who know". |
Hi @Jaytie2k7, I'm not sure i understand what you mean. This bug is really about hydration/dehydration of small files, with dehydratin of files <4k bringing them into a constant "to be sync" status. I think your screenshot highlights that some file (whatever their size) are missign the overlay icon, which I would say is a completely different issue. |
Hi. I face this issue also with larger files. Especially msoffice files which stays in sync pending once files is opened (no change). Maybe 2 different issue though and we should separate them – hard for me to judge. Regards rob |
The screenshot shows a testfolder after switching to the classic sync method. NC client says it's in sync while it isn't. Edit: I have to appologize, my initial problem was more related to 5094 But I still have the bug, which is described here, where I cannot free up space / file is in sync pedning. |
Just a quick note: it looks like the latest nightly (which includes #5474) solves the problem! |
@pzwahlen thanks for the notice |
Sorry to bother you and @mgallien, but when can we expect those being implemented on the beta channel :D? I just downloaded the newest version (3.7.4) and I am on Windows-10.0.19045 and sadly this update didn't fix the error for me! It still shows "All synced" with just about every file having the "pending sync" symbol next to it! Force sync etc. doesn't help In a week? A month? All is fine by me, I just wanna know at what point, if the error still persists even after an updated client, I should start worrying again :D |
@ErikUden can you take one of those small file and do the following:
In my case, the small file ends up with the correct "cloud" icon/status and not the "sync pending" status anymore. You may have to do this for all the files problematic files. |
I can confirm this has fixed the issue for me in 3.7.4 |
This is still an issue for me. The above steps mentioned by @pzwahlen works for files, but the folders still say "sync pending". Removing and re-adding them doesn't work either. Edit: I'm running 3.8.0 on Windows 11 |
The problem seems to be still present in 3.8.0. |
Issue is present still in latest version. |
Issues with the database cannot be fixed via a client update. If a previous client (or precious server version) caused server-side issues, then a client update won't fix it. The new client ensures the same issue won't happen again. Those who already have the issue will need to fix it themselves and then be glad it won't occur again. |
Unless I'm mistaken I haven't seen a solution to fix the problem. |
How to fix it? |
the issue is that the state of some virtual files may be incorrect |
I did once again try to fix it but some of the folders still have the sync pending icon. I even disabled the virtual files, let everything sync and enabled it again. |
I've managed to fix most of the files using the "fix" discussed above, but it does not work for folders. I still have some folder with forever-sync issue. |
@anonbergine this may be due to ignored files |
those ignored files may cause the client to report the folder as being only partially synced (hence the pending sync icon in the files explorer) |
This Sync Pending status is very irritating. You can see folder is uploaded to server but it is still showing me it is pending in status.
Also please clean those garbage files with pending status. They keep getting focus. PLease remove .sync_b39e158b5df3.db and other log files in director or do not show pending status.
The text was updated successfully, but these errors were encountered: