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

Could not resolve OCA\Cloud_Py_API\Service\PythonService! #171

Open
bernhardsteindl opened this issue Jun 19, 2023 · 2 comments
Open

Could not resolve OCA\Cloud_Py_API\Service\PythonService! #171

bernhardsteindl opened this issue Jun 19, 2023 · 2 comments
Labels
bug Something isn't working

Comments

@bernhardsteindl
Copy link

bernhardsteindl commented Jun 19, 2023

Describe the bug
I can't use MediaDC right now, it looks like there is a bug somewhere. I'm using an ARM64-CPU, if this helps someone.

To Reproduce
Steps to reproduce the behavior:

  1. Go to 'Dashboard'
  2. Click on 'MediaDC-App'

Expected behavior
App should start and work

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS Ubuntu Server 22.04
  • CPU ARM
  • Nextcloud version 26.0.1
  • Database configuration 8.0.33
  • Python version 3.10.6
  • MediaDC version 0.3.5
  • cloud_py_api version 0.1.7

Error log

[index] Fehler: OCP\AppFramework\QueryException: Could not resolve OCA\Cloud_Py_API\Service\PythonService! Class "OCA\Cloud_Py_API\Service\PythonService" does not exist at <<closure>>

0. <<closure>>
   OC\AppFramework\Utility\SimpleContainer->OC\AppFramework\Utility\{closure}("*** sensitive parameters replaced ***")
1. /var/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php line 116
   array_map()
2. /var/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php line 124
   OC\AppFramework\Utility\SimpleContainer->buildClass()
3. /var/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php line 142
   OC\AppFramework\Utility\SimpleContainer->resolve()
4. /var/www/nextcloud/lib/private/AppFramework/DependencyInjection/DIContainer.php line 493
   OC\AppFramework\Utility\SimpleContainer->query()
5. /var/www/nextcloud/lib/private/AppFramework/DependencyInjection/DIContainer.php line 465
   OC\AppFramework\DependencyInjection\DIContainer->queryNoFallback()
6. /var/www/nextcloud/lib/private/AppFramework/App.php line 162
   OC\AppFramework\DependencyInjection\DIContainer->query()
7. /var/www/nextcloud/lib/private/Route/Router.php line 315
   OC\AppFramework\App::main()
8. /var/www/nextcloud/lib/base.php line 1056
   OC\Route\Router->match()
9. /var/www/nextcloud/index.php line 36
   OC::handleRequest()

Caused by:

OCP\AppFramework\QueryException: Could not resolve OCA\Cloud_Py_API\Service\PythonService! Class "OCA\Cloud_Py_API\Service\PythonService" does not exist at <<closure>>

 0. <<closure>>
    OC\AppFramework\Utility\SimpleContainer->OC\AppFramework\Utility\{closure}("*** sensitive parameters replaced ***")
 1. /var/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php line 116
    array_map()
 2. /var/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php line 124
    OC\AppFramework\Utility\SimpleContainer->buildClass()
 3. /var/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php line 142
    OC\AppFramework\Utility\SimpleContainer->resolve()
 4. /var/www/nextcloud/lib/private/AppFramework/DependencyInjection/DIContainer.php line 493
    OC\AppFramework\Utility\SimpleContainer->query()
 5. /var/www/nextcloud/lib/private/AppFramework/DependencyInjection/DIContainer.php line 465
    OC\AppFramework\DependencyInjection\DIContainer->queryNoFallback()
 6. /var/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php line 97
    OC\AppFramework\DependencyInjection\DIContainer->query()
 7. <<closure>>
    OC\AppFramework\Utility\SimpleContainer->OC\AppFramework\Utility\{closure}("*** sensitive parameters replaced ***")
 8. /var/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php line 116
    array_map()
 9. /var/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php line 124
    OC\AppFramework\Utility\SimpleContainer->buildClass()
10. /var/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php line 142
    OC\AppFramework\Utility\SimpleContainer->resolve()
11. /var/www/nextcloud/lib/private/AppFramework/DependencyInjection/DIContainer.php line 493
    OC\AppFramework\Utility\SimpleContainer->query()
12. /var/www/nextcloud/lib/private/AppFramework/DependencyInjection/DIContainer.php line 465
    OC\AppFramework\DependencyInjection\DIContainer->queryNoFallback()
13. /var/www/nextcloud/lib/private/AppFramework/App.php line 162
    OC\AppFramework\DependencyInjection\DIContainer->query()
