Error message every 5 minutes (after cron.php has been started)

Support intro

Sorry to hear you’re facing problems. :slightly_frowning_face:

The community help forum (help.nextcloud.com) is for home and non-enterprise users. Support is provided by other community members on a best effort / “as available” basis. All of those responding are volunteering their time to help you.

If you’re using Nextcloud in a business/critical setting, paid and SLA-based support services can be accessed via portal.nextcloud.com where Nextcloud engineers can help ensure your business keeps running smoothly.

Getting help

In order to help you as efficiently (and quickly!) as possible, please fill in as much of the below requested information as you can.

Before clicking submit: Please check if your query is already addressed via the following resources:

(Utilizing these existing resources is typically faster. It also helps reduce the load on our generous volunteers while elevating the signal to noise ratio of the forums otherwise arising from the same queries being posted repeatedly).

Some or all of the below information will be requested if it isn’t supplied; for fastest response please provide as much as you can. :heart:

The Basics

  • Nextcloud Server version (e.g., 29.x.x):
    • 30.0.4
  • Operating system and version (e.g., Ubuntu 24.04):
    • Debian 12.8
  • Web server and version (e.g, Apache 2.4.25):
  • Apache 2.4.62
  • Reverse proxy and version _(e.g. nginx 1.27.2)
    • (no reverse proxy)
  • PHP version (e.g, 8.3):
    • 8.2.26
  • Is this the first time you’ve seen this error? (Yes / No):
    • no
  • When did this problem seem to first start?
    • I don’t really know - but I think this issue occours after updating to NC 30
  • Installation method (e.g. AlO, NCP, Bare Metal/Archive, etc.)
    • Update using WebGUI
  • Are you using CloudfIare, mod_security, or similar? (Yes / No)
    • no

Summary of the issue you are facing:

Everytime, after cronjob has been started, there was an error message in the logfile:

[core] Error: Error while running background job OCA\Notifications\BackgroundJob\SendNotificationMails (id: 10203, arguments: null)
from ? by – at 26.12.2024, 13:25:03

Steps to replicate it (hint: details matter!):

Waiting. The error occours every 5 minutes.

Log entries

Nextcloud

Please provide the log entries from your Nextcloud log that are generated during the time of problem (via the Copy raw option from Administration settings->Logging screen or from your nextcloud.log located in your data directory). Feel free to use a pastebin/gist service if necessary.

{"reqId":"u5aReGgdLjwR9V2iLphO","level":3,"time":"2024-12-26T15:50:04+01:00","remoteAddr":"","user":"--","app":"core","method":"","url":"--","message":"Error while running background job OCA\\Notifications\\BackgroundJob\\SendNotificationMails (id: 31111, arguments: null)","userAgent":"--","version":"30.0.4.1","exception":{"Exception":"Error","Message":"Call to undefined method OC\\AppFramework\\ScopedPsrLogger::logException()","Code":0,"Trace":[{"file":"/var/www/nextcloud/lib/private/Notification/Manager.php","line":337,"function":"prepare","class":"OCA\\Secrets\\Notification\\Notifier","type":"->"},{"file":"/var/www/nextcloud/apps/notifications/lib/MailNotifications.php","line":187,"function":"prepare","class":"OC\\Notification\\Manager","type":"->"},{"file":"/var/www/nextcloud/apps/notifications/lib/MailNotifications.php","line":157,"function":"sendEmailToUser","class":"OCA\\Notifications\\MailNotifications","type":"->"},{"file":"/var/www/nextcloud/apps/notifications/lib/BackgroundJob/SendNotificationMails.php","line":33,"function":"sendEmails","class":"OCA\\Notifications\\MailNotifications","type":"->"},{"file":"/var/www/nextcloud/lib/public/BackgroundJob/Job.php","line":61,"function":"run","class":"OCA\\Notifications\\BackgroundJob\\SendNotificationMails","type":"->"},{"file":"/var/www/nextcloud/lib/public/BackgroundJob/TimedJob.php","line":88,"function":"start","class":"OCP\\BackgroundJob\\Job","type":"->"},{"file":"/var/www/nextcloud/lib/public/BackgroundJob/TimedJob.php","line":75,"function":"start","class":"OCP\\BackgroundJob\\TimedJob","type":"->"},{"file":"/var/www/nextcloud/cron.php","line":162,"function":"execute","class":"OCP\\BackgroundJob\\TimedJob","type":"->"}],"File":"/var/www/nextcloud/apps/secrets/lib/Notification/Notifier.php","Line":68,"message":"Error while running background job OCA\\Notifications\\BackgroundJob\\SendNotificationMails (id: 31111, arguments: null)","exception":[],"CustomMessage":"Error while running background job OCA\\Notifications\\BackgroundJob\\SendNotificationMails (id: 31111, arguments: null)"},"id":"676d6e2628e4f"}

Configuration

Nextcloud

The output of occ config:list system or similar is best, but, if not possible, the contents of your config.php file from /path/to/nextcloud is fine (make sure to remove any identifiable information!):

