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 (eg, 12.0.2): 16.0.1
Operating system and version (eg, Ubuntu 17.04): CentOS 6.10 (x86_64)
Apache or nginx version (eg, Apache 2.4.25): Apache 2.2.15
PHP version (eg, 7.1): 7.1 (packages from Webtatic repository)
The issue you are facing:
After upgrading from PHP 5.6 to PHP 7.1 and upgrading NextCloud from 12.0.12.2 to 16.0.1, we are experiencing intermittent (but multiple times / day occurrences of NextCloud freezing up with associated memory exhaustion errors in nextcloud.log and Apache error logs related to SCSSCacher.php.
Very similar to, for eg. this issue but we already have PHP 7.1 Zend opcache installed, configured and working.
Is this the first time you’ve seen this error? (Y/N):
Steps to replicate it:
- Enable memcache.local using APCu
- Use NextCloud for a variable amount of time (sometimes minutes, sometimes hours)
The output of your Nextcloud log in Admin > Logging:
{"reqId":"WHKAvxQdrnrKN2P9juRN","level":3,"time":"2019-06-21T10:27:22-06:00","remoteAddr":"192.168.60.129","user":"nels","app":"PHP","method":"GET","url":"\/index.php\/apps\/files\/","message":"Allowed memory size of 536870912 bytes exhausted (tried to allocate 8608480258408150608 bytes) at \/var\/www\/html\/maei.ca\/nextcloud\/lib\/private\/Template\/SCSSCacher.php#352","userAgent":"Mozilla\/5.0 (Windows NT 6.1; WOW64; rv:60.0) Gecko\/20100101 Firefox\/60.0","version":"16.0.1.1"}
The output of your config.php file in /path/to/nextcloud
(make sure you remove any identifiable information!):
<?php
$CONFIG = array (
'passwordsalt' => 'REDACTED',
'datadirectory' => 'REDACTED/owncloud-data',
'dbtype' => 'pgsql',
'version' => '16.0.1.1',
'dbname' => 'REDACTED',
'dbhost' => '/tmp',
'dbtableprefix' => 'oc_',
'dbuser' => 'oc_admin',
'dbpassword' => '',
'installed' => true,
'instanceid' => 'REDACTED',
'ldapIgnoreNamingRules' => false,
'maintenance' => false,
'forcessl' => true,
'share_folder' => '/Shared',
'maxZipInputSize' => 838860800,
'allowZipDownload' => true,
'trusted_domains' =>
array (
0 => 'owncloud.example.org',
1 => 'nextcloud.example.org',
),
'overwrite.cli.url' => 'https://owncloud.example.org/',
'cron_log' => true,
'logtimezone' => 'America/Edmonton',
'theme' => '',
'mail_smtpmode' => 'smtp',
'mail_from_address' => 'webmaster',
'mail_domain' => 'example.org',
'secret' => 'REDACTED',
'memcache.local' => '\\OC\\Memcache\\APCu',
'has_internet_connection' => true,
'appstoreenabled' => true,
'apps_paths' =>
array (
0 =>
array (
'path' => 'REDACTED/owncloud/apps',
'url' => '/apps',
'writable' => true,
),
),
'updatechecker' => true,
'default_language' => 'en',
'defaultapp' => 'files',
'enable_previews' => true,
'preview_libreoffice_path' => '/usr/bin/libreoffice',
'enabledPreviewProviders' =>
array (
0 => 'OC\\Preview\\PNG',
1 => 'OC\\Preview\\JPEG',
2 => 'OC\\Preview\\BMP',
3 => 'OC\\Preview\\XBitmap',
4 => 'OC\\Preview\\MP3',
5 => 'OC\\Preview\\TXT',
6 => 'OC\\Preview\\MarkDown',
7 => 'OC\\Preview\\PDF',
8 => 'OC\\Preview\\MSOffice2003',
9 => 'OC\\Preview\\MSOffice2007',
10 => 'OC\\Preview\\MSOfficeDoc',
11 => 'OC\\Preview\\OpenDocument',
),
'cache_path' => '',
'filesystem_check_changes' => 1,
'asset-pipeline.enabled' => true,
'mount_file' => 'data/mount.json',
'redis' =>
array (
0 => 'tmp/redis.sock',
'timeout' => 0,
'dbindex' => 0,
),
'filelocking.enabled' => true,
'memcache.locking' => '\\OC\\Memcache\\Redis',
'loglevel' => 2,
'trashbin_retention_obligation' => 'auto',
'ldapProviderFactory' => '\\OCA\\User_LDAP\\LDAPProviderFactory',
'mail_smtphost' => 'REDACTED',
'mail_sendmailmode' => 'smtp',
'mail_smtpport' => '587',
);
The output of your Apache/nginx/system log in /var/log/____
:
[Fri Jun 21 10:27:22 2019] [error] [client 192.168.60.129] PHP Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 8608480258408150608 bytes) in /var/www/html/maei.ca/nextcloud/lib/private/Template/SCSSCacher.php on line 352