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

Unable to open the settings page #113

Open
sprnza opened this issue Apr 22, 2023 · 4 comments
Open

Unable to open the settings page #113

sprnza opened this issue Apr 22, 2023 · 4 comments
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@sprnza
Copy link

sprnza commented Apr 22, 2023

Describe the bug
Unable to open settings page after fresh install

To Reproduce
Steps to reproduce the behavior:

  1. Install the app
  2. Go to Administrative settings
  3. Go to Cloud Python API

Expected behavior
The settings page opened

Desktop (please complete the following information):

  • Debian based docker container
  • x86
  • Nextcloud version 26.0.1
  • Database configuration Postgres 10.4
  • app version, that using cloud_py_api
  • cloud_py_api version 0.1.7
  • cloud_py_api config and admin settings (can be obtained in bug report admin settings section) clicking "Collect system info" does nothing

Additional context
Logs

{"reqId":"rJ0XBmqRv17bfstKEIRx","level":3,"time":"2023-04-22T16:28:52+00:00","remoteAddr":"158.181.193.51","user":"Speranskiy","app":"index","method":"GET","url":"/apps/cloud_py_api/api/v1/settings","message":"Could not resolve OCA\\Cloud_Py_API\\Service\\UtilsService! Class \"OCA\\Cloud_Py_API\\Service\\UtilsService\" does not exist","userAgent":"Mozilla/5.0 (X11;
Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) QtWebEngine/5.15.9 Chrome/87.0.4280.144 Safari/537.36","version":"26.0.1.1","exception":{"Exception":"OCP\\AppFramework\\QueryException","Message":"Could not resolve OCA\\Cloud_Py_API\\Service\\UtilsService! Class \"OCA\\Cloud_Py_API\\Service\\UtilsService\" does not exist","Code":0,"Trace":[{"function":"OC\\AppFramework\\Utility\\{closure}","class":"OC\\AppFramework\\Utility\\SimpleContainer","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/html/lib/private/AppFramework/Utility/SimpleContainer.php","line":116,"function":"array_map","args":[["Closure"],[["ReflectionParameter","request"],["ReflectionParameter","service"],"*** sensitive parameters replaced ***"]]},{"file":"/var/www/html/lib/private/AppFramework/Utility/SimpleContainer.php","line":124,"function":"buildClass","class":"OC\\AppFramework\\Utility\\SimpleContainer","type":"->","args":[["ReflectionClass","OCA\\Cloud_Py_API\\Controller\\SettingsController"]]},{"file":"/var/www/html/lib/private/AppFramework/Utility/SimpleContainer.php","line":142,"function":"resolve","class":"OC\\AppFramework\\Utility\\SimpleContainer","type":"->","args":["OCA\\Cloud_Py_API\\Controller\\SettingsController"]},{"file":"/var/www/html/lib/private/AppFramework/DependencyInjection/DIContainer.php","line":493,"function":"query","class":"OC\\AppFramework\\Utility\\SimpleContainer","type":"->","args":["OCA\\Cloud_Py_API\\Controller\\SettingsController"]},{"file":"/var/www/html/lib/private/AppFramework/DependencyInjection/DIContainer.php","line":465,"function":"queryNoFallback","class":"OC\\AppFramework\\DependencyInjection\\DIContainer","type":"->","args":["OCA\\Cloud_Py_API\\Controller\\SettingsController"]},{"file":"/var/www/html/lib/private/AppFramework/App.php","line":162,"function":"query","class":"OC\\AppFramework\\DependencyInjection\\DIContainer","type":"->","args":["OCA\\Cloud_Py_API\\Controller\\SettingsController"]},{"file":"/var/www/html/lib/private/Route/Router.php","line":315,"function":"main","class":"OC\\AppFramework\\App","type":"::","args":["OCA\\Cloud_Py_API\\Controller\\SettingsController","index",["OC\\AppFramework\\DependencyInjection\\DIContainer"],["cloud_py_api.settings.index"]]},{"file":"/var/www/html/lib/base.php","line":1056,"function":"match","class":"OC\\Route\\Router","type":"->","args":["/apps/cloud_py_api/api/v1/settings"]},{"file":"/var/www/html/index.php","line":36,"function":"handleRequest","class":"OC","type":"::","args":[]}],"File":"/var/www/html/lib/private/AppFramework/Utility/SimpleContainer.php","Line":110,"Previous":{"Exception":"OC\\AppFramework\\Utility\\QueryNotFoundException","Message":"Could not resolve OCA\\Cloud_Py_API\\Service\\UtilsService! Class
\"OCA\\Cloud_Py_API\\Service\\UtilsService\" does not exist","Code":0,"Trace":[{"file":"/var/www/html/lib/private/AppFramework/Utility/SimpleContainer.php","line":142,"function":"resolve","class":"OC\\AppFramework\\Utility\\SimpleContainer","type":"->","args":["OCA\\Cloud_Py_API\\Service\\UtilsService"]},{"file":"/var/www/html/lib/private/AppFramework/DependencyInjection/DIContainer.php","line":493,"function":"query","class":"OC\\AppFramework\\Utility\\SimpleContainer","type":"->","args":["OCA\\Cloud_Py_API\\Service\\UtilsService"]},{"file":"/var/www/html/lib/private/AppFramework/DependencyInjection/DIContainer.php","line":465,"function":"queryNoFallback","class":"OC\\AppFramework\\DependencyInjection\\DIContainer","type":"->","args":["OCA\\Cloud_Py_API\\Service\\UtilsService"]},{"file":"/var/www/html/lib/private/AppFramework/Utility/SimpleContainer.php","line":97,"function":"query","class":"OC\\AppFramework\\DependencyInjection\\DIContainer","type":"->","args":["OCA\\Cloud_Py_API\\Service\\UtilsService",true]},{"function":"OC\\AppFramework\\Utility\\{closure}","class":"OC\\AppFramework\\Utility\\SimpleContainer","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/html/lib/private/AppFramework/Utility/SimpleContainer.php","line":116,"function":"array_map","args":[["Closure"],[["ReflectionParameter","request"],["ReflectionParameter","service"],"*** sensitive parameters replaced ***"]]},{"file":"/var/www/html/lib/private/AppFramework/Utility/SimpleContainer.php","line":124,"function":"buildClass","class":"OC\\AppFramework\\Utility\\SimpleContainer","type":"->","args":[["ReflectionClass","OCA\\Cloud_Py_API\\Controller\\SettingsController"]]},{"file":"/var/www/html/lib/private/AppFramework/Utility/SimpleContainer.php","line":142,"function":"resolve","class":"OC\\AppFramework\\Utility\\SimpleContainer","type":"->","args":["OCA\\Cloud_Py_API\\Controller\\SettingsController"]},{"file":"/var/www/html/lib/private/AppFramework/DependencyInjection/DIContainer.php","line":493,"function":"query","class":"OC\\AppFramework\\Utility\\SimpleContainer","type":"->","args":["OCA\\Cloud_Py_API\\Controller\\SettingsController"]},{"file":"/var/www/html/lib/private/AppFramework/DependencyInjection/DIContainer.php","line":465,"function":"queryNoFallback","class":"OC\\AppFramework\\DependencyInjection\\DIContainer","type":"->","args":["OCA\\Cloud_Py_API\\Controller\\SettingsController"]},{"file":"/var/www/html/lib/private/AppFramework/App.php","line":162,"function":"query","class":"OC\\AppFramework\\DependencyInjection\\DIContainer","type":"->","args":["OCA\\Cloud_Py_API\\Controller\\SettingsController"]},{"file":"/var/www/html/lib/private/Route/Router.php","line":315,"function":"main","class":"OC\\AppFramework\\App","type":"::","args":["OCA\\Cloud_Py_API\\Controller\\SettingsController","index",["OC\\AppFramework\\DependencyInjection\\DIContainer"],["cloud_py_api.settings.index"]]},{"file":"/var/www/html/lib/base.php","line":1056,"function":"match","class":"OC\\Route\\Router","type":"->","args":["/apps/cloud_py_api/api/v1/settings"]},{"file":"/var/www/html/index.php","line":36,"function":"handleRequest","class":"OC","type":"::","args":[]}],"File":"/var/www/html/lib/private/AppFramework/Utility/SimpleContainer.php","Line":131},"CustomMessage":"--"}}
^C
@andrey18106 andrey18106 added bug Something isn't working help wanted Extra attention is needed labels Apr 22, 2023
@tbarbette
Copy link

I think I have the same error.

Here's the settings page I get :
image

Clicking on "Get system info" does nothing, I see it actually makes an HTTP request that gives an error 500.

@tbarbette
Copy link

I saw these errors in the logs :
OCP\AppFramework\QueryException: Could not resolve OCA\ServerInfo\DatabaseStatistics! Class "OCA\ServerInfo\DatabaseStatistics" does not exist

@bigcat88
Copy link
Collaborator

bigcat88 commented Mar 8, 2024

see: cloud-py-api/mediadc#67

@tbarbette
Copy link

Indeed, the serverinfo page was disabled. It was my mistake (not sure for OP).

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

No branches or pull requests

4 participants