Support intro
Sorry to hear you’re facing problems. 
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:
- Official documentation (searchable and regularly updated)
- How to topics and FAQs
- Forum search
(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.
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!):
- go to https://ingest.wmssfm.com
- There is no step 2
- 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!