[SOLVED] Help - Internal Server Error

Hi,
I am running into big troubles. After loading some apps Nextcloud stopped working and splashes on a “Internal Server Error” page
I am running nextcloud 23 on a debian machine.

Please help
Thanks

Here is the error in nextcloud.log
{“reqId”:“7W48fZ8iiJ0zjBr1gKLY”,“level”:3,“time”:“2021-04-15T23:37:02+00:00”,“remoteAddr”:“”,“user”:“admin”,“app”:“no app in context”,“method”:“”,“url”:“–”,“message”:{“Exception”:“OCP\AppFramework\QueryException”,“Message”:“Could not resolve OCA\Files_Versions\Versions\IVersionManager! Class can not be instantiated”,“Code”:0,“Trace”:[{“file”:“/var/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php”,“line”:126,“function”:“resolve”,“class”:“OC\AppFramework\Utility\SimpleContainer”,“type”:“->”,“args”:[“OCA\Files_Versions\Versions\IVersionManager”]},{“file”:“/var/www/nextcloud/lib/private/AppFramework/DependencyInjection/DIContainer.php”,“line”:459,“function”:“query”,“class”:“OC\AppFramework\Utility\SimpleContainer”,“type”:“->”,“args”:[“OCA\Files_Versions\Versions\IVersionManager”]},{“file”:“/var/www/nextcloud/lib/private/AppFramework/DependencyInjection/DIContainer.php”,“line”:431,“function”:“queryNoFallback”,“class”:“OC\AppFramework\DependencyInjection\DIContainer”,“type”:“->”,“args”:[“OCA\Files_Versions\Versions\IVersionManager”]},{“file”:“/var/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php”,“line”:56,“function”:“query”,“class”:“OC\AppFramework\DependencyInjection\DIContainer”,“type”:“->”,“args”:[“OCA\Files_Versions\Versions\IVersionManager”]},{“file”:“/var/www/nextcloud/apps/files_versions/lib/AppInfo/Application.php”,“line”:121,“function”:“get”,“class”:“OC\AppFramework\Utility\SimpleContainer”,“type”:“->”,“args”:[“OCA\Files_Versions\Versions\IVersionManager”]},{“file”:“/var/www/nextcloud/apps/files_versions/lib/AppInfo/Application.php”,“line”:108,“function”:“loadBackend”,“class”:“OCA\Files_Versions\AppInfo\Application”,“type”:“->”,“args”:[{“@attributes”:{“for”:“OCP\Files\Storage\IStorage”},“@value”:“OCA\Files_Versions\Versions\LegacyVersionsBackend”},{“class”:“OC\AppFramework\DependencyInjection\DIContainer”},{“class”:“OC\AppFramework\Logger”}]},{“file”:“/var/www/nextcloud/lib/private/AppFramework/Bootstrap/FunctionInjector.php”,“line”:68,“function”:“registerVersionBackends”,“class”:“OCA\Files_Versions\AppInfo\Application”,“type”:“->”,“args”:[{“class”:“OC\AppFramework\DependencyInjection\DIContainer”},{“class”:“OC\App\AppManager”},{“class”:“OC\AppFramework\Logger”}]},{“file”:“/var/www/nextcloud/lib/private/AppFramework/Bootstrap/BootContext.php”,“line”:52,“function”:“injectFn”,“class”:“OC\AppFramework\Bootstrap\FunctionInjector”,“type”:“->”,“args”:[{“class”:“Closure”}]},{“file”:“/var/www/nextcloud/apps/files_versions/lib/AppInfo/Application.php”,“line”:93,“function”:“injectFn”,“class”:“OC\AppFramework\Bootstrap\BootContext”,“type”:“->”,“args”:[{“class”:“Closure”}]},{“file”:“/var/www/nextcloud/lib/private/AppFramework/Bootstrap/Coordinator.php”,“line”:176,“function”:“boot”,“class”:“OCA\Files_Versions\AppInfo\Application”,“type”:“->”,“args”:[{“class”:“OC\AppFramework\Bootstrap\BootContext”}]},{“file”:“/var/www/nextcloud/lib/private/legacy/OC_App.php”,“line”:197,“function”:“bootApp”,“class”:“OC\AppFramework\Bootstrap\Coordinator”,“type”:“->”,“args”:[“files_versions”]},{“file”:“/var/www/nextcloud/lib/private/legacy/OC_App.php”,“line”:137,“function”:“loadApp”,“class”:“OC_App”,“type”:“::”,“args”:[“files_versions”]},{“file”:“/var/www/nextcloud/apps/dav/lib/AppInfo/Application.php”,“line”:124,“function”:“loadApps”,“class”:“OC_App”,“type”:“::”,“args”:[[“dav”]]},{“file”:“/var/www/nextcloud/lib/private/AppFramework/Bootstrap/Coordinator.php”,“line”:176,“function”:“boot”,“class”:“OCA\DAV\AppInfo\Application”,“type”:“->”,“args”:[{“class”:“OC\AppFramework\Bootstrap\BootContext”}]},{“file”:“/var/www/nextcloud/lib/private/legacy/OC_App.php”,“line”:197,“function”:“bootApp”,“class”:“OC\AppFramework\Bootstrap\Coordinator”,“type”:“->”,“args”:[“dav”]},{“file”:“/var/www/nextcloud/lib/private/legacy/OC_App.php”,“line”:137,“function”:“loadApp”,“class”:“OC_App”,“type”:“::”,“args”:[“dav”]},{“file”:“/var/www/nextcloud/lib/private/legacy/OC_Util.php”,“line”:203,“function”:“loadApps”,“class”:“OC_App”,“type”:“::”,“args”:[[“filesystem”]]},{“file”:“/var/www/nextcloud/lib/private/User/Session.php”,“line”:554,“function”:“setupFS”,“class”:“OC_Util”,“type”:“::”,“args”:[“*** sensitive parameter replaced “]},{“file”:”/var/www/nextcloud/lib/private/User/Session.php",“line”:415,“function”:“prepareUserLogin”,“class”:“OC\User\Session”,“type”:“->”,“args”:[true," sensitive parameter replaced “]},{“file”:”/var/www/nextcloud/lib/private/User/Session.php",“line”:624,“function”:“completeLogin”,“class”:“OC\User\Session”,“type”:“->”,“args”:[" sensitive parameters replaced “]},{“file”:”/var/www/nextcloud/lib/private/User/Session.php",“line”:367,“function”:“loginWithPassword”,“class”:“OC\User\Session”,“type”:“->”,“args”:[" sensitive parameters replaced “]},{“file”:”/var/www/nextcloud/lib/private/Setup.php",“line”:440,“function”:“login”,“class”:“OC\User\Session”,“type”:“->”,“args”:[" sensitive parameters replaced “]},{“file”:”/var/www/nextcloud/core/Command/Maintenance/Install.php",“line”:108,“function”:“install”,“class”:“OC\Setup”,“type”:“->”,“args”:[" sensitive parameters replaced ***”]},{“file”:“/var/www/nextcloud/3rdparty/symfony/console/Command/Command.php”,“line”:255,“function”:“execute”,“class”:“OC\Core\Command\Maintenance\Install”,“type”:“->”,“args”:[{“class”:“Symfony\Component\Console\Input\ArgvInput”},{“class”:“Symfony\Component\Console\Output\ConsoleOutput”}]},{“file”:“/var/www/nextcloud/3rdparty/symfony/console/Application.php”,“line”:1009,“function”:“run”,“class”:“Symfony\Component\Console\Command\Command”,“type”:“->”,“args”:[{“class”:“Symfony\Component\Console\Input\ArgvInput”},{“class”:“Symfony\Component\Console\Output\ConsoleOutput”}]},{“file”:“/var/www/nextcloud/3rdparty/symfony/console/Application.php”,“line”:273,“function”:“doRunCommand”,“class”:“Symfony\Component\Console\Application”,“type”:“->”,“args”:[{“class”:“OC\Core\Command\Maintenance\Install”},{“class”:“Symfony\Component\Console\Input\ArgvInput”},{“class”:“Symfony\Component\Console\Output\ConsoleOutput”}]},{“file”:“/var/www/nextcloud/3rdparty/symfony/console/Application.php”,“line”:149,“function”:“doRun”,“class”:“Symfony\Component\Console\Application”,“type”:“->”,“args”:[{“class”:“Symfony\Component\Console\Input\ArgvInput”},{“class”:“Symfony\Component\Console\Output\ConsoleOutput”}]},{“file”:“/var/www/nextcloud/lib/private/Console/Application.php”,“line”:215,“function”:“run”,“class”:“Symfony\Component\Console\Application”,“type”:“->”,“args”:[{“class”:“Symfony\Component\Console\Input\ArgvInput”},{“class”:“Symfony\Component\Console\Output\ConsoleOutput”}]},{“file”:“/var/www/nextcloud/console.php”,“line”:100,“function”:“run”,“class”:“OC\Console\Application”,“type”:“->”,“args”:},{“file”:“/var/www/nextcloud/occ”,“line”:11,“args”:[“/var/www/nextcloud/console.php”],“function”:“require_once”}],“File”:“/var/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php”,“Line”:111,“CustomMessage”:“Could not boot files_versionsCould not resolve OCA\Files_Versions\Versions\IVersionManager! Class can not be instantiated”},“userAgent”:“–”,“version”:“21.0.1.1”}

