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):
31.0.4
- Operating system and version (e.g., Ubuntu 24.04):
Ubuntu 24.04
- Web server and version (e.g, Apache 2.4.25):
Apache 2.4.58
- PHP version (e.g, 8.3):
8.3.6
- Is this the first time you’ve seen this error? (Yes / No):
Yes
- When did this problem seem to first start?
Just after enabling Mail app and connecting mailbox
- Installation method (e.g. AlO, NCP, Bare Metal/Archive, etc.)
Server
- Are you using CloudfIare, mod_security, or similar? (Yes / No)
Cloudflare tunnel
Summary of the issue you are facing:
[I’m able to connect to external mailbox (Yahoo.com, 163.com). Credential and IMAP configuration is validated. Mail app is even able to retriev the full list of IMAP folders. Every folder I select produces “Could not open folder”]
Steps to replicate it (hint: details matter!):
- Download and enable Mail app 5.3.2
- Go to Mail app in Navbar
- Connect new mail box and validate IMAP connection
- List of server folders appear
- Choosing any folder including Inbox results in “Could not open folder”
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":"RX2zseePKKPE2tR0569G","level":3,"time":"2025-09-03T04:39:35+00:00","remoteAddr":"130.162.183.188","user":"denis","app":"PHP","method":"GET","url":"/apps/mail/api/messages?mailboxId=37&limit=20&sort=newest&view=threaded","message":"Declaration of Psr\\Log\\NullLogger::log($level, $message, array $context = []) must be compatible with Psr\\Log\\LoggerInterface::log($level, Stringable|string $message, array $context = []): void at /var/www/nextcloud/apps/osmsurgery/vendor/psr/log/Psr/Log/NullLogger.php#26","userAgent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/139.0.0.0 Safari/537.36","version":"31.0.4.1","data":{"app":"PHP"}}
{"reqId":"bNrdnhCjTyM85KOIQbDK","level":3,"time":"2025-09-03T04:39:35+00:00","remoteAddr":"130.162.183.188","user":"denis","app":"PHP","method":"GET","url":"/apps/mail/api/messages?mailboxId=38&limit=20&sort=newest&view=threaded","message":"Declaration of Psr\\Log\\NullLogger::log($level, $message, array $context = []) must be compatible with Psr\\Log\\LoggerInterface::log($level, Stringable|string $message, array $context = []): void at /var/www/nextcloud/apps/osmsurgery/vendor/psr/log/Psr/Log/NullLogger.php#26","userAgent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/139.0.0.0 Safari/537.36","version":"31.0.4.1","data":{"app":"PHP"}}
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.
"request": {
"method": "GET",
"url": "https://nextcloud.boisseau.me/apps/mail/api/messages?mailboxId=52&limit=20&sort=newest&view=threaded",
"httpVersion": "http/2.0",
"headers": [
{
"name": ":authority",
"value": "nextcloud.boisseau.me"
},
{
"name": ":method",
"value": "GET"
},
{
"name": ":path",
"value": "/apps/mail/api/messages?mailboxId=52&limit=20&sort=newest&view=threaded"
},
{
"name": ":scheme",
"value": "https"
},
{
"name": "accept",
"value": "application/json, text/plain, */*"
},
{
"name": "accept-encoding",
"value": "gzip, deflate, br, zstd"
},
{
"name": "accept-language",
"value": "fr-FR,fr;q=0.9,en-US;q=0.8,en;q=0.7,fr-CA;q=0.6"
},
{
"name": "priority",
"value": "u=1, i"
},
{
"name": "requesttoken",
"value": "yDrmGpMwzqX8LBm3DhMhCXNhTpU/zTp1+e/nyYFbpZc=:snGkX95insGwTSCASGIRf0VTHsxnvV0gmJ2Jrtco4KA="
},
{
"name": "sec-ch-ua",
"value": "\"Not;A=Brand\";v=\"99\", \"Google Chrome\";v=\"139\", \"Chromium\";v=\"139\""
},
{
"name": "sec-ch-ua-mobile",
"value": "?0"
},
{
"name": "sec-ch-ua-platform",
"value": "\"Linux\""
},
{
"name": "sec-fetch-dest",
"value": "empty"
},
{
"name": "sec-fetch-mode",
"value": "cors"
},
{
"name": "sec-fetch-site",
"value": "same-origin"
},
{
"name": "user-agent",
"value": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/139.0.0.0 Safari/537.36"
},
{
"name": "x-requested-with",
"value": "XMLHttpRequest, XMLHttpRequest"
}
],
"queryString": [
{
"name": "mailboxId",
"value": "52"
},
{
"name": "limit",
"value": "20"
},
{
"name": "sort",
"value": "newest"
},
{
"name": "view",
"value": "threaded"
}
],
"cookies": [],
"headersSize": -1,
"bodySize": 0
},
"response": {
"status": 500,
"statusText": "",
"httpVersion": "http/2.0",
"headers": [
{
"name": "alt-svc",
"value": "h3=\":443\"; ma=86400"
},
{
"name": "cf-cache-status",
"value": "DYNAMIC"
},
{
"name": "cf-ray",
"value": "9792b391ee44cdb1-LHR"
},
{
"name": "content-security-policy",
"value": "default-src 'self'; script-src 'self' 'nonce-GixyeZ+dlMByDxUT+VUxyDHHy5lrs5IUKlUe9kZmMWY='; style-src 'self' 'unsafe-inline'; frame-src *; img-src * data: blob:; font-src 'self' data:; media-src *; connect-src *; object-src 'none'; base-uri 'self';"
},
{
"name": "content-type",
"value": "text/html; charset=UTF-8"
},
{
"name": "date",
"value": "Wed, 03 Sep 2025 05:03:35 GMT"
},
{
"name": "nel",
"value": "{\"report_to\":\"cf-nel\",\"success_fraction\":0.0,\"max_age\":604800}"
},
{
"name": "referrer-policy",
"value": "no-referrer"
},
{
"name": "report-to",
"value": "{\"group\":\"cf-nel\",\"max_age\":604800,\"endpoints\":[{\"url\":\"https://a.nel.cloudflare.com/report/v4?s=8PHJvao%2BFTVwZ7bmZmjqe1HK2owEP%2Bsvp67waLhwjCLL6MCOfuLoNrTcbIQYWBgXoVx9Fkwx96T23Zs46nRBRjutaqw2H%2BiCAq27kVonWFwSU4ITfA%3D%3D\"}]}"
},
{
"name": "server",
"value": "cloudflare"
},
{
"name": "strict-transport-security",
"value": "max-age=15552000; includeSubDomains"
},
{
"name": "x-content-type-options",
"value": "nosniff"
},
{
"name": "x-frame-options",
"value": "SAMEORIGIN"
},
{
"name": "x-permitted-cross-domain-policies",
"value": "none"
},
{
"name": "x-robots-tag",
"value": "noindex, nofollow"
},
{
"name": "x-xss-protection",
"value": "1; mode=block"
}
],
"cookies": [],
"content": {
"size": 0,
"mimeType": "text/html"
},
"redirectURL": "",
"headersSize": -1,
"bodySize": -1,
"_transferSize": 459,
"_error": null,
"_fetchedViaServiceWorker": false
},
"serverIPAddress": "127.0.0.1",
"startedDateTime": "2025-09-03T05:03:34.533Z",
"time": 574.4550000090385,
"timings": {
"blocked": 1.647000009778887,
"dns": -1,
"ssl": -1,
"connect": -1,
"send": 0.264,
"wait": 568.1789999985705,
"receive": 4.365000000689179,
"_blocked_queueing": 1.125000009778887,
"_workerStart": -1,
"_workerReady": -1,
"_workerFetchStart": -1,
"_workerRespondWithSettled": -1
}
},
Web server / Reverse Proxy
The output of your Apache/nginx/system log in /var/log/apache2/error.log:
(many times)
Cannot load Zend OPcache - it was already loaded
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": {
"debug": true,
"instanceid": "***REMOVED SENSITIVE VALUE***",
"passwordsalt": "***REMOVED SENSITIVE VALUE***",
"secret": "***REMOVED SENSITIVE VALUE***",
"trusted_domains": [
"nextcloud.boisseau.me"
],
"datadirectory": "***REMOVED SENSITIVE VALUE***",
"dbtype": "mysql",
"version": "31.0.4.1",
"overwrite.cli.url": "https:\/\/nextcloud.boisseau.me",
"dbname": "***REMOVED SENSITIVE VALUE***",
"dbhost": "***REMOVED SENSITIVE VALUE***",
"dbport": "",
"dbtableprefix": "oc_",
"mysql.utf8mb4": true,
"dbuser": "***REMOVED SENSITIVE VALUE***",
"dbpassword": "***REMOVED SENSITIVE VALUE***",
"installed": true,
"memcache.local": "\\OC\\Memcache\\APCu",
"htaccess.RewriteBase": "\/",
"trusted_proxies": "***REMOVED SENSITIVE VALUE***",
"maintenance_window_start": 1,
"maintenance": false,
"default_phone_region": "CN"
}
}
Apps
The output of occ app:list (if possible).
Enabled:
- activity: 4.0.0
- app_api: 5.0.2
- bingren: 1.0.0
- bruteforcesettings: 4.0.0
- calendar: 5.5.2
- circles: 31.0.0
- cloud_federation_api: 1.14.0
- comments: 1.21.0
- contactsinteraction: 1.12.0
- dashboard: 7.11.0
- dav: 1.33.0
- federatedfilesharing: 1.21.0
- federation: 1.21.0
- files: 2.3.1
- files_downloadlimit: 4.0.0
- files_pdfviewer: 4.0.0
- files_reminders: 1.4.0
- files_sharing: 1.23.1
- files_trashbin: 1.21.0
- files_versions: 1.24.0
- firstrunwizard: 4.0.0
- hmr_enabler: 1.1.0-dev.0
- logreader: 4.0.0
- lookup_server_connector: 1.19.0
- mail: 5.3.2
- nextcloud_announcements: 3.0.0
- notifications: 4.0.0
- oauth2: 1.19.1
- osmreport: 1.0.0
- osmsurgery: 1.0.0
- password_policy: 3.0.0
- photos: 4.0.0-dev.1
- privacy: 3.0.0
- profile: 1.0.0
- provisioning_api: 1.21.0
- recommendations: 4.0.0
- related_resources: 2.0.0
- serverinfo: 3.0.0
- settings: 1.14.0
- sharebymail: 1.21.0
- spreed: 21.1.4
- support: 3.0.0
- survey_client: 3.0.0
- systemtags: 1.21.1
- text: 5.0.0
- theming: 2.6.1
- twofactor_backupcodes: 1.20.0
- updatenotification: 1.21.0
- user_status: 1.11.0
- viewer: 4.0.0
- weather_status: 1.11.0
- webhook_listeners: 1.2.0
- workflowengine: 2.13.0
Disabled:
- admin_audit: 1.21.0
- encryption: 2.19.0
- files_external: 1.23.0
- suspicious_login: 9.0.1
- twofactor_nextcloud_notification: 5.0.0
- twofactor_totp: 13.0.0-dev.0
- user_ldap: 1.22.0
Tips for increasing the likelihood of a response
- Use the
preformatted textformatting option in the editor for all log entries and configuration output. - If screenshots are useful, feel free to include them.
- If possible, also include key error output in text form so it can be searched for.
- 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.