Cron-Job, sowie Occ Comand funktionieren nicht!

Cron-Job wird nicht ausgeführt

Server configuration detail

Operating system: Linux 5.15.0-1024-raspi #26-Ubuntu SMP PREEMPT Wed Jan 18 15:29:53 UTC 2023 aarch64

Webserver: Apache/2.4.52 (Ubuntu) (apache2handler)

Database: mysql 10.6.12

PHP version: 8.1.14

Modules loaded: Core, date, libxml, openssl, pcre, zlib, filter, hash, json, Reflection, SPL, session, standard, sodium, apache2handler, mysqlnd, PDO, xml, apcu, bcmath, calendar, ctype, curl, dom, mbstring, FFI, fileinfo, ftp, gd, gettext, gmp, iconv, igbinary, imagick, intl, exif, mysqli, pdo_mysql, Phar, posix, readline, redis, shmop, SimpleXML, sockets, sysvmsg, sysvsem, sysvshm, tokenizer, xmlreader, xmlwriter, xsl, zip, Zend OPcache

Nextcloud version: 25.0.5 - 25.0.5.1

Updated from an older Nextcloud/ownCloud or fresh install:

Where did you install Nextcloud from: unknown

Signing status

List of activated apps
Enabled:
 - activity: 2.17.0
 - calendar: 4.3.1
 - circles: 25.0.0
 - cloud_federation_api: 1.8.0
 - comments: 1.15.0
 - contacts: 5.2.0
 - contactsinteraction: 1.6.0
 - dashboard: 7.5.0
 - dav: 1.24.0
 - federatedfilesharing: 1.15.0
 - federation: 1.15.0
 - files: 1.20.1
 - files_antivirus: 4.0.3
 - files_pdfviewer: 2.6.0
 - files_rightclick: 1.4.0
 - files_sharing: 1.17.0
 - files_trashbin: 1.15.0
 - files_versions: 1.18.0
 - fileslibreofficeedit: 1.1.0
 - firstrunwizard: 2.14.0
 - logreader: 2.10.0
 - lookup_server_connector: 1.13.0
 - mail: 2.2.5
 - maps: 1.0.2
 - nextcloud_announcements: 1.14.0
 - notifications: 2.13.1
 - oauth2: 1.13.0
 - password_policy: 1.15.0
 - photos: 2.0.1
 - privacy: 1.9.0
 - provisioning_api: 1.15.0
 - quota_warning: 1.16.0
 - recognize: 3.7.0
 - recommendations: 1.4.0
 - registration: 2.1.0
 - related_resources: 1.0.4
 - richdocuments: 7.1.2
 - serverinfo: 1.15.0
 - settings: 1.7.0
 - sharebymail: 1.15.0
 - spreed: 15.0.5
 - support: 1.8.0
 - survey_client: 1.13.0
 - systemtags: 1.15.0
 - text: 3.6.0
 - theming: 2.0.1
 - twofactor_backupcodes: 1.14.0
 - updatenotification: 1.15.0
 - user_status: 1.5.0
 - viewer: 1.9.0
 - weather_status: 1.5.0
 - welcome: 1.0.8
 - workflowengine: 2.7.0
Disabled:
 - admin_audit
 - bruteforcesettings
 - encryption
 - files_external
 - suspicious_login
 - twofactor_totp
 - user_ldap
 - user_usage_report: 1.9.0

Configuration (config/config.php)
{
    "instanceid": "***REMOVED SENSITIVE VALUE***",
    "passwordsalt": "***REMOVED SENSITIVE VALUE***",
    "secret": "***REMOVED SENSITIVE VALUE***",
    "trusted_domains": [
        "***REMOVED SENSITIVE VALUE***",
        "***REMOVED SENSITIVE VALUE***"
    ],
    "datadirectory": "***REMOVED SENSITIVE VALUE***",
    "dbtype": "mysql",
    "version": "25.0.5.1",
    "overwrite.cli.url": "https:\/\/***REMOVED SENSITIVE VALUE***",
    "dbname": "***REMOVED SENSITIVE VALUE***",
    "dbhost": "***REMOVED SENSITIVE VALUE***",
    "dbport": "",
    "dbtableprefix": "oc_",
    "mysql.utf8mb4": true,
    "dbuser": "***REMOVED SENSITIVE VALUE***",
    "dbpassword": "***REMOVED SENSITIVE VALUE***",
    "installed": true,
    "default_phone_region": "DE",
    "memcache.local": "\\OC\\Memcache\\APCu",
    "overwriteprotocol": "https",
    "logtimezone": "Europe\/Berlin",
    "force_language": "de",
    "force_locale": "de_DE",
    "mail_smtpmode": "smtp",
    "mail_sendmailmode": "smtp",
    "mail_smtpauth": 1,
    "mail_from_address": "***REMOVED SENSITIVE VALUE***",
    "mail_domain": "***REMOVED SENSITIVE VALUE***",
    "mail_smtpsecure": "ssl",
    "mail_smtpauthtype": "LOGIN",
    "mail_smtphost": "***REMOVED SENSITIVE VALUE***",
    "mail_smtpport": "465",
    "mail_smtpname": "***REMOVED SENSITIVE VALUE***",
    "mail_smtppassword": "***REMOVED SENSITIVE VALUE***",
    "updater.secret": "***REMOVED SENSITIVE VALUE***",
    "maintenance": false,
    "theme": "",
    "loglevel": 2
}

Cron Configuration: Array
(
[backgroundjobs_mode] => cron
[lastcron] => 1671375719
)

External storages: files_external is disabled

Encryption: no

User-backends:

  • OC\User\Database

Talk configuration:

STUN servers

  • REMOVED SENSITIVE VALUE:3478

TURN servers

  • turn,turns:REMOVED SENSITIVE VALUE:3478 - udp,tcp

Signaling servers (mode: default):

  • no custom server configured

Browser: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/111.0.5563.111 Safari/537.36

Logfiles would be helpful.
You can also run the cron command from command line (when you are in Nextcloud’s main folder) and it show you some error:

sudo -u www-data php -f cron.php

That means, the last executed cron job was on Sunday, 18. December 2022 15:01:59!
Das bedeutet, der letzte ausgeführte cronjob war am Sonntag, 18. Dezember 2022 16:01:59 GMT+01:00

You can analise your crontabs with this command:
Du kannst deine Crontabs mit diesem Befehl analysieren:

sudo find /var/spool/cron/ -type f -exec cat {} \; | grep cron.php

and your systemwide crontab with this command:
und die systemweite Crontabelle mit diesem Kommando:

grep cron.php /etc/crontab

EDIT:

Some more echoes you could create:
hier noch ein Paar Augaben die du erzeugen könntest:

sudo grep -i cron /var/log/syslog

Is your time working correct?
funktioniert die Zeit richtig?

date
grep -i time /var/log/syslog

And because occ is not working as well, some information about your installed php:
Und weil occ auch nicht funktioniert, ein paar Informationen über die installierten php-Pakete:

dpkg -l | awk '/^ii/ {print $2}' | grep -i php