During Update 18.0.3 to 18.0.4 get those errors - Could not resolve operation! Class operation does not exist

…OCP\AppFramework\QueryException: Could not resolve operation! Class operation does not exist

The full error messages are:

[no app in context] Error: OCP\AppFramework\QueryException: Could not resolve operation! Class operation does not exist at <>

  1. /var/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php line 115
    OC\AppFramework\Utility\SimpleContainer->resolve(“operation”)
  2. /var/www/nextcloud/lib/private/ServerContainer.php line 150
    OC\AppFramework\Utility\SimpleContainer->query(“operation”, true)
  3. /var/www/nextcloud/lib/private/AppFramework/DependencyInjection/DIContainer.php line 389
    OC\ServerContainer->query(“operation”, true)
  4. /var/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php line 77
    OC\AppFramework\DependencyInjection\DIContainer->query(“operation”)
  5. /var/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php line 100
    OC\AppFramework\Utility\SimpleContainer->buildClass(ReflectionClass … "})
  6. /var/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php line 115
    OC\AppFramework\Utility\SimpleContainer->resolve(“OCA\FilesAutom … r”)
  7. /var/www/nextcloud/lib/private/AppFramework/DependencyInjection/DIContainer.php line 415
    OC\AppFramework\Utility\SimpleContainer->query(“OCA\FilesAutom … r”)
  8. /var/www/nextcloud/lib/private/AppFramework/DependencyInjection/DIContainer.php line 386
    OC\AppFramework\DependencyInjection\DIContainer->queryNoFallback(“OCA\FilesAutom … r”)
  9. /var/www/nextcloud/apps/files_automatedtagging/lib/AppInfo/Application.php line 43
    OC\AppFramework\DependencyInjection\DIContainer->query(“OCA\FilesAutom … r”)
  10. /var/www/nextcloud/apps/files_automatedtagging/appinfo/app.php line 23
    OCA\FilesAutomatedTagging\AppInfo\Application->registerHooksAndListeners()
  11. /var/www/nextcloud/lib/private/legacy/app.php line 266
    require_once("/var/www/nextcl … p")
  12. /var/www/nextcloud/lib/private/legacy/app.php line 155
    OC_App::requireAppFile(“files_automatedtagging”)
  13. /var/www/nextcloud/lib/private/Updater.php line 383
    OC_App::loadApp(“files_automatedtagging”)
  14. /var/www/nextcloud/lib/private/Updater.php line 255
    OC\Updater->doAppUpgrade()
  15. /var/www/nextcloud/lib/private/Updater.php line 131
    OC\Updater->doUpgrade(“18.0.4.2”, “18.0.3.0”)
  16. /var/www/nextcloud/core/Command/Upgrade.php line 257
    OC\Updater->upgrade()
  17. /var/www/nextcloud/3rdparty/symfony/console/Command/Command.php line 255
    OC\Core\Command\Upgrade->execute(Symfony\Componen … {}, Symfony\Componen … {})
  18. /var/www/nextcloud/3rdparty/symfony/console/Application.php line 915
    Symfony\Component\Console\Command\Command->run(Symfony\Componen … {}, Symfony\Componen … {})
  19. /var/www/nextcloud/3rdparty/symfony/console/Application.php line 272
    Symfony\Component\Console\Application->doRunCommand(OC\Core\Command\ … }}, Symfony\Componen … {}, Symfony\Componen … {})
  20. /var/www/nextcloud/3rdparty/symfony/console/Application.php line 148
    Symfony\Component\Console\Application->doRun(Symfony\Componen … {}, Symfony\Componen … {})
  21. /var/www/nextcloud/lib/private/Console/Application.php line 214
    Symfony\Component\Console\Application->run(Symfony\Componen … {}, Symfony\Componen … {})
  22. /var/www/nextcloud/console.php line 99
    OC\Console\Application->run()
  23. /var/www/nextcloud/occ line 11
    require_once("/var/www/nextcloud/console.php")

at 2020-04-24T06:45:39+02:100:

and

[no app in context] Error: OCP\AppFramework\QueryException: Could not resolve OCA\GroupFolders\Versions\VersionsBackend! Class OCA\GroupFolders\Versions\VersionsBackend does not exist at <>

  1. /var/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php line 115
    OC\AppFramework\Utility\SimpleContainer->resolve(“OCA\GroupFolde … d”)
  2. /var/www/nextcloud/lib/private/ServerContainer.php line 150
    OC\AppFramework\Utility\SimpleContainer->query(“OCA\GroupFolde … d”, true)
  3. /var/www/nextcloud/apps/files_versions/lib/AppInfo/Application.php line 123
    OC\ServerContainer->query(“OCA\GroupFolde … d”)
  4. /var/www/nextcloud/apps/files_versions/lib/AppInfo/Application.php line 104
    OCA\Files_Versions\AppInfo\Application->loadBackend({@attributes: {f … "})
  5. /var/www/nextcloud/apps/files_versions/lib/AppInfo/Application.php line 82
    OCA\Files_Versions\AppInfo\Application->registerVersionBackends()
  6. /var/www/nextcloud/lib/private/ServerContainer.php line 107
    OCA\Files_Versions\AppInfo\Application->__construct()
  7. /var/www/nextcloud/lib/private/ServerContainer.php line 133
    OC\ServerContainer->getAppContainer(“files_versions”, “Files_Versions”)
  8. /var/www/nextcloud/apps/files_versions/appinfo/app.php line 24
    OC\ServerContainer->query(“OCA\Files_Vers … n”)
  9. /var/www/nextcloud/lib/private/legacy/app.php line 266
    require_once("/var/www/nextcl … p")
  10. /var/www/nextcloud/lib/private/legacy/app.php line 155
    OC_App::requireAppFile(“files_versions”)
  11. /var/www/nextcloud/lib/private/Updater.php line 383
    OC_App::loadApp(“files_versions”)
  12. /var/www/nextcloud/lib/private/Updater.php line 255
    OC\Updater->doAppUpgrade()
  13. /var/www/nextcloud/lib/private/Updater.php line 131
    OC\Updater->doUpgrade(“18.0.4.2”, “18.0.3.0”)
  14. /var/www/nextcloud/core/Command/Upgrade.php line 257
    OC\Updater->upgrade()
  15. /var/www/nextcloud/3rdparty/symfony/console/Command/Command.php line 255
    OC\Core\Command\Upgrade->execute(Symfony\Componen … {}, Symfony\Componen … {})
  16. /var/www/nextcloud/3rdparty/symfony/console/Application.php line 915
    Symfony\Component\Console\Command\Command->run(Symfony\Componen … {}, Symfony\Componen … {})
  17. /var/www/nextcloud/3rdparty/symfony/console/Application.php line 272
    Symfony\Component\Console\Application->doRunCommand(OC\Core\Command\ … }}, Symfony\Componen … {}, Symfony\Componen … {})
  18. /var/www/nextcloud/3rdparty/symfony/console/Application.php line 148
    Symfony\Component\Console\Application->doRun(Symfony\Componen … {}, Symfony\Componen … {})
  19. /var/www/nextcloud/lib/private/Console/Application.php line 214
    Symfony\Component\Console\Application->run(Symfony\Componen … {}, Symfony\Componen … {})
  20. /var/www/nextcloud/console.php line 99
    OC\Console\Application->run()
  21. /var/www/nextcloud/occ line 11
    require_once("/var/www/nextcloud/console.php")

at 2020-04-24T06:45:39+02:00

I upgraded via Updater App in NC

after upgrade i let maintenance:mode --on because using the command line occ

i did

  1. sudo -u www-data php occ upgrade (check)
  2. sudo -u www-data php occ db:add-missing-indices (check)
  3. … occ db:convert-filecache-bigint (check)
  4. … occ maintenance:mimetype:update-db (check)
  5. … occ maintenance:mimetype:update-js (check)
  6. … occ maintenance:mode --off
  7. … occ maintenance:repair

all done! All green. No errors in command shell.

-> https://docs.nextcloud.com/server/15/admin_manual/configuration_server/occ_command.html#file-operations-label

1 Like

Hello @chrissi55

what were exactly the steps of upgrade until you get this error message?

e.g.

  1. How you made the Upgrades via App or Shell
  2. did you checke the following … e.g. Apps, Uploads File shares
  3. which Errors on Protocol? I see you have GroupFolders errors
  4. Actions to be taken to solve the issue
  5. Checks again

Sorry to ask you this, but before I make any update on NC I would like to know the issues, which may occur.

Many Thanks

Haydar

Hi @t-info

  1. i started the update from the webui updater in nextcloud (Update or Download)
    -> i’ve said “Update”
  2. the updater began to prepare the download and replaced the old files by the new files as it does regulary
  3. after finishing that automatic process the system ask to disable maintenance mode by webui to finish upgrade by webui or to let maintenance mode on to use the command shell
  4. from here i switched over to a opened ssh shell to my nextcloud server and logged in as superuser
  5. i finished the needed steps to finish the upgrade and to run the integrity file check e.g.
  6. all went good / green during commands in the shell
  7. my errors from the log you see above in my first post, that was all i’ve got
  8. Actions to be taken to solve the issue?? -> writing this post to the community forum, because i don’t understand what is wrong and what ihe Class “operation” is the system does not find because it does not exist (see error messages)

Yes i use one group folder. And today my nextcloud offers me an update to group_folders version 6.0.6
I made this update by using the webui app updater.

And yes i had problems with groups in combination with retention and trashbin files.
I’ve posted this to github incident tracker as well. But my post hasn’t been answered yet.
In the meanwhile we have seen many group_folders updates - so i’m not sure if the same problem still exists?! Yesterday i deleted some files in the only group folder i use with no resisting ghost files after that deletion.

Do you expect that the errors came from the group_folders function?

Hi and many thanks for the detailed Info,

as I can see from the blow log, I see some GroupFolder entries. Me too I’m not sure.
And indeed the Group folder trashbin is a pain in the butt.

I made a hard discussion with the developers, but the just ignore my comments and close my comment, which is very snob I guess. Since I even said any bad word or insult them in anyway. However I gave up discussing. I’m just watching the mess now

Rgds

Haydar