-
Notifications
You must be signed in to change notification settings - Fork 817
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
[3.0.3] Waiting for sync forever - not syncing [E2EE app bug] #2347
Comments
I thought this could be a duplicate of #2254 but the logs don't show that "do not enqueue" pattern. What's odd is that from the logs I'd say it's syncing mostly fine. It complains about a symlink and a file which keeps changing all the time but apart from that proceed. Of course there are a few ignored files but they don't seem to block the sync either. The most likely issue is the "504 Gateway Timeout" which appear several times. Those seem to indicate something server side though, that might indeed make the sync fail in such cases but nothing we can do on the client side then. |
In the meantime i got a synced state, but takes very long to check/sync. I am local here on my homenetwork. |
Yeah I guess that's related to those timeouts I'm seeing. There's apparently something going on with PROPFIND calls, they take forever to complete and sometimes they don't complete at all. |
I have a very similar issue with a Nextcloud server v. 19.0.2 built from the official Docker image and a desktop client v. 3.0.1 running on KDE neon v. 5.19. One thing that I noticed is high CPU load in the server container that remains high even after I terminated the desktop client. When I rebooted the whole server, the CPU was mostly idle (I have ~ 20 Docker containers with various services on this machine, but only few human users). However, as soon as I started the desktop client again, CPU load on the server was back up. The server logs (Nextcloud, Postgres, Redis, OpenLDAP) did not contain anything that seemed remotely useful. This is the current output of a It strikes me that I can trigger this behavior on the server by starting the desktop client. Hopefully this information helps to identify the issue. |
I watched When I Then nothing happens for a few seconds. Then a So as already noted by @er-vin, evidently something is foul about those |
I experienced the same problem as @bovender after updating my Windows client from 2.6.5 to 3.0.1. Everytime I launched the client, synchronization got stuck, and the server CPU usage increased abnormally, remaining high after the client was closed. Our Nextcloud server configuration is different, though: it runs on Apache with PHP-FPM. So in my case the high CPU usage was not caused by 'apache2', but by a bunch of 'php-fpm' and 'smbclient' processes (we have an external SMB storage, although it is excluded from client sync). Restarting the 'php7.4-fpm' service got the CPU load back to normal. Reverting to 2.6.5 made everything work as expected again, so I will keep this version until the problem gets fixed. |
I can confirm that reverting the desktop client to a 2.x version fixes the problem. The client synced immediately, and CPU usage on the server dropped below 1% and does not spike again. On my KDE neon system, I had to remove
(Edit: In order to find out which versions are available on a given Debian-derived system, issue |
I am experiencing the same issue. Installed E2EE today and the Nextcloud Windows client became incredibly slow, coupled with high CPU usage on the server when the client is "Waiting...". The desktop client also cannot encrypt folders (empty or not) as it always says to wait for the folder to sync before encrypting it. It manages to download encrypted folders from other clients just fine though. The client was working fine before enabling E2EE. I am not having any issues with the iOS client, so I doubt this is a server-side problem. The server logs do not show anything. EDIT: I'm on 3.0.1 and 19.0.3 |
I had the same issues after client version 2.6.3. Sync was really slow, stuck, broke, ... It was just unusable for me. A change in 2.6.4 made me curious: #1823 See changelog. And boom - setting the environment variable |
Hm, unfortunately that did not work for me... |
What we are trying with so far good results is to disable the e2ee
module. It seems it triggers a somewhat expensive file scan.
But it is too soon for marking this as the real cause of the bug.
28 de set. de 2020 21:56:18 Daniel Kraus <[email protected]>:
Hm, unfortunately that did not work for me...
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on
GitHub[#2347 (comment)],
or
unsubscribe[https://github.com/notifications/unsubscribe-auth/AAHYYWHUNCTSYNA6ILGDWSLSIDS55ANCNFSM4QQOIHXQ].
[https://github.com/notifications/beacon/AAHYYWD5C6GHF3S3S5GXYWTSIDS55A5CNFSM4QQOIHX2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOFG6PCDY.gif]
… |
I believe it is related to E2EE as it pegs the CPU to 100% with database related work (and it didn't do so before I enabled it). However, I don't think it's the server module itself as those scans do not start with the iOS app. They are only started with the desktop client. EDIT: This issue still exists on version 3.0.2 |
I think I had the same issue, at least the same behavior, disabling e2e encryption app on the server and restating the client makes it sync fast again. |
I'm connected to a Nextcloud Server 19 instance and to a 18 one. For me the problems only seem to appear on the newer one. Old one seems to be running fine... |
@tacruc I also disabled the E2EE app, upgraded the desktop client to 3.0.2, and now the server CPU is idling... Thanks! edit: typo |
I can confirm this issue is related to E2EE but unfortunately there´s absolutely no progress on that side for weeks. Promoting it as "production ready" and leaving users with stressed CPUs isn´t the "usual" understanding of production ready. Anyway, this issue still persists with latest desktop client v3.0.2 and current Nextcloud v19.0.3.1. |
@kruthoff: Can you explain where you set this env variable? |
I don't think the issue is on the E2EE module itself or the issue would be replicated with other clients. iOS doesn't have this issue. It's limited to the desktop client when E2EE is enabled. |
I just set this env variable when I start the client. This fixed my unreliable sync issues. It is not related to the slow E2E issue. |
I understand why you would make such an assumption. And at the same time it could be a wrong conclusion to draw. The thing is the mobile clients use much less of the DAV API than the desktop client (because in one case you're in a "closed world" as seen through the app while in the other case you're in an "open world" seen through the file manager outside of the application). In particular I still suspect the PROPFIND call, we need to make one with a deeper depth than the mobile clients and it seems that for some reason it's generating a large server side CPU consumption during a SQL call. |
I still have no idea what the hell is going on when syncing. PHP-FPM and MYSQLD are freaking out. I see plenty of SELECT statements on nc_filecache with left joining nc_filecache_extended looking for a certain path_hash in a specific storage. I have no idea if that's normal during sync or really E2EE related. Guys how can we make progress here. Does nobody care cause nobody uses E2EE? |
See here: #2552 |
Well that one was closed as duplicate of this one here. Is it a endless circle thing game or...? |
Just to be clear #2552 specifically indentified a PROPFIND call with infinite depth as the issues of this bug:
|
I was quite exited about 3.0.3 as I hoped it would solve this. Unfortunately it didn't. |
So we got two type of people regarding the logs: the ones which edit them to hide too sensitive information. And the ones who provide them as is via a secure file drop to us. Actually we got a third type of people who post as is right away, obviously I advise against it. |
How do I post logs with secure drop? My logs are littered with sensitive data so it would be impossile to remove it all. I'm getting this issue on the newest server 20.2 and the newest client 3.0.3.
After exactly one minute it stops and Nextcloud just says waiting.
Something weird is that my server timeout is set to 300 s. I even tested it by adding sleep(1000000) to the top of index.php and I timed it to 300 seconds before I got a timeout. I can provide full logs, if you tell me how I can do it without sharing them publicly. |
I have now provided server and client logs using the file drop. |
So let's wait, hope and pray... 😃 |
Bug still existst. Have to disable e2eeshit |
Right. Can someone reopen this issue? It's not fixed/closed. |
Got superseded by #2593 at that point. As for logs no need to anymore, we got everything we need and have a pretty good understanding of what happens now. Fix will take time to deliver though, I have a branch getting there but won't land for 3.2.0 only. |
Just as an update: Still a problem on 3.1.0 and NC 20.0.4. |
Of course it is - and will be for every new version constellation, cause nothing happened so far. Unfortunately I can't support because of lacking dev skills :-( |
Also running into this issue with Linux and MacOS clients. Took me 2 hours to figure out that the e2e app resulted in this issue after an upgrade to nc20 from nc19. e2e seems to be unusable in this constellation. |
This one is still closed, see #2593 Damn it's so frustrating. |
Same issue here. Nextcloud 20.0.4 Disabling the e2e app and restarting the client application worked. The client stopped waiting and started the syncronization. |
This issue is still present. Disabling E2E fixes the problem. Nextcloud 20.0.6, Linux and macOS Clients on 3.1.2. |
This one is still closed, see #2593. Only few weeks left until fix will make it to the stable desktop client... |
Still an issue on Nextcloud 21.0.3 and linux client 3.1.1. I do have E2EE enabled. |
@Dzeri96 it was fixed in 3.2.0 |
How to use GitHub
Expected behaviour
Sync shortly after start
Actual behaviour
Tell us what happens instead
Sync folders are waitiung for starting sync. nothing happensSteps to reproduce
Client configuration
Client version: 3.0.1
Operating system: Linux Mint 20 Cinnamon
OS language: German
Qt version used by client package (Linux only, see also Settings dialog):
Client package (From Nextcloud or distro) (Linux only):
Installation path of client:
Server configuration
Nextcloud version: 19
Storage backend (external storage):
Logs
Please use Gist (https://gist.github.com/) or a similar code paster for longer
logs.
Output of
nextcloud --logdebug --logwindow
ornextcloud --logdebug --logfile log.txt
(On Windows using
cmd.exe
, you might need to firstcd
into the Nextcloud directory)(See also https://docs.nextcloud.com/desktop/2.3/troubleshooting.html#log-files)
Web server error log:
Server logfile: nextcloud log (data/nextcloud.log):
The text was updated successfully, but these errors were encountered: