owncloud / music

:notes: Music app for ownCloud
GNU Affero General Public License v3.0
571 stars 199 forks source link

After update to 2.0.0 - Nextcloud 29.0.2 don't work #1152

Closed Dimmiuss closed 5 months ago

Dimmiuss commented 5 months ago

Nextcloud: 29.0.2 PHP: 8.3.6 MySQL: 8.0.36

Error:

{"reqId":"APR0wpfGonnrQBIPtOPz","level":3,"time":"2024-06-24T02:15:47+00:00","remoteAddr":"192.168.0.135","user":"xxx","app":"index","method":"GET","url":"/","message":"Could not resolve OCA\\Music\\App\\Music! Class \"OCA\\Music\\App\\Music\" does not exist","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/126.0.0.0 Safari/537.36","version":"29.0.2.2","exception":{"Exception":"OC\\AppFramework\\Utility\\QueryNotFoundException","Message":"Could not resolve OCA\\Music\\App\\Music! Class \"OCA\\Music\\App\\Music\" does not exist","Code":0,"Trace":[{"file":"/mnt/nvme/www/xxx/lib/private/AppFramework/Utility/SimpleContainer.php","line":146,"function":"resolve","class":"OC\\AppFramework\\Utility\\SimpleContainer","type":"->"},{"file":"/mnt/nvme/www/xxx/lib/private/AppFramework/DependencyInjection/DIContainer.php","line":470,"function":"query","class":"OC\\AppFramework\\Utility\\SimpleContainer","type":"->"},{"file":"/mnt/nvme/www/xxx/lib/private/ServerContainer.php","line":155,"function":"queryNoFallback","class":"OC\\AppFramework\\DependencyInjection\\DIContainer","type":"->"},{"file":"/mnt/nvme/www/xxx/apps/music/appinfo/routes.php","line":19,"function":"query","class":"OC\\ServerContainer","type":"->"},{"file":"/mnt/nvme/www/xxx/lib/private/Route/Router.php","line":497,"args":["/mnt/nvme/www/xxx/apps/music/appinfo/routes.php"],"function":"include_once"},{"file":"/mnt/nvme/www/xxx/lib/private/Route/Router.php","line":185,"function":"requireRouteFile","class":"OC\\Route\\Router","type":"->"},{"file":"/mnt/nvme/www/xxx/lib/private/Route/Router.php","line":296,"function":"loadRoutes","class":"OC\\Route\\Router","type":"->"},{"file":"/mnt/nvme/www/xxx/lib/private/Route/Router.php","line":330,"function":"findMatchingRoute","class":"OC\\Route\\Router","type":"->"},{"file":"/mnt/nvme/www/xxx/lib/base.php","line":1050,"function":"match","class":"OC\\Route\\Router","type":"->"},{"file":"/mnt/nvme/www/xxx/index.php","line":49,"function":"handleRequest","class":"OC","type":"::"}],"File":"/mnt/nvme/www/xxx/lib/private/AppFramework/Utility/SimpleContainer.php","Line":135,"message":"Could not resolve OCA\\Music\\App\\Music! Class \"OCA\\Music\\App\\Music\" does not exist","exception":{},"CustomMessage":"Could not resolve OCA\\Music\\App\\Music! Class \"OCA\\Music\\App\\Music\" does not exist"}}
{"reqId":"APR0wpfGonnrQBIPtOPz","level":1,"time":"2024-06-24T02:15:47+00:00","remoteAddr":"192.168.0.135","user":"xxx","app":"no app in context","method":"GET","url":"/","message":"Unable to generate a URL for the named route \"music.page.index\" as such route does not exist.","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/126.0.0.0 Safari/537.36","version":"29.0.2.2","exception":{"Exception":"Symfony\\Component\\Routing\\Exception\\RouteNotFoundException","Message":"Unable to generate a URL for the named route \"music.page.index\" as such route does not exist.","Code":0,"Trace":[{"file":"/mnt/nvme/www/xxx/lib/private/Route/Router.php","line":410,"function":"generate","class":"Symfony\\Component\\Routing\\Generator\\UrlGenerator","type":"->"},{"file":"/mnt/nvme/www/xxx/lib/private/Route/CachingRouter.php","line":65,"function":"generate","class":"OC\\Route\\Router","type":"->"},{"file":"/mnt/nvme/www/xxx/lib/private/URLGenerator.php","line":103,"function":"generate","class":"OC\\Route\\CachingRouter","type":"->"},{"file":"/mnt/nvme/www/xxx/lib/private/NavigationManager.php","line":371,"function":"linkToRoute","class":"OC\\URLGenerator","type":"->"},{"file":"/mnt/nvme/www/xxx/lib/private/NavigationManager.php","line":132,"function":"init","class":"OC\\NavigationManager","type":"->"},{"file":"/mnt/nvme/www/xxx/apps/theming/lib/ThemingDefaults.php","line":199,"function":"getAll","class":"OC\\NavigationManager","type":"->"},{"file":"/mnt/nvme/www/xxx/lib/private/legacy/OC_Defaults.php","line":271,"function":"getShortFooter","class":"OCA\\Theming\\ThemingDefaults","type":"->"},{"file":"/mnt/nvme/www/xxx/lib/public/Defaults.php","line":176,"function":"getLongFooter","class":"OC_Defaults","type":"->"},{"file":"/mnt/nvme/www/xxx/core/templates/layout.guest.php","line":51,"function":"getLongFooter","class":"OCP\\Defaults","type":"->"},{"file":"/mnt/nvme/www/xxx/lib/private/Template/Base.php","line":180,"args":["/mnt/nvme/www/xxx/core/templates/layout.guest.php"],"function":"include"},{"file":"/mnt/nvme/www/xxx/lib/private/Template/Base.php","line":150,"function":"load","class":"OC\\Template\\Base","type":"->"},{"file":"/mnt/nvme/www/xxx/lib/private/legacy/OC_Template.php","line":142,"function":"fetchPage","class":"OC\\Template\\Base","type":"->"},{"file":"/mnt/nvme/www/xxx/lib/private/legacy/OC_Template.php","line":173,"function":"fetchPage","class":"OC_Template","type":"->"},{"file":"/mnt/nvme/www/xxx/lib/private/Template/Base.php","line":132,"function":"fetchPage","class":"OC_Template","type":"->"},{"file":"/mnt/nvme/www/xxx/lib/private/legacy/OC_Template.php","line":320,"function":"printPage","class":"OC\\Template\\Base","type":"->"},{"file":"/mnt/nvme/www/xxx/index.php","line":114,"function":"printExceptionErrorPage","class":"OC_Template","type":"::"}],"File":"/mnt/nvme/www/xxx/3rdparty/symfony/routing/Generator/UrlGenerator.php","Line":144,"message":"Unable to generate a URL for the named route \"music.page.index\" as such route does not exist.","exception":{},"CustomMessage":"Unable to generate a URL for the named route \"music.page.index\" as such route does not exist."}}
{"reqId":"BvE4eSbRzDxVtPiqDCB8","level":0,"time":"2024-06-24T02:15:47+00:00","remoteAddr":"192.168.0.135","user":"xxx","app":"no app in context","method":"GET","url":"/apps/theming/manifest?v=809c9f86","message":"The loading of lazy AppConfig values have been requested","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/126.0.0.0 Safari/537.36","version":"29.0.2.2","exception":{"Exception":"RuntimeException","Message":"ignorable exception","Code":0,"Trace":[{"file":"/mnt/nvme/www/xxx/lib/private/AppConfig.php","line":1206,"function":"loadConfig","class":"OC\\AppConfig","type":"->"},{"file":"/mnt/nvme/www/xxx/lib/private/AppConfig.php","line":127,"function":"loadConfigAll","class":"OC\\AppConfig","type":"->"},{"file":"/mnt/nvme/www/xxx/lib/private/AllConfig.php","line":196,"function":"getKeys","class":"OC\\AppConfig","type":"->"},{"file":"/mnt/nvme/www/xxx/lib/private/Security/Bruteforce/Throttler.php","line":120,"function":"getAppKeys","class":"OC\\AllConfig","type":"->"},{"file":"/mnt/nvme/www/xxx/lib/private/Security/Bruteforce/Throttler.php","line":200,"function":"isBypassListed","class":"OC\\Security\\Bruteforce\\Throttler","type":"->"},{"file":"/mnt/nvme/www/xxx/lib/private/Security/Bruteforce/Throttler.php","line":217,"function":"getAttempts","class":"OC\\Security\\Bruteforce\\Throttler","type":"->"},{"file":"/mnt/nvme/www/xxx/lib/private/Security/Bruteforce/Throttler.php","line":290,"function":"getDelay","class":"OC\\Security\\Bruteforce\\Throttler","type":"->"},{"file":"/mnt/nvme/www/xxx/lib/private/AppFramework/Middleware/Security/BruteForceMiddleware.php","line":72,"function":"sleepDelayOrThrowOnMax","class":"OC\\Security\\Bruteforce\\Throttler","type":"->"},{"file":"/mnt/nvme/www/xxx/lib/private/AppFramework/Middleware/MiddlewareDispatcher.php","line":96,"function":"beforeController","class":"OC\\AppFramework\\Middleware\\Security\\BruteForceMiddleware","type":"->"},{"file":"/mnt/nvme/www/xxx/lib/private/AppFramework/Http/Dispatcher.php","line":130,"function":"beforeController","class":"OC\\AppFramework\\Middleware\\MiddlewareDispatcher","type":"->"},{"file":"/mnt/nvme/www/xxx/lib/private/AppFramework/App.php","line":184,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->"},{"file":"/mnt/nvme/www/xxx/lib/private/Route/Router.php","line":338,"function":"main","class":"OC\\AppFramework\\App","type":"::"},{"file":"/mnt/nvme/www/xxx/lib/base.php","line":1050,"function":"match","class":"OC\\Route\\Router","type":"->"},{"file":"/mnt/nvme/www/xxx/index.php","line":49,"function":"handleRequest","class":"OC","type":"::"}],"File":"/mnt/nvme/www/xxx/lib/private/AppConfig.php","Line":1220,"message":"The loading of lazy AppConfig values have been requested","exception":{},"CustomMessage":"The loading of lazy AppConfig values have been requested"}}
paulijar commented 5 months ago

Thanks for the report.

The error message says that the class OCA\Music\App\Music was not found. This class has been renamed in the v2.0.0 as OCA\Music\AppInfo\Application so it's natural that it's not found but no-one should try to use it anymore with the old name. I suspect that you are now running somehow partially updated installation of Music. It could be that the installer has failed to replace all the old files or then some PHP caching system is holding on the old versions of some files.

Dimmiuss commented 5 months ago

thanks for the recommendations! restarting php-fpm helped solve the problem, which means it was all in the php cache.