QueryNotFoundException over 50 times

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):
    • 29.0.13
  • Operating system and version (e.g., Ubuntu 24.04):
    • Debian 11
  • PHP version (e.g, 8.3):
    • 8.1.17
  • Is this the first time you’ve seen this error? (Yes / No):
    • no
  • When did this problem seem to first start?
    • Under Under NC 28

Summary of the issue you are facing:

Im getting multiple warnings (50 identical warnings with same timestamp) about cron.

[cron] Warnung: failed to create instance of background job: OCA\Photos\Jobs\MapMediaToPlaceJob
GET /cron.php
von – von – um 16.03.2025, 18:51:43

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

  1. Really dont know, sorry

Please post the full raw log entry (stack trace).

{“reqId”:“P9QO6MWvu6Y8N1KAxFgx”,“level”:2,“time”:“2025-03-16T17:51:43+00:00”,“remoteAddr”:“178.199.76.53”,“user”:“–”,“app”:“cron”,“method”:“GET”,“url”:“/cron.php”,“message”:“failed to create instance of background job: OCA\Photos\Jobs\MapMediaToPlaceJob”,“userAgent”:“Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/134.0.0.0 Safari/537.36”,“version”:“29.0.13.2”,“exception”:{“Exception”:“OC\AppFramework\Utility\QueryNotFoundException”,“Message”:“Could not resolve OCA\Photos\Jobs\MapMediaToPlaceJob! Class "OCA\Photos\Jobs\MapMediaToPlaceJob" does not exist”,“Code”:0,“Trace”:[{“file”:“/var/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php”,“line”:146,“function”:“resolve”,“class”:“OC\AppFramework\Utility\SimpleContainer”,“type”:“->”},{“file”:“/var/www/nextcloud/lib/private/ServerContainer.php”,“line”:173,“function”:“query”,“class”:“OC\AppFramework\Utility\SimpleContainer”,“type”:“->”},{“file”:“/var/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php”,“line”:64,“function”:“query”,“class”:“OC\ServerContainer”,“type”:“->”},{“file”:“/var/www/nextcloud/lib/public/Server.php”,“line”:55,“function”:“get”,“class”:“OC\AppFramework\Utility\SimpleContainer”,“type”:“->”},{“file”:“/var/www/nextcloud/lib/private/BackgroundJob/JobList.php”,“line”:304,“function”:“get”,“class”:“OCP\Server”,“type”:“::”},{“file”:“/var/www/nextcloud/lib/private/BackgroundJob/JobList.php”,“line”:213,“function”:“buildJob”,“class”:“OC\BackgroundJob\JobList”,“type”:“->”},{“file”:“/var/www/nextcloud/lib/private/BackgroundJob/JobList.php”,“line”:242,“function”:“getNext”,“class”:“OC\BackgroundJob\JobList”,“type”:“->”},{“file”:“/var/www/nextcloud/lib/private/BackgroundJob/JobList.php”,“line”:242,“function”:“getNext”,“class”:“OC\BackgroundJob\JobList”,“type”:“->”},{“file”:“/var/www/nextcloud/lib/private/BackgroundJob/JobList.php”,“line”:242,“function”:“getNext”,“class”:“OC\BackgroundJob\JobList”,“type”:“->”},{“file”:“/var/www/nextcloud/lib/private/BackgroundJob/JobList.php”,“line”:242,“function”:“getNext”,“class”:“OC\BackgroundJob\JobList”,“type”:“->”},{“file”:“/var/www/nextcloud/lib/private/BackgroundJob/JobList.php”,“line”:242,“function”:“getNext”,“class”:“OC\BackgroundJob\JobList”,“type”:“->”},{“file”:“/var/www/nextcloud/lib/private/BackgroundJob/JobList.php”,“line”:242,“function”:“getNext”,“class”:“OC\BackgroundJob\JobList”,“type”:“->”},{“file”:“/var/www/nextcloud/lib/private/BackgroundJob/JobList.php”,“line”:242,“function”:“getNext”,“class”:“OC\BackgroundJob\JobList”,“type”:“->”},{“file”:“/var/www/nextcloud/lib/private/BackgroundJob/JobList.php”,“line”:242,“function”:“getNext”,“class”:“OC\BackgroundJob\JobList”,“type”:“->”},{“file”:“/var/www/nextcloud/lib/private/BackgroundJob/JobList.php”,“line”:242,“function”:“getNext”,“class”:“OC\BackgroundJob\JobList”,“type”:“->”},{“file”:“/var/www/nextcloud/lib/private/BackgroundJob/JobList.php”,“line”:242,“function”:“getNext”,“class”:“OC\BackgroundJob\JobList”,“type”:“->”},{“file”:“/var/www/nextcloud/lib/private/BackgroundJob/JobList.php”,“line”:242,“function”:“getNext”,“class”:“OC\BackgroundJob\JobList”,“type”:“->”},{“file”:“/var/www/nextcloud/lib/private/BackgroundJob/JobList.php”,“line”:242,“function”:“getNext”,“class”:“OC\BackgroundJob\JobList”,“type”:“->”},{“file”:“/var/www/nextcloud/lib/private/BackgroundJob/JobList.php”,“line”:242,“function”:“getNext”,“class”:“OC\BackgroundJob\JobList”,“type”:“->”},{“file”:“/var/www/nextcloud/lib/private/BackgroundJob/JobList.php”,“line”:242,“function”:“getNext”,“class”:“OC\BackgroundJob\JobList”,“type”:“->”},{“file”:“/var/www/nextcloud/lib/private/BackgroundJob/JobList.php”,“line”:242,“function”:“getNext”,“class”:“OC\BackgroundJob\JobList”,“type”:“->”},{“file”:“/var/www/nextcloud/lib/private/BackgroundJob/JobList.php”,“line”:242,“function”:“getNext”,“class”:“OC\BackgroundJob\JobList”,“type”:“->”},{“file”:“/var/www/nextcloud/lib/private/BackgroundJob/JobList.php”,“line”:242,“function”:“getNext”,“class”:“OC\BackgroundJob\JobList”,“type”:“->”},{“file”:“/var/www/nextcloud/lib/private/BackgroundJob/JobList.php”,“line”:242,“function”:“getNext”,“class”:“OC\BackgroundJob\JobList”,“type”:“->”},{“file”:“/var/www/nextcloud/lib/private/BackgroundJob/JobList.php”,“line”:242,“function”:“getNext”,“class”:“OC\BackgroundJob\JobList”,“type”:“->”},{“file”:“/var/www/nextcloud/lib/private/BackgroundJob/JobList.php”,“line”:242,“function”:“getNext”,“class”:“OC\BackgroundJob\JobList”,“type”:“->”},{“file”:“/var/www/nextcloud/lib/private/BackgroundJob/JobList.php”,“line”:242,“function”:“getNext”,“class”:“OC\BackgroundJob\JobList”,“type”:“->”},{“file”:“/var/www/nextcloud/lib/private/BackgroundJob/JobList.php”,“line”:242,“function”:“getNext”,“class”:“OC\BackgroundJob\JobList”,“type”:“->”},{“file”:“/var/www/nextcloud/lib/private/BackgroundJob/JobList.php”,“line”:242,“function”:“getNext”,“class”:“OC\BackgroundJob\JobList”,“type”:“->”},{“file”:“/var/www/nextcloud/lib/private/BackgroundJob/JobList.php”,“line”:242,“function”:“getNext”,“class”:“OC\BackgroundJob\JobList”,“type”:“->”},{“file”:“/var/www/nextcloud/lib/private/BackgroundJob/JobList.php”,“line”:242,“function”:“getNext”,“class”:“OC\BackgroundJob\JobList”,“type”:“->”},{“file”:“/var/www/nextcloud/lib/private/BackgroundJob/JobList.php”,“line”:242,“function”:“getNext”,“class”:“OC\BackgroundJob\JobList”,“type”:“->”},{“file”:“/var/www/nextcloud/lib/private/BackgroundJob/JobList.php”,“line”:242,“function”:“getNext”,“class”:“OC\BackgroundJob\JobList”,“type”:“->”},{“file”:“/var/www/nextcloud/lib/private/BackgroundJob/JobList.php”,“line”:242,“function”:“getNext”,“class”:“OC\BackgroundJob\JobList”,“type”:“->”},{“file”:“/var/www/nextcloud/lib/private/BackgroundJob/JobList.php”,“line”:242,“function”:“getNext”,“class”:“OC\BackgroundJob\JobList”,“type”:“->”},{“file”:“/var/www/nextcloud/lib/private/BackgroundJob/JobList.php”,“line”:242,“function”:“getNext”,“class”:“OC\BackgroundJob\JobList”,“type”:“->”},{“file”:“/var/www/nextcloud/lib/private/BackgroundJob/JobList.php”,“line”:242,“function”:“getNext”,“class”:“OC\BackgroundJob\JobList”,“type”:“->”},{“file”:“/var/www/nextcloud/lib/private/BackgroundJob/JobList.php”,“line”:242,“function”:“getNext”,“class”:“OC\BackgroundJob\JobList”,“type”:“->”},{“file”:“/var/www/nextcloud/lib/private/BackgroundJob/JobList.php”,“line”:242,“function”:“getNext”,“class”:“OC\BackgroundJob\JobList”,“type”:“->”},{“file”:“/var/www/nextcloud/lib/private/BackgroundJob/JobList.php”,“line”:242,“function”:“getNext”,“class”:“OC\BackgroundJob\JobList”,“type”:“->”},{“file”:“/var/www/nextcloud/lib/private/BackgroundJob/JobList.php”,“line”:242,“function”:“getNext”,“class”:“OC\BackgroundJob\JobList”,“type”:“->”},{“file”:“/var/www/nextcloud/lib/private/BackgroundJob/JobList.php”,“line”:242,“function”:“getNext”,“class”:“OC\BackgroundJob\JobList”,“type”:“->”},{“file”:“/var/www/nextcloud/lib/private/BackgroundJob/JobList.php”,“line”:242,“function”:“getNext”,“class”:“OC\BackgroundJob\JobList”,“type”:“->”},{“file”:“/var/www/nextcloud/lib/private/BackgroundJob/JobList.php”,“line”:242,“function”:“getNext”,“class”:“OC\BackgroundJob\JobList”,“type”:“->”},{“file”:“/var/www/nextcloud/lib/private/BackgroundJob/JobList.php”,“line”:242,“function”:“getNext”,“class”:“OC\BackgroundJob\JobList”,“type”:“->”},{“file”:“/var/www/nextcloud/lib/private/BackgroundJob/JobList.php”,“line”:242,“function”:“getNext”,“class”:“OC\BackgroundJob\JobList”,“type”:“->”},{“file”:“/var/www/nextcloud/lib/private/BackgroundJob/JobList.php”,“line”:242,“function”:“getNext”,“class”:“OC\BackgroundJob\JobList”,“type”:“->”},{“file”:“/var/www/nextcloud/lib/private/BackgroundJob/JobList.php”,“line”:242,“function”:“getNext”,“class”:“OC\BackgroundJob\JobList”,“type”:“->”},{“file”:“/var/www/nextcloud/lib/private/BackgroundJob/JobList.php”,“line”:242,“function”:“getNext”,“class”:“OC\BackgroundJob\JobList”,“type”:“->”},{“file”:“/var/www/nextcloud/lib/private/BackgroundJob/JobList.php”,“line”:242,“function”:“getNext”,“class”:“OC\BackgroundJob\JobList”,“type”:“->”},{“file”:“/var/www/nextcloud/lib/private/BackgroundJob/JobList.php”,“line”:242,“function”:“getNext”,“class”:“OC\BackgroundJob\JobList”,“type”:“->”},{“file”:“/var/www/nextcloud/lib/private/BackgroundJob/JobList.php”,“line”:242,“function”:“getNext”,“class”:“OC\BackgroundJob\JobList”,“type”:“->”},{“file”:“/var/www/nextcloud/lib/private/BackgroundJob/JobList.php”,“line”:242,“function”:“getNext”,“class”:“OC\BackgroundJob\JobList”,“type”:“->”},{“file”:“/var/www/nextcloud/lib/private/BackgroundJob/JobList.php”,“line”:242,“function”:“getNext”,“class”:“OC\BackgroundJob\JobList”,“type”:“->”},{“file”:“/var/www/nextcloud/lib/private/BackgroundJob/JobList.php”,“line”:242,“function”:“getNext”,“class”:“OC\BackgroundJob\JobList”,“type”:“->”},{“file”:“/var/www/nextcloud/lib/private/BackgroundJob/JobList.php”,“line”:242,“function”:“getNext”,“class”:“OC\BackgroundJob\JobList”,“type”:“->”},{“file”:“/var/www/nextcloud/lib/private/BackgroundJob/JobList.php”,“line”:242,“function”:“getNext”,“class”:“OC\BackgroundJob\JobList”,“type”:“->”},{“file”:“/var/www/nextcloud/lib/private/BackgroundJob/JobList.php”,“line”:242,“function”:“getNext”,“class”:“OC\BackgroundJob\JobList”,“type”:“->”},{“file”:“/var/www/nextcloud/lib/private/BackgroundJob/JobList.php”,“line”:242,“function”:“getNext”,“class”:“OC\BackgroundJob\JobList”,“type”:“->”},{“file”:“/var/www/nextcloud/lib/private/BackgroundJob/JobList.php”,“line”:242,“function”:“getNext”,“class”:“OC\BackgroundJob\JobList”,“type”:“->”},{“file”:“/var/www/nextcloud/lib/private/BackgroundJob/JobList.php”,“line”:242,“function”:“getNext”,“class”:“OC\BackgroundJob\JobList”,“type”:“->”},{“file”:“/var/www/nextcloud/lib/private/BackgroundJob/JobList.php”,“line”:242,“function”:“getNext”,“class”:“OC\BackgroundJob\JobList”,“type”:“->”},{“file”:“/var/www/nextcloud/lib/private/BackgroundJob/JobList.php”,“line”:242,“function”:“getNext”,“class”:“OC\BackgroundJob\JobList”,“type”:“->”},{“file”:“/var/www/nextcloud/lib/private/BackgroundJob/JobList.php”,“line”:242,“function”:“getNext”,“class”:“OC\BackgroundJob\JobList”,“type”:“->”},{“file”:“/var/www/nextcloud/lib/private/BackgroundJob/JobList.php”,“line”:242,“function”:“getNext”,“class”:“OC\BackgroundJob\JobList”,“type”:“->”},{“file”:“/var/www/nextcloud/lib/private/BackgroundJob/JobList.php”,“line”:242,“function”:“getNext”,“class”:“OC\BackgroundJob\JobList”,“type”:“->”},{“file”:“/var/www/nextcloud/lib/private/BackgroundJob/JobList.php”,“line”:242,“function”:“getNext”,“class”:“OC\BackgroundJob\JobList”,“type”:“->”},{“file”:“/var/www/nextcloud/lib/private/BackgroundJob/JobList.php”,“line”:242,“function”:“getNext”,“class”:“OC\BackgroundJob\JobList”,“type”:“->”},{“file”:“/var/www/nextcloud/lib/private/BackgroundJob/JobList.php”,“line”:242,“function”:“getNext”,“class”:“OC\BackgroundJob\JobList”,“type”:“->”},{“file”:“/var/www/nextcloud/lib/private/BackgroundJob/JobList.php”,“line”:242,“function”:“getNext”,“class”:“OC\BackgroundJob\JobList”,“type”:“->”},{“file”:“/var/www/nextcloud/lib/private/BackgroundJob/JobList.php”,“line”:242,“function”:“getNext”,“class”:“OC\BackgroundJob\JobList”,“type”:“->”},{“file”:“/var/www/nextcloud/lib/private/BackgroundJob/JobList.php”,“line”:242,“function”:“getNext”,“class”:“OC\BackgroundJob\JobList”,“type”:“->”},{“file”:“/var/www/nextcloud/lib/private/BackgroundJob/JobList.php”,“line”:242,“function”:“getNext”,“class”:“OC\BackgroundJob\JobList”,“type”:“->”},{“file”:“/var/www/nextcloud/lib/private/BackgroundJob/JobList.php”,“line”:242,“function”:“getNext”,“class”:“OC\BackgroundJob\JobList”,“type”:“->”},{“file”:“/var/www/nextcloud/lib/private/BackgroundJob/JobList.php”,“line”:242,“function”:“getNext”,“class”:“OC\BackgroundJob\JobList”,“type”:“->”},{“file”:“/var/www/nextcloud/lib/private/BackgroundJob/JobList.php”,“line”:242,“function”:“getNext”,“class”:“OC\BackgroundJob\JobList”,“type”:“->”},{“file”:“/var/www/nextcloud/lib/private/BackgroundJob/JobList.php”,“line”:242,“function”:“getNext”,“class”:“OC\BackgroundJob\JobList”,“type”:“->”},{“file”:“/var/www/nextcloud/lib/private/BackgroundJob/JobList.php”,“line”:242,“function”:“getNext”,“class”:“OC\BackgroundJob\JobList”,“type”:“->”},{“file”:“/var/www/nextcloud/cron.php”,“line”:227,“function”:“getNext”,“class”:“OC\BackgroundJob\JobList”,“type”:“->”}],“File”:“/var/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php”,“Line”:135,“message”:“failed to create instance of background job: OCA\Photos\Jobs\MapMediaToPlaceJob”,“exception”:,“CustomMessage”:“failed to create instance of background job: OCA\Photos\Jobs\MapMediaToPlaceJob”},“id”:“67d82da232a7c”}

Sorry for the layout, if i put it in code it makes only one line

The MapMediaToPlaceJob class in the Photos app has not existed since v27 and background jobs that fail are typically automatically disabled.

I’m not sure why you’d be seeing that off-hand. I haven’t see other reports of it.

Anything unusual about the history of this installation?

Not that I know of, except that it started as v27. Everything is working fine. Its just the spamming in the logs. And thank you for trying to help me

Same problem here.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.