I am trying to get collabora running with Docker, following the instructions here: Nextcloud Office - Self-hosted online office suite
Everything seems to have gone well, there were no errors during setup but I am unable to open any documents when I click them in the Nextcloud interface. The error that is thrown is this one:
Proxy Error
The proxy server received an invalid response from an upstream server.
The proxy server could not handle the request POST /loleaflet/0adc773/loleaflet.html
Reason: Error reading from remote server.
I have tried some troubleshooting steps, to see if Docker is running, etc. but that doesnāt appear to be the problem.
docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
4c3d595d09ff collabora/code ā/bin/sh -c 'bash stā¦ā 14 minutes ago Up 14 minutes 127.0.0.1:9980->9980/tcp pensive_panini
The only log line that is relevant seems to be this one, in /var/log/apache/other_vhosts_access.log which says:
office.example.com:443 89.39.x.x - - [21/Aug/2018:09:31:57 +0200] āPOST /loleaflet/0adc773/loleaflet.html?WOPISrc=https%3A%2F%2Fwww.example.com%2Fnextcloud%2Fapps%2Frichdocuments%2Fwopi%2Ffiles%2F30000_ocu9bw3w97bm&title=%20first%20ten%20chapters.docx&lang=en&closebutton=1&revisionhistory=1 HTTP/1.1ā 502 4150 ā-ā āMozilla/5.0 (X11; Linux x86_64; rv:61.0) Gecko/20100101 Firefox/61.0ā
502 is a gateway error but I canāt seem to figure out why it seems to be throwing that.
I am running both Nextcloud and Collabora/CODE on the same machine, which is an Ubuntu 16.04 LTS based VPS, with latest Apache, etc. Certificates for www.example.com and office.example.com are both valid Letās Encrypt certificates. DNS is working too.
I have tried restarting Docker but this doesnāt seem to do the trick.
Any troubleshooting suggestions are welcome. I can provide additional information when asked.