Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Documents fail to load #40

Open
SKJoy opened this issue Oct 24, 2023 · 0 comments
Open

Documents fail to load #40

SKJoy opened this issue Oct 24, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@SKJoy
Copy link

SKJoy commented Oct 24, 2023

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

  • Deployed NextCloud in one server without builtin Collabora CODE server
  • Deployed this Docker instance on another server
  • Configured NextCloud office Collabora Online server URL; NextCloud says it can CONNECT happily
  • Attempting to open any document results into the FAIL message

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

  • Image version / tag: 23.05.5-2 / latest
  • Host OS: AlmaLinux 8 x64

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

  • Reverse proxy
  • SSL certificate resolver
  • ProxyPass to HTTP at 9980 port
  • All generic response header defined
  • All generic request header defined; like X-Forwarded-For, etc.

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 :)

@SKJoy SKJoy added the bug Something isn't working label Oct 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant