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.2.2
- Operating system and version (e.g., Ubuntu 24.04):
- Podman running on RockyLinux 9
- Web server and version (e.g, Apache 2.4.25):
- nginx 1.27
- Reverse proxy and version _(e.g. nginx 1.27.2)
- nginx 1.22
- PHP version (e.g, 8.3):
- 8.2
- Is this the first time you’ve seen this error? (Yes / No):
- no
- When did this problem seem to first start?
- after install
- Installation method (e.g. AlO, NCP, Bare Metal/Archive, etc.)
- docker image
- Are you using CloudfIare, mod_security, or similar? (Yes / No)
-no
Summary of the issue you are facing:
Getting Unauthorized WOPI host
Steps to replicate it (hint: details matter!):
- Launch container
podman run --detach
–label “io.containers.autoupdate=registry”
–env-file /mnt/lxd/.podman/nextcloud/$DOMAIN/.code-env
–restart on-failure
–pod nextcloud
–name CODE
docker.io/collabora/code:latest
- .env file
COLLABORA_FQDN=code.domain1.com
COLLABORA_DOMAINS=cloud.domain1.com|cloud.domain2.com|cloud.domain3.com
username=admin
password=secret
dictionaries=en_US
extra_params=
-o:ssl.enable=false
-o:ssl.termination=true
-o:logging.level=warning
tested with curl from nextcloud to collabora instance /hosting/discovery
All works fine
5.
tested with curl from collabora to nextcloud/status.php
All looks good in the admin settings panel
Log entries
02:03:34.482443 +0000 [ forkit ] WRN The systemplate directory [/opt/cool/systemplate] is read-only, and at least [/opt/cool/systemplate//etc/hosts] is out-of-date. Will have to clone dynamic elements of systemplate to the jails. To restore optimal performance, make sure the files in [/opt/cool/systemplate/etc] are up-to-date.
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":"WHz0k5QhbYLBrbjRZaX7","level":3,"time":"2025-03-02T13:29:07+00:00","remoteAddr":"192.168.1.99","user":"admin","app":"onlyoffice","method":"GET","url":"/core/preview?fileId=240&x=250&y=250","message":"getConvertedUri: from odt to jpeg","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/133.0.0.0 Safari/537.36","version":"30.0.2.2","exception":{"Exception":"GuzzleHttp\\Exception\\ServerException","Message":"Server error: `POST https://docs.sovereign-stacks.com/converter` resulted in a `526 ` response:\nerror code: 526\n","Code":526,"Trace":[{"file":"/var/www/html/3rdparty/guzzlehttp/guzzle/src/Middleware.php","line":72,"function":"create","class":"GuzzleHttp\\Exception\\RequestException","type":"::","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/html/3rdparty/guzzlehttp/promises/src/Promise.php","line":209,"function":"GuzzleHttp\\{closure}","class":"GuzzleHttp\\Middleware","type":"::","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/html/3rdparty/guzzlehttp/promises/src/Promise.php","line":158,"function":"callHandler","class":"GuzzleHttp\\Promise\\Promise","type":"::","args":[1,"*** sensitive parameters replaced ***","*** sensitive parameters replaced ***"]},{"file":"/var/www/html/3rdparty/guzzlehttp/promises/src/TaskQueue.php","line":52,"function":"GuzzleHttp\\Promise\\{closure}","class":"GuzzleHttp\\Promise\\Promise","type":"::","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/html/3rdparty/guzzlehttp/promises/src/Promise.php","line":251,"function":"run","class":"GuzzleHttp\\Promise\\TaskQueue","type":"->","args":[true]},{"file":"/var/www/html/3rdparty/guzzlehttp/promises/src/Promise.php","line":227,"function":"invokeWaitFn","class":"GuzzleHttp\\Promise\\Promise","type":"->","args":[]},{"file":"/var/www/html/3rdparty/guzzlehttp/promises/src/Promise.php","line":272,"function":"waitIfPending","class":"GuzzleHttp\\Promise\\Promise","type":"->","args":[]},{"file":"/var/www/html/3rdparty/guzzlehttp/promises/src/Promise.php","line":229,"function":"invokeWaitList","class":"GuzzleHttp\\Promise\\Promise","type":"->","args":[]},{"file":"/var/www/html/3rdparty/guzzlehttp/promises/src/Promise.php","line":69,"function":"waitIfPending","class":"GuzzleHttp\\Promise\\Promise","type":"->","args":[]},{"file":"/var/www/html/3rdparty/guzzlehttp/guzzle/src/Client.php","line":189,"function":"wait","class":"GuzzleHttp\\Promise\\Promise","type":"->","args":[]},{"file":"/var/www/html/lib/private/Http/Client/Client.php","line":276,"function":"request","class":"GuzzleHttp\\Client","type":"->","args":["post","*** sensitive parameters replaced ***",{"0":"And 1 more entries, set log level to debug to see all entries","verify":false,"timeout":"120","headers":{"Content-type":"application/json","Authorization":"Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJwYXlsb2FkIjp7ImFzeW5jIjpmYWxzZSwidXJsIjoiaHR0cHM6Ly9jbG91ZC5zb3ZlcmVpZ24tc3RhY2tzLmNvbS9hcHBzL29ubHlvZmZpY2UvZG93bmxvYWQ_ZG9jPWV5SjBlWEFpT2lKS1YxUWlMQ0poYkdjaU9pSklVekkxTmlKOS5leUpoWTNScGIyNGlPaUprYjNkdWJHOWhaQ0lzSW1acGJHVkpaQ0k2TWpRd0xDSjFjMlZ5U1dRaU9pSmhaRzFwYmlKOS54ZUVES25acENtSGpUMzVuTEtaY040NGI3UHVGbnd4d3I2TGdkUEYwY3ZrIiwib3V0cHV0dHlwZSI6ImpwZWciLCJmaWxldHlwZSI6Im9kdCIsInRpdGxlIjoiMTUxMTQ1NDUzOS5vZHQiLCJrZXkiOiIxNTExNDU0NTM5In19.0Rfajfh5q0izOZ4WXzAetzRFNuHkdXbiEbUN-e91PZw","User-Agent":"Nextcloud Server Crawler","Accept-Encoding":"gzip"},"body":"{\"async\":false,\"url\":\"https:\\/\\/cloud.sovereign-stacks.com\\/apps\\/onlyoffice\\/download?doc=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJhY3Rpb24iOiJkb3dubG9hZCIsImZpbGVJZCI6MjQwLCJ1c2VySWQiOiJhZG1pbiJ9.xeEDKnZpCmHjT35nLKZcN44b7PuFnwxwr6LgdPF0cvk\",\"outputtype\":\"jpeg\",\"filetype\":\"odt\",\"title\":\"1511454539.odt\",\"key\":\"1511454539\",\"token\":\"eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJhc3luYyI6ZmFsc2UsInVybCI6Imh0dHBzOi8vY2xvdWQuc292ZXJlaWduLXN0YWNrcy5jb20vYXBwcy9vbmx5b2ZmaWNlL2Rvd25sb2FkP2RvYz1leUowZVhBaU9pSktWMVFpTENKaGJHY2lPaUpJVXpJMU5pSjkuZXlKaFkzUnBiMjRpT2lKa2IzZHViRzloWkNJc0ltWnBiR1ZKWkNJNk1qUXdMQ0oxYzJWeVNXUWlPaUpoWkcxcGJpSjkueGVFREtuWnBDbUhqVDM1bkxLWmNONDRiN1B1Rm53eHdyNkxnZFBGMGN2ayIsIm91dHB1dHR5cGUiOiJqcGVnIiwiZmlsZXR5cGUiOiJvZHQiLCJ0aXRsZSI6IjE1MTE0NTQ1Mzkub2R0Iiwia2V5IjoiMTUxMTQ1NDUzOSJ9.px3KFtyYhPJgIZeO89CB3zNmWAfzF2jkGVFL2lYbZsE\"}","nextcloud":{"allow_local_address":true}}]},{"file":"/var/www/html/custom_apps/onlyoffice/lib/DocumentService.php","line":377,"function":"post","class":"OC\\Http\\Client\\Client","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/html/custom_apps/onlyoffice/lib/DocumentService.php","line":190,"function":"request","class":"OCA\\Onlyoffice\\DocumentService","type":"->","args":["*** sensitive parameters replaced ***","post","*** sensitive parameters replaced ***"]},{"file":"/var/www/html/custom_apps/onlyoffice/lib/DocumentService.php","line":100,"function":"sendRequestToConvertService","class":"OCA\\Onlyoffice\\DocumentService","type":"->","args":["https://cloud.sovereign-stacks.com/apps/onlyoffice/download?doc=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJhY3Rpb24iOiJkb3dubG9hZCIsImZpbGVJZCI6MjQwLCJ1c2VySWQiOiJhZG1pbiJ9.xeEDKnZpCmHjT35nLKZcN44b7PuFnwxwr6LgdPF0cvk","odt","jpeg","1511454539",false,"*** sensitive parameters replaced ***",false]},{"file":"/var/www/html/custom_apps/onlyoffice/lib/Preview.php","line":271,"function":"getConvertedUri","class":"OCA\\Onlyoffice\\DocumentService","type":"->","args":["https://cloud.domain1.com/apps/onlyoffice/download?doc=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJhY3Rpb24iOiJkb3dubG9hZCIsImZpbGVJZCI6MjQwLCJ1c2VySWQiOiJhZG1pbiJ9.xeEDKnZpCmHjT35nLKZcN44b7PuFnwxwr6LgdPF0cvk","odt","jpeg","1511454539"]},{"file":"/var/www/html/lib/private/Preview/ProviderV1Adapter.php","line":35,"function":"getThumbnail","class":"OCA\\Onlyoffice\\Preview","type":"->","args":["AAtest.odt",4096,4096,false,{"__class__":"OC\\Files\\View"}]},{"file":"/var/www/html/lib/private/Preview/GeneratorHelper.php","line":44,"function":"getThumbnail","class":"OC\\Preview\\ProviderV1Adapter","type":"->","args":[{"__class__":"OC\\Files\\Node\\File"},4096,4096]},{"file":"/var/www/html/lib/private/Preview/Generator.php","line":337,"function":"getThumbnail","class":"OC\\Preview\\GeneratorHelper","type":"->","args":[{"__class__":"OC\\Preview\\ProviderV1Adapter"},{"__class__":"OC\\Files\\Node\\File"},4096,4096]},{"file":"/var/www/html/lib/private/Preview/Generator.php","line":313,"function":"generateProviderPreview","class":"OC\\Preview\\Generator","type":"->","args":[{"__class__":"OC\\Files\\SimpleFS\\SimpleFolder"},{"__class__":"OC\\Files\\Node\\File"},4096,4096,false,true,"application/vnd.oasis.opendocument.text",""]},{"file":"/var/www/html/lib/private/Preview/Generator.php","line":119,"function":"getMaxPreview","class":"OC\\Preview\\Generator","type":"->","args":[{"__class__":"OC\\Files\\SimpleFS\\SimpleFolder"},"*** sensitive parameters replaced ***",{"__class__":"OC\\Files\\Node\\File"},"application/vnd.oasis.opendocument.text",""]},{"file":"/var/www/html/lib/private/Preview/Generator.php","line":86,"function":"generatePreviews","class":"OC\\Preview\\Generator","type":"->","args":[{"__class__":"OC\\Files\\Node\\File"},[{"width":250,"height":250,"crop":true,"mode":"fill"}],"application/vnd.oasis.opendocument.text"]},{"file":"/var/www/html/lib/private/PreviewManager.php","line":167,"function":"getPreview","class":"OC\\Preview\\Generator","type":"->","args":[{"__class__":"OC\\Files\\Node\\File"},250,250,true,"fill","*** sensitive parameters replaced ***"]},{"file":"/var/www/html/core/Controller/PreviewController.php","line":159,"function":"getPreview","class":"OC\\PreviewManager","type":"->","args":[{"__class__":"OC\\Files\\Node\\File"},250,250,true,"fill"]},{"file":"/var/www/html/core/Controller/PreviewController.php","line":123,"function":"fetchPreview","class":"OC\\Core\\Controller\\PreviewController","type":"->","args":[{"__class__":"OC\\Files\\Node\\File"},250,250,false,true,"fill",false]},{"file":"/var/www/html/lib/private/AppFramework/Http/Dispatcher.php","line":208,"function":"getPreviewByFileId","class":"OC\\Core\\Controller\\PreviewController","type":"->","args":[240,250,250,false,true,"fill",false]},{"file":"/var/www/html/lib/private/AppFramework/Http/Dispatcher.php","line":114,"function":"executeController","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->","args":[{"__class__":"OC\\Core\\Controller\\PreviewController"},"getPreviewByFileId"]},{"file":"/var/www/html/lib/private/AppFramework/App.php","line":161,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->","args":[{"__class__":"OC\\Core\\Controller\\PreviewController"},"getPreviewByFileId"]},{"file":"/var/www/html/lib/private/Route/Router.php","line":302,"function":"main","class":"OC\\AppFramework\\App","type":"::","args":["OC\\Core\\Controller\\PreviewController","getPreviewByFileId",{"__class__":"OC\\AppFramework\\DependencyInjection\\DIContainer"},{"_route":"core.preview.getpreviewbyfileid"}]},{"file":"/var/www/html/lib/base.php","line":1001,"function":"match","class":"OC\\Route\\Router","type":"->","args":["/core/preview"]},{"file":"/var/www/html/index.php","line":24,"function":"handleRequest","class":"OC","type":"::","args":[]}],"File":"/var/www/html/3rdparty/guzzlehttp/guzzle/src/Exception/RequestException.php","Line":113,"message":"getConvertedUri: from odt to jpeg","exception":[],"CustomMessage":"getConvertedUri: from odt to jpeg"},"id":"67c45e8e614b4"}
Ok my confusion is around what entries are actually needed in the env file.
My initial .env file used:
aliasgroup1=https://cloud.domain1.com:443,https://cloud\.domain1\.com:443
aliasgroup2=https://cloud.domain2.com:443,https://cloud\.domain2\.com:443
Worked fine initially, but now getting the unauthorized wopi host error when trying to open documents.
So I searched and found a few other syntax examples, so changed it to use:
COLLABORA_FQDN=code.domain1.com
COLLABORA_DOMAINS=cloud.domain1.com|cloud.domain2.com|cloud.domain3.com
I have seen a few different variations of variable names, but not certain which ones I need to use to get past the wopi host errors.
I can share more detail with the config and logging, but I think the issue is with the .env file and these domain values?
I followed the steps in this thread: Yet another problem with Nextcloud Office/Collabora - #2 by kevdog
I have seen some suggestions to put the IP address in for the values as well.
Can someone school me on the correct variables to use when accessing Collabra from separate nextcloud domains?
Thank you