14. /var/www/nextcloud/lib/private/Route/Router.php line 315
    OC\AppFramework\App::main()
15. /var/www/nextcloud/lib/base.php line 1056
    OC\Route\Router->match()
16. /var/www/nextcloud/index.php line 36
    OC::handleRequest()

Caused by:

OC\AppFramework\Utility\QueryNotFoundException: Could not resolve OCA\Cloud_Py_API\Service\PythonService! Class "OCA\Cloud_Py_API\Service\PythonService" does not exist at <<closure>>

 0. /var/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php line 142
    OC\AppFramework\Utility\SimpleContainer->resolve()
 1. /var/www/nextcloud/lib/private/ServerContainer.php line 171
    OC\AppFramework\Utility\SimpleContainer->query()
 2. /var/www/nextcloud/lib/private/AppFramework/DependencyInjection/DIContainer.php line 468
    OC\ServerContainer->query()
 3. /var/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php line 97
    OC\AppFramework\DependencyInjection\DIContainer->query()
 4. <<closure>>
    OC\AppFramework\Utility\SimpleContainer->OC\AppFramework\Utility\{closure}("*** sensitive parameters replaced ***")
 5. /var/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php line 116
    array_map()
 6. /var/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php line 124
    OC\AppFramework\Utility\SimpleContainer->buildClass()
 7. /var/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php line 142
    OC\AppFramework\Utility\SimpleContainer->resolve()
 8. /var/www/nextcloud/lib/private/AppFramework/DependencyInjection/DIContainer.php line 493
    OC\AppFramework\Utility\SimpleContainer->query()
 9. /var/www/nextcloud/lib/private/AppFramework/DependencyInjection/DIContainer.php line 465
    OC\AppFramework\DependencyInjection\DIContainer->queryNoFallback()
10. /var/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php line 97
    OC\AppFramework\DependencyInjection\DIContainer->query()
11. <<closure>>
    OC\AppFramework\Utility\SimpleContainer->OC\AppFramework\Utility\{closure}("*** sensitive parameters replaced ***")
12. /var/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php line 116
    array_map()
13. /var/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php line 124
    OC\AppFramework\Utility\SimpleContainer->buildClass()
14. /var/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php line 142
    OC\AppFramework\Utility\SimpleContainer->resolve()
15. /var/www/nextcloud/lib/private/AppFramework/DependencyInjection/DIContainer.php line 493
    OC\AppFramework\Utility\SimpleContainer->query()
16. /var/www/nextcloud/lib/private/AppFramework/DependencyInjection/DIContainer.php line 465
    OC\AppFramework\DependencyInjection\DIContainer->queryNoFallback()
17. /var/www/nextcloud/lib/private/AppFramework/App.php line 162
    OC\AppFramework\DependencyInjection\DIContainer->query()
18. /var/www/nextcloud/lib/private/Route/Router.php line 315
    OC\AppFramework\App::main()
19. /var/www/nextcloud/lib/base.php line 1056
    OC\Route\Router->match()
20. /var/www/nextcloud/index.php line 36
    OC::handleRequest()

GET /apps/mediadc/
@andrey18106 andrey18106 added the bug Something isn't working label Jun 25, 2023
@rumexcrisp
Copy link

rumexcrisp commented Jul 5, 2023

I'm experiencing the exact same issue. At least for me this issue seems to be related to an issue in cloud_py_api as I can't install the cloud_py_api helper library because of linked error.
Im on Nextcloud 27.0.0 inside a docker from linuxserver-team.

EDIT: Am i maybe missing something?

@rumexcrisp
Copy link

Seems like i resolved the error. I did the following steps:

  1. Linuxserver-team provides mods with their docker containers. Install mediadc mod by adding docker variable DOCKER_MODS with value linuxserver/mods:nextcloud-mediadc, e.g.: docker run -eDOCKER_MODS="linuxserver/mods:nextcloud-mediadc"
  2. Install cloud_py_api and mediadc app from nextcloud appstore.
  3. I got an error specifying that the DB table oc_cloud_py_api was not found. This error came from another wrong setting inside oc_appconfig, i guess due to a migration error during a previous update (not sure how this works exactly).
  4. Delete the apps, not just deactivating.
  5. On your own risk and with a complete db backup: Delete entries relating to your problem-app, e.g. for cloud_py_api the keys enabled, installed_version and types.
  6. Continue from step 2. I had to redo steps 2-5 for mediadc as well.

Hope someone will find this helpful as it helped me get this sorted.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants