Receiving 500 error when attempting to connect to Nextcloud server

Support intro

Sorry to hear you’re facing problems. :slightly_frowning_face:

The community help forum (help.nextcloud.com) is for home and non-enterprise users. Support is provided by other community members on a best effort / “as available” basis. All of those responding are volunteering their time to help you.

If you’re using Nextcloud in a business/critical setting, paid and SLA-based support services can be accessed via portal.nextcloud.com where Nextcloud engineers can help ensure your business keeps running smoothly.

Getting help

In order to help you as efficiently (and quickly!) as possible, please fill in as much of the below requested information as you can.

Before clicking submit: Please check if your query is already addressed via the following resources:

(Utilizing these existing resources is typically faster. It also helps reduce the load on our generous volunteers while elevating the signal to noise ratio of the forums otherwise arising from the same queries being posted repeatedly).

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:

The Basics

  • Nextcloud Server version (e.g., 29.x.x):
    • 30.0.4
  • Operating system and version (e.g., Ubuntu 24.04):
    • Debian 12
  • Web server and version (e.g, Apache 2.4.25):
    • Apache 2.4.62
  • Reverse proxy and version _(e.g. nginx 1.27.2)
    • None
  • PHP version (e.g, 8.3):
    • 8.4.5
  • Is this the first time you’ve seen this error? (Yes / No):
    • Yes
  • When did this problem seem to first start?
    • Unsure - first noticed it today
  • Installation method (e.g. AlO, NCP, Bare Metal/Archive, etc.)
    • AIO, if I recall correctly. Been running a while now.
  • Are you using CloudfIare, mod_security, or similar? (Yes / No)
    • Negative

Summary of the issue you are facing:

I am unable to connect to the web interface, and clients are unable to connect to the server, whether using the server’s internal address/hostname or external address/hostname. I receive the following message:

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.

There are no details in any of the Apache logs. Or syslog.

I have seen other, older posts with this issue, however none of those fixes helped. I did have to modify my /var/www/nextcloud/lib/versioncheck.php so it wouldn’t complain about the PHP version (directions found in bug 50792).

In the log, I get an error regarding not finding the database driver. One of the suggestions I found there was to make sure the DB driver was installed for the database server (MariaDB, in my case). I have php8.4-mysql already installed (received an error that I was already at the latest version when attempting to install via apt).

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

  1. go to https://ingest.wmssfm.com
  2. There is no step 2
  3. Step 3 is right out.

Log entries

Nextcloud

Please provide the log entries from your Nextcloud log that are generated during the time of problem (via the Copy raw option from Administration settings->Logging screen or from your nextcloud.log located in your data directory). Feel free to use a pastebin/gist service if necessary.

{"reqId":"Z_cl7DUEZM_nrB4NTY0lOAAAAAs","level":3,"time":"2025-04-10T01:59:08+00:00","remoteAddr":"<sanitized for your protection>","user":"--","app":"core","method":"GET","url":"/index.php/apps/files/api/v1/stats","message":"Exception thrown: Doctrine\\DBAL\\Exception","userAgent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.2 Safari/605.1.15","version":"30.0.4.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/Connection.php","line":899,"function":"getDatabasePlatform","class":"Doctrine\\DBAL\\Connection","type":"->"},{"file":"/var/www/nextcloud/lib/private/DB/ConnectionAdapter.php","line":235,"function":"getDatabaseProvider","class":"OC\\DB\\Connection","type":"->"},{"file":"/var/www/nextcloud/lib/private/DB/QueryBuilder/QueryBuilder.php","line":96,"function":"getDatabaseProvider","class":"OC\\DB\\ConnectionAdapter","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppConfig.php","line":1211,"function":"expr","class":"OC\\DB\\QueryBuilder\\QueryBuilder","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppConfig.php","line":237,"function":"loadConfig","class":"OC\\AppConfig","type":"->"},{"file":"/var/www/nextcloud/lib/private/legacy/OC_App.php","line":695,"function":"searchValues","class":"OC\\AppConfig","type":"->"},{"file":"/var/www/nextcloud/lib/private/TemplateLayout.php","line":198,"function":"getAppVersions","class":"OC_App","type":"::"},{"file":"/var/www/nextcloud/lib/private/legacy/OC_Template.php","line":119,"function":"__construct","class":"OC\\TemplateLayout","type":"->"},{"file":"/var/www/nextcloud/lib/private/Template/Base.php","line":113,"function":"fetchPage","class":"OC_Template","type":"->"},{"file":"/var/www/nextcloud/lib/private/legacy/OC_Template.php","line":296,"function":"printPage","class":"OC\\Template\\Base","type":"->"},{"file":"/var/www/nextcloud/index.php","line":89,"function":"printExceptionErrorPage","class":"OC_Template","type":"::"}],"File":"/var/www/nextcloud/lib/private/DB/Connection.php","Line":233,"CustomMessage":"Exception thrown: Doctrine\\DBAL\\Exception"}}

