cloud-py-api / cloud_py_api

Nextcloud framework for developing apps using Python
https://apps.nextcloud.com/apps/cloud_py_api
GNU Affero General Public License v3.0
50 stars 7 forks source link

Unable to open the settings page #113

Open sprnza opened 1 year ago

sprnza commented 1 year ago

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):

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
tbarbette commented 6 months ago

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 commented 6 months ago

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

bigcat88 commented 6 months ago

see: https://github.com/cloud-py-api/mediadc/issues/67

tbarbette commented 6 months ago

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