Internal Server Error: Unfortunately, I'm clueless

The Basics

  • Nextcloud Server version :
    • 28.0.3.2
  • Operating system and version :
    • debian bookworm
  • Web server and version:
    • Apache/2.4.62 (Debian)
  • PHP version:
    • PHP 8.3.15
  • Is this the first time you’ve seen this error? (Yes / No):
    • Yes
  • When did this problem seem to first start?
    • 6 month ago
  • Installation method
    • manual installation
  • Are you using CloudfIare, mod_security, or similar?
    • No

Summary of the issue you are facing:

Unfortunately, I’m clueless and I need my old files

I get this message only:

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.

Steps to replicate it (hint: details matter!):

can’t replicate;

Log entries

Nextcloud

Configuration

Nextcloud

    "system": {
        "instanceid": "***REMOVED SENSITIVE VALUE***",
        "passwordsalt": "***REMOVED SENSITIVE VALUE***",
        "secret": "***REMOVED SENSITIVE VALUE***",
        "trusted_domains": [
            "192.168.1.112",
            "cumulus",
            "***REMOVED SENSITIVE VALUE***\/"
        ],
        "datadirectory": "***REMOVED SENSITIVE VALUE***",
        "dbtype": "mysql",
        "version": "28.0.3.2",
        "overwrite.cli.url": "https:\/\/192.168.1.112",
        "dbname": "***REMOVED SENSITIVE VALUE***",
        "dbhost": "***REMOVED SENSITIVE VALUE***",
        "dbport": "",
        "dbtableprefix": "oc_",
        "mysql.utf8mb4": true,
        "dbuser": "***REMOVED SENSITIVE VALUE***",
        "dbpassword": "***REMOVED SENSITIVE VALUE***",
        "installed": true,
        "mail_smtpmode": "smtp",
        "mail_sendmailmode": "smtp",
        "maintenance": false,
        "theme": "",
        "loglevel": 2,
        "mail_from_address": "***REMOVED SENSITIVE VALUE***",
        "mail_domain": "***REMOVED SENSITIVE VALUE***",
        "mail_smtphost": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpport": "25",
        "mail_smtpauth": 1,
        "mail_smtpname": "***REMOVED SENSITIVE VALUE***",
        "mail_smtppassword": "***REMOVED SENSITIVE VALUE***",
        "default_phone_region": "DE"
    }
}

Apps

The output of occ app:list (if possible).
Enabled:

  • activity: 2.20.0
  • admin_audit: 1.18.0
  • calendar: 4.7.16
  • circles: 28.0.0-dev
  • cloud_federation_api: 1.11.0
  • comments: 1.18.0
  • contacts: 5.5.3
  • contactsinteraction: 1.9.0
  • dashboard: 7.8.0
  • dav: 1.29.1
  • deck: 1.12.6
  • federatedfilesharing: 1.18.0
  • federation: 1.18.0
  • files: 2.0.0
  • files_accesscontrol: 1.18.1
  • files_automatedtagging: 1.18.0
  • files_pdfviewer: 2.9.0
  • files_reminders: 1.1.0
  • files_sharing: 1.20.0
  • files_trashbin: 1.18.0
  • files_versions: 1.21.0
  • fileslibreofficeedit: 2.0.1
  • firstrunwizard: 2.17.0
  • logreader: 2.13.0
  • lookup_server_connector: 1.16.0
  • mail: 3.7.17
  • nextcloud_announcements: 1.17.0
  • notes: 4.11.0
  • notifications: 2.16.0
  • oauth2: 1.16.3
  • password_policy: 1.18.0
  • photos: 2.4.0
  • privacy: 1.12.0
  • provisioning_api: 1.18.0
  • recommendations: 2.0.0
  • related_resources: 1.3.0
  • richdocuments: 8.3.13
  • serverinfo: 1.18.0
  • settings: 1.10.1
  • sharebymail: 1.18.0
  • spreed: 18.0.13
  • support: 1.11.0
  • survey_client: 1.16.0
  • systemtags: 1.18.0
  • text: 3.9.1
  • theming: 2.3.0
  • twofactor_backupcodes: 1.17.0
  • updatenotification: 1.18.0
  • user_status: 1.8.1
  • viewer: 2.2.0
  • weather_status: 1.8.0
  • workflowengine: 2.10.0
    Disabled:
  • bruteforcesettings: 2.8.0
  • encryption: 2.16.0
  • files_external: 1.20.0
  • files_rightclick: 0.15.1 (installed 1.6.0)
  • officeonline: 2.3.1 (installed 2.3.1)
  • suspicious_login: 6.0.0
  • twofactor_totp: 10.0.0-beta.2
  • user_ldap: 1.19.0

"message":"Failed to connect to the database: An exception occurred in the driver: could not find driver",

It appears that your PHP environment doesn’t have the appropriate modules installed for Nextcloud. You’re using mysql based on your config, so…

PHP 8.3.15

If you’re running PHP 8.3 on Debian Bookworm, you are likely upgraded beyond stock (which is PHP 8.2) at some point. Presumably in between when Nextcloud last worked for you and now.

You likely need to do something like apt install php8.3-mysql then restart your web server.

Thanks for your answer, but it didn’t solve the problem

root@cumulus:/home/stefan# apt install php8.3-mysql
Reading package lists… Done
Building dependency tree… Done
Reading state information… Done
php8.3-mysql is already the newest version (8.3.15-1+0~20241224.50+debian12~1.gbp36719a).

I did:

sudo -u www-data php /var/www/nextcloud/updater/updater.phar

Now I got:
PHP-Modul zip, PHP-Modul mbstring, PHP-Modul cURL
are missing, but all Modules are installed.

Can you do a php -von the terminal? Check which version is use, if you installed on your own php 8.3, this might be the default debian version. Then perhaps you need to call php8.3 ... or something.

root@cumulus:/var/www/nextcloud# php -v
PHP 8.3.15 (cli) (built: Dec 24 2024 06:13:33) (NTS)

I have several PHP Versions installed. Where is the PHP Version used by nextcloud defined?

You should run → the php-updater script ← if not yet done to fix that.

h.t.h.


Much and good luck,
ernolf

Thanks to all for inspiring me to find a solution :slightly_smiling_face:

I purged all php versions and reinstalled php8.3 and libapache2-mod-php8.3

Now it’s running again.

2 Likes

Great to see that you solved it! :confetti_ball:
It is allways a good solution, to only install one php version.

You could have reached allmost the same with php-updater (after letting it correct all configuration errors it can find) with this command:

php-updater --switch-version

and selecting php8.3

This will ensure that the decision about your active php version is not taken away from you by dpkg/apt again, which can,- but isn’t necessarily guaranteed by installing only one version of PHP.


Much and good luck,
ernolf

1 Like

This topic was automatically closed 8 days after the last reply. New replies are no longer allowed.