I removed the client IP address. The specific client (desktop client, web browser) and OS do not seem to matter.

Edited to add: This same message repeats for each connection attempt - client or browser. The only parts that change are the addresses, timestamps, and request headers - which would be expected coming from different sources and systems.

Web Browser

If the problem is related to the Web interface, open your browser inspector Console and Network tabs while refreshing (reloading) and reproducing the problem. Provide any relevant output/errors here that appear.

Console:

GET https://ingest.wmssfm.com/
Status 500 Internal Server Error
Version HTTP/1.1
Transferred 743 B (289 B size)
Request Priority Highest
DNS Resolution DNS over HTTPS

###<response headers>
Connection	Upgrade, close
Content-Length	289
Content-Type	text/plain; charset=utf-8
Date	Thu, 10 Apr 2025 02:20:48 GMT
Referrer-Policy	no-referrer
Server	Apache/2.4.62 (Debian)
Strict-Transport-Security	max-age=63072000
Upgrade	h2
X-Content-Type-Options	nosniff
X-Frame-Options	SAMEORIGIN
X-Permitted-Cross-Domain-Policies	none
X-Robots-Tag	noindex, nofollow
X-XSS-Protection	1; mode=block

###<request headers>
Accept text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Encoding	gzip, deflate, br, zstd
Accept-Language	en-US,en;q=0.5
Connection	keep-alive
Cookie	__Host-nc_sameSiteCookielax=true; __Host-nc_sameSiteCookiestrict=true
DNT	1
Host	ingest.wmssfm.com
Priority	u=0, i
Sec-Fetch-Dest	document
Sec-Fetch-Mode	navigate
Sec-Fetch-Site	none
Sec-Fetch-User	?1
Upgrade-Insecure-Requests	1
User-Agent	Mozilla/5.0 (X11; Linux x86_64; rv:128.0) Gecko/20100101 Firefox/128.0

Network:

Provides the same information as the console.

Web server / Reverse Proxy

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

ingest.wmssfm.com:443 <redacted> - <redacted> [09/Apr/2025:22:30:33 -0400] "GET /index.php/204 HTTP/1.1" 500 3320 "-" "Mozilla/5.0 (Windows) mirall/3.15.3 (build 20250107) (Nextcloud, windows-10.0.19045 ClientArchitecture: x86_64 OsArchitecture: x86_64)"
ingest.wmssfm.com:443 <redacted> - <redacted> [09/Apr/2025:22:30:48 -0400] "GET /index.php/204 HTTP/1.1" 500 3320 "-" "Mozilla/5.0 (Linux) mirall/3.15.2 (build 27538) (Nextcloud, debian-6.1.0-31-amd64 ClientArchitecture: x86_64 OsArchitecture: x86_64)"
ingest.wmssfm.com:443 <redacted> - <redacted> [09/Apr/2025:22:30:59 -0400] "GET /index.php/204 HTTP/1.1" 500 3320 "-" "Mozilla/5.0 (Windows) mirall/3.15.2 (build 20241216) (Nextcloud, windows-10.0.19045 ClientArchitecture: x86_64 OsArchitecture: x86_64)"
ingest.wmssfm.com:443 <redacted> - - [09/Apr/2025:22:31:00 -0400] "GET / HTTP/1.1" 500 3336 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:128.0) Gecko/20100101 Firefox/128.0"
ingest.wmssfm.com:443 <redacted> - - [09/Apr/2025:22:31:01 -0400] "GET /index.php/apps/files/preview-service-worker.js HTTP/1.1" 500 1104 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:128.0) Gecko/20100101 Firefox/128.0"
ingest.wmssfm.com:443 <redacted> - <redacted> [09/Apr/2025:22:31:05 -0400] "GET /index.php/204 HTTP/1.1" 500 3321 "-" "Mozilla/5.0 (Linux) mirall/3.15.2 (build 27538) (Nextcloud, debian-6.1.0-31-amd64 ClientArchitecture: x86_64 OsArchitecture: x86_64)"
ingest.wmssfm.com:443 <redacted> - - [09/Apr/2025:22:31:05 -0400] "GET /index.php/apps/files/api/v1/stats HTTP/1.1" 500 3336 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.2 Safari/605.1.15"
ingest.wmssfm.com:443 <redacted> - <redacted> [09/Apr/2025:22:31:23 -0400] "GET /index.php/204 HTTP/1.1" 500 3320 "-" "Mozilla/5.0 (Linux) mirall/3.15.3 (build 27805) (Nextcloud, debian-6.1.0-31-amd64 ClientArchitecture: x86_64 OsArchitecture: x86_64)"
ingest.wmssfm.com:443 <redacted> - - [09/Apr/2025:22:31:25 -0400] "GET /index.php/204 HTTP/1.1" 500 3320 "-" "Mozilla/5.0 (Windows) mirall/3.15.2 (build 20241216) (Nextcloud, windows-10.0.19045 ClientArchitecture: x86_64 OsArchitecture: x86_64)"
ingest.wmssfm.com:443 <redacted> - <redacted> [09/Apr/2025:22:31:35 -0400] "GET /index.php/204 HTTP/1.1" 500 3320 "-" "Mozilla/5.0 (Windows) mirall/3.15.3 (build 20250107) (Nextcloud, windows-10.0.19045 ClientArchitecture: x86_64 OsArchitecture: x86_64)"

