Support intro
Sorry to hear you’re facing problems
help.nextcloud.com is for home/non-enterprise users. If you’re running a business, paid support can be accessed via portal.nextcloud.com where we can ensure your business keeps running smoothly.
In order to help you as quickly as possible, before clicking Create Topic please provide as much of the below as you can. Feel free to use a pastebin service for logs, otherwise either indent short log examples with four spaces:
example
Or for longer, use three backticks above and below the code snippet:
longer
example
here
Some or all of the below information will be requested if it isn’t supplied; for fastest response please provide as much as you can
Nextcloud version: 29.0.3
Operating system and version: NixOS 24.05
, NixOS container (also reproduced on host)
Webserver version: Caddy 2.7.6
(also reproduced with Nginx 1.26.1
)
PHP version: PHP 8.3.8
The issue you are facing: Very poor performance. Without any other clients attempting to connect, loading a page in the web client with an admin user who has no files takes 40+ seconds, usually even longer on subsequent page loads.
There is no apparent bottleneck. CPU, memory, and disk usage remain near-zero.
Is this the first time you’ve seen this error? No, this has eventually happened from a fresh db multiple times, and both in a container and on the host.
Steps to replicate it: On NixOS, run occ upgrade
? I’m not sure if this is what actually caused it. I’m asking here for any feedback/what other logs I should collect first before I wipe the db and wait for the bug to trigger for a fourth time.
I’ve attempted maintenance:repair
, as well as all db:add-missing-*
.
Journals/logs and config can all be found in this gist. I’ve cut everything to just one instance of systemctl start container@nextcloud
> wait for startup > https://nextcloud.REDACTED.ts.net/apps/files/files?XDEBUG_TRIGGER=Debugger > wait for page to load (~40s) > systemctl stop container@nextcloud
.
The XDEBUG_TRIGGER did not seem to work as I expected, perhaps someone can tell me what I did wrong there.
I didn’t run it long enough for it to happen in the interest of keeping the logs consice, but there will also eventually build up a ton of php and postgres UPDATE waiting
processes, all relating to the oc_authtoken
table. My oc_authtoken
table has only 8 rows.
You can see in the postgresql journal a few select ... from pg_stat_activity ...;
calls. This was me in psql checking for blocking queries building up. It does not happen immediately, so this could be a side effect of whatever is actually going on. At one point there were ~40 queries blocked, and after shutting down phpfpm, it took 15-20 minutes for all of them to clear.
If there is other data which I should collect, please let me know. I hope that it is something very simple that I misconfigured.
Thank you!