Can't get Nextcloud (docker) to work with Collabora (CODE)

Hi, I’m running Nextcloud and Collabora as docker containers on my unRAID server. Both are accessible via a LetsEncrypt reverse proxy. I also have the CODE app installed within Nextcloud and the settings updated. Nextcloud generally works great, but whenever I try to open a document it fails and I get the message “Failed to connect to Collabora Online Development Edition. Please try again later or contact your server administrator.”

Both Collabora’s general “OK” interface and the admin panel are accessible at and this is the setting that is set in Nextcloud. I’ve been trying to get this to work for months, but haven’t had any luck. Nextcloud’s logs say nothing, while Collabora’s system logs do have some errors, however, I’m not sure if they are relevant. I copied them below just in case. If anybody can help me to figure this out I’d be super grateful. Thanks.

A selection of the most common errors:

    wsd-00031-00906 2019-07-12 06:12:14.153253 [ docbroker_043 ] WRN Client session [0043] not found to forward message: o1571 statechanged: .uno:AssignLayout=| wsd/DocumentBroker.cpp:1798

    wsd-00031-00032 2019-07-12 06:12:14.904970 [ prisoner_poll ] WRN Prisoner connection disconnected but without valid socket.| wsd/LOOLWSD.cpp:1783
    wsd-00031-00940 2019-07-12 06:12:17.593687 [ docbroker_048 ] ERR Socket #57 SSL error: SYSCALL (5). (EPIPE: Broken pipe)| ./net/SslSocket.hpp:236
    wsd-00031-00940 2019-07-12 06:12:17.593765 [ docbroker_048 ] ERR #57: Wrote outgoing data -1 bytes. (EPIPE: Broken pipe)| ./net/Socket.hpp:1058

    wsd-00031-00032 2019-07-12 06:12:23.378568 [ prisoner_poll ] WRN ForKit not responsive for 7046 ms forking 1 children. Resetting.| wsd/LOOLWSD.cpp:427
    wsd-00031-01162 2019-07-12 06:12:23.581930 [ docbroker_056 ] WRN getNewChild: No child available. Sending spawn request to forkit and failing.| wsd/LOOLWSD.cpp:552

I had a similar issue, and although I never did make sense of why everything seemed to have connectivity and it just wouldn’t work, what ultimately fixed it for me was moving to docker-compose and having it create a network for the group of containers.

Here is my topic where I was able to resolve the issue. Although, let me caution you about one thing, I wrote this before moving my data folder outside the web root, so you’ll need to make an adjustment there. What I eventually did was move it to /srv/nextcloud/data and added another volume mount to the Nextcloud container for that.

One other thing I did which is really just a quality of life thing is I made this alias in .bashrc on the host so I can easily just run occ directly on the host server:

alias occ='docker exec -it -u www-data nextcloud php occ'