Nextcloud version (eg, 29.0.5): 29.0.7.1
Operating system and version (eg, Ubuntu 24.04): Ubuntu 24.04.1 LTS
Apache or nginx version (eg, Apache 2.4.25): nginx version: nginx/1.24.0 (Ubuntu)
PHP version (eg, 8.3): php-fpm8.3
The issue you are facing:
I installed my nextcloud under lubuntu and ran it for years without any problems. After upgrading to Lubuntu 24.04 LTS, it could not be started at first because php-fpm was not installed for some reason. After I installed and configured php-fpm8.3, I get the following error message when I call my nextcloud domain:
‘Internal Server Error
The server encountered an internal error and was unable to complete your request.
Please contact the server administrator if this error reappears multiple times, please include the technical details below in your report.
More details can be found in the server log.’
Is this the first time you’ve seen this error? (Y/N): y
Steps to replicate it:
- sudo systemctl restart nginx php8.3-fpm
- Access my nextcloud domain via firefox
The output of your Nextcloud log in Admin > Logging:
Sorry, I can't access the web interface.
The output of your config.php file in /path/to/nextcloud
(make sure you remove any identifiable information!):
<?php
$CONFIG = array (
'passwordsalt' => 'MySalt',
'secret' => 'MySecret',
'trusted_domains' =>
array (
0 => 'example.com',
),
'datadirectory' => '/var/nc_data',
'dbtype' => 'mysql',
'version' => '29.0.7.1',
'overwrite.cli.url' => 'https://example.com',
'dbname' => 'nextcloud',
'dbhost' => 'localhost:/var/run/mysqld/mysqld.sock',
'dbport' => '',
'dbtableprefix' => 'oc_',
'instanceid' => 'MyInstanceID',
'mysql.utf8mb4' => true,
'dbuser' => 'nextcloud',
'dbpassword' => 'MyDBpassword',
'installed' => true,
'activity_expire_days' => 14,
'auth.bruteforce.protection.enabled' => true,
'blacklisted_files' =>
array (
0 => '.htaccess',
1 => 'Thumbs.db',
2 => 'thumbs.db',
),
'cron_log' => true,
'enable_previews' => true,
'enabledPreviewProviders' =>
array (
0 => 'OC\\Preview\\PNG',
1 => 'OC\\Preview\\JPEG',
2 => 'OC\\Preview\\GIF',
3 => 'OC\\Preview\\BMP',
4 => 'OC\\Preview\\XBitmap',
5 => 'OC\\Preview\\Movie',
6 => 'OC\\Preview\\PDF',
7 => 'OC\\Preview\\MP3',
8 => 'OC\\Preview\\TXT',
9 => 'OC\\Preview\\MarkDown',
),
'filesystem_check_changes' => 0,
'filelocking.enabled' => 'true',
'htaccess.RewriteBase' => '/',
'integrity.check.disabled' => false,
'knowledgebaseenabled' => false,
'logfile' => '/var/nc_data/nextcloud.log',
'loglevel' => 2,
'logtimezone' => 'Europe/Berlin',
'default_phone_region' => 'DE',
'log_rotate_size' => 104857600,
'maintenance' => false,
'memcache.local' => '\\OC\\Memcache\\APCu',
'memcache.locking' => '\\OC\\Memcache\\Redis',
'overwriteprotocol' => 'https',
'preview_max_x' => 1024,
'preview_max_y' => 768,
'preview_max_scale_factor' => 1,
'redis' =>
array (
'host' => '/var/run/redis/redis-server.sock',
'port' => 0,
'timeout' => 0.0,
),
'quota_include_external_storage' => false,
'share_folder' => '/Shares',
'skeletondirectory' => '',
'theme' => '',
'trashbin_retention_obligation' => 'auto, 7',
'updater.release.channel' => 'stable',
'mail_from_address' => 'nextcloudadmin',
'mail_smtpmode' => 'smtp',
'mail_sendmailmode' => 'smtp',
'mail_domain' => 'example.com',
'mail_smtpauthtype' => 'LOGIN',
'mail_smtpauth' => 1,
'mail_smtphost' => 'smtp.example.com',
'mail_smtpport' => '465',
'mail_smtpname' => 'me@example.com',
'mail_smtppassword' => 'MySMTPpassword',
'mail_smtpsecure' => 'ssl',
'app_install_overwrite' =>
array (
0 => 'music',
1 => 'ocsms',
2 => 'documentserver_community',
3 => 'unsplash',
),
);
The output of your Apache/nginx/system log in /var/log/____
:
2024/10/09 04:08:50 [error] 49338#49338: *1060 access forbidden by rule, client: 5.36.12.193, server: example.com, request: "GET /lib/phpunit/phpunit/src/Util/PHP/eval-stdin.php HTTP/1.1", host: "91.44.19.180:443"
2024/10/09 04:08:51 [error] 49338#49338: *1060 access forbidden by rule, client: 5.36.12.193, server: example.com, request: "GET /lib/phpunit/phpunit/Util/PHP/eval-stdin.php HTTP/1.1", host: "91.44.19.180:443"
2024/10/09 04:08:52 [error] 49338#49338: *1060 access forbidden by rule, client: 5.36.12.193, server: example.com, request: "GET /lib/phpunit/src/Util/PHP/eval-stdin.php HTTP/1.1", host: "91.44.19.180:443"
2024/10/09 04:08:53 [error] 49338#49338: *1060 access forbidden by rule, client: 5.36.12.193, server: example.com, request: "GET /lib/phpunit/Util/PHP/eval-stdin.php HTTP/1.1", host: "91.44.19.180:443"
2024/10/09 04:08:54 [error] 49338#49338: *1060 access forbidden by rule, client: 5.36.12.193, server: example.com, request: "GET /lib/vendor/phpunit/phpunit/src/Util/PHP/eval-stdin.php HTTP/1.1", host: "91.44.19.180:443"
2024/10/09 04:09:03 [error] 49338#49338: *1060 access forbidden by rule, client: 5.36.12.193, server: example.com, request: "GET /tests/vendor/phpunit/phpunit/src/Util/PHP/eval-stdin.php HTTP/1.1", host: "91.44.19.180:443"
2024/10/09 09:27:12 [error] 49338#49338: *2074 access forbidden by rule, client: 78.153.138.177, server: example.com, request: "GET /.env HTTP/1.1", host: "91.44.19.180"
2024/10/09 14:56:21 [error] 49338#49338: *3207 access forbidden by rule, client: 94.124.189.247, server: example.com, request: "GET /lib/phpunit/phpunit/src/Util/PHP/eval-stdin.php HTTP/1.1", host: "91.44.19.180:443"
2024/10/09 14:56:22 [error] 49338#49338: *3207 access forbidden by rule, client: 94.124.189.247, server: example.com, request: "GET /lib/phpunit/phpunit/Util/PHP/eval-stdin.php HTTP/1.1", host: "91.44.19.180:443"
2024/10/09 14:56:22 [error] 49338#49338: *3207 access forbidden by rule, client: 94.124.189.247, server: example.com, request: "GET /lib/phpunit/src/Util/PHP/eval-stdin.php HTTP/1.1", host: "91.44.19.180:443"
2024/10/09 14:56:22 [error] 49338#49338: *3207 access forbidden by rule, client: 94.124.189.247, server: example.com, request: "GET /lib/phpunit/Util/PHP/eval-stdin.php HTTP/1.1", host: "91.44.19.180:443"
2024/10/09 14:56:22 [error] 49338#49338: *3207 access forbidden by rule, client: 94.124.189.247, server: example.com, request: "GET /lib/vendor/phpunit/phpunit/src/Util/PHP/eval-stdin.php HTTP/1.1", host: "91.44.19.180:443"
2024/10/09 14:56:25 [error] 49338#49338: *3207 access forbidden by rule, client: 94.124.189.247, server: example.com, request: "GET /tests/vendor/phpunit/phpunit/src/Util/PHP/eval-stdin.php HTTP/1.1", host: "91.44.19.180:443"
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.
{"reqId":"BoRdQ0UAnkGByImASZcN","level":3,"time":"2024-10-09T20:45:27+02:00","remoteAddr":"91.66.19.180","user":"--","app":"core","method":"GET","url":"/index.php/204","message":"Exception thrown: Doctrine\\DBAL\\Exception","userAgent":"Mozilla/5.0 (Linux) mirall/3.11.0git (Nextcloud, ubuntu-6.8.0-45-generic ClientArchitecture: x86_64 OsArchitecture: x86_64)","version":"29.0.7.1","exception":{"Exception":"Doctrine\\DBAL\\Exception","Message":"Failed to connect to the database: An exception occurred in the driver: could not find driver","Code":0,"Trace":[{"file":"/var/www/nextcloud/3rdparty/doctrine/dbal/src/Connection.php","line":453,"function":"connect","class":"OC\\DB\\Connection","type":"->"},{"file":"/var/www/nextcloud/3rdparty/doctrine/dbal/src/Connection.php","line":411,"function":"getDatabasePlatformVersion","class":"Doctrine\\DBAL\\Connection","type":"->"},{"file":"/var/www/nextcloud/3rdparty/doctrine/dbal/src/Connection.php","line":318,"function":"detectDatabasePlatform","class":"Doctrine\\DBAL\\Connection","type":"->"},{"file":"/var/www/nextcloud/lib/private/DB/ConnectionAdapter.php","line":200,"function":"getDatabasePlatform","class":"Doctrine\\DBAL\\Connection","type":"->"},{"file":"/var/www/nextcloud/lib/private/DB/QueryBuilder/QueryBuilder.php","line":121,"function":"getDatabasePlatform","class":"OC\\DB\\ConnectionAdapter","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppConfig.php","line":1239,"function":"expr","class":"OC\\DB\\QueryBuilder\\QueryBuilder","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppConfig.php","line":264,"function":"loadConfig","class":"OC\\AppConfig","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppConfig.php","line":1380,"function":"searchValues","class":"OC\\AppConfig","type":"->"},{"file":"/var/www/nextcloud/lib/private/App/AppManager.php","line":131,"function":"getValues","class":"OC\\AppConfig","type":"->"},{"file":"/var/www/nextcloud/lib/private/App/AppManager.php","line":152,"function":"getInstalledAppsValues","class":"OC\\App\\AppManager","type":"->"},{"file":"/var/www/nextcloud/lib/private/legacy/OC_App.php","line":234,"function":"getInstalledApps","class":"OC\\App\\AppManager","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/Bootstrap/Coordinator.php","line":90,"function":"getEnabledApps","class":"OC_App","type":"::"},{"file":"/var/www/nextcloud/lib/base.php","line":714,"function":"runInitialRegistration","class":"OC\\AppFramework\\Bootstrap\\Coordinator","type":"->"},{"file":"/var/www/nextcloud/lib/base.php","line":1189,"function":"init","class":"OC","type":"::"},{"file":"/var/www/nextcloud/index.php","line":47,"args":["/var/www/nextcloud/lib/base.php"],"function":"require_once"}],"File":"/var/www/nextcloud/lib/private/DB/Connection.php","Line":167,"CustomMessage":"Exception thrown: Doctrine\\DBAL\\Exception"}}