Collabora Error 502

For first post, please answer the questions below!

Describe your issue in detail

cannot get collabora to work. getting blank page and browser console says 502. I dont need ssl or reverse proxy. i just want to access via plain http and custom ports provided.

http://filesuite.domain.local:8080/browser/dist/cool.html?host=ws://filesuite.domain.local:8080&WOPISrc=http%3A%2F%2Ffilesuite.domain.local%3A8080%2Fwopi%2Ffiles%2F8914ab50-3576-4a3e-8ee1-1b82aca9883e&access_token=C4lrcBWse_R7U1vnVqeOyfDWtuTs5s5hXz6a2hoild8.avFCqFFgqiEDJFG3heZAnzXU-GyfDMGgJkzYN6VRorI&permission=edit&lang=de 502 (Bad Gateway)

What version of Cells are you using?

latest

What is the server OS? Database name/version? Browser name or mobile device description (if issue appears client-side)?

Debian 12

What steps have you taken to resolve this issue already?

Already searched the entire forum and tried to apply all fixes ive found but its still not working
trying for 6 hours now

This is my docker-compose file:
version: “3.9”
services:
mysql:
image: mysql:8
restart: unless-stopped
command:
- --character-set-server=utf8mb4
- --collation-server=utf8mb4_unicode_ci
environment:
MYSQL_ROOT_PASSWORD: “${MYSQL_ROOT_PW}”
MYSQL_DATABASE: cells
MYSQL_USER: pydio
MYSQL_PASSWORD: “${MYSQL_PYDIO_PW}”
volumes:
- mysql:/var/lib/mysql

cells:
image: pydio/cells:latest
restart: unless-stopped
depends_on:
- mysql
ports:
- “8080:8080”
environment:
CELLS_BIND: “0.0.0.0:8080”
CELLS_EXTERNAL: “http://${FQDN}”
CELLS_NO_TLS: “1”
CELLS_LOG: production
volumes:
- cells:/var/cells
- data:/var/cells/data

collabora:
image: collabora/code:latest
restart: unless-stopped
hostname: collabora
depends_on:
- cells
ports:
- “9980:9980”
cap_add:
- MKNOD
environment:
DOMAIN: |
filesuite.domain.local(:8080)?|collabora
EXTRA_PARAMS: “–o:ssl.enable=false”

volumes:
mysql:
cells:
data:
collabora:

Settings in Collabora Plugin section:

would be very grateful for support

Hi and welcome to the forum.

I have this in a recent setup that works smoothly:

# in docker compose file
  office:
        image:  collabora/code:latest
        restart: always
        expose: ["9980"]
        cap_add: 
          - MKNOD
        environment:
          - aliasgroup1=https://${ESCAPED_FQDN}
          - domain=${ESCAPED_FQDN}

# where ESCAPED_FQDN=files\.example\.com   => the "\" before the dots are important or it won't work

# in the pydio.json (or the plugin editor in admin web ui) 
   "editor.libreoffice": {
        "LIBREOFFICE_CODE_VERSION": "v21",
        "LIBREOFFICE_HOST": "office",
        "LIBREOFFICE_PORT": 9980,
        "LIBREOFFICE_SSL": true,
        "LIBREOFFICE_SSL_SKIP_VERIFY": true,
        "PYDIO_PLUGIN_ENABLED": true
      },

Have you been able to get it working? Can you hit it by IP alone and without using the FQDN?
I believe there are errors in your collabora yml syntax.

yes i can directly run the url and get the “OK” response. i dont have a specifiic collabora yml. its just the compose file.

Hi,

When you use ‘filesuite.domain.local’ as domain, collabora docker will try to connect to wopi service via ‘http://filesuite.domain.local
So, make sure that your docker collabora understand this fqdn.

To troubleshoot, you can go to collabora container then ping to this fqdn

For the record, I had some issues configuring the docker compose setup with collabora and I found some very interresting hints in NextCloud forum :flushed_face: It is worth having a look to understand what is at stake and better configure your specific setup:

thank you for your help so far. ive managed to get it started. but when i open a document it just shows up as a blank white page.

The error message in pydio docker log is
Error in libreoffice reverse proxy: context canceled {"error": "context canceled"}

Hi,

I have reworked on my setup today and it appears the config I gave above had a few issues.
I have corrected it with the setup that I am using now without issue.
Could you please try to adapt yours like this and see if it works?

For the record, to troubleshoot, you should:

  • Ensure that both cells and office docker images are up and running (and in the same docker network)
  • Log in the running cells docker image and verify that you can ping the collabora container with this command: ping office
  • Try to open this page: https://<your fqdn>/hosting/discovery: you should see an xml <wopi-discovery> tag

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.