Some of these are clients that are trying to connect - the first and last lines in the above log snipped are from the same system - two successive attempts to connect.

Configuration

Nextcloud

The output of occ config:list system or similar is best, but, if not possible, the contents of your config.php file from /path/to/nextcloud is fine (make sure to remove any identifiable information!):

{
    "system": {
        "passwordsalt": "***REMOVED SENSITIVE VALUE***",
        "secret": "***REMOVED SENSITIVE VALUE***",
        "trusted_domains": [
            "localhost",
            <redacted>,
            <redacted>,
            "ingest.wmssfm.com",
            "108.11.218.172"
        ],
        "datadirectory": "***REMOVED SENSITIVE VALUE***",
        "enable-previews": false,
        "dbtype": "mysql",
        "version": "30.0.4.1",
        "overwrite.cli.url": "http:\/\/localhost",
        "dbname": "***REMOVED SENSITIVE VALUE***",
        "dbhost": "***REMOVED SENSITIVE VALUE***",
        "dbport": "",
        "dbtableprefix": "oc_",
        "mysql.utf8mb4": true,
        "dbuser": "***REMOVED SENSITIVE VALUE***",
        "dbpassword": "***REMOVED SENSITIVE VALUE***",
        "installed": true,
        "instanceid": "***REMOVED SENSITIVE VALUE***",
        "maintenance_window_start": 1,
        "maintenance": false,
        "default_phone_region": "US",
        "knowledgebaseenabled": true,
        "session_lifetime": 86400,
        "session_keepalive": true,
        "memcache.locking": "\\OC\\Memcache\\Redis",
        "redis": {
            "host": "***REMOVED SENSITIVE VALUE***",
            "port": 6379,
            "timeout": 0
        },
        "memcache.local": "\\OC\\Memcache\\APCu",
        "mail_domain": "***REMOVED SENSITIVE VALUE***",
        "mail_from_address": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpmode": "smtp",
        "mail_smtpauthtype": "LOGIN",
        "mail_smtphost": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpport": "25",
        "mail_sendmailmode": "smtp",
        "app_install_overwrite": [
            "admin_notifications"
        ]
    }
}

Apps

