Nextcloud cron job failing, wrong specification of job, missing user
There is a wrong format of nextcloud cron job:
# Create cron script
echo "*/15 * * * * /usr/bin/su --shell /bin/ash --command '/usr/bin/php-cli -f /srv/www/nextcloud/cron.php' nobody" >/etc/cron.d/nextcloud
It should be either like this:
# Create cron script
echo "*/15 * * * * nobody /usr/bin/php-cli -f /srv/www/nextcloud/cron.php" >/etc/cron.d/nextcloud
or:
# Create cron script
echo "*/15 * * * * root /usr/bin/su --shell /bin/ash --command '/usr/bin/php-cli -f /srv/www/nextcloud/cron.php' nobody" >/etc/cron.d/nextcloud