Nextcloud version: 23.0.2
Operating system and version: 20.04.4 LTS
Apache or nginx version: 2.4.41
PHP version: 8.0.16
The issue you are facing: background jobs timers don’t function. The alert for last time a job was ran does not update, despite having configured a cron job.
When I try to run the command configured in the cron job in the cli, I get the following output.
root@cloud:/var/www/html/nextcloud/config# sudo -u www-data php -f /var/www/html/nextcloud/cron.php
PHP Warning: Module "pdo_pgsql" is already loaded in Unknown on line 0
OCP\HintException: [0]: Memcache \OC\Memcache\APCu not available for local cache (Is the matching PHP module installed and enabled?)
Is there a module I need to activate in apache to resolve this? Or some setting or step I missed here that would take care of this?
Is this the first time you’ve seen this error? : Yes
Steps to replicate it:
- Edit crontab with
crontab -u www-data -e
- Add line to the end of file
*/5 * * * * php -f /var/www/nextcloud/cron.php
- enable cron with
systemctl enable cron
The output of your Nextcloud log in Admin > Logging:
The full contents of the logs can be found here
The output of your config.php file in /path/to/nextcloud
(make sure you remove any identifiable information!):
<?php
$CONFIG = array (
'trusted_proxies' => ['10.10.10.4'],
'overwriteprotocol' => 'https',
'instanceid' => 'ocesm91tpsbv',
'passwordsalt' => 'Aep0XHlurwzd4Kmp0LOM5bPsg+w1t8',
'secret' => 'PA6qc5EqyOmnLQ3B0t+p7ydV7FvZE9zqD8IwJM6x+ai+0uvS',
'trusted_domains' =>
array (
0 => 'cloud.domain.tld',
1 => '10.10.10.243',
),
'enable_previews' => true,
'preview_libreoffice_path' => '/usr/bin/libreoffice',
'enabledPreviewProviders' =>
array (
0 => 'OC\\Preview\\TXT',
1 => 'OC\\Preview\\MarkDown',
2 => 'OC\\Preview\\OpenDocument',
3 => 'OC\\Preview\\PDF',
4 => 'OC\\Preview\\MSOffice2003',
5 => 'OC\\Preview\\MSOfficeDoc',
6 => 'OC\\Preview\\PDF',
7 => 'OC\\Preview\\Image',
8 => 'OC\\Preview\\Photoshop',
9 => 'OC\\Preview\\TIFF',
10 => 'OC\\Preview\\SVG',
11 => 'OC\\Preview\\Font',
12 => 'OC\\Preview\\MP3',
13 => 'OC\\Preview\\Movie',
14 => 'OC\\Preview\\MKV',
15 => 'OC\\Preview\\MP4',
16 => 'OC\\Preview\\AVI',
),
'datadirectory' => '/mnt/database/nextcloud/data',
'dbtype' => 'pgsql',
'version' => '23.0.2.1',
'overwrite.cli.url' => 'http://cloud.domain.tld/',
'htaccess.RewriteBase' => '/',
'dbname' => 'nextclouddb',
'dbhost' => '10.10.10.5:5432',
'dbport' => '',
'dbtableprefix' => 'oc_',
'dbuser' => 'nextcloud',
'dbpassword' => 'Quickstep-Denture0-Pried',
'installed' => true,
'memcache.local' => '\\OC\\Memcache\\APCu',
'memcache.distributed' => '\\OC\\Memcache\\Redis',
'redis' =>
array (
'host' => '/run/redis/redis-server.sock',
'port' => 0,
'dbindex' => 0,
'password' => 'secret',
'timeout' => 1.5,
),
'default_phone_region' => 'US',
'mail_smtpmode' => 'smtp',
'mail_smtpsecure' => 'ssl',
'mail_sendmailmode' => 'smtp',
'mail_from_address' => 'noreply',
'mail_domain' => 'notifications.domain.tld',
'mail_smtpauthtype' => 'LOGIN',
'mail_smtpauth' => 1,
'mail_smtphost' => 'smtp.mailhost.tld',
'mail_smtpport' => '465',
'mail_smtpname' => 'noreply@notifications.domain.tld',
'mail_smtppassword' => 'shreklich_mail_transmission_protocol',
'twofactor_enforced' => 'true',
'twofactor_enforced_groups' =>
array (
),
'twofactor_enforced_excluded_groups' =>
array (
),
);
The output of your Apache/nginx/system log in /var/log/____
:
[Thu Mar 03 00:00:01.309626 2022] [mpm_event:notice] [pid 1645:tid 140025513307200] AH00489: Apache/2.4.41 (Ubuntu) OpenSSL/1.1.1f configured -- resuming normal operations
[Thu Mar 03 00:00:01.309646 2022] [core:notice] [pid 1645:tid 140025513307200] AH00094: Command line: '/usr/sbin/apache2'
[Thu Mar 03 18:18:10.252704 2022] [mpm_event:notice] [pid 1645:tid 140025513307200] AH00491: caught SIGTERM, shutting down
[Thu Mar 03 18:18:14.378208 2022] [mpm_event:notice] [pid 188:tid 140462151593024] AH00489: Apache/2.4.41 (Ubuntu) OpenSSL/1.1.1f configured -- resuming normal operations
[Thu Mar 03 18:18:14.378491 2022] [core:notice] [pid 188:tid 140462151593024] AH00094: Command line: '/usr/sbin/apache2'