Enabled:
  - activity: 3.0.0
  - admin_notifications: 1.0.2
  - app_api: 4.0.3
  - bruteforcesettings: 3.0.0
  - cloud_federation_api: 1.13.0
  - comments: 1.20.1
  - contactsinteraction: 1.11.0
  - dav: 1.31.1
  - external: 5.5.2
  - federatedfilesharing: 1.20.0
  - federation: 1.20.0
  - files: 2.2.0
  - files_downloadlimit: 3.0.0
  - files_pdfviewer: 3.0.0
  - files_reminders: 1.3.0
  - files_sharing: 1.22.0
  - files_trashbin: 1.20.1
  - files_versions: 1.23.0
  - firstrunwizard: 3.0.0
  - group_everyone: 0.1.16
  - impersonate: 1.17.0
  - logreader: 3.0.0
  - lookup_server_connector: 1.18.0
  - nextcloud_announcements: 2.0.0
  - notifications: 3.0.0
  - oauth2: 1.18.1
  - password_policy: 2.0.0
  - photos: 3.0.2
  - privacy: 2.0.0
  - provisioning_api: 1.20.0
  - recommendations: 3.0.0
  - related_resources: 1.5.0
  - serverinfo: 2.0.0
  - settings: 1.13.0
  - sharebymail: 1.20.0
  - support: 2.0.0
  - survey_client: 2.0.0
  - systemtags: 1.20.0
  - text: 4.1.0
  - theming: 2.5.0
  - twofactor_backupcodes: 1.19.0
  - updatenotification: 1.20.0
  - user_status: 1.10.0
  - viewer: 3.0.0
  - weather_status: 1.10.0
  - webhook_listeners: 1.1.0-dev
  - workflowengine: 2.12.0
Disabled:
  - admin_audit: 1.20.0
  - circles: 30.0.0 (installed 30.0.0)
  - dashboard: 7.10.0 (installed 7.10.0)
  - encryption: 2.18.0
  - files_external: 1.22.0
  - suspicious_login: 8.0.0
  - twofactor_nextcloud_notification: 4.0.0
  - twofactor_totp: 12.0.0-dev
  - user_ldap: 1.21.0

Tips for increasing the likelihood of a response

  • Use the preformatted text formatting option in the editor for all log entries and configuration output.
    • Done, and done.
  • If screenshots are useful, feel free to include them.
    • Only text, do nothing really to provide.
    • If possible, also include key error output in text form so it can be searched for.
      • Already done - the response is text only anyway.-
  • Try to edit log output only minimally (if at all) so that it can be ran through analyzers / formatters by those trying to help you.
    • Minimal editing of the logs - only removed IP addresses and, where applicable, usernames (for the clients that are continually attempting to connect)

A general note - we use this in our high school radio station to automate program ingestion into our automation server (hence the hostname of ingest). The primary use is for a number of church services that we air every Sunday. There are also a couple of radio programs that are brought in through this server and some automated retrieval of the programs from the provider. The documents (and other) folders for two PCs also are synced to Nextcloud. Part of the reason for that is backups. There is a backup script that nightly copies data over to a cloud storage location (covers more than what is in Nextcloud).

Please do not construe this as a directive or expectation that analysis, suggestions, etc. are expedited. I wanted to provide some background on the way we are utilizing the system - having done technical troubleshooting (I used to work in network communications for a global corporation, troubleshooting connectivity issues with switching, routing, etc. Essentially layers 1 through 3 of the OSI model) I know having that information can at times be helpful in getting a better picture of the issue at hand. I fully understand help here comes from volunteers who are providing assistance when and as they are able. I very much appreciate that.

Thanks!

I have seen other, older posts with this issue, however none of those fixes helped. I did have to modify my /var/www/nextcloud/lib/versioncheck.php so it wouldn’t complain about the PHP version (directions found in bug 50792).

Is there a reason you’re running Nextcloud v30 with an unsupported/untested PHP version?

AIO, if I recall correctly. Been running a while now.

For the record, all indications are this is not AIO. Looks perhaps like an archive-based/bare metal installation.

In the log, I get an error regarding not finding the database driver. One of the suggestions I found there was to make sure the DB driver was installed for the database server (MariaDB, in my case). I have php8.4-mysql already installed (received an error that I was already at the latest version when attempting to install via apt).

The error still indicates the db driver is missing (at least from the PHP runtime that is supporting your Nextcloud installation; there are different config files for each run mode of PHP).

Are you sure you don’t have multiple PHP versions installed? Each one has dedicated drivers.

Also, each PHP run mode has its own configuration. Are you using mod_php or PHP-FPM?

Unsure - first noticed it today

Do you have any unattended updates configured on your Debian server? This doesn’t just happen unless something has been changed in the server environment.

PHP version (e.g, 8.3): 8.4.5

Debian 12 doesn’t come with PHP 8.4 so I’m guessing you’re environment has a third-party unofficial installation of PHP such as Sury.

Can you post the output of dpkg -l | grep php8?

Sure. Here you go.

