Dockerized Collabora suddenly takes ages to initialize

Since my server has several Nextcloud instances, have been running collabora in docker for several years now and given all instances permission to use it. (I would rather avoid the overhead of installing the CODE app individually in each of the six instances.)

It has been working just fine until some weeks ago. But something changed and now it takes several minutes to initialize. The docker instance is running on the same server and collabora is behind a reverse proxy provided by NGINX. I can’t pinpoint the exact moment it changed, I think I initially thought this to be a temporary hickup, therefore I don’t know if it correlated with any particular upgrade of collabora or of nextcloud or of docker. (Everything else should not have changed except for security fixes as the server is running Ubuntu 20.04 LTS).

Now, both the external demo server as well as the CODE app run fine. Only the docker version has these problems. In the web server log for the docker collabora instance I see the message


2021/08/29 12:00:09 [error] 3381458#3381458: *12115 connect() failed (111: Connection refused) while connecting to upstream, client: *****, server: office.****.org, request: "
GET /hosting/capabilities HTTP/1.1", upstream: "http://[::1]:9980/hosting/capabilities", host: "office.uferwerk.org"
2021/08/29 12:00:09 [warn] 3381458#3381458: *12115 upstream server temporarily disabled while connecting to upstream, client: *****, server: office.****.org, request: "GET /ho
sting/capabilities HTTP/1.1", upstream: "http://[::1]:9980/hosting/capabilities", host: "office.***.org"

docker container logs collabora looks like this, not very revealing:

frk-00044-00044 2021-08-29 09:53:22.369268 [ forkit ] ERR  Failed to unmount [/opt/lool/child-roots/DZprHqJzWhKFWr88].| common/JailUtil.cpp:68
wsd-00007-00048 2021-08-29 09:53:39.584546 [ websrv_poll ] WRN  client - server version mismatch, disabling browser cache. Expected: d12ab86| wsd/FileServer.cpp:288
wsd-00007-00048 2021-08-29 09:53:39.986969 [ websrv_poll ] WRN  client - server version mismatch, disabling browser cache. Expected: d12ab86| wsd/FileServer.cpp:288
wsd-00007-00048 2021-08-29 09:53:41.927800 [ websrv_poll ] WRN  client - server version mismatch, disabling browser cache. Expected: d12ab86| wsd/FileServer.cpp:288
wsd-00007-00048 2021-08-29 09:53:42.365004 [ websrv_poll ] WRN  client - server version mismatch, disabling browser cache. Expected: d12ab86| wsd/FileServer.cpp:288
wsd-00007-00095 2021-08-29 09:56:07.675928 [ docbroker_004 ] WRN  Waking up dead poll thread [HttpSynReqPoll], started: false, finished: false| ./net/Socket.hpp:682
wsd-00007-00095 2021-08-29 09:56:07.860668 [ docbroker_004 ] WRN  Waking up dead poll thread [HttpSynReqPoll], started: false, finished: false| ./net/Socket.hpp:682

I have double and triple checked that the reverse proxy config is identical to the official instructions. I also tried older docker images, so far no change. The only two fixes are, either using the demo server or using the builtin CODE server, the first is undesirable for me for privacy reasons, the second because of the overhead when Collabora has to be installed in each NC instance individually. Does anyone have an idea what might be causing the slowdown? Again, it has worked fine for years before.

Looks similar to my one: Collabora stopped working on two of my instances, failed to load document - #3 by wwe

Only superficially, it seems. First, I don’t see the log messages that you posted, second your issue seems to be fixed, if I read you correctly, did I?

I face the same issue with NC 22.2.0 and Collabora docker 6.4.13.2. WIth older Collabora 6.4.11.3 it works smoothly.