nextcloud / server

☁️ Nextcloud server, a safe home for all your data
https://nextcloud.com
GNU Affero General Public License v3.0
27.31k stars 4.06k forks source link

[Bug]: cron job don't work ? #47829

Closed tigermick closed 1 month ago

tigermick commented 1 month ago

⚠️ This issue respects the following points: ⚠️

Bug description

Nextcloud tell me : "Some jobs have not been executed since il y a 2 jours. Please consider increasing the execution frequency. " Capture d’écran du 2024-09-08 21-40-22 nextcloud log show no error about this.

Steps to reproduce

  1. just execute : sudo -u www-data php /var/www/owncloud/cron.php
  2. no error output
  3. check nextcloud interface to see the same problem

Expected behavior

Normally,all should be OK for cron job.

Nextcloud Server version

29

Operating system

Debian bookworm

PHP engine version

8.2

Web server

Apache2

Database engine version

Mariadb

Is this bug present after an update or on a fresh install?

29.0.6 update

Are you using the Nextcloud Server Encryption module?

No

What user-backends are you using?

Configuration report

{
    "system": {
        "instanceid": "***REMOVED SENSITIVE VALUE***",
        "passwordsalt": "***REMOVED SENSITIVE VALUE***",
        "datadirectory": "***REMOVED SENSITIVE VALUE***",
        "dbtype": "mysql",
        "version": "29.0.6.1",
        "dbname": "***REMOVED SENSITIVE VALUE***",
        "dbhost": "***REMOVED SENSITIVE VALUE***",
        "dbtableprefix": "oc_",
        "dbuser": "***REMOVED SENSITIVE VALUE***",
        "dbpassword": "***REMOVED SENSITIVE VALUE***",
        "default_language": "fr",
        "installed": true,
        "maxZipInputSize": 1073741824,
        "mail_from_address": "***REMOVED SENSITIVE VALUE***",
        "enable_avatars": false,
        "allowZipDownload": true,
        "loglevel": 1,
        "maintenance": false,
        "theme": "",
        "default_phone_region": "FR",
        "enable_previews": true,
        "preview_max_x": 640,
        "preview_max_y": 640,
        "memcache.local": "\\OC\\Memcache\\APCu",
        "enabledPreviewProviders": [
            "OC\\Preview\\Movie",
            "OC\\Preview\\Image"
        ],
        "mail_smtpmode": "smtp",
        "mail_smtphost": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpport": "25",
        "0": [
            "192.168.0.5"
        ],
        "overwrite.cli.url": "https:\/\/tigermick.hd.free.fr\/owncloud",
        "mail_domain": "***REMOVED SENSITIVE VALUE***",
        "forcessl": true,
        "trusted_domains": [
            "tigermick.hd.free.fr",
            "192.168.0.43",
            "88.172.43.168"
        ],
        "secret": "***REMOVED SENSITIVE VALUE***",
        "appstore.experimental.enabled": true,
        "filelocking.enabled": "true",
        "memcache.locking": "\\OC\\Memcache\\APCu",
        "redis": {
            "host": "***REMOVED SENSITIVE VALUE***",
            "port": 6379,
            "timeout": 0,
            "password": "***REMOVED SENSITIVE VALUE***"
        },
        "debug": false,
        "htaccess.RewriteBase": "\/owncloud",
        "mail_smtpauthtype": "LOGIN",
        "maintenance_window_start": 1,
        "mysql.utf8mb4": true,
        "app_install_overwrite": [
            "calendar",
            "end_to_end_encryption",
            "keeweb",
            "previewgenerator",
            "talk_simple_poll",
            "libresign"
        ]
    }
}

List of activated Apps

Enabled:
  - activity: 2.21.1
  - admin_audit: 1.19.0
  - bruteforcesettings: 2.9.0
  - calendar: 4.7.16
  - cloud_federation_api: 1.12.0
  - contacts: 6.0.0
  - contactsinteraction: 1.10.0
  - cookbook: 0.11.1
  - dashboard: 7.9.0
  - dav: 1.30.1
  - federatedfilesharing: 1.19.0
  - files: 2.1.1
  - files_downloadlimit: 2.0.0
  - files_external: 1.21.0
  - files_reminders: 1.2.0
  - files_sharing: 1.21.0
  - files_trashbin: 1.19.0
  - logreader: 2.14.0
  - lookup_server_connector: 1.17.0
  - music: 2.0.1
  - nextcloud_announcements: 1.18.0
  - notes: 4.10.1
  - notifications: 2.17.0
  - oauth2: 1.17.0
  - password_policy: 1.19.0
  - passwords: 2024.7.20
  - photos: 2.5.0
  - previewgenerator: 5.6.0
  - privacy: 1.13.0
  - provisioning_api: 1.19.0
  - related_resources: 1.4.0
  - serverinfo: 1.19.0
  - settings: 1.12.0
  - sharebymail: 1.19.0
  - spreed: 19.0.8
  - support: 1.12.0
  - survey_client: 1.17.0
  - text: 3.10.1
  - theming: 2.4.0
  - twofactor_backupcodes: 1.18.0
  - updatenotification: 1.19.1
  - user_status: 1.9.0
  - viewer: 2.3.0
  - weather_status: 1.9.0
  - workflowengine: 2.11.0
Disabled:
  - circles: 29.0.0-dev (installed 0.18.4)
  - comments: 1.19.0 (installed 0.3.0)
  - encryption: 2.17.0
  - federation: 1.19.0 (installed 0.1.0)
  - files_pdfviewer: 2.10.0 (installed 1.2.1)
  - files_versions: 1.22.0 (installed 1.12.0)
  - firstrunwizard: 2.18.0 (installed 1.0)
  - forms: 4.2.4 (installed 4.2.4)
  - groupfolders: 17.0.3 (installed 17.0.3)
  - libresign: 9.2.3 (installed 9.2.3)
  - phonetrack: 0.8.1 (installed 0.8.1)
  - recommendations: 2.1.0 (installed 1.3.0)
  - suspicious_login: 7.0.0
  - systemtags: 1.19.0 (installed 0.3.0)
  - twofactor_totp: 11.0.0-dev
  - user_ldap: 1.20.0

Nextcloud Signing status

No errors have been found.

Nextcloud Logs

No response

Additional info

No response

susnux commented 1 month ago

How often do you run the crop.php? Every 5 minutes? Not all jobs are run on every crop.php call, so ensure that it is called regularly.

joshtrichards commented 1 month ago
tigermick commented 1 month ago

@susnux yes every 5 minutes. All worked fine some days ago ... @joshtrichards, When I start cron.php manually, I check my nextcloud.log (loglevel 0) and I have no error... And no log about background job ...

tigermick commented 1 month ago

Arf .... 🙄😬 I check this morning (in France) and without change something, all works fine now ... Sorry about my unecessesary post ..