nextcloud / nextcloud/deck

Error messages about missing clases after update from NC 29 -> 30

Open
#6,900 8 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug needs info
Dominant language
JavaScript
Stars
1.4k
Forks
354
Avg merge
1d 10h
Merged PRs (30d)
43

Description

Describe the bug
After the update many class not found errors are logged.

To Reproduce
Steps to reproduce the behavior:

  1. call the nc cron script on the console

Expected behavior
No errors about missing clases

Screenshots
None

Operating system: Rocky 9.5

Web server: Apache

Database: MariaDB

PHP version: 8.2

Nextcloud version: 30.0.9

Where did you install Nextcloud from:

Signing status:

No errors have been found.

List of activated apps:

 - activity: 3.0.0                                                                                                                                                                                                
  - admin_audit: 1.20.0                                                                                                                                                                                            
  - app_api: 4.0.6                                                                                                                                                                                                 
  - bruteforcesettings: 3.0.0                                                                                                                                                                                      
  - camerarawpreviews: 0.8.6                                                                                                                                                                                       
  - checksum: 1.2.6                                                                                                                                                                                                
  - circles: 30.0.0                                                                                                                                                                                                
  - cloud_federation_api: 1.13.0                                                                                                                                                                                   
  - comments: 1.20.1                                                                                                                                                                                               
  - contactsinteraction: 1.11.0                                                                                                                                                                                    
  - dav: 1.31.1                                                                                                                                                                                                    
  - dicomviewer: 2.3.1                                                                                                                                                                                             
  - drawio: 3.0.9                                                                                                                                                                                                  
  - federatedfilesharing: 1.20.0                                                                                                                                                                                   
  - files: 2.2.0                                                                                                                                                                                                   
  - files_downloadlimit: 3.0.0                                                                                                                                                                                     
  - files_pdfviewer: 3.0.0                                                                                                                                                                                         
  - files_reminders: 1.3.0                                                                                                                                                                                         
  - files_sharing: 1.22.0                                                                                                                                                                                          
  - lookup_server_connector: 1.18.0                                                                                                                                                                                
  - metadata: 0.22.0                                                                                                                                                                                               
  - nextcloud_announcements: 2.0.0
  - notifications: 3.0.0
  - oauth2: 1.18.1
  - password_policy: 2.0.0
  - photos: 3.0.2
  - piwik: 0.13.0
  - privacy: 2.0.0
  - provisioning_api: 1.20.0
  - quota_warning: 1.21.0
  - recommendations: 3.0.0
  - related_resources: 1.5.0
  - serverinfo: 2.0.0
  - settings: 1.13.0
  - sharebymail: 1.20.0
  - socialsharing_email: 3.3.0
  - survey_client: 2.0.0
  - systemtags: 1.20.0
  - tasks: 0.16.1
  - terms_of_service: 4.3.0
  - text: 4.1.0
  - theming: 2.6.0
  - twofactor_admin: 4.8.0
  - twofactor_backupcodes: 1.19.0
  - twofactor_reminder: 1.1.0
 - twofactor_totp: 12.0.0-dev
  - updatenotification: 1.20.0
  - user_status: 1.10.0
  - viewer: 3.0.0
  - webhook_listeners: 1.1.0-dev
  - workflowengine: 2.12.0

Nextcloud configuration:

{                                                                                                                                                                                                                  
    "system": {                                                                                                                                                                                                    
        "instanceid": "***REMOVED SENSITIVE VALUE***",                                                                                                                                                             
        "passwordsalt": "***REMOVED SENSITIVE VALUE***",                                                                                                                                                           
        "trusted_domains": [                                                                                                                                                                                       
            "XXXXXXX"
        ],
        "datadirectory": "***REMOVED SENSITIVE VALUE***",
        "dbtype": "mysql",
        "version": "30.0.9.2",
        "dbname": "***REMOVED SENSITIVE VALUE***",
        "dbhost": "***REMOVED SENSITIVE VALUE***",
        "dbtableprefix": "oc_",
        "dbuser": "***REMOVED SENSITIVE VALUE***",
        "dbpassword": "***REMOVED SENSITIVE VALUE***",
        "installed": true,
        "forcessl": true,
        "maxZipInputSize": 83886080,
        "allowZipDownload": true,
        "mail_smtpmode": "smtp",
        "mail_smtphost": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpport": "25",
        "mail_smtpsecure": "",
        "theme": "",
        "secret": "***REMOVED SENSITIVE VALUE***",
        "mail_domain": "***REMOVED SENSITIVE VALUE***",
        "mail_from_address": "***REMOVED SENSITIVE VALUE***",
        "forceSSLforSubdomains": true,
        "maintenance": false,
        "asset-pipeline.enabled": true,
        "updatechecker": true,
        "htaccess.RewriteBase": "\/",
        "mysql.utf8mb4": true,
        "overwrite.cli.url": "XXXXXXXX",
        "updater.release.channel": "stable",
        "app_install_overwrite": [
            "dicomviewer",
            "socialsharing_email",
            "piwik",
            "twofactor_reminder"
        ],
        "default_phone_region": "DE",
        "memcache.local": "\\OC\\Memcache\\APCu",
        "log_type": "syslog",
        "syslog_tag": "Nextcloud",
        "logfile": "",
        "loglevel": 1,
        "logtimezone": "Europe\/Berlin",
        "log_authfailip": true,
        "filelocking.enabled": true,
        "memcache.locking": "\\OC\\Memcache\\Redis", 
        "redis": {
            "host": "***REMOVED SENSITIVE VALUE***",
            "port": 0
        },
        "maintenance_window_start": 1
    }
}