ii libapache2-mod-php8.3 8.3.19-1+0~20250313.57+debian12~1.gbpe7e891 amd64 server-side, HTML-embedded scripting language (Apache 2 module)
ii libapache2-mod-php8.4 8.4.5-1+0~20250313.25+debian12~1.gbp6d77b0 amd64 server-side, HTML-embedded scripting language (Apache 2 module)
ii php8.3 8.3.19-1+0~20250313.57+debian12~1.gbpe7e891 all server-side, HTML-embedded scripting language (metapackage)
ii php8.3-apcu 5.1.24-1+0~20250407.42+debian12~1.gbp5f79ec amd64 APC User Cache for PHP
ii php8.3-cli 8.3.19-1+0~20250313.57+debian12~1.gbpe7e891 amd64 command-line interpreter for the PHP scripting language
ii php8.3-common 8.3.19-1+0~20250313.57+debian12~1.gbpe7e891 amd64 documentation, examples and common module for PHP
ii php8.3-gd 8.3.19-1+0~20250313.57+debian12~1.gbpe7e891 amd64 GD module for PHP
ii php8.3-igbinary 3.2.16-4+0~20250408.53+debian12~1.gbpef518d amd64 igbinary PHP serializer
ii php8.3-imagick 3.8.0~rc2-3+0~20250408.50+debian12~1.gbpd16435 amd64 Provides a wrapper to the ImageMagick library
ii php8.3-imap 8.3.19-1+0~20250313.57+debian12~1.gbpe7e891 amd64 IMAP module for PHP
ii php8.3-opcache 8.3.19-1+0~20250313.57+debian12~1.gbpe7e891 amd64 Zend OpCache module for PHP
ii php8.3-readline 8.3.19-1+0~20250313.57+debian12~1.gbpe7e891 amd64 readline module for PHP
ii php8.3-redis 6.2.0-1+0~20250408.63+debian12~1.gbp272b23 amd64 PHP extension for interfacing with Redis
ii php8.3-xml 8.3.19-1+0~20250313.57+debian12~1.gbpe7e891 amd64 DOM, SimpleXML, XML, and XSL module for PHP
ii php8.4-apcu 5.1.24-1+0~20250407.42+debian12~1.gbp5f79ec amd64 APC User Cache for PHP
ii php8.4-bcmath 8.4.5-1+0~20250313.25+debian12~1.gbp6d77b0 amd64 Bcmath module for PHP
ii php8.4-cli 8.4.5-1+0~20250313.25+debian12~1.gbp6d77b0 amd64 command-line interpreter for the PHP scripting language
ii php8.4-common 8.4.5-1+0~20250313.25+debian12~1.gbp6d77b0 amd64 documentation, examples and common module for PHP
ii php8.4-curl 8.4.5-1+0~20250313.25+debian12~1.gbp6d77b0 amd64 CURL module for PHP
ii php8.4-fpm 8.4.5-1+0~20250313.25+debian12~1.gbp6d77b0 amd64 server-side, HTML-embedded scripting language (FPM-CGI binary)
ii php8.4-gd 8.4.5-1+0~20250313.25+debian12~1.gbp6d77b0 amd64 GD module for PHP
ii php8.4-gmp 8.4.5-1+0~20250313.25+debian12~1.gbp6d77b0 amd64 GMP module for PHP
ii php8.4-intl 8.4.5-1+0~20250313.25+debian12~1.gbp6d77b0 amd64 Internationalisation module for PHP
ii php8.4-mbstring 8.4.5-1+0~20250313.25+debian12~1.gbp6d77b0 amd64 MBSTRING module for PHP
ii php8.4-mysql 8.4.5-1+0~20250313.25+debian12~1.gbp6d77b0 amd64 MySQL module for PHP
ii php8.4-opcache 8.4.5-1+0~20250313.25+debian12~1.gbp6d77b0 amd64 Zend OpCache module for PHP
ii php8.4-readline 8.4.5-1+0~20250313.25+debian12~1.gbp6d77b0 amd64 readline module for PHP
ii php8.4-xml 8.4.5-1+0~20250313.25+debian12~1.gbp6d77b0 amd64 DOM, SimpleXML, XML, and XSL module for PHP
ii php8.4-zip 8.4.5-1+0~20250313.25+debian12~1.gbp6d77b0 amd64 Zip module for PHP

I suspect that it was updated to 8.4.5 with an update somewhere. I thought I had automatic updates disabled on this box, I need to go look at that now.

