Hello,
I am running Nextcloud in a Docker Swarm environment. It has been running since December 2020. I mention this because it seems recently I got the message that “Some jobs didn’t execute since 16 days ago.”
Setup:
Docker:
version: '3'
services:
nextcloud:
image: nextcloud:apache
restart: always
environment:
- TZ=America/New_York
volumes:
- /mnt/tank/cloud/nextcloud_html:/var/www/html
- /mnt/tank/cloud/nextcloud_config:/var/www/html/config
- /mnt/tank/cloud/nextcloud_data:/var/www/html/data
networks:
- core-infra
- database
deploy:
placement:
constraints: [node.labels.type == server]
labels:
- '...traefik configs...'
webcron:
image: 10.160.1.1:5000/nextcloud-webcron
container_name: webcron
restart: always
environment:
- URL=https://cloud.example.com/cron.php
- TIME=300
networks:
- core-infra
networks:
core-infra:
external: true
database:
external: true
config.php:
<?php
$CONFIG = array (
'instanceid' => 'BLAH',
'passwordsalt' => 'BLAH',
'secret' => 'BLAH',
'version' => '21.0.1.1',
'overwritehost' => 'cloud.example.com',
'overwriteprotocol' => 'https',
'trusted_proxies' =>
array (
0 => 'traefik',
1 => '10.0.8.0/24',
),
'overwrite.cli.url' => 'https://nextcloud.example.com/',
'trusted_domains' =>
array (
0 => 'nextcloud',
1 => 'cloud.example.com',
2 => 'nextcloud.example.com',
),
'dbtype' => 'mysql',
'dbname' => 'BLAH',
'dbhost' => 'BLAH',
'dbport' => '3306',
'dbtableprefix' => 'oc_',
'mysql.utf8mb4' => true,
'dbuser' => 'BLAH',
'dbpassword' => 'BLAH',
'installed' => true,
'mail_domain' => 'cloud.example.com',
'mail_smtpmode' => 'smtp',
'memcache.local' => '\\OC\\Memcache\\APCu',
'memcache.distributed' => '\\OC\\Memcache\\Redis',
'memcache.locking' => '\\OC\\Memcache\\Redis',
'redis' =>
array (
'host' => 'redis',
'port' => 6379,
),
'maintenance' => false,
'theme' => '',
'loglevel' => 0,
'updater.release.channel' => 'stable',
'mail_smtphost' => 'smtp',
'mail_smtpport' => '25',
'app_install_overwrite' =>
array (
0 => 'documents',
),
'mail_from_address' => 'nextcloud',
'mail_sendmailmode' => 'smtp',
'default_phone_region' => 'US',
);
Troubleshooting:
I have checked the forums what I have come up with:
- I have manually run http://cloud.example.com/cron.php over the past few days.
- I have manually logged into the docker container and run ‘nohup php cron.php &’
- PHP not enough memory? However not sure how to set that in a docker environment? Also all the other issues deal with memory less that 512MB, mine is set to 512MB
- There are no errors in the logs, but there is an INFO for:
Deprecated event type for {"[object] (OCP\SabrePluginEvent)":{"*statusCode":200,"*message":"","*server":{"[object] (OCA\DAV\Connector\Sabre\Server)":{"tree":"[object] (OCA\DAV\Connector\Sabre\ObjectTree)","*baseUri":"/remote.php/webdav/","httpResponse":"[object] (Sabre\HTTP\Response)","httpRequest":"[object] (Sabre\HTTP\Request)","sapi":"[object] (Sabre\HTTP\Sapi)","*plugins":[],"transactionType":null,"protectedProperties":{"...":"Over 20 items, aborting normalization"},"debugExceptions":false,"resourceTypeMapping":[],"enablePropfindDepthInfinity":true,"xml":"[object] (Sabre\DAV\Xml\Service)","*logger":null,"*listeners":{"...":"Over 20 items, aborting normalization"},"*wildcardListeners":[],"*listenerIndex":[]}},"Symfony\Contracts\EventDispatcher\EventpropagationStopped":false}}: null
Question:
- Where should I be looking next?
- If it’s ‘Some’ jobs, then is there a way to figure out which jobs?
Thx!