help.nextcloud.com is for home/non-enterprise users. If you’re running a business, paid support can be accessed via portal.nextcloud.com where we can ensure your business keeps running smoothly.

In order to help you as quickly as possible, before clicking Create Topic please provide as much of the below as you can. Feel free to use a pastebin service for logs, otherwise either indent short log examples with four spaces:

example

Or for longer, use three backticks above and below the code snippet:

longer
example
here

Some or all of the below information will be requested if it isn’t supplied; for fastest response please provide as much as you can :heart:

[/details]

Nextcloud version (eg, 20.0.5): replace me
Operating system and version (eg, Ubuntu 20.04): replace me
Apache or nginx version (eg, Apache 2.4.25): replace me
PHP version (eg, 7.4): replace me

The issue you are facing:

Is this the first time you’ve seen this error? (Y/N):

Steps to replicate it:

The output of your Nextcloud log in Admin > Logging:

PASTE HERE

The output of your config.php file in /path/to/nextcloud (make sure you remove any identifiable information!):

PASTE HERE

The output of your Apache/nginx/system log in /var/log/____:

PASTE HERE

PASTE HERE


Output errors in nextcloud.log in /var/www/ or as admin user in top right menu, filtering for errors. Use a pastebin service if necessary.

PASTE HERE

FYI the “replace me” and “PASTE HERE” are intended for you to provide information about your setup.

My first thought is you might use the occ command to disable the apps you added right before the trouble started.

Thank you so much for you hint.
Apologies for not having used the form correctly.
I will try and hopefully I will get my installation up and running again.
Regards
Max

Issue solved.
Logged in to server as root
run

su -s /bin/bash www-data

php occ app:list

php occ app:disable NAME_OF_APP

After removing the offending app nextcloud resumed working

Thank for the support