Nextcloud 21 - Settings, System - Error The server was unable to complete your request

Hallo i use Nextcloud 21 on Ubuntu 18 with plesk on an virtual V-40 server at strato.de.
If i go to settings, system, there comes the following message.

The server was unable to complete your request.
If this happens again, please send the technical details below to the server administrator.
More details can be found in the server log.

I’m a newbie - but can i solve this problem?

Nextcloud is running very well - but that would be nice, if there shows the right info.

Kind regards, Stefan

tail -f /var/log/apache2/error.log

Here is the result. What do i have to do?

root@h2937523:~# tail -f /var/log/apache2/error.log
[Fri May 28 01:43:17.357417 2021] [ssl:warn] [pid 800:tid 139648629398464] AH01909: default:443:0 server certificate does NOT include an ID which matches the server name
[Fri May 28 01:43:17.357813 2021] [mpm_event:notice] [pid 800:tid 139648629398464] AH00489: Apache/2.4.29 (Ubuntu) mod_fcgid/2.3.9 OpenSSL/1.1.1 configured – resuming normal operations
[Fri May 28 01:43:17.357830 2021] [core:notice] [pid 800:tid 139648629398464] AH00094: Command line: ‘/usr/sbin/apache2’

Hi @stefan-franz can you send some lines of nextcloud.log ?
tail /var/www/nextcloud/data/nextcloud.log

