Nextcloud AIO Super Laggy

Nextcloud AIO is very laggy.

The machine has a Intel Xeon E5-2690 v3. I have allocated 4 cores on it. It also has 12GB of RAM on it.

I timed loading the webpage at ~49 seconds. It’s basically unusable.

It only has the default stuff running. Any help would be appreciated.

Edit: it does not use close to all of the resources.

Internet speeds: 1G/s down and 40 Mb/s up

That’s definitely not useable!

Is this during the setup phase of using the AIO interface or later in the running NC instance?

When you load a URL is there any sort of obvious “look the CPU is spiking” on the server-side or similar… Or does the server sit idle? (I’m trying to get a sense of whether it appears to be doing anything at all).

Is this locally (i.e. same LAN) or remote access?

Can you share the relevant nextcloud logs and config?

What is the base OS of your Docker host?

NC is running and you can access it on the internet.
When I load a URL, the CPU goes to 27% usage. Normally it’s around 7%.

This is with a VPN, and Locally.

This is running on Debian.
Would you like my nginx config too? It is running on ESXi, not sure if that changes anything.

It also takes around 15-20 minutes to start.

Here is the mastercontainer log (I restarted the server so its fresh - I will post an updated one after it loads)


    
-------------------------------
 2023-05-02 23:12:57.101112+00
(1 row)

+ '[' -f /dev-dri-group-was-added ']'
++ find /dev -maxdepth 1 -mindepth 1 -name dri
+ '[' -n '' ']'
+ set +x
Installing imagemagick via apk...
Enabling Imagick...
Configuring Redis as session handler...
Setting php max children...
System config value tempdirectory set to string /mnt/ncdata/tmp/
Applying one-click-instance settings...
System config value one-click-instance set to boolean true
System config value one-click-instance.user-limit set to integer 100
System config value one-click-instance.link set to string https://nextcloud.com/all-in-one/
support already enabled
Adjusting log files...
System config value logfile set to string /var/www/html/data/nextcloud.log
Config value logfile for app admin_audit set to /var/www/html/data/audit.log
System config value updatedirectory set to string /nc-updater
Applying network settings...
System config value trusted_domains => 1 set to string cloud.altonfpv.com
System config value overwrite.cli.url set to string https://cloud.altonfpv.com/
System config value htaccess.RewriteBase set to string /
.htaccess has been updated
System config value files_external_allow_create_new_local set to boolean false
System config value trusted_proxies => 0 set to string 127.0.0.1
System config value trusted_proxies => 1 set to string ::1
Config value base_endpoint for app notify_push set to https://cloud.altonfpv.com/push
Config value wopi_url for app richdocuments set to https://cloud.altonfpv.com/
System config value allow_local_remote_servers set to boolean true
No ipv6-address found for cloud.altonfpv.com.
Config value wopi_allowlist for app richdocuments set to 174.162.155.68,127.0.0.1/8,192.168.0.0/16,172.16.0.0/12,10.0.0.0/8,fd00::/8,::1
System config value enabledPreviewProviders => 0 set to string OC\Preview\Imaginary
System config value preview_imaginary_url set to string http://nextcloud-aio-imaginary:9000
[02-May-2023 23:29:36] NOTICE: fpm is running, pid 624
[02-May-2023 23:29:36] NOTICE: ready to handle connections
[2023-05-02 23:31:46.909822 +00:00] ERROR [notify_push] src/main.rs:77: Self test failed: Error while communicating with nextcloud instance
[02-May-2023 23:33:00] NOTICE: Terminating ...
[2023-05-02 23:33:00.857005 +00:00] WARN [notify_push] src/lib.rs:418: Redis server disconnected, reconnecting in 1s
[02-May-2023 23:33:00] NOTICE: exiting, bye-bye!
[2023-05-02 23:33:01.910773 +00:00] ERROR [notify_push] src/lib.rs:416: Failed to setup redis subscription: failed to lookup address information: Name does not resolve
[2023-05-02 23:33:01.910811 +00:00] WARN [notify_push] src/lib.rs:418: Redis server disconnected, reconnecting in 1s
Waiting for database to start...
              now              
-------------------------------
 2023-05-02 23:34:35.576939+00
(1 row)

+ '[' -f /dev-dri-group-was-added ']'
++ find /dev -maxdepth 1 -mindepth 1 -name dri
+ '[' -n '' ']'
+ set +x
Configuring Redis as session handler...
Setting php max children...
System config value tempdirectory set to string /mnt/ncdata/tmp/
Applying one-click-instance settings...
System config value one-click-instance set to boolean true
System config value one-click-instance.user-limit set to integer 100
System config value one-click-instance.link set to string https://nextcloud.com/all-in-one/
support already enabled
Adjusting log files...
System config value logfile set to string /var/www/html/data/nextcloud.log
Config value logfile for app admin_audit set to /var/www/html/data/audit.log
System config value updatedirectory set to string /nc-updater
Applying network settings...
System config value trusted_domains => 1 set to string cloud.altonfpv.com
System config value overwrite.cli.url set to string https://cloud.altonfpv.com/
System config value htaccess.RewriteBase set to string /
.htaccess has been updated
System config value files_external_allow_create_new_local set to boolean false
System config value trusted_proxies => 0 set to string 127.0.0.1
System config value trusted_proxies => 1 set to string ::1
Config value base_endpoint for app notify_push set to https://cloud.altonfpv.com/push
Config value wopi_url for app richdocuments set to https://cloud.altonfpv.com/
System config value allow_local_remote_servers set to boolean true
No ipv6-address found for cloud.altonfpv.com.
Config value wopi_allowlist for app richdocuments set to 174.162.155.68,127.0.0.1/8,192.168.0.0/16,172.16.0.0/12,10.0.0.0/8,fd00::/8,::1
System config value enabledPreviewProviders => 0 set to string OC\Preview\Imaginary
System config value preview_imaginary_url set to string http://nextcloud-aio-imaginary:9000
[02-May-2023 23:50:57] NOTICE: fpm is running, pid 583
[02-May-2023 23:50:57] NOTICE: ready to handle connections
[2023-05-02 23:53:07.068617 +00:00] ERROR [notify_push] src/main.rs:77: Self test failed: Error while communicating with nextcloud instance
[2023-05-03 01:08:50.921157 +00:00] WARN [notify_push] src/lib.rs:418: Redis server disconnected, reconnecting in 1s
[03-May-2023 01:08:50] NOTICE: Terminating ...
[03-May-2023 01:08:50] NOTICE: exiting, bye-bye!
              now              
-------------------------------
 2023-05-03 01:11:41.765187+00
(1 row)

+ '[' -f /dev-dri-group-was-added ']'
++ find /dev -maxdepth 1 -mindepth 1 -name dri
+ '[' -n '' ']'
+ set +x
Configuring Redis as session handler...
Setting php max children...
System config value tempdirectory set to string /mnt/ncdata/tmp/
Applying one-click-instance settings...
System config value one-click-instance set to boolean true
System config value one-click-instance.user-limit set to integer 100
System config value one-click-instance.link set to string https://nextcloud.com/all-in-one/
support already enabled
Adjusting log files...
System config value logfile set to string /var/www/html/data/nextcloud.log
Config value logfile for app admin_audit set to /var/www/html/data/audit.log
System config value updatedirectory set to string /nc-updater
Applying network settings...
System config value trusted_domains => 1 set to string cloud.altonfpv.com
System config value overwrite.cli.url set to string https://cloud.altonfpv.com/
System config value htaccess.RewriteBase set to string /
.htaccess has been updated
System config value files_external_allow_create_new_local set to boolean false

Also, if you would like the URL to test it out, I can post that.

I also run AIO on a ESXi VM, but it runs just fine. So there is definitely either a configuration or network problem.

Could you post your ESXi VM configuration and also a screenshot from htop in the VM?

1 Like

Hi @theawes0megamer can you follow How to debug performance issues with Nextcloud? · nextcloud/all-in-one · Discussion #2475 · GitHub?

1 Like

Hey guys, I moved the machine to Ubuntu, and that seems to have fixed it. At most 3 - 4 seconds loading now. Thanks for the help though! I will go through that to improve the performance further.