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).
The Basics
- Nextcloud Server version (e.g., 29.x.x):
- Nextcloud Hub 25 Autumn (32.0.2)
- Operating system and version (e.g., Ubuntu 24.04):
- Ubuntu 24.04.3 LTS (Linux 6.8.0-88-generic x86_64)
- Web server and version (e.g, Apache 2.4.25):
- Apache/2.4.65
- Reverse proxy and version _(e.g. nginx 1.27.2)
Default AiO setup, without reverse-proxy.
- PHP version (e.g, 8.3):
PHP8.3.28
- Is this the first time you’ve seen this error? (Yes / No):
Yes
- When did this problem seem to first start?
- Wed, Nov 26, 2025
- Installation method (e.g. AlO, NCP, Bare Metal/Archive, etc.)
- Nextcloud AIO v12.1.4 (Beta-Channel)
- Are you using CloudfIare, mod_security, or similar? (Yes / No)
No
We switched to the AiO Beta-Channel temporarily last week, to work around of the current Docker API compatibility problems.
Summary of the issue you are facing:
Opening office documents in password protected public shares, will show as “opening …” with a spinning wheel forever and never display the document.
While the server logs shows an “Invalid password” and “Failed to generate token for file” error from the richdocuments app.
Downloading the documents instead of opening works as expected.
Opening non-office-files (PDFs, pictures, markdown) works as expected.
The error does not occur, with public-share folders without password protection.
I confirmed this behavior on multiple AiO installations from different organizations.
Steps to replicate it:
-
Create a new password protected public-share and add some office documents to it.
-
Open the public-share link in a new (anonymous) browser window and enter the password
-
Klick on one of the office documents.
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": "Y3JwFXx0HixCMeLGdGlK",
"level": 3,
"time": "2025-11-26T18:45:35+00:00",
"remoteAddr": "127.0.0.1",
"user": "--",
"app": "richdocuments",
"method": "POST",
"url": "/apps/richdocuments/token",
"message": "Failed to generate token for file",
"userAgent": "Mozilla/5.0 (X11; Linux x86_64; rv:145.0) Gecko/20100101 Firefox/145.0",
"version": "32.0.2.2",
"exception": {
"Exception": "OCP\\Files\\NotPermittedException",
"Message": "Invalid password",
"Code": 0,
"Trace": [
{
"file": "/var/www/html/custom_apps/richdocuments/lib/Controller/DocumentController.php",
"line": 390,
"function": "getFileForShare",
"class": "OCA\\Richdocuments\\Controller\\DocumentController",
"type": "->",
"args": [
{
"__class__": "OC\\Share20\\Share"
},
2018065,
null
]
},
{
"file": "/var/www/html/lib/private/AppFramework/Http/Dispatcher.php",
"line": 204,
"function": "token",
"class": "OCA\\Richdocuments\\Controller\\DocumentController",
"type": "->",
"args": [
2018065,
"qtzowQQ7b83FFwf",
null,
"Alain.Test"
]
},
{
"file": "/var/www/html/lib/private/AppFramework/Http/Dispatcher.php",
"line": 118,
"function": "executeController",
"class": "OC\\AppFramework\\Http\\Dispatcher",
"type": "->",
"args": [
{
"__class__": "OCA\\Richdocuments\\Controller\\DocumentController"
},
"token"
]
},
{
"file": "/var/www/html/lib/private/AppFramework/App.php",
"line": 153,
"function": "dispatch",
"class": "OC\\AppFramework\\Http\\Dispatcher",
"type": "->",
"args": [
{
"__class__": "OCA\\Richdocuments\\Controller\\DocumentController"
},
"token"
]
},
{
"file": "/var/www/html/lib/private/Route/Router.php",
"line": 321,
"function": "main",
"class": "OC\\AppFramework\\App",
"type": "::",
"args": [
"OCA\\Richdocuments\\Controller\\DocumentController",
"token",
{
"__class__": "OC\\AppFramework\\DependencyInjection\\DIContainer"
},
{
"_route": "richdocuments.document.token"
}
]
},
{
"file": "/var/www/html/lib/base.php",
"line": 1061,
"function": "match",
"class": "OC\\Route\\Router",
"type": "->",
"args": [
"/apps/richdocuments/token"
]
},
{
"file": "/var/www/html/index.php",
"line": 25,
"function": "handleRequest",
"class": "OC",
"type": "::",
"args": []
}
],
"File": "/var/www/html/custom_apps/richdocuments/lib/Controller/DocumentController.php",
"Line": 453,
"message": "Failed to generate token for file",
"exception": [],
"CustomMessage": "Failed to generate token for file"
},
"id": "69274b9954079"
}
Configuration
Apps
The output of occ app:list (if possible).
Enabled:
- activity: 5.0.0-dev.0
- app_api: 32.0.0
- bruteforcesettings: 5.0.0-dev.0
- calendar: 6.1.0
- circles: 32.0.0
- cloud_federation_api: 1.16.0
- comments: 1.22.0
- contacts: 8.1.0
- contactsinteraction: 1.13.1
- dav: 1.34.2
- deck: 1.16.2
- federatedfilesharing: 1.22.0
- federation: 1.22.0
- files: 2.4.0
- files_antivirus: 6.1.0
- files_downloadlimit: 5.0.0-dev.0
- files_fulltextsearch: 32.0.2
- files_pdfviewer: 5.0.0-dev.0
- files_reminders: 1.5.0
- files_sharing: 1.24.1
- files_trashbin: 1.22.0
- files_versions: 1.25.0
- firstrunwizard: 5.0.0-dev.0
- fulltextsearch: 32.0.0
- fulltextsearch_elasticsearch: 32.0.0
- groupfolders: 20.1.4
- impersonate: 3.0.0
- logreader: 5.0.0-dev.0
- lookup_server_connector: 1.20.0
- mail: 5.6.0
- memories: 7.7.0
- nextcloud-aio: 0.8.0
- nextcloud_announcements: 4.0.0-dev.0
- notes: 4.12.4
- notifications: 5.0.0-dev.0
- notify_push: 1.2.1
- oauth2: 1.20.0
- password_policy: 4.0.0-dev.0
- photos: 5.0.0-dev.1
- privacy: 4.0.0-dev.0
- profile: 1.1.0
- provisioning_api: 1.22.0
- recommendations: 5.0.0-dev.0
- related_resources: 3.0.0-dev.0
- richdocuments: 9.0.1
- serverinfo: 4.0.0-dev.0
- settings: 1.15.1
- sharebymail: 1.22.0
- spreed: 22.0.4
- support: 4.0.0-dev.0
- survey_client: 4.0.0-dev.0
- suspicious_login: 10.0.0-dev.0
- systemtags: 1.22.0
- tasks: 0.17.1
- text: 6.0.1
- theming: 2.7.0
- twofactor_admin: 4.9.0
- twofactor_backupcodes: 1.21.0
- twofactor_email: 2.8.2
- twofactor_nextcloud_notification: 6.0.0-dev.0
- twofactor_totp: 14.0.0
- twofactor_webauthn: 2.4.1
- updatenotification: 1.22.0
- user_status: 1.12.0
- viewer: 5.0.0-dev.0
- webhook_listeners: 1.3.0
- whiteboard: 1.4.2
- workflowengine: 2.14.0
Disabled:
- admin_audit: 1.22.0
- dashboard: 7.12.0 (installed 7.1.0)
- encryption: 2.20.0
- files_external: 1.24.0 (installed 1.22.0)
- keeweb: 0.6.22 (installed 0.6.22)
- user_ldap: 1.23.0
- weather_status: 1.12.0 (installed 1.1.0)