Logfile nextcloud.log (user-name edited :wink:

{“reqId”:“PbGsiZQD3w0x3FLNgEII”,“level”:3,“time”:“2021-04-24T15:41:21+00:00”,“remoteAddr”:"",“user”:“st6789”,“app”:“no app in context”,“method”:"",“url”:"–",“message”:{“Exception”:“OCP\AppFramework\QueryException”,“Message”:“Could not resolve trashManager! Class trashManager does not exist”,“Code”:0,“Trace”:[{“file”:"/var/www/vhosts/st6789.de/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php",“line”:126,“function”:“resolve”,“class”:“OC\AppFramework\Utility\SimpleContainer”,“type”:"->",“args”:[“trashManager”]},{“file”:"/var/www/vhosts/st6789.de/nextcloud/lib/private/ServerContainer.php",“line”:162,“function”:“query”,“class”:“OC\AppFramework\Utility\SimpleContainer”,“type”:"->",“args”:[“trashManager”,true]},{“file”:"/var/www/vhosts/st6789.de/nextcloud/lib/private/AppFramework/DependencyInjection/DIContainer.php",“line”:434,“function”:“query”,“class”:“OC\ServerContainer”,“type”:"->",“args”:[“trashManager”,true]},{“file”:"/var/www/vhosts/st6789.de/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php",“line”:56,“function”:“query”,“class”:“OC\AppFramework\DependencyInjection\DIContainer”,“type”:"->",“args”:[“trashManager”]},{“file”:"/var/www/vhosts/st6789.de/nextcloud/lib/private/AppFramework/Bootstrap/FunctionInjector.php",“line”:58,“function”:“get”,“class”:“OC\AppFramework\Utility\SimpleContainer”,“type”:"->",“args”:[“trashManager”]},{“function”:“OC\AppFramework\Bootstrap\{closure}”,“class”:“OC\AppFramework\Bootstrap\FunctionInjector”,“type”:"->",“args”:["*** sensitive parameters replaced "]},{“file”:"/var/www/vhosts/st6789.de/nextcloud/lib/private/AppFramework/Bootstrap/FunctionInjector.php",“line”:68,“function”:“array_map”,“args”:[{“class”:“Closure”},[{“name”:“serverContainer”,“class”:“ReflectionParameter”},{“name”:“logger”,“class”:“ReflectionParameter”},{“name”:“appManager”,“class”:“ReflectionParameter”}," sensitive parameter replaced "]]},{“file”:"/var/www/vhosts/st6789.de/nextcloud/lib/private/AppFramework/Bootstrap/BootContext.php",“line”:52,“function”:“injectFn”,“class”:“OC\AppFramework\Bootstrap\FunctionInjector”,“type”:"->",“args”:[[{“class”:“OCA\Files_Trashbin\AppInfo\Application”},“registerTrashBackends”]]},{“file”:"/var/www/vhosts/st6789.de/nextcloud/apps/files_trashbin/lib/AppInfo/Application.php",“line”:57,“function”:“injectFn”,“class”:“OC\AppFramework\Bootstrap\BootContext”,“type”:"->",“args”:[[{“class”:“OCA\Files_Trashbin\AppInfo\Application”},“registerTrashBackends”]]},{“file”:"/var/www/vhosts/st6789.de/nextcloud/lib/private/AppFramework/Bootstrap/Coordinator.php",“line”:176,“function”:“boot”,“class”:“OCA\Files_Trashbin\AppInfo\Application”,“type”:"->",“args”:[{“class”:“OC\AppFramework\Bootstrap\BootContext”}]},{“file”:"/var/www/vhosts/st6789.de/nextcloud/lib/private/legacy/OC_App.php",“line”:197,“function”:“bootApp”,“class”:“OC\AppFramework\Bootstrap\Coordinator”,“type”:"->",“args”:[“files_trashbin”]},{“file”:"/var/www/vhosts/st6789.de/nextcloud/lib/private/legacy/OC_App.php",“line”:137,“function”:“loadApp”,“class”:“OC_App”,“type”:"::",“args”:[“files_trashbin”]},{“file”:"/var/www/vhosts/st6789.de/nextcloud/apps/dav/lib/AppInfo/Application.php",“line”:124,“function”:“loadApps”,“class”:“OC_App”,“type”:"::",“args”:[[“dav”]]},{“file”:"/var/www/vhosts/st6789.de/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/vhosts/st6789.de/nextcloud/lib/private/legacy/OC_App.php",“line”:197,“function”:“bootApp”,“class”:“OC\AppFramework\Bootstrap\Coordinator”,“type”:"->",“args”:[“dav”]},{“file”:"/var/www/vhosts/st6789.de/nextcloud/lib/private/legacy/OC_App.php",“line”:137,“function”:“loadApp”,“class”:“OC_App”,“type”:"::",“args”:[“dav”]},{“file”:"/var/www/vhosts/st6789.de/nextcloud/lib/private/legacy/OC_Util.php",“line”:203,“function”:“loadApps”,“class”:“OC_App”,“type”:"::",“args”:[[“filesystem”]]},{“file”:"/var/www/vhosts/st6789.de/nextcloud/lib/private/User/Session.php",“line”:554,“function”:“setupFS”,“class”:“OC_Util”,“type”:"::",“args”:[" sensitive parameter replaced "]},{“file”:"/var/www/vhosts/st6789.de/nextcloud/lib/private/User/Session.php",“line”:415,“function”:“prepareUserLogin”,“class”:“OC\User\Session”,“type”:"->",“args”:[true," sensitive parameter replaced "]},{“file”:"/var/www/vhosts/st6789.de/nextcloud/lib/private/User/Session.php",“line”:624,“function”:“completeLogin”,“class”:“OC\User\Session”,“type”:"->",“args”:[" sensitive parameters replaced "]},{“file”:"/var/www/vhosts/st6789.de/nextcloud/lib/private/User/Session.php",“line”:367,“function”:“loginWithPassword”,“class”:“OC\User\Session”,“type”:"->",“args”:[" sensitive parameters replaced "]},{“file”:"/var/www/vhosts/st6789.de/nextcloud/lib/private/Setup.php",“line”:440,“function”:“login”,“class”:“OC\User\Session”,“type”:"->",“args”:[" sensitive parameters replaced "]},{“file”:"/var/www/vhosts/st6789.de/nextcloud/core/Command/Maintenance/Install.php",“line”:108,“function”:“install”,“class”:“OC\Setup”,“type”:"->",“args”:[" sensitive parameters replaced "]},{“file”:"/var/www/vhosts/st6789.de/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/vhosts/st6789.de/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/vhosts/st6789.de/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/vhosts/st6789.de/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/vhosts/st6789.de/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/vhosts/st6789.de/nextcloud/console.php",“line”:100,“function”:“run”,“class”:“OC\Console\Application”,“type”:"->",“args”:[]},{“file”:"/opt/psa/admin/plib/modules/nextcloud/scripts/externals/occ-install.php",“line”:27,“args”:["/var/www/vhosts/st6789.de/nextcloud/console.php"],“function”:“require”}],“File”:"/var/www/vhosts/st6789.de/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php",“Line”:115,“CustomMessage”:“Could not boot files_trashbinCould not resolve trashManager! Class trashManager does not exist”},“userAgent”:"–",“version”:“21.0.1.1”}
{“reqId”:“PbGsiZQD3w0x3FLNgEII”,“level”:3,“time”:“2021-04-24T15:41:21+00:00”,“remoteAddr”:"",“user”:“st6789”,“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/vhosts/st6789.de/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/vhosts/st6789.de/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/vhosts/st6789.de/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/vhosts/st6789.de/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/vhosts/st6789.de/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/vhosts/st6789.de/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/vhosts/st6789.de/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/vhosts/st6789.de/nextcloud/lib/private/AppFramework/Bootstrap/BootContext.php",“line”:52,“function”:“injectFn”,“class”:“OC\AppFramework\Bootstrap\FunctionInjector”,“type”:"->",“args”:[{“class”:“Closure”}]},{“file”:"/var/www/vhosts/st6789.de/nextcloud/apps/files_versions/lib/AppInfo/Application.php",“line”:93,“function”:“injectFn”,“class”:“OC\AppFramework\Bootstrap\BootContext”,“type”:"->",“args”:[{“class”:“Closure”}]},{“file”:"/var/www/vhosts/st6789.de/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/vhosts/st6789.de/nextcloud/lib/private/legacy/OC_App.php",“line”:197,“function”:“bootApp”,“class”:“OC\AppFramework\Bootstrap\Coordinator”,“type”:"->",“args”:[“files_versions”]},{“file”:"/var/www/vhosts/st6789.de/nextcloud/lib/private/legacy/OC_App.php",“line”:137,“function”:“loadApp”,“class”:“OC_App”,“type”:"::",“args”:[“files_versions”]},{“file”:"/var/www/vhosts/st6789.de/nextcloud/apps/dav/lib/AppInfo/Application.php",“line”:124,“function”:“loadApps”,“class”:“OC_App”,“type”:"::",“args”:[[“dav”]]},{“file”:"/var/www/vhosts/st6789.de/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/vhosts/st6789.de/nextcloud/lib/private/legacy/OC_App.php",“line”:197,“function”:“bootApp”,“class”:“OC\AppFramework\Bootstrap\Coordinator”,“type”:"->",“args”:[“dav”]},{“file”:"/var/www/vhosts/st6789.de/nextcloud/lib/private/legacy/OC_App.php",“line”:137,“function”:“loadApp”,“class”:“OC_App”,“type”:"::",“args”:[“dav”]},{“file”:"/var/www/vhosts/st6789.de/nextcloud/lib/private/legacy/OC_Util.php",“line”:203,“function”:“loadApps”,“class”:“OC_App”,“type”:"::",“args”:[[“filesystem”]]},{“file”:"/var/www/vhosts/st6789.de/nextcloud/lib/private/User/Session.php",“line”:554,“function”:“setupFS”,“class”:“OC_Util”,“type”:"::",“args”:["
sensitive parameter replaced "]},{“file”:"/var/www/vhosts/st6789.de/nextcloud/lib/private/User/Session.php",“line”:415,“function”:“prepareUserLogin”,“class”:“OC\User\Session”,“type”:"->",“args”:[true," sensitive parameter replaced "]},{“file”:"/var/www/vhosts/st6789.de/nextcloud/lib/private/User/Session.php",“line”:624,“function”:“completeLogin”,“class”:“OC\User\Session”,“type”:"->",“args”:[" sensitive parameters replaced "]},{“file”:"/var/www/vhosts/st6789.de/nextcloud/lib/private/User/Session.php",“line”:367,“function”:“loginWithPassword”,“class”:“OC\User\Session”,“type”:"->",“args”:[" sensitive parameters replaced "]},{“file”:"/var/www/vhosts/st6789.de/nextcloud/lib/private/Setup.php",“line”:440,“function”:“login”,“class”:“OC\User\Session”,“type”:"->",“args”:[" sensitive parameters replaced "]},{“file”:"/var/www/vhosts/st6789.de/nextcloud/core/Command/Maintenance/Install.php",“line”:108,“function”:“install”,“class”:“OC\Setup”,“type”:"->",“args”:[" sensitive parameters replaced ***"]},{“file”:"/var/www/vhosts/st6789.de/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/vhosts/st6789.de/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/vhosts/st6789.de/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/vhosts/st6789.de/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/vhosts/st6789.de/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/vhosts/st6789.de/nextcloud/console.php",“line”:100,“function”:“run”,“class”:“OC\Console\Application”,“type”:"->",“args”:},{“file”:"/opt/psa/admin/plib/modules/nextcloud/scripts/externals/occ-install.php",“line”:27,“args”:["/var/www/vhosts/st6789.de/nextcloud/console.php"],“function”:“require”}],“File”:"/var/www/vhosts/st6789.de/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”}

tail -f nextcloud.log | jq

would be better readable

I tried over putty - but with | jq - Command not found (Befehl nicht gefunden in Deutsch)

Without | jq it looks the same as posted…hmmm…

@stefan-franz do you use Redis? Have you changed something into config.php ( maybe a bad edit)?
try this line : sudo -u www-data php /var/www/vhosts/st6789.de/nextcloud/occ maintenance:repair

Have you some error or nothing ?

The result of your command:
This version of Nextcloud requires at least PHP 7.3
You are currently running 7.2.24-0ubuntu0.18.04.7. Please update your PHP version.

Something suspicious: In Plesk is php version 7.3.28 shown

my config.php:
I added ‘trashbin_retention_obligation’ => ‘auto, 30’,
and the first, it was an error - wrong synthax - and that trashbin command doesn’t work right. Files were longer than 30 days in the trashbin…

<?php $CONFIG = array ( 'passwordsalt' => 'xxxxxxx', 'secret' => 'xxxxxxxx', 'trusted_domains' => array ( 0 => 'localhost', 1 => 'cc.st6789.de', ), 'datadirectory' => '/var/www/vhosts/st6789.de/.nextcloud/data/386167b434bf', 'dbtype' => 'mysql', 'version' => '21.0.2.1', 'overwrite.cli.url' => 'http://localhost', 'dbname' => 'xxxxxxx', 'dbhost' => 'localhost:3306', 'dbport' => '', 'dbtableprefix' => 'oc_', 'dbuser' => 'xxxxxxx', 'dbpassword' => 'yyyyyyy', 'installed' => true, 'instanceid' => 'zzzzzzzz', 'app_install_overwrite' => array ( 0 => 'files_frommail', ), 'mail_smtpmode' => 'smtp', 'mail_smtpsecure' => 'ssl', 'mail_sendmailmode' => 'smtp', 'mail_from_address' => 'stefan.xy', 'mail_domain' => 'gmail.com', 'mail_smtpport' => '465', 'mail_smtpauth' => 1, 'mail_smtphost' => 'smtp.gmail.com', 'mail_smtpname' => '', 'mail_smtppassword' => '', 'trashbin_retention_obligation' => 'auto, 30', 'maintenance' => false, 'theme' => '', 'loglevel' => 2, );

@stefan-franz, first try to update or use the right version of php. Nextcloud 21 works correctly only on 7.3 or 7.4 version.
your line 'trashbin_retention_obligation' => 'auto, 30' seems to be correct.

Plesk displays PHP V 7.3.28

@stefan-franz I see you have the correct php versios on plesk but nextcloud not use this versions…
I’m trying to search a solution for plesk.
Have you a menu to set php versions used for nextcloud ?

Yes

grafik

@stefan-franz set it to 7.4 and try this line again: sudo -u www-data php /var/www/vhosts/st6789.de/nextcloud/occ maintenance:repair

Can i do it easy to switch the menu above to 7.4. or have i do other things?

@stefan-franz i think you just have to swith with the menu but i have never used plesk …

root@h2937523:~# sudo -u www-data php /var/www/vhosts/st6789.de/nextcloud/occ maintenance:repair
This version of Nextcloud requires at least PHP 7.3
You are currently running 7.2.24-0ubuntu0.18.04.7. Please update your PHP version.root@h2937523:~#

@stefan-franz according to https://www.ionos.com/digitalguide/websites/web-development/change-the-php-version-on-a-plesk-server/
there is a way to disable old versions of php.

I have deleted the old version - now my system don’t know the commands…nextcloud is running…but someting ist not right, i think…

root@h2937523:~# sudo -u www-data php /var/www/vhosts/stefan-franz.de/nextcloud/occ maintenance:repair
sudo: php: Befehl nicht gefunden
root@h2937523:~#

@stefan-franz have you a file nammed php in this folder : /opt/plesk/php/7.4/bin ? If yes try this line
ln -s /opt/plesk/php/7.4/bin/php /usr/bin/php
ln -s /opt/plesk/php/7.4/bin/php-cgi /usr/bin/php-cgi
ln -s /opt/plesk/php/7.4/sbin/php-fpm /sbin/php-fpm

make sure the right php version is applied : php -v

see this tuto for more information : How to change default PHP version in plesk - Nixtree