{
    "system": {
        "instanceid": "***REMOVED SENSITIVE VALUE***",
        "passwordsalt": "***REMOVED SENSITIVE VALUE***",
        "secret": "***REMOVED SENSITIVE VALUE***",
        "trusted_domains": [
            "cloud.kuegler.org"
        ],
        "datadirectory": "***REMOVED SENSITIVE VALUE***",
        "overwrite.cli.url": "https:\/\/cloud.kuegler.org",
        "dbtype": "mysql",
        "version": "30.0.4.1",
        "dbname": "***REMOVED SENSITIVE VALUE***",
        "dbhost": "***REMOVED SENSITIVE VALUE***",
        "dbtableprefix": "oc_",
        "dbuser": "***REMOVED SENSITIVE VALUE***",
        "dbpassword": "***REMOVED SENSITIVE VALUE***",
        "installed": true,
        "proxy": "10.0.40.132:3128",
        "mail_from_address": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpmode": "smtp",
        "mail_domain": "***REMOVED SENSITIVE VALUE***",
        "mail_smtphost": "***REMOVED SENSITIVE VALUE***",
        "forcessl": true,
        "forceSSLforSubdomains": true,
        "default_language": "de",
        "default_phone_region": "DE",
        "logtimezone": "Europe\/Berlin",
        "logfile": "\/var\/www\/nextcloud\/data\/nextcloud.log",
        "loglevel": 0,
        "log_rotate_size": 10485760,
        "theme": "",
        "memcache.local": "\\OC\\Memcache\\APCu",
        "filelocking.enabled": true,
        "memcache.locking": "\\OC\\Memcache\\Redis",
        "redis": {
            "host": "***REMOVED SENSITIVE VALUE***",
            "port": 0,
            "dbindex": 0,
            "timeout": 0
        },
        "trashbin_retention_obligation": "30",
        "updatechecker": false,
        "htaccess.RewriteBase": "\/",
        "filesystem_check_changes": 0,
        "mail_smtpport": "25",
        "mail_smtpsecure": "tls",
        "ldapIgnoreNamingRules": false,
        "ldapProviderFactory": "OCA\\User_LDAP\\LDAPProviderFactory",
        "mysql.utf8mb4": true,
        "app_install_overwrite": [
            "calendar",
            "bruteforcesettings",
            "files_automatedtagging",
            "files_retention"
        ],
        "maintenance": false,
        "maintenance_window_start": 1
    }
}

Apps

Enabled:

  • activity: 3.0.0
  • admin_audit: 1.20.0
  • app_api: 4.0.3
  • bruteforcesettings: 3.0.0
  • calendar: 5.0.8
  • circles: 30.0.0
  • cloud_federation_api: 1.13.0
  • comments: 1.20.1
  • contacts: 6.1.2
  • contactsinteraction: 1.11.0
  • dashboard: 7.10.0
  • dav: 1.31.1
  • drawio: 3.0.3
  • federatedfilesharing: 1.20.0
  • federation: 1.20.0
  • files: 2.2.0
  • files_automatedtagging: 1.20.0
  • files_downloadlimit: 3.0.0
  • files_external: 1.22.0
  • files_pdfviewer: 3.0.0
  • files_reminders: 1.3.0
  • files_retention: 1.19.0
  • files_sharing: 1.22.0
  • files_trashbin: 1.20.1
  • files_versions: 1.23.0
  • firstrunwizard: 3.0.0
  • logreader: 3.0.0
  • lookup_server_connector: 1.18.0
  • mail: 4.1.1
  • nextcloud_announcements: 2.0.0
  • notes: 4.11.0
  • notifications: 3.0.0
  • oauth2: 1.18.1
  • password_policy: 2.0.0
  • photos: 3.0.2
  • privacy: 2.0.0
  • provisioning_api: 1.20.0
  • recommendations: 3.0.0
  • related_resources: 1.5.0
  • secrets: 2.1.1
  • serverinfo: 2.0.0
  • settings: 1.13.0
  • sharebymail: 1.20.0
  • support: 2.0.0
  • survey_client: 2.0.0
  • systemtags: 1.20.0
  • tasks: 0.16.1
  • text: 4.1.0
  • theming: 2.5.0
  • twofactor_backupcodes: 1.19.0
  • twofactor_totp: 12.0.0-dev
  • updatenotification: 1.20.0
  • user_status: 1.10.0
  • viewer: 3.0.0
  • weather_status: 1.10.0
  • webhook_listeners: 1.1.0-dev
  • workflowengine: 2.12.0
    Disabled:
  • encryption: 2.18.0
  • suspicious_login: 8.0.0
  • twofactor_nextcloud_notification: 4.0.0 (installed 4.0.0)
  • user_ldap: 1.21.0 (installed 1.9.1)

Tips for increasing the likelihood of a response

  • Use the preformatted text formatting option in the editor for all log entries and configuration output.
  • If screenshots are useful, feel free to include them.
    • If possible, also include key error output in text form so it can be searched for.
  • Try to edit log output only minimally (if at all) so that it can be ran through analyzers / formatters by those trying to help you.

It’s coming from the app called secrets that you have installed:

        "class": "OCA\\Secrets\\Notification\\Notifier",