Like I said, I thought it was AIO, but entirely possible it is not. It has been quite a while since I set it up and honestly don’t remember. Bare metal is entirely within the realm of possibility, and if that is what this looks like then that is probably what it is.

Regarding the PHP driver, the installed driver matches the PHP version (8.4.5, according to the package). Multiple versions - I need to check on that one. I am using PHP-FPM on this.

The only thing this box does is run Nextcloud (used to run OwnCloud). I does an automagical cloud backup nightly to an azure blob using Borg Backup, rsync, and a shell script. Other than that, nothing else runs on this machine.

Finally able to get back to looking at the box. It looks like PHP was updated from 8.4.? to 8.4.5 on Sunday. The PHP 8.3 installation still appears to be there - at least, I see it in /usr/bin. I am thinking if I just drop back to it, I should be fine. I tried to uninstall 8.4…and apt tells me it is not installed. Need to chase that one down. Going by file dates, it looks like PHP went from 8.3 to 8.4 in mid-March. This has been working since then - it was last known to be working Sunday afternoon, 6 April.

Got it fixed! Thanks to the questioning from @jtr I started looking closer at PHP and what the versions are doing. I know it was working with 8.3 - so I manually dropped back to that version. While the methods I used may or may not be the ‘correct’ way to do it, they worked for me.

First, I looked to see what was installed for php8.4:

dpkg --get-selections php8.4*

Then made sure that php8.3 had the same packages as php8.4 by installing anything in php8.4 not in php8.3.

Changed the links in /etc/alternatives to point to the php8.3 installation

php → /usr/bin/php8.3
php.1.gz → /usr/share/man/man1/php8.3.1.gz
php-fpm.sock → /run/php/php8.3-fpm.sock

Made the necessary changes to Apache to enable php8.3 (these came when I installed php8.3-fpm)

a2enconf php8.3-fpm

Then connected to the web interface and verified I could log on and get to my files, etc. I also made sure my client was now connected again.

Once I confirmed all was working, I removed all of the php8.4 stuff

apt remove php8.4*

Then set apt to hold the php8.3 packages at their current version. This means I will have to pay closer attention to PHP security updates to ensure that any vulnerabilities are addressed, since they will not automatically update now.

apt-mark hold php8.3-

I had to do each package, as apt-mark complained about not finding php8.3-fpm.config in the package list. I didn’t take time to figure that one out, it was easier to list the installed php8.3 packages and mark them one at a time. Copy/paste was my friend here.

Now I have a working Nextcloud installation again, running with PHP 8.3, and the PHP 8.3 packages marked as held.

Thanks again to @jtr for the questions, since they pointed me in the right direction to do some digging on the system and searches on Startpage to make the changes that fixed the problem. And learned a few things in the process. Now I just have to remember what I learned more than just an hour or less. :grimacing:

I have the exact same problem, and I set php back to 8.3, but I still get the message:
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.

tailing /var/log/apache2/error.log gives me this:
[Thu Apr 10 16:39:36.394950 2025] [http2:debug] [pid 21197:tid 140572710913600] h2_session.c(606): [client 10.69.20.113:56878] AH03068: h2_session(21197-1,IDLE,0): sent FRAME[GOAWAY[error=0, reason=‘timeout’, last_stream=5]], frames=8/6 (r/s)
[Thu Apr 10 16:39:36.395133 2025] [http2:debug] [pid 21197:tid 140572710913600] h2_session.c(794): [client 10.69.20.113:56878] AH03069: h2_session(21197-1,IDLE,0): sent GOAWAY, err=0, msg=timeout
[Thu Apr 10 16:39:36.395157 2025] [http2:debug] [pid 21197:tid 140572710913600] h2_session.c(1389): [client 10.69.20.113:56878] AH03078: h2_session(21197-1,IDLE,0): transit [IDLE] – local goaway → [DONE]
[Thu Apr 10 16:39:36.395168 2025] [http2:debug] [pid 21197:tid 140572710913600] h2_session.c(1389): [client 10.69.20.113:56878] AH03078: h2_session(21197-1,DONE,0): transit [DONE] – pre_close → [CLEANUP]
[Thu Apr 10 16:39:36.395454 2025] [ssl:debug] [pid 21197:tid 140572710913600] ssl_engine_io.c(1147): [client 10.69.20.113:56878] AH02001: Connection closed to child 12 with standard shutdown (server cloud.wcv.us:443)

How do I downgrade my Nextcloud version?

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