Logs
Nextcloud log (data/nextcloud.log)
{"reqId":"fX8BwKYW3KW6iPonN2Np","level":2,"time":"2025-04-11T07:41:21+02:00","remoteAddr":"","user":"--","app":"cron","method":"","url":"--","message":"{\"Exception\":\"OC\\\\AppFramework\\\\Utility\\\\QueryNotFoundException\",\"Message\":\"Could not resolve OCA\\\\Deck\\\\Cron\\\\DeleteCron! Class \\\"OCA\\\\Deck\\\\Cron\\\\DeleteCron\\\" does not exist\",\"Code\":0,\"Trace\":[{\"file\":\"/var/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php\",\"line\":124,\"function\":\"resolve\",\"class\":\"OC\\\\AppFramework\\\\Utility\\\\SimpleContainer\",\"type\":\"->\"},{\"file\":\"/var/www/nextcloud/lib/private/ServerContainer.php\",\"line\":155,\"function\":\"query\",\"class\":\"OC\\\\AppFramework\\\\Utility\\\\SimpleContainer\",\"type\":\"->\"},{\"file\":\"/var/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php\",\"line\":42,\"function\":\"query\",\"class\":\"OC\\\\ServerContainer\",\"type\":\"->\"},{\"file\":\"/var/www/nextcloud/lib/public/Server.php\",\"line\":39,\"function\":\"get\",\"class\":\"OC\\\\AppFramework\\\\Utility\\\\SimpleContainer\",\"type\":\"->\"},{\"file\":\"/var/www/nextcloud/lib/private/BackgroundJob/JobList.php\",\"line\":288,\"function\":\"get\",\"class\":\"OCP\\\\Server\",\"type\":\"::\"},{\"file\":\"/var/www/nextcloud/lib/private/BackgroundJob/JobList.php\",\"line\":197,\"function\":\"buildJob\",\"class\":\"OC\\\\BackgroundJob\\\\JobList\",\"type\":\"->\"},{\"file\":\"/var/www/nextcloud/cron.php\",\"line\":148,\"function\":\"getNext\",\"class\":\"OC\\\\BackgroundJob\\\\JobList\",\"type\":\"->\"}],\"File\":\"/var/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php\",\"Line\":113,\"message\":\"failed to create instance of background job: OCA\\\\Deck\\\\Cron\\\\DeleteCron\",\"exception\":{},\"CustomMessage\":\"failed to create instance of background job: OCA\\\\Deck\\\\Cron\\\\DeleteCron\"}","userAgent":"--","version":"30.0.9.2"}
{"reqId":"fX8BwKYW3KW6iPonN2Np","level":2,"time":"2025-04-11T07:41:21+02:00","remoteAddr":"","user":"--","app":"cron","method":"","url":"--","message":"{\"Exception\":\"OC\\\\AppFramework\\\\Utility\\\\QueryNotFoundException\",\"Message\":\"Could not resolve OCA\\\\Deck\\\\Cron\\\\ScheduledNotifications! Class \\\"OCA\\\\Deck\\\\Cron\\\\ScheduledNotifications\\\" does not exist\",\"Code\":0,\"Trace\":[{\"file\":\"/var/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php\",\"line\":124,\"function\":\"resolve\",\"class\":\"OC\\\\AppFramework\\\\Utility\\\\SimpleContainer\",\"type\":\"->\"},{\"file\":\"/var/www/nextcloud/lib/private/ServerContainer.php\",\"line\":155,\"function\":\"query\",\"class\":\"OC\\\\AppFramework\\\\Utility\\\\SimpleContainer\",\"type\":\"->\"},{\"file\":\"/var/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php\",\"line\":42,\"function\":\"query\",\"class\":\"OC\\\\ServerContainer\",\"type\":\"->\"},{\"file\":\"/var/www/nextcloud/lib/public/Server.php\",\"line\":39,\"function\":\"get\",\"class\":\"OC\\\\AppFramework\\\\Utility\\\\SimpleContainer\",\"type\":\"->\"},{\"file\":\"/var/www/nextcloud/lib/private/BackgroundJob/JobList.php\",\"line\":288,\"function\":\"get\",\"class\":\"OCP\\\\Server\",\"type\":\"::\"},{\"file\":\"/var/www/nextcloud/lib/private/BackgroundJob/JobList.php\",\"line\":197,\"function\":\"buildJob\",\"class\":\"OC\\\\BackgroundJob\\\\JobList\",\"type\":\"->\"},{\"file\":\"/var/www/nextcloud/lib/private/BackgroundJob/JobList.php\",\"line\":226,\"function\":\"getNext\",\"class\":\"OC\\\\BackgroundJob\\\\JobList\",\"type\":\"->\"},{\"file\":\"/var/www/nextcloud/cron.php\",\"line\":148,\"function\":\"getNext\",\"class\":\"OC\\\\BackgroundJob\\\\JobList\",\"type\":\"->\"}],\"File\":\"/var/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php\",\"Line\":113,\"message\":\"failed to create instance of background job: OCA\\\\Deck\\\\Cron\\\\ScheduledNotifications\",\"exception\":{},\"CustomMessage\":\"failed to create instance of background job: OCA\\\\Deck\\\\Cron\\\\ScheduledNotifications\"}","userAgent":"--","version":"30.0.9.2"}
{"reqId":"fX8BwKYW3KW6iPonN2Np","level":2,"time":"2025-04-11T07:41:21+02:00","remoteAddr":"","user":"--","app":"cron","method":"","url":"--","message":"{\"Exception\":\"OC\\\\AppFramework\\\\Utility\\\\QueryNotFoundException\",\"Message\":\"Could not resolve OCA\\\\Deck\\\\Cron\\\\CardDescriptionActivity! Class \\\"OCA\\\\Deck\\\\Cron\\\\CardDescriptionActivity\\\" does not exist\",\"Code\":0,\"Trace\":[{\"file\":\"/var/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php\",\"line\":124,\"function\":\"resolve\",\"class\":\"OC\\\\AppFramework\\\\Utility\\\\SimpleContainer\",\"type\":\"->\"},{\"file\":\"/var/www/nextcloud/lib/private/ServerContainer.php\",\"line\":155,\"function\":\"query\",\"class\":\"OC\\\\AppFramework\\\\Utility\\\\SimpleContainer\",\"type\":\"->\"},{\"file\":\"/var/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php\",\"line\":42,\"function\":\"query\",\"class\":\"OC\\\\ServerContainer\",\"type\":\"->\"},{\"file\":\"/var/www/nextcloud/lib/public/Server.php\",\"line\":39,\"function\":\"get\",\"class\":\"OC\\\\AppFramework\\\\Utility\\\\SimpleContainer\",\"type\":\"->\"},{\"file\":\"/var/www/nextcloud/lib/private/BackgroundJob/JobList.php\",\"line\":288,\"function\":\"get\",\"class\":\"OCP\\\\Server\",\"type\":\"::\"},{\"file\":\"/var/www/nextcloud/lib/private/BackgroundJob/JobList.php\",\"line\":197,\"function\":\"buildJob\",\"class\":\"OC\\\\BackgroundJob\\\\JobList\",\"type\":\"->\"},{\"file\":\"/var/www/nextcloud/lib/private/BackgroundJob/JobList.php\",\"line\":226,\"function\":\"getNext\",\"class\":\"OC\\\\BackgroundJob\\\\JobList\",\"type\":\"->\"},{\"file\":\"/var/www/nextcloud/lib/private/BackgroundJob/JobList.php\",\"line\":226,\"function\":\"getNext\",\"class\":\"OC\\\\BackgroundJob\\\\JobList\",\"type\":\"->\"},{\"file\":\"/var/www/nextcloud/cron.php\",\"line\":148,\"function\":\"getNext\",\"class\":\"OC\\\\BackgroundJob\\\\JobList\",\"type\":\"->\"}],\"File\":\"/var/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php\",\"Line\":113,\"message\":\"failed to create instance of background job: OCA\\\\Deck\\\\Cron\\\\CardDescriptionActivity\",\"exception\":{},\"CustomMessage\":\"failed to create instance of background job: OCA\\\\Deck\\\\Cron\\\\CardDescriptionActivity\"}","userAgent":"--","version":"30.0.9.2"}
{"reqId":"fX8BwKYW3KW6iPonN2Np","level":2,"time":"2025-04-11T07:41:21+02:00","remoteAddr":"","user":"--","app":"cron","method":"","url":"--","message":"{\"Exception\":\"OC\\\\AppFramework\\\\Utility\\\\QueryNotFoundException\",\"Message\":\"Could not resolve OCA\\\\Deck\\\\Cron\\\\SessionsCleanup! Class \\\"OCA\\\\Deck\\\\Cron\\\\SessionsCleanup\\\" does not exist\",\"Code\":0,\"Trace\":[{\"file\":\"/var/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php\",\"line\":124,\"function\":\"resolve\",\"class\":\"OC\\\\AppFramework\\\\Utility\\\\SimpleContainer\",\"type\":\"->\"},{\"file\":\"/var/www/nextcloud/lib/private/ServerContainer.php\",\"line\":155,\"function\":\"query\",\"class\":\"OC\\\\AppFramework\\\\Utility\\\\SimpleContainer\",\"type\":\"->\"},{\"file\":\"/var/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php\",\"line\":42,\"function\":\"query\",\"class\":\"OC\\\\ServerContainer\",\"type\":\"->\"},{\"file\":\"/var/www/nextcloud/lib/public/Server.php\",\"line\":39,\"function\":\"get\",\"class\":\"OC\\\\AppFramework\\\\Utility\\\\SimpleContainer\",\"type\":\"->\"},{\"file\":\"/var/www/nextcloud/lib/private/BackgroundJob/JobList.php\",\"line\":288,\"function\":\"get\",\"class\":\"OCP\\\\Server\",\"type\":\"::\"},{\"file\":\"/var/www/nextcloud/lib/private/BackgroundJob/JobList.php\",\"line\":197,\"function\":\"buildJob\",\"class\":\"OC\\\\BackgroundJob\\\\JobList\",\"type\":\"->\"},{\"file\":\"/var/www/nextcloud/lib/private/BackgroundJob/JobList.php\",\"line\":226,\"function\":\"getNext\",\"class\":\"OC\\\\BackgroundJob\\\\JobList\",\"type\":\"->\"},{\"file\":\"/var/www/nextcloud/lib/private/BackgroundJob/JobList.php\",\"line\":226,\"function\":\"getNext\",\"class\":\"OC\\\\BackgroundJob\\\\JobList\",\"type\":\"->\"},{\"file\":\"/var/www/nextcloud/lib/private/BackgroundJob/JobList.php\",\"line\":226,\"function\":\"getNext\",\"class\":\"OC\\\\BackgroundJob\\\\JobList\",\"type\":\"->\"},{\"file\":\"/var/www/nextcloud/cron.php\",\"line\":148,\"function\":\"getNext\",\"class\":\"OC\\\\BackgroundJob\\\\JobList\",\"type\":\"->\"}],\"File\":\"/var/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php\",\"Line\":113,\"message\":\"failed to create instance of background job: OCA\\\\Deck\\\\Cron\\\\SessionsCleanup\",\"exception\":{},\"CustomMessage\":\"failed to create instance of background job: OCA\\\\Deck\\\\Cron\\\\SessionsCleanup\"}","userAgent":"--","version":"30.0.9.2"}

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at cron.php and follow the background-job path through lib/private/BackgroundJob/JobList.php and lib/private/AppFramework/Utility/SimpleContainer.php. Use the reported OCA\Deck\Cron missing classes and the Nextcloud log as the reproduction evidence; done means the cron run no longer logs class-not-found errors after the upgrade.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
backend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.