Collabora Office Docker with Nextcloud (bare metal install) - Document loading failed with office document

I’m running out of ideas if you pass all checks still doesn’t work. the error

indicates some connection issue. I have no idea which one but there must be something (wild guessing: multihomed system, changing DNS, firewall killing connections). There was similar issue shortly CODE integrated server - documents not loading the user solved the problem with a hosts record

as your server is partly bare metal maybe communication out/into the container is going some strange path?

systematic troubleshooting

I would continue digging into the logs to see where it happens. as you see in edit file using WOPI protocol there is quite a lot communication between the systems

  • activate reverse proxy and NC webserver access log, increase the log level of CODE, Nextcloud to debug and reproduce the issue
  • track every request from the browser to Nextcloud, to CODE
CODE logging
services:
  collabora:
    image: collabora/code:${CODE_VERSION}
    environment:
      - extra_params=--o:ssl.enable=false --o:ssl.termination=true --o:logging.level=warning