Nextcloud Docker ballooning to 17gb RAM in less than a minute of starting and going un responsive

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 (eg, 20.0.5): 25.0.4
Operating system and version (eg, Ubuntu 20.04): Unraid
Apache or nginx version (eg, Apache 2.4.25): nginx docker
PHP version (eg, 7.4): docker

The issue you are facing:

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

Steps to replicate it:

  1. Restart the container. It starts and becomes responsive, but immeadiatly it starts to eat RAM.

The output of your Nextcloud log in Admin > Logging:

[PHP] Error: Error: require_once(/config/www/nextcloud/apps/mail/vendor/composer/autoload_real.php): Failed to open stream: No such file or directory at /config/www/nextcloud/apps/mail/vendor/autoload.php#23 at <<closure>>

 0. /config/www/nextcloud/apps/mail/vendor/autoload.php line 23
 1. /config/www/nextcloud/apps/mail/vendor/autoload.php line 23
 2. /config/www/nextcloud/apps/mail/lib/AppInfo/Application.php line 82
    include_once("/config/www/nex ... p")
 3. /config/www/nextcloud/lib/composer/composer/ClassLoader.php line 571
    include("/config/www/nex ... p")
 4. /config/www/nextcloud/lib/composer/composer/ClassLoader.php line 428
 5. <<closure>>
 6. /config/www/nextcloud/lib/private/AppFramework/Bootstrap/Coordinator.php line 126
 7. /config/www/nextcloud/lib/private/AppFramework/Bootstrap/Coordinator.php line 91
 8. /config/www/nextcloud/lib/base.php line 671
 9. /config/www/nextcloud/lib/base.php line 1144
10. /config/www/nextcloud/remote.php line 119

PROPFIND /remote.php/dav/files/qw3r7yju4n/
from at 2023-04-11T21:06:29+00:00
[mail] Fatal: Error: Failed opening required '/config/www/nextcloud/apps/mail/vendor/composer/autoload_real.php' (include_path='/config/www/nextcloud/3rdparty/pear/archive_tar:/config/www/nextcloud/3rdparty/pear/console_getopt:/config/www/nextcloud/3rdparty/pear/pear-core-minimal/src:/config/www/nextcloud/3rdparty/pear/pear_exception:/config/www/nextcloud/apps') at <<closure>>

0. /config/www/nextcloud/apps/mail/lib/AppInfo/Application.php line 82
1. /config/www/nextcloud/lib/composer/composer/ClassLoader.php line 571
   include("/config/www/nex ... p")
2. /config/www/nextcloud/lib/composer/composer/ClassLoader.php line 428
3. <<closure>>
4. /config/www/nextcloud/lib/private/AppFramework/Bootstrap/Coordinator.php line 126
5. /config/www/nextcloud/lib/private/AppFramework/Bootstrap/Coordinator.php line 91
6. /config/www/nextcloud/lib/base.php line 671
7. /config/www/nextcloud/lib/base.php line 1144
8. /config/www/nextcloud/remote.php line 119

PROPFIND /remote.php/dav/files/qw3r7yju4n/
from at 2023-04-11T21:06:29+00:00

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

$CONFIG = array (
  'memcache.local' => '\\OC\\Memcache\\APCu',
  'datadirectory' => '/data',
  'instanceid' => 'ocqwmvidm6vw',
  'passwordsalt' => 'REPLACEME',
  'secret' => 'REPLACEME',
  'trusted_domains' => 
  array (
    0 => 'REPLACEME',
    1 => '',
  'default_phone_region' => 'US',
  'dbtype' => 'mysql',
  'version' => '',
  'overwrite.cli.url' => '',
  'overwritehost' => '',
  'overwritprotocol' => 'https',
  'dbname' => 'REPLACEME',
  'dbhost' => 'REPLACEME',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'mysql.utf8mb4' => true,
  'dbuser' => 'REPLACEME',
  'dbpassword' => 'REPLACEME',
  'installed' => true,
  'mail_smtpmode' => 'smtp',
  'mail_smtpauth' => 1,
  'mail_sendmailmode' => 'smtp',
  'mail_smtpauthtype' => 'LOGIN',
  'mail_smtphost' => '',
  'mail_smtpsecure' => 'tls',
  'mail_smtpport' => '587',
  'mail_from_address' => 'REPLACEME',
  'mail_domain' => 'REPLACEME',
  'mail_smtpname' => 'REPLACEME',
  'mail_smtppassword' => 'REPLACEME',
  'maintenance' => false,
  'loglevel' => 2,
  'updater.secret' => 'REPLACEME',

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

Log is empty```


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

No logs located there in the contatiner

The image is a 3rd party image. You may need to go to their forum for support. I’m not sure how many here have used it.

Did you check the docker container logs? Run ‘docker ps’ to get the container names and then ‘docker logs [name-or-id]’ to view the logs.

1 Like

Ok would you recommend which docker i should use?

I have grabbed the official image. and installed into MariaDB but i can’t login with the username and password created for the admin account. It looks like it logs in but does not redirect correctly. Im sure im doing something wrong.

Did you set a trusted domain? Hard to say more without logs or config details. Try restarting your browser.

I did restarting the browser worked on getting me logged in. I will open another support rtequest with my last issue. Thank you all for the help!!