Details
Nextcloud version: 21.0.0
Operating system and version: Ubuntu 20.04.2
Apache or nginx version: Apache 2.4.41
PHP version: 7.4.3
No system SWAP is set. UPDATE: I added 20GB of swap, but now it uses about 1GB of swap, jitters for a while before freezing and causing screen to go black.
Is this the first time you’ve seen this error?: Y
Steps to replicate it:
- Use cron
- Updated from 20.0.8 to 21.0.0
I regained temporary access to the server by renaming “/var/www/nextcloud/cron.php” to clams.php
Issue
The computer hosting the nextcloud server will freeze for 20-30 minutes before unfreezing for a few seconds.
I pulled up htop
, and "php -f /var/www/nextcloud/cron.php"
is the command that causes the memory to spike to max (8gb) and CPU to also spike.
Logs
As for nextcloud logs, all I see under Warning/Error are
Invalid data provided to provideInitialState by files
...
RedisException: read error on connection to localhost:6379
...
Doctrine\DBAL\Query\QueryException: More than 1000 expressions in a list are not allowed on Oracle.
...
Error: Undefined index: settings at /var/www/nextcloud/lib/private/AppFramework/Bootstrap/RegistrationContext.php#404
Error: Call to a member function getContainer() on null
The output of your config.php file in /path/to/nextcloud
(make sure you remove any identifiable information!):
<?php
$CONFIG = array (
'instanceid' => 'random-letters',
'passwordsalt' => 'random-letters',
'secret' => 'random-letters',
'trusted_domains' =>
array (
0 => '192.168.254.14',
1 => 'my-external-ip',
),
'datadirectory' => '/var/www/nextcloud/data',
'dbtype' => 'mysql',
'version' => '21.0.0.18',
'overwrite.cli.url' => 'http://192.168.254.14/nextcloud',
'dbname' => 'nextclouddb',
'dbhost' => 'localhost',
'dbport' => '',
'dbtableprefix' => 'oc_',
'mysql.utf8mb4' => true,
'dbuser' => 'nextcloud-user',
'dbpassword' => 'a-password',
'installed' => true,
'memcache.local' => '\\OC\\Memcache\\APCu',
'memcache.locking' => '\\OC\\Memcache\\Redis',
'redis' =>
array (
'host' => 'localhost',
'port' => 6379,
),
'updater.release.channel' => 'beta',
'app_install_overwrite' =>
array (
0 => 'occweb',
1 => 'joplin',
2 => 'whiteboard',
),
'ldapIgnoreNamingRules' => false,
'ldapProviderFactory' => 'OCA\\User_LDAP\\LDAPProviderFactory',
'maintenance' => false,
'theme' => '',
'loglevel' => 0,
'updater.secret' => 'idk',
);
The output of your Apache/nginx/system log in /var/log/____
:
[Tue Mar 30 00:00:33.151849 2021] [ssl:warn] [pid 911] AH01909: 127.0.1.1:443:0 server certificate does NOT include an ID which matches the server name
[Tue Mar 30 00:00:33.152094 2021] [mpm_prefork:notice] [pid 911] AH00163: Apache/2.4.41 (Ubuntu) OpenSSL/1.1.1f configured -- resuming normal operations
[Tue Mar 30 00:00:33.152101 2021] [core:notice] [pid 911] AH00094: Command line: '/usr/sbin/apache2'
[Tue Mar 30 02:36:45.305034 2021] [php7:error] [pid 5398] [client 18.231.155.124:52686] script '/var/www/html/wp-login.php' not found or unable to stat
[Tue Mar 30 04:56:38.838443 2021] [ssl:warn] [pid 770] AH01909: 127.0.1.1:443:0 server certificate does NOT include an ID which matches the server name
[Tue Mar 30 04:56:43.637368 2021] [ssl:warn] [pid 922] AH01909: 127.0.1.1:443:0 server certificate does NOT include an ID which matches the server name
[Tue Mar 30 04:56:43.640277 2021] [mpm_prefork:notice] [pid 922] AH00163: Apache/2.4.41 (Ubuntu) OpenSSL/1.1.1f configured -- resuming normal operations
[Tue Mar 30 04:56:43.640300 2021] [core:notice] [pid 922] AH00094: Command line: '/usr/sbin/apache2'
[Tue Mar 30 06:51:28.143581 2021] [authz_core:error] [pid 2698] [client 46.254.20.36:64880] AH01630: client denied by server configuration: /var/www/html/.htpasswd
[Tue Mar 30 16:40:42.714568 2021] [php7:error] [pid 2539] [client 157.245.125.95:59460] script '/var/www/html/wp-login.php' not found or unable to stat
[Tue Mar 30 18:59:48.103426 2021] [access_compat:error] [pid 987] [client 192.168.254.15:57856] AH01797: client denied by server configuration: /var/www/nextcloud/data/.ocdata
[Tue Mar 30 19:00:00.486168 2021] [access_compat:error] [pid 986] [client 192.168.254.15:57853] AH01797: client denied by server configuration: /var/www/nextcloud/data/.ocdata
If you need any more information, I’ll try to reply as quickly as possible.