# Trying to use documents with Nextcloud & Collabora

**URL:** <https://forum.collaboraonline.com/t/trying-to-use-documents-with-nextcloud-collabora/3613>\
**Category:** Installation & Configuration\
**Created:** [April 15, 2025, 4:36pm UTC](https://forum.collaboraonline.com/t/trying-to-use-documents-with-nextcloud-collabora/3613 "2025-04-15T16:36:13Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dean57](https://avatars.discourse-cdn.com/v4/letter/d/9fc29f/32.png) [@Dean57](https://forum.collaboraonline.com/u/Dean57)\
**Post date:** [April 15, 2025, 4:36pm UTC](https://forum.collaboraonline.com/t/trying-to-use-documents-with-nextcloud-collabora/3613/1 "2025-04-15T16:36:13Z")

</div>

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.

 ![image](https://europe1.discourse-cdn.com/flex013/uploads/collaboraonline/original/2X/b/b6e12f0ff492b08269fe93622980912511dfa6fe.png)

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.

---

<div class="post-metadata">

**Author:** ![darshan](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.collaboraonline.com/darshan/32/2230_2.png) [@darshan](https://forum.collaboraonline.com/u/darshan)\
**Post date:** [April 16, 2025, 7:22am UTC](https://forum.collaboraonline.com/t/trying-to-use-documents-with-nextcloud-collabora/3613/2 "2025-04-16T07:22:19Z")

</div>

Hi @Dean57 — welcome to the Collabora Online forums! 💜

### check your Collabora version:

Run this on your Collabora server:t

```auto
coolwsd --version

```

* * *

### **Check if CODE is working**

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

```auto
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:

```auto
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:

```xml
<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**

---

<div class="post-metadata">

**Author:** ![Dean57](https://avatars.discourse-cdn.com/v4/letter/d/9fc29f/32.png) [@Dean57](https://forum.collaboraonline.com/u/Dean57)\
**Post date:** [April 17, 2025, 12:45pm UTC](https://forum.collaboraonline.com/t/trying-to-use-documents-with-nextcloud-collabora/3613/3 "2025-04-17T12:45:03Z")

</div>

> [@darshan](#):
>
> journalctl -u coolwsd

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…

 ![image](https://europe1.discourse-cdn.com/flex013/uploads/collaboraonline/original/2X/e/e46f8fd8474414f532000a579dc6fdff5398fc53.png)

---

<div class="post-metadata">

**Author:** ![Dean57](https://avatars.discourse-cdn.com/v4/letter/d/9fc29f/32.png) [@Dean57](https://forum.collaboraonline.com/u/Dean57)\
**Post date:** [April 17, 2025, 2:48pm UTC](https://forum.collaboraonline.com/t/trying-to-use-documents-with-nextcloud-collabora/3613/4 "2025-04-17T14:48:26Z")

</div>

> [@darshan](#):
>
> `coolwsd --version`

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

---

<div class="post-metadata">

**Author:** ![darshan](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.collaboraonline.com/darshan/32/2230_2.png) [@darshan](https://forum.collaboraonline.com/u/darshan)\
**Post date:** [May 20, 2025, 7:17am UTC](https://forum.collaboraonline.com/t/trying-to-use-documents-with-nextcloud-collabora/3613/5 "2025-05-20T07:17:07Z")

</div>

Closed on May 20, 2025, 7:17am UTC


