Upstream bug: https://github.com/nextcloud/desktop/issues/4106
Caused by a broken new feature bulk upload.
www-apps/nextcloud-23.0.0 up to 23.0.2
net-misc/nextcloud-client-3.4.1 up to 3.5.0-rc1
Currently, Gentoo stable is at 23.0.0 server and 3.4.3 client. Stable is broken. Gentoo unstable is at 23.0.3 server and 3.4.3 client. Unstable works as long as the server is running Gentoo latest.
1. Upgrade to www-apps/nextcloud-23.0.3
Upstream 23.0.3 disables this feature from server side. https://github.com/nextcloud/server/pull/31171 This worked on my machine. We currently have broken 23.0.0 as our stable version. We should either stabilize 23.0.3 or remove stable tag for 23.0.0. Maybe a big fat warning for 23.0.0 to 23.0.2 or even mask these versions.
2. Downgrade to net-misc/nextcloud-client-3.3.6
That means we need to mask 3.4.2 and 3.4.3 to protect Gentoo users. Or at least don't mark 3.4.3 as stable. And we miss out on any 3.4 features until this is fixed.
3. Backport fix from net-misc/nextcloud-client-3.5rc2
This is what upstream already did for 3.4.3. https://github.com/nextcloud/desktop/pull/4267 But my 3.4.3 is still frozen. Others also reported 3.5.0 still broken. https://github.com/nextcloud/desktop/issues/4106#issuecomment-1075061932 I don't believe this fix actually solves the problem.
4. Patch nextcloud-client-3.4.1+ to disable bulk upload
This is what Arch Linux currently do. https://bugs.archlinux.org/task/73625 https://github.com/nextcloud/desktop/issues/4106#issuecomment-1029764959 But we'll need to babysit this patch and make sure we remove this hack when they finally fixed the bug for real.
5. Patch the server to disable bulk upload
https://github.com/nextcloud/desktop/issues/4106#issuecomment-1030608442 This is the same as the official "fix" on 23.0.3. https://github.com/nextcloud/server/pull/31171/commits/58cec19291ac7f1b10b22286c27e3ab052e9514d By backporting this, we can keep stable at 23.0.0 if we don't want to stabilize another version.
Steps to Reproduce:
1. Start NextCloud client
NextCloud client is frozen with 100% CPU usage during sync as soon as it started. Doesn't even respond to clicking on pause sync. Restarting NextCloud client or the whole PC gets it back to the same stuck state. Completely unusable.
Sync works without freezing.
There's also net-misc/nextcloud-client-3.4.4 release available...
I've added nextcloud-client 3.4.4 to ::gentoo. However, I am not sure if it fixes the issue or if users need to use Nextcloud 23.0.3 (see also bug #837056).