Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: QueryNotFoundException Could not resolve OCA\AppAPI\BackgroundJob\ProvidersAICleanUpJob! Class #481

Open
4 of 8 tasks
k-matti opened this issue Dec 31, 2024 · 3 comments
Labels
bug Something isn't working question Further information is requested

Comments

@k-matti
Copy link

k-matti commented Dec 31, 2024

⚠️ This issue respects the following points: ⚠️

Bug description

QueryNotFoundException Could not resolve OCA\AppAPI\BackgroundJob\ProvidersAICleanUpJob! Class "OCA\AppAPI\BackgroundJob\ProvidersAICleanUpJob" does not exist
failed to create instance of background job: OCA\AppAPI\BackgroundJob\ProvidersAICleanUpJob 

Steps to reproduce

  1. Remove AI app
  2. Restart server
  3. See error in log

Expected behavior

No error

Nextcloud Server version

30

Operating system

None

PHP engine version

None

Web server

None

Database engine version

None

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

None

Are you using the Nextcloud Server Encryption module?

None

What user-backends are you using?

  • Default user-backend (database)
  • LDAP/ Active Directory
  • SSO - SAML
  • Other

Configuration report

List of activated Apps

Nextcloud Signing status

Nextcloud Logs

Additional info

No response

@k-matti k-matti added the bug Something isn't working label Dec 31, 2024
@joshtrichards joshtrichards transferred this issue from nextcloud/server Dec 31, 2024
@joshtrichards
Copy link
Member

joshtrichards commented Dec 31, 2024

Hi @k-matti - That's expected behavior unless you're seeing that more than once. After disabling an app, if it hasn't already removed it's background jobs, they get removed at the next run:

https://github.com/nextcloud/server/blob/c5d16712399ba383a8e522d0dbf6c437441be133/lib/private/BackgroundJob/JobList.php#L294-L297

nextcloud/server#37937

EDIT: Will try to clean up the removal to eliminate the error message under normal conditions in nextcloud/server#50707

@MemQu
Copy link

MemQu commented Feb 6, 2025

Hi @k-matti - That's expected behavior unless you're seeing that more than once. After disabling an app, if it hasn't already removed it's background jobs, they get removed at the next run:

https://github.com/nextcloud/server/blob/c5d16712399ba383a8e522d0dbf6c437441be133/lib/private/BackgroundJob/JobList.php#L294-L297

nextcloud/server#37937

I have this warning that isn't going away for a similar error. (OCA\Talk\BackgroundJob\CheckTurnCertificate)

⚠️ Some jobs have not been executed since a month ago. Please consider increasing the execution frequency.

Is there a way to make it go away and see if the cron is being executed?

@joshtrichards
Copy link
Member

joshtrichards commented Feb 7, 2025

@MemQu Unrelated to this issue. The one here only occurs once right after disabling an app. I suggest posting your situation on the help forum and getting some help there troubleshooting whatever is going on in your environment: https://help.nextcloud.com

@joshtrichards joshtrichards added the question Further information is requested label Feb 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants