Nextcloud version: 23.0.0
Operating system and version: Ubuntu 20.04
Apache or nginx version: 2.4.41
PHP version : 8.0
The issue you are facing:
When accessing
index.php/settings/admin/serverinfo
on my NextCloud-instance, the server answers with an internal server failure.
Let me highlight, that everything else works perfectly fine!
Is this the first time you’ve seen this error? N
Steps to replicate it:
- simply call
index.php/settings/admin/serverinfo
on the NextCloud-instance or click in the last entry in the Maintenance-section of the menu. I hope the translation is properly as I am using the german-version of NextCloud. However, I think the URL provided should make clear which function is affected
The output of your Nextcloud log in Admin > Logging:
Exception: Call to undefined function OCA\ServerInfo\OperatingSystems\shell_exec() in file '/var/www/clients/client112/web355/web/cloud/apps/serverinfo/lib/OperatingSystems/DefaultOs.php' line 229
/var/www/clients/client112/web355/web/cloud/lib/private/AppFramework/App.php - line 157:
OC\AppFramework\Http\Dispatcher->dispatch()
/var/www/clients/client112/web355/web/cloud/lib/private/Route/Router.php - line 302:
OC\AppFramework\App::main()
/var/www/clients/client112/web355/web/cloud/lib/base.php - line 1006:
OC\Route\Router->match()
/var/www/clients/client112/web355/web/cloud/index.php - line 36:
OC::handleRequest()
Verursacht durch Error: Call to undefined function OCA\ServerInfo\OperatingSystems\shell_exec()
/var/www/clients/client112/web355/web/cloud/apps/serverinfo/lib/OperatingSystems/DefaultOs.php - line 188:
OCA\ServerInfo\OperatingSystems\DefaultOs->executeCommand()
/var/www/clients/client112/web355/web/cloud/apps/serverinfo/lib/Os.php - line 104:
OCA\ServerInfo\OperatingSystems\DefaultOs->getDiskInfo()
/var/www/clients/client112/web355/web/cloud/apps/serverinfo/lib/Settings/AdminSettings.php - line 112:
OCA\ServerInfo\Os->getDiskInfo()
/var/www/clients/client112/web355/web/cloud/apps/settings/lib/Controller/CommonSettingsTrait.php - line 129:
OCA\ServerInfo\Settings\AdminSettings->getForm()
/var/www/clients/client112/web355/web/cloud/apps/settings/lib/Controller/AdminSettingsController.php - line 83:
OCA\Settings\Controller\AdminSettingsController->formatSettings()
/var/www/clients/client112/web355/web/cloud/apps/settings/lib/Controller/CommonSettingsTrait.php - line 140:
OCA\Settings\Controller\AdminSettingsController->getSettings()
/var/www/clients/client112/web355/web/cloud/apps/settings/lib/Controller/AdminSettingsController.php - line 68:
OCA\Settings\Controller\AdminSettingsController->getIndexResponse()
/var/www/clients/client112/web355/web/cloud/lib/private/AppFramework/Http/Dispatcher.php - line 217:
OCA\Settings\Controller\AdminSettingsController->index()
/var/www/clients/client112/web355/web/cloud/lib/private/AppFramework/Http/Dispatcher.php - line 126:
OC\AppFramework\Http\Dispatcher->executeController()
/var/www/clients/client112/web355/web/cloud/lib/private/AppFramework/App.php - line 157:
OC\AppFramework\Http\Dispatcher->dispatch()
/var/www/clients/client112/web355/web/cloud/lib/private/Route/Router.php - line 302:
OC\AppFramework\App::main()
/var/www/clients/client112/web355/web/cloud/lib/base.php - line 1006:
OC\Route\Router->match()
/var/www/clients/client112/web355/web/cloud/index.php - line 36:
OC::handleRequest()
The output of your config.php file in /path/to/nextcloud
(make sure you remove any identifiable information!):
All removed information is marked with removed below:
<?php
$CONFIG = array (
'instanceid' => *removed*,
'passwordsalt' => *removed*,
'secret' => *removed*,
'trusted_domains' =>
array (
0 => *removed*,
1 => *removed*,
),
'datadirectory' => *removed*,
'dbtype' => 'mysql',
'version' => '23.0.0.10',
'overwrite.cli.url' => *removed*,
'dbname' => *removed*,
'dbhost' => *removed*,
'dbport' => '',
'dbtableprefix' => 'oc_',
'mysql.utf8mb4' => true,
'dbuser' => *removed*,
'dbpassword' => *removed*,
'installed' => true,
'mail_smtpmode' => 'smtp',
'mail_sendmailmode' => 'smtp',
'twofactor_enforced' => 'true',
'twofactor_enforced_groups' =>
array (
0 => 'admin',
1 => *removed*,
),
'twofactor_enforced_excluded_groups' =>
array (
),
'mail_smtpsecure' => 'tls',
'mail_from_address' => 'noreply',
'mail_domain' => *removed*,
'mail_smtpauth' => 1,
'mail_smtpauthtype' => 'LOGIN',
'mail_smtphost' => *removed*,
'mail_smtpport' => '587',
'mail_smtpname' => *removed*,
'mail_smtppassword' => *removed*,
'app_install_overwrite' =>
array (
0 => 'printer',
),
);
The output of your Apache/nginx/system log in /var/log/____
:
As this solution is hosted by a hoster, I do not have acccess to the logs.
PASTE HERE
In my opinion the error-information out of Admin > Logging clarifies the issue already… there seems to be a call to an undefined function OCA\ServerInfo\OperatingSystems\shell_exec(). Is there maybe a php-library missing? If yes, can you please tell me which one, so that I can contact the hoster of my server to add this library?
Thanks a lot in advance!