Trying to use documents with Nextcloud & Collabora

I am running 2 Ubuntu 24.04.2 Servers in a virtual environment. One is running Nextcloud 31.0.3 and the other is running Collabora installed manually following the Linux install directions form your site. I am using nginx as a Reverse Proxy for the Collabora server. I am using a Cloudflare Tunnel to access the NextCloud Server. They can both see and respond to each other.

However, When I try to create a document in the Web Browser for a spread sheet or a Word doc, It creates the file but then downloads it as an Excel or Word doc outside of Nextcloud. If I create a new Diagram, it creates a new file. If I click on the new file, it opens in Nextcloud and can be edited. Would not let me post 2nd image because I’m new.

If I try to create a new document from the Nextcloud app on my iphone, I get a new doc, but when I try to open it, I get an un-editable file that says… Office Open XML word processing document Zero KB. This file can not be edited and is just a blank page.

I would really like to get this working.

Hi @Dean57 — welcome to the Collabora Online forums! :purple_heart:

check your Collabora version:

Run this on your Collabora server:t

coolwsd --version

Check if CODE is working

To make sure your Collabora Online (CODE) setup is running fine, open these in your browser:

https://collabora.yourdomain.com/hosting/discovery

This should return a large XML file. If not, your nginx or SSL config might need checking.

Also try:

https://collabora.yourdomain.com/browser/dist/admin/admin.html

If that shows the Collabora admin page, your CODE server is running properly.


Make sure the Cloudflare Tunnel doesn’t block direct access between Collabora and Nextcloud. They must talk via the domain you set in Nextcloud.


Set allowed WOPI host in Collabora

Edit /etc/coolwsd/coolwsd.xml on your Collabora server and add your Nextcloud domain under the <wopi> section:

<wopi>
    ...
    <host allow="true">nextcloud.yourdomain.com</host>
</wopi>

Use your actual domain, not an IP. The same domain must be used in the Nextcloud Collabora settings.


Check logs if things fail

  • Nextcloud log: nextcloud/data/nextcloud.log
  • Collabora log: check /var/log/coolwsd.log or run journalctl -u coolwsd

Look for errors like “WOPI access denied” or document load failures.


Thanks,
Darshan

After running the first command, I received this message…

coolwsd --version
Failed to initialize COOLWSD: Access to file denied: /etc/coolwsd/coolwsd.xml
-42510 2025-04-16 11:53:50.467283 +0000 [ coolwsd ] FTL Failed to initialize COOLWSD: Access to file denied: /etc/coolwsd/coolwsd.xml| wsd/COOLWSD.hpp:268
Access to file denied: /etc/coolwsd/coolwsd.xml

I ran the Jornalctl -u coolwsd and have a long out put. Here are a few things I noticed within the log…

When I ran the coolwsd --version, I was getting a permissions error. I modified the permissions on that file and now I am getting this error…

coolwsd --version
Failed to initialize COOLWSD: SAXParseException: Invalid token in ‘/etc/coolwsd/coolwsd.xml’, line 264 column 34
-61175 2025-04-17 14:46:05.119493 +0000 [ coolwsd ] FTL Failed to initialize COOLWSD: SAXParseException: Invalid token in ‘/etc/coolwsd/coolwsd.xml’, line 264 column 34| wsd/COOLWSD.hpp:268
SAXParseException: Invalid token in ‘/etc/coolwsd/coolwsd.xml’, line 264 column 34