tiredofit / docker-collabora-online

Dockerized Online Office Suite with customizable options
MIT License
80 stars 27 forks source link

Documents fail to load #40

Open SKJoy opened 10 months ago

SKJoy commented 10 months ago

Documents fail to load with NextCloud

NextCloud document opening results with Document loading failed, Failed to load Nextcloud office - please try again later error message.

Steps to reproduce

What is the expected correct behavior?

NextCloud should be able to present the document in the browser online

Relevant logs and/or screenshots

Enabled Collabora log to file and below are the messages for each request;

[ websrv_poll ] ERR  unknown UI default's component UITheme| wsd/FileServerUtil.cpp:99
[ websrv_poll ] ERR  FileServerRequestHandler: File not found: Invalid URI request: [/browser/8fe1f0fe/branding.css].| wsd/FileServer.cpp:684
[ websrv_poll ] ERR  FileServerRequestHandler: File not found: Invalid URI request: [/browser/8fe1f0fe/branding.js].| wsd/FileServer.cpp:684
[ websrv_poll ] ERR  FileServerRequestHandler: File not found: Invalid URI request: [/browser/8fe1f0fe/branding-desktop.css].| wsd/FileServer.cpp:684
[ websrv_poll ] ERR  #25: #25 Exception while processing incoming request: [GET /cool/https:/fqdn.nextcloud.host/index.php/apps/richdocuments/wopi/files/861_ocbiwf1nom8r%3Faccess_token=vsBZEL48C0kJIHaeZEoAYGLvqa1su8CU&access_token_ttl=0/ws?WOPISrc=https%3A%2F%2Ffqdn.nextcloud.host%2Findex.php%2Fapps%2Frichdocuments%2Fwopi%2Ffiles%2F861_ocbiwf1nom8r&compat=/ws HTTP/1.1
...]: Bad URI syntax| wsd/COOLWSD.cpp:4256
[ websrv_poll ] ERR  #25: #25 Exception while processing incoming request: [GET /cool/https:/fqdn.nextcloud.host/index.php/apps/richdocuments/wopi/files/861_ocbiwf1nom8r%3Faccess_token=vsBZEL48C0kJIHaeZEoAYGLvqa1su8CU&access_token_ttl=0&permission=edit/ws?WOPISrc=https%3A%2F%2Ffqdn.nextcloud.host%2Findex.php%2Fapps%2Frichdocuments%2Fwopi%2Ffiles%2F861_ocbiwf1nom8r&compat=/ws HTTP/1.1
...]: Bad URI syntax| wsd/COOLWSD.cpp:4256

Environment

Docker compose YML

services:
  collabora:
    image: tiredofit/collabora-online:latest
    hostname: fqdn.collabora.host
    restart: unless-stopped
    environment:
      - LOG_TYPE=FILE
      - ALLOWED_HOSTS=fqdn.nextcloud.host
    volumes:
      - ${COLLABORA_SERVICE_VOLUME_PATH}log:/logs
      - ${COLLABORA_SERVICE_VOLUME_PATH}asset/custom:/assets/custom
      - ${COLLABORA_SERVICE_VOLUME_PATH}asset/custom/font:/assets/custom-fonts
      - ${COLLABORA_SERVICE_VOLUME_PATH}asset/custom/script:/assets/custom-scripts
      - ${COLLABORA_SERVICE_VOLUME_PATH}certificate:/etc/coolwsd/certs
    cap_add:
      - MKNOD
      - NET_ADMIN
    privileged: true

NginX

Direct HTTP call to https://fqdn.collabora.host/hosting/capabilities responds correctly

{
    "convert-to": {
        "available": false
    },
    "hasMobileSupport": true,
    "hasProxyPrefix": false,
    "hasTemplateSaveAs": false,
    "hasTemplateSource": true,
    "hasZoteroSupport": true,
    "productName": "Document Editor",
    "productVersion": "23.05.5.2",
    "productVersionHash": "8fe1f0fe",
    "serverId": "f324c0e5"
}

Possible fixes

Looking towards :)