owncloud / music

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

Internal server error after update to Music 2.0.0 #1154

Closed ssarna1 closed 4 months ago

ssarna1 commented 4 months ago

Nextcloud version 27.1.10. After disabling Music app the instance is working again. Here is what is in the log:

[no app in context] Error: OC\AppFramework\Utility\QueryNotFoundException: Could not resolve OCA\Music\App\Music! Class "OCA\Music\App\Music" does not exist at <>

  1. /mnt/repozytorium/nextcloud/data/lib/private/AppFramework/Utility/SimpleContainer.php line 142 OC\AppFramework\Utility\SimpleContainer->resolve()
  2. /mnt/repozytorium/nextcloud/data/lib/private/ServerContainer.php line 171 OC\AppFramework\Utility\SimpleContainer->query()
  3. /mnt/repozytorium/nextcloud/data/apps/music/appinfo/routes.php line 19 OC\ServerContainer->query()
  4. /mnt/repozytorium/nextcloud/data/lib/private/Route/Router.php line 422 include_once("/mnt/repozytori ... p")
  5. /mnt/repozytorium/nextcloud/data/lib/private/Route/Router.php line 163 OC\Route\Router->requireRouteFile()
  6. /mnt/repozytorium/nextcloud/data/lib/private/Route/Router.php line 273 OC\Route\Router->loadRoutes()
  7. /mnt/repozytorium/nextcloud/data/lib/private/Route/Router.php line 307 OC\Route\Router->findMatchingRoute()
  8. /mnt/repozytorium/nextcloud/data/ocs/v1.php line 65 OC\Route\Router->match()
  9. /mnt/repozytorium/nextcloud/data/ocs/v2.php line 23 require_once("/mnt/repozytori ... p")

GET /ocs/v2.php/core/navigation/apps?format=json from by at 2024-07-03T07:27:12+00:00

paulijar commented 4 months ago

This seems like the same issue as https://github.com/owncloud/music/issues/1152. Your instance is running only partially updated version of the Music app, probably due to PHP caching. The first thing to try is to restart the PHP-FPM.

ssarna1 commented 4 months ago

Thanks! This worked. I wonder why NC updater doesn't do that by default.

paulijar commented 4 months ago

I don't know if it would be technically possible for the NC updater (being PHP application itself) to restart the PHP-FPM, or at least flush its cache. Also, I don't know why this problem affects some users some times but apparently not all users all the time.

ssarna1 commented 4 months ago

Perhaps it depends on cache settings, if it happens that the Music app is not cached then there is no problem.