Nextcloud Docker image, 2 errors after upgrade to v21

I just upgraded two of my instances, both based on the docker image here docker/docker-compose.yml at master · nextcloud/docker · GitHub last night.

The update itself ran flawlessly but ever since on v21 I get two errors in settings/overview:

  • Last background job execution ran 20 hours ago. Something seems wrong. Check the background job settings

  • Module php-imagick in this instance has no SVG support. For better compatibility it is recommended to install it.

Background jobs were and still are set to cron in basic settings.
I checked the docker image and can’t find anything obvious either, the volume still points correctly to my data folder and I can manually start cron.sh inside the cron image and it seems to run fine, but still the error doesn’t go away.

```sudo docker exec --user www-data -it c4c /cron.sh
      crond: crond (busybox 1.30.1) started, log level 0
      crond: user:www-data entry:(null)
      100001000010000100001000010000100001000010000100001000010000
      111111111111111111111111
      11111111111111111111111111111111
      111111111111
      1111111
      crond: user:www-data entry:(null)
     100001000010000100001000010000100001000010000100001000010000
     111111111111111111111111
     11111111111111111111111111111111
     111111111111
     1111111
     crond: wakeup dt=40
     crond: file www-data:
     crond: line php -f /var/www/html/cron.php`

Is there a logfile or similar which Nextcloud is looking for to determine if the cron job ran?


The php-imagick error is probably an oversight, maybe somehow that file wasn’t installed to the official docker container?

I also got the same errors when I upgraded.

For “no SVG support”, it looks like the new docker image does not include php-imagick.
See solution: How to enable SVG for php-imagick - #2 by j-ed

Also the cron jobs looks like it was issues, for me it will not run at all. It won’t even run when invoke manually when I have an active external storage (SMB) connnection.

Error:
TypeError: Argument 1 passed to OC\DB\SchemaWrapper::__construct() must be an instance of OC\DB\Connection, instance of OC\DB\ConnectionAdapter given, called in /var/www/html/custom_apps/spreed/lib/BackgroundJob/CheckReferenceIdColumn.php on line 59

Thanks! At least the issues are confirmed :slight_smile:
Not sure how I would go about installing imagick in the image as it looks like the apt package isn’t part of it.

sudo docker exec --user www-data nextcloud-app /bin/bash apt install php-imagick imagemagick  
/usr/bin/apt: /usr/bin/apt: cannot execute binary file

I guess we have to wait for updated images.

If you use their example Dockerfiles and build the image, it installs php-imagick as well as supervisord to run cron.

I think this was probably an oversight though… surely they meant to include the package if they’re going to throw such a warning about it being missing.