Nextcloud instance taking forever to load

Support intro

Sorry to hear you’re facing problems :slightly_frowning_face:

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 :heart:

Nextcloud version (eg, 20.0.5): 23
Operating system and version (eg, Ubuntu 20.04): Ubuntu 22.04
Apache or nginx version (eg, Apache 2.4.25): Apache 2.4.52
PHP version (eg, 7.4): 8.1.2-1ubuntu2.9

The issue you are facing:

Everything on my nextcloud web instance take forever to load and I have an infite looping circle in my browser, tho the desktop app is fine.

Is this the first time you’ve seen this error? (Y/N): Y

Steps to replicate it:

  1. Try to load up the web instance of nextcloud

The output of your Nextcloud log in Admin > Logging:

I can't even get to it with the slowness

The output of your config.php file in /path/to/nextcloud (make sure you remove any identifiable information!):
config.php

<?php
$CONFIG = array (
  'instanceid' => 'ocg7qsw756u4',
  'passwordsalt' => 'sk2emWM71HijAMt/WEVkt6NFizZD7S',
  'secret' => 'EzU8ZHNL3zZiLfsBzV8ij1EHBskwj8WsQhFJlugbQtKS79gJ',
  'trusted_domains' =>
  array (
    0 => 'mydomain',
  ),
  'datadirectory' => '/var/www/html/nextcloud/data',
  'dbtype' => 'mysql',
  'version' => '24.0.6.1',
  'overwrite.cli.url' => 'mydomain',
  'dbname' => 'nextcloud',
  'dbhost' => 'localhost',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'mysql.utf8mb4' => true,
  'dbuser' => 'nextcloud',
  'dbpassword' => 'nextcloud',
  'installed' => true,
  'mail_smtpmode' => 'smtp',
  'mail_sendmailmode' => 'smtp',
  'mail_from_address' => 'taken',
  'mail_domain' => 'mydomain',
  'mail_smtpauthtype' => 'LOGIN',
  'mail_smtpauth' => 1,
  'mail_smtphost' => 'mydomain',
  'mail_smtpport' => '587',
  'mail_smtpsecure' => 'tls',
  'mail_smtpname' => 'taken',
  'mail_smtppassword' => 'mypassword',
  'maintenance' => false,
  'updater.secret' => '$2y$10$ZrIj96eMpBJ5oBRqmksyXeKEslYMrRKfTEka/27BTkDP6Yxtb0E76',
  'theme' => '',
  'loglevel' => 2,
);

The output of your Apache/nginx/system log in /var/log/____:
nextcloud.log

ip.ip.ip.ip - - [09/Dec/2022:14:33:13 +0000] "GET /ocs/v2.php/apps/notifications/api/v2/notifications HTTP/1.1" 504 834 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36"
ip.ip.ip.ip - - [09/Dec/2022:14:34:42 +0000] "GET /apps/richdocumentscode/proxy.php?req=/hosting/capabilities HTTP/1.1" 200 5531 "-" "Nextcloud Server Crawler"
ip.ip.ip.ip - - [09/Dec/2022:14:34:44 +0000] "GET /apps/richdocumentscode/proxy.php?req=/hosting/capabilities HTTP/1.1" 200 5531 "-" "Nextcloud Server Crawler"
ip.ip.ip.ip - - [09/Dec/2022:14:34:44 +0000] "GET /apps/richdocumentscode/proxy.php?req=/hosting/capabilities HTTP/1.1" 200 5531 "-" "Nextcloud Server Crawler"
ip.ip.ip.ip - - [09/Dec/2022:14:35:27 +0000] "GET /apps/richdocumentscode/proxy.php?req=/hosting/capabilities HTTP/1.1" 200 5531 "-" "Nextcloud Server Crawler"
ip.ip.ip.ip - - [09/Dec/2022:14:35:29 +0000] "GET /apps/richdocumentscode/proxy.php?req=/hosting/capabilities HTTP/1.1" 200 5531 "-" "Nextcloud Server Crawler"
ip.ip.ip.ip - - [09/Dec/2022:14:35:29 +0000] "GET /apps/richdocumentscode/proxy.php?req=/hosting/capabilities HTTP/1.1" 200 5531 "-" "Nextcloud Server Crawler"
ip.ip.ip.ip - - [09/Dec/2022:14:33:59 +0000] "GET /ocs/v2.php/apps/spreed/api/v4/room HTTP/1.1" 504 834 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36"
ip.ip.ip.ip - - [09/Dec/2022:14:36:12 +0000] "GET /apps/richdocumentscode/proxy.php?req=/hosting/capabilities HTTP/1.1" 200 5531 "-" "Nextcloud Server Crawler"
ip.ip.ip.ip - - [09/Dec/2022:14:36:14 +0000] "GET /apps/richdocumentscode/proxy.php?req=/hosting/capabilities HTTP/1.1" 200 5531 "-" "Nextcloud Server Crawler"
ip.ip.ip.ip - - [09/Dec/2022:14:36:14 +0000] "GET /apps/richdocumentscode/proxy.php?req=/hosting/capabilities HTTP/1.1" 200 5531 "-" "Nextcloud Server Crawler"
ip.ip.ip.ip - - [09/Dec/2022:14:36:29 +0000] "GET /status.php HTTP/1.1" 200 6029 "-" "Mozilla/5.0 (Windows) mirall/3.6.4stable-Win64 (build 20221208) (Nextcloud, windows-10.0.22621 ClientArchitecture: x86_64 OsArchitecture: x86_64)"
ip.ip.ip.ip - - [09/Dec/2022:14:34:38 +0000] "GET /ocs/v2.php/apps/notifications/api/v2/notifications HTTP/1.1" 504 834 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36"
ip.ip.ip.ip - - [09/Dec/2022:14:34:38 +0000] "GET /favicon.ico HTTP/1.1" 504 5775 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36"
ip.ip.ip.ip - - [09/Dec/2022:14:36:57 +0000] "GET /apps/richdocumentscode/proxy.php?req=/hosting/capabilities HTTP/1.1" 200 5531 "-" "Nextcloud Server Crawler"
ip.ip.ip.ip - - [09/Dec/2022:14:36:59 +0000] "GET /apps/richdocumentscode/proxy.php?req=/hosting/capabilities HTTP/1.1" 200 5531 "-" "Nextcloud Server Crawler"
ip.ip.ip.ip - - [09/Dec/2022:14:37:00 +0000] "GET /apps/richdocumentscode/proxy.php?req=/hosting/capabilities HTTP/1.1" 200 5531 "-" "Nextcloud Server Crawler"
ip.ip.ip.ip - - [09/Dec/2022:14:37:42 +0000] "GET /apps/richdocumentscode/proxy.php?req=/hosting/capabilities HTTP/1.1" 200 5531 "-" "Nextcloud Server Crawler"
ip.ip.ip.ip - - [09/Dec/2022:14:37:45 +0000] "GET /apps/richdocumentscode/proxy.php?req=/hosting/capabilities HTTP/1.1" 200 5531 "-" "Nextcloud Server Crawler"
ip.ip.ip.ip - - [09/Dec/2022:14:38:27 +0000] "GET /apps/richdocumentscode/proxy.php?req=/hosting/capabilities HTTP/1.1" 200 5531 "-" "Nextcloud Server Crawler"
ip.ip.ip.ip - - [09/Dec/2022:14:38:30 +0000] "GET /apps/richdocumentscode/proxy.php?req=/hosting/capabilities HTTP/1.1" 200 5531 "-" "Nextcloud Server Crawler"
ip.ip.ip.ip - - [09/Dec/2022:14:39:12 +0000] "GET /apps/richdocumentscode/proxy.php?req=/hosting/capabilities HTTP/1.1" 200 5531 "-" "Nextcloud Server Crawler"
ip.ip.ip.ip - - [09/Dec/2022:14:39:15 +0000] "GET /apps/richdocumentscode/proxy.php?req=/hosting/capabilities HTTP/1.1" 200 5531 "-" "Nextcloud Server Crawler"
ip.ip.ip.ip - - [09/Dec/2022:14:39:57 +0000] "GET /apps/richdocumentscode/proxy.php?req=/hosting/capabilities HTTP/1.1" 200 5531 "-" "Nextcloud Server Crawler"
ip.ip.ip.ip - - [09/Dec/2022:14:40:00 +0000] "GET /apps/richdocumentscode/proxy.php?req=/hosting/capabilities HTTP/1.1" 200 5531 "-" "Nextcloud Server Crawler"
ip.ip.ip.ip - - [09/Dec/2022:14:40:42 +0000] "GET /apps/richdocumentscode/proxy.php?req=/hosting/capabilities HTTP/1.1" 200 5531 "-" "Nextcloud Server Crawler"
ip.ip.ip.ip - - [09/Dec/2022:14:40:45 +0000] "GET /apps/richdocumentscode/proxy.php?req=/hosting/capabilities HTTP/1.1" 200 5531 "-" "Nextcloud Server Crawler"
ip.ip.ip.ip - - [09/Dec/2022:14:36:05 +0000] "GET / HTTP/1.1" 302 1334 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36"
ip.ip.ip.ip - - [09/Dec/2022:14:40:45 +0000] "GET /apps/richdocumentscode/proxy.php?req=/hosting/capabilities HTTP/1.1" 200 5531 "-" "Nextcloud Server Crawler"
ip.ip.ip.ip - - [09/Dec/2022:14:36:46 +0000] "GET / HTTP/1.1" 302 1334 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36"
ip.ip.ip.ip - - [09/Dec/2022:14:40:46 +0000] "GET /apps/richdocumentscode/proxy.php?req=/hosting/capabilities HTTP/1.1" 200 5531 "-" "Nextcloud Server Crawler"
ip.ip.ip.ip - - [09/Dec/2022:14:38:01 +0000] "GET / HTTP/1.1" 302 1334 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36"
ip.ip.ip.ip - - [09/Dec/2022:14:40:46 +0000] "GET /apps/richdocumentscode/proxy.php?req=/hosting/capabilities HTTP/1.1" 200 5531 "-" "Nextcloud Server Crawler"
ip.ip.ip.ip - - [09/Dec/2022:14:40:46 +0000] "GET /index.php/apps/dashboard/ HTTP/1.1" 200 14503 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36"
ip.ip.ip.ip - - [09/Dec/2022:14:40:47 +0000] "GET /apps/richdocumentscode/proxy.php?req=/hosting/capabilities HTTP/1.1" 200 5531 "-" "Nextcloud Server Crawler"
ip.ip.ip.ip - - [09/Dec/2022:14:40:47 +0000] "GET /ocs/v2.php/search/providers?from=%2Fapps%2Fdashboard%2F HTTP/1.1" 200 1174 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36"
ip.ip.ip.ip - - [09/Dec/2022:14:40:50 +0000] "GET /apps/richdocumentscode/proxy.php?req=/hosting/capabilities HTTP/1.1" 200 5531 "-" "Nextcloud Server Crawler"
ip.ip.ip.ip - - [09/Dec/2022:14:40:50 +0000] "GET /index.php/apps/recommendations/api/recommendations/always HTTP/1.1" 200 1064 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36"
ip.ip.ip.ip - - [09/Dec/2022:14:40:51 +0000] "GET /apps/files/img/app.svg?v=1aa9e8d4 HTTP/1.1" 200 1149 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36"
ip.ip.ip.ip - - [09/Dec/2022:14:40:51 +0000] "GET /apps/photos/img/app.svg?v=1aa9e8d4 HTTP/1.1" 200 5976 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36"
ip.ip.ip.ip - - [09/Dec/2022:14:40:51 +0000] "GET /apps/activity/img/activity.svg?v=1aa9e8d4 HTTP/1.1" 200 5699 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36"
ip.ip.ip.ip - - [09/Dec/2022:14:40:51 +0000] "GET /apps/richdocumentscode/proxy.php?req=/hosting/capabilities HTTP/1.1" 200 5531 "-" "Nextcloud Server Crawler"
ip.ip.ip.ip - - [09/Dec/2022:14:40:51 +0000] "PUT /index.php/apps/user_status/heartbeat HTTP/1.1" 200 986 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36"
ip.ip.ip.ip - - [09/Dec/2022:14:40:51 +0000] "GET /apps/richdocumentscode/proxy.php?req=/hosting/capabilities HTTP/1.1" 200 5531 "-" "Nextcloud Server Crawler"
ip.ip.ip.ip - - [09/Dec/2022:14:40:51 +0000] "GET /ocs/v2.php/apps/notifications/api/v2/notifications HTTP/1.1" 200 1591 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36"
ip.ip.ip.ip - - [09/Dec/2022:14:40:51 +0000] "GET /ocs/v2.php/apps/spreed/api/v4/room HTTP/1.1" 200 1532 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36"
ip.ip.ip.ip - - [09/Dec/2022:14:40:51 +0000] "GET /apps/richdocumentscode/proxy.php?req=/hosting/capabilities HTTP/1.1" 200 5531 "-" "Nextcloud Server Crawler"

nextcloud.error

[Fri Dec 09 14:38:14.013519 2022] [proxy_fcgi:error] [pid 2258] (70007)The timeout specified has expired: [client ip.ip.ip.ip:51987] AH01075: Error dispatching request to : (polling)
[Fri Dec 09 14:38:59.108791 2022] [proxy_fcgi:error] [pid 2395] (70007)The timeout specified has expired: [client ip.ip.ip.ip:51478] AH01075: Error dispatching request to : (polling)
[Fri Dec 09 14:39:38.262474 2022] [proxy_fcgi:error] [pid 2583] (70007)The timeout specified has expired: [client ip.ip.ip.ip:51511] AH01075: Error dispatching request to : (polling)
[Fri Dec 09 14:39:38.507007 2022] [proxy_fcgi:error] [pid 2566] (70007)The timeout specified has expired: [client ip.ip.ip.ip:51542] AH01075: Error dispatching request to : (polling)
[Fri Dec 09 14:46:36.773908 2022] [proxy_fcgi:error] [pid 3064] (70007)The timeout specified has expired: [client ip.ip.ip.ip:51571] AH01075: Error dispatching request to : (polling)
[Fri Dec 09 14:46:39.633995 2022] [proxy_fcgi:error] [pid 2575] (70007)The timeout specified has expired: [client ip.ip.ip.ip:51580] AH01075: Error dispatching request to : (polling)
[Fri Dec 09 14:46:40.965806 2022] [proxy_fcgi:error] [pid 2572] (70007)The timeout specified has expired: [client ip.ip.ip.ip:51581] AH01075: Error dispatching request to : (polling)
[Fri Dec 09 14:46:41.170963 2022] [proxy_fcgi:error] [pid 2252] (70007)The timeout specified has expired: [client ip.ip.ip.ip:51582] AH01075: Error dispatching request to : (polling)
[Fri Dec 09 14:46:44.731987 2022] [proxy_fcgi:error] [pid 3066] (70007)The timeout specified has expired: [client ip.ip.ip.ip:51583] AH01075: Error dispatching request to : (polling)
[Fri Dec 09 14:58:03.658828 2022] [proxy_fcgi:error] [pid 3593] (70007)The timeout specified has expired: [client ip.ip.ip.ip:51879] AH01075: Error dispatching request to : (polling)
[Fri Dec 09 14:58:08.578035 2022] [proxy_fcgi:error] [pid 3531] (70007)The timeout specified has expired: [client ip.ip.ip.ip:61451] AH01075: Error dispatching request to : (polling)

Output errors in nextcloud.log in /var/www/ or as admin user in top right menu, filtering for errors. Use a pastebin service if necessary.

that hasnt shown any info

Are you running Nextcloud 23 or 24? I see both above.

What type of setup? (manual, docker, snap, etc.)

What are the hardware specs?

Have you set up any memcache?

Manual setup, version 23
1 core of a AMD EPYC 7601 @ 2.199GHz
And I am not sure if I enabled memcache
I got an update notification on my desktop app and couldn’t proceed with update

So what happened that ended up with your config file saying it’s version 24?

I have no idea as I never done the version 34 update

That’s a 32 core processor. Why only 1 core for Nextcloud?

How much memory?

I don’t see it in your config, so probably not. But you should.

https://docs.nextcloud.com/server/stable/admin_manual/configuration_server/caching_configuration.html

its a vps with 2gb of ram and ill check with the memcache and ill be back with you

i decide to do a manual update and it seems fine now