cloud-py-api / mediadc

Nextcloud Media Duplicate Collector application
https://apps.nextcloud.com/apps/mediadc
GNU Affero General Public License v3.0
95 stars 8 forks source link

Could not resolve service! Class "service" does not exist #97

Closed bonswouar closed 1 year ago

bonswouar commented 1 year ago

Describe the bug Can't access the task list nor mediadc settings

To Reproduce Steps to reproduce the behavior:

  1. Update to 0.3.1

Expected behavior Should work

Logs

{"reqId":"mhLo5JUqCM3zIbGYXYZP","level":3,"time":"2022-12-20T08:20:52+00:00","remoteAddr":"111.222.333.444","user":"bonswouar","app":"index","method":"GET","url":"/apps/mediadc/api/v1/settings","message":"Could not resolve cpaUtils! Class \"cpaUtils\" does not exist","userAgent":"Mozilla/5.0 (Windows NT 10.0; rv:107.0) Gecko/20100101 Firefox/107.0","version":"25.0.2.3","exception":{"Exception":"OCP\\AppFramework\\QueryException","Message":"Could not resolve cpaUtils! Class \"cpaUtils\" does not exist","Code":0,"Trace":[{"function":"OC\\AppFramework\\Utility\\{closure}","class":"OC\\AppFramework\\Utility\\SimpleContainer","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/media/storage/nextcloud/www/lib/private/AppFramework/Utility/SimpleContainer.php","line":108,"function":"array_map"},{"file":"/media/storage/nextcloud/www/lib/private/AppFramework/Utility/SimpleContainer.php","line":116,"function":"buildClass","class":"OC\\AppFramework\\Utility\\SimpleContainer","type":"->"},{"file":"/media/storage/nextcloud/www/lib/private/AppFramework/Utility/SimpleContainer.php","line":133,"function":"resolve","class":"OC\\AppFramework\\Utility\\SimpleContainer","type":"->"},{"file":"/media/storage/nextcloud/www/lib/private/AppFramework/DependencyInjection/DIContainer.php","line":465,"function":"query","class":"OC\\AppFramework\\Utility\\SimpleContainer","type":"->"},{"file":"/media/storage/nextcloud/www/lib/private/AppFramework/DependencyInjection/DIContainer.php","line":437,"function":"queryNoFallback","class":"OC\\AppFramework\\DependencyInjection\\DIContainer","type":"->"},{"file":"/media/storage/nextcloud/www/lib/private/AppFramework/App.php","line":159,"function":"query","class":"OC\\AppFramework\\DependencyInjection\\DIContainer","type":"->"},{"file":"/media/storage/nextcloud/www/lib/private/Route/Router.php","line":298,"function":"main","class":"OC\\AppFramework\\App","type":"::"},{"file":"/media/storage/nextcloud/www/lib/base.php","line":1047,"function":"match","class":"OC\\Route\\Router","type":"->"},{"file":"/media/storage/nextcloud/www/index.php","line":36,"function":"handleRequest","class":"OC","type":"::"}],"File":"/media/storage/nextcloud/www/lib/private/AppFramework/Utility/SimpleContainer.php","Line":102,"Previous":{"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":[{"file":"/media/storage/nextcloud/www/lib/private/AppFramework/Utility/SimpleContainer.php","line":133,"function":"resolve","class":"OC\\AppFramework\\Utility\\SimpleContainer","type":"->"},{"file":"/media/storage/nextcloud/www/lib/private/ServerContainer.php","line":161,"function":"query","class":"OC\\AppFramework\\Utility\\SimpleContainer","type":"->"},{"file":"/media/storage/nextcloud/www/lib/private/AppFramework/DependencyInjection/DIContainer.php","line":440,"function":"query","class":"OC\\ServerContainer","type":"->"},{"file":"/media/storage/nextcloud/www/lib/private/AppFramework/Utility/SimpleContainer.php","line":89,"function":"query","class":"OC\\AppFramework\\DependencyInjection\\DIContainer","type":"->"},{"function":"OC\\AppFramework\\Utility\\{closure}","class":"OC\\AppFramework\\Utility\\SimpleContainer","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/media/storage/nextcloud/www/lib/private/AppFramework/Utility/SimpleContainer.php","line":108,"function":"array_map"},{"file":"/media/storage/nextcloud/www/lib/private/AppFramework/Utility/SimpleContainer.php","line":116,"function":"buildClass","class":"OC\\AppFramework\\Utility\\SimpleContainer","type":"->"},{"file":"/media/storage/nextcloud/www/lib/private/AppFramework/Utility/SimpleContainer.php","line":133,"function":"resolve","class":"OC\\AppFramework\\Utility\\SimpleContainer","type":"->"},{"file":"/media/storage/nextcloud/www/lib/private/AppFramework/DependencyInjection/DIContainer.php","line":465,"function":"query","class":"OC\\AppFramework\\Utility\\SimpleContainer","type":"->"},{"file":"/media/storage/nextcloud/www/lib/private/AppFramework/DependencyInjection/DIContainer.php","line":437,"function":"queryNoFallback","class":"OC\\AppFramework\\DependencyInjection\\DIContainer","type":"->"},{"file":"/media/storage/nextcloud/www/lib/private/AppFramework/App.php","line":159,"function":"query","class":"OC\\AppFramework\\DependencyInjection\\DIContainer","type":"->"},{"file":"/media/storage/nextcloud/www/lib/private/Route/Router.php","line":298,"function":"main","class":"OC\\AppFramework\\App","type":"::"},{"file":"/media/storage/nextcloud/www/lib/base.php","line":1047,"function":"match","class":"OC\\Route\\Router","type":"->"},{"file":"/media/storage/nextcloud/www/index.php","line":36,"function":"handleRequest","class":"OC","type":"::"}],"File":"/media/storage/nextcloud/www/lib/private/AppFramework/Utility/SimpleContainer.php","Line":122},"CustomMessage":"--"}}

Desktop (please complete the following information):

Additional context Not 100% sure this is since the update, but it looks like it!

bigcat88 commented 1 year ago

@bonswouar did you install cloud_py_api app?

bonswouar commented 1 year ago

@bigcat88 I did not! Just noticed it in the readme, it's a new requirement as far as I understand? My bad!

bigcat88 commented 1 year ago

Please install it and tell me if the problem still persists or not.

bonswouar commented 1 year ago

After installing cloud_py_api task list seems to work, although MediaDC settings still show an error (500), and I can't find anything relevant in the logs

EDIT : Also I previously disabled mediadc & deleted mediadc settings and migrations in db in case that would fix my problem, I hope it didn't break anything (maintenance:repair didn't fix it either though)

bigcat88 commented 1 year ago

https://xxx/nextcloud/settings/admin/mediadc on this url you got an error? Can't reproduce this at the moment, for me all works. Need a guide how to get those error

bonswouar commented 1 year ago

My bad it's actually not a 500 error anymore, just this : image The problem might be that /apps/mediadc/api/v1/settings returns an empty response? I don't really know what to look for..

Also it seems that even if the task UI works, restarting tasks or creating a new one doesn't do anything.

bonswouar commented 1 year ago

Well, reinstalling completely mediadc fixed the problems Thanks for your help!