Nextcloud interface takes forever to load

Support intro

Sorry to hear you’re facing problems :slightly_frowning_face: is for home/non-enterprise users. If you’re running a business, paid support can be accessed via 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:


Or for longer, use three backticks above and below the code snippet:


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: 25.0.4
Operating system and version: Debian GNU/Linux 11 (bullseye)
Apache or nginx version: Apache/2.4.54 (Debian)
PHP version (eg, 7.4): PHP 7.4.33

The issue you are facing:
I am using Nextcloud now for nearly a year but after not opening the web page in a while, I realized that it takes really long to even load the login page, frequently with time out and connection errors. That makes the Nextcloud online unusable. The file synch via Nextcloud apps and calDAV and cardDAV seem to work normally.

Steps to replicate it:

  1. try to open Nextcloud in a web browser

The output of your Nextcloud log in Admin > Logging:
Not available since Nextcloud login not reachable

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

$CONFIG = array (
  'instanceid' => 'niceid',
  'passwordsalt' => 'nicepasswordsalt',
  'secret' => 'abcdefghijklmnopqrstuvwxyz',
  'trusted_domains' => 
  array (
    0 => '',
  'datadirectory' => '/data/nextcloud',
  'dbtype' => 'mysql',
  'version' => '',
  'overwrite.cli.url' => '',
  'dbname' => 'nextcloud',
  'dbhost' => 'localhost',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'mysql.utf8mb4' => true,
  'dbuser' => 'nextcloud',
  'dbpassword' => 'dbpassword',
  'installed' => true,
  'memcache.local' => '\\OC\\Memcache\\APCu',
  'default_phone_region' => 'XY',
  'default_language' => 'XY',
  'default_locale' => 'xy',
  'maintenance' => false,
  'htaccess.RewriteBase' => '/',
  'theme' => '',
  'loglevel' => 2,
  'mail_smtpmode' => 'smtp',
  'mail_smtpsecure' => 'ssl',
  'mail_sendmailmode' => 'smtp',
  'mail_domain' => '',
  'mail_smtpauth' => 1,
  'mail_smtpauthtype' => 'LOGIN',
  'mail_smtphost' => '',
  'mail_smtpport' => '123',
  'mail_smtpname' => '',
  'mail_smtppassword' => 'pa$$word',
  'mail_from_address' => 'cloud',