Multiple errors (e.g. Socket read returned -1) in Collabora Code when opening documents from Nextcloud

Hi,
I have NextCloud 23 with Collabora Online 5.0.0 installed natively on a test machine (RPI 4/4GB with 64 Bit DietPi) and I’m trying to connect to Collabora hosted in Docker-Compose:

version: "2.4"

services:
  collabora:
    #    image: collabora/code:21.11.0.3.1
    image: collabora/code
    container_name: collabora
    restart: always
      #privileged: true

    ports:
      - 9980:9980

    environment:
      - "TZ=Europe/Berlin"
      - "extra_params=--o:ssl.enable=false"
      - "username=admin"
      - "password=admin"
      - "domain=dietpi"

    cap_add:
      - MKNOD

But after opening a document in NC, after some seconds I got an error that loading the document failed and I shoult check if the file is supported or broken. I tried this with a newly created file in the NextCloud web UI and with a uploaded one created by LibreOffice desktop. It’s not possible to open them, the Colloabora container shows the following logs:


collabora    | wsd-00001-00001 2021-12-10 20:38:41.735934 +0000 [ coolwsd ] INF  WSD initialization complete: setting log-level to [warning] as configured.| wsd/COOLWSD.cpp:4268
collabora    | Ready to accept connections on port 9980.

collabora    | wsd-00001-00052 2021-12-10 20:38:52.686188 +0000 [ websrv_poll ] ERR  Skipping the token [--co-image-logo=url('/nextcloud/core/img/logo/logo.png?v=2')] since it has more than one '=' pair| wsd/FileServerUtil.cpp:156
collabora    | wsd-00001-00054 2021-12-10 20:38:52.803977 +0000 [ docbroker_001 ] WRN  Waking up dead poll thread [HttpSynReqPoll], started: false, finished: false| ./net/Socket.hpp:718
collabora    | wsd-00001-00054 2021-12-10 20:38:55.869785 +0000 [ docbroker_001 ] ERR  #29: Socket read returned -1 (EHOSTUNREACH: No route to host)| ./net/Socket.hpp:1121
collabora    | wsd-00001-00054 2021-12-10 20:38:55.869995 +0000 [ docbroker_001 ] ERR  #29: Socket write returned -1 (EPIPE: Broken pipe)| ./net/Socket.hpp:1381
collabora    | wsd-00001-00054 2021-12-10 20:38:55.870068 +0000 [ docbroker_001 ] ERR  #29: Socket write returned -1 (EPIPE: Broken pipe)| ./net/Socket.hpp:1381
collabora    | wsd-00001-00054 2021-12-10 20:38:55.870297 +0000 [ docbroker_001 ] ERR  WOPI::CheckFileInfo failed for URI [http://dietpi/nextcloud/index.php/apps/richdocuments/wopi/files/415_ocnept2iafmk?access_token=CzxEkrVsj2lJL0g5KU3z2bDg600zZ56O&access_token_ttl=0]: 0 . Headers: 	Body: []| wsd/Storage.cpp:690
collabora    | wsd-00001-00054 2021-12-10 20:38:55.870649 +0000 [ docbroker_001 ] ERR  loading document exception: WOPI::CheckFileInfo failed: | wsd/DocumentBroker.cpp:1913
collabora    | wsd-00001-00054 2021-12-10 20:38:55.870802 +0000 [ docbroker_001 ] ERR  Failed to add session to [/nextcloud/index.php/apps/richdocuments/wopi/files/415_ocnept2iafmk] with URI [http://dietpi/nextcloud/index.php/apps/richdocuments/wopi/files/415_ocnept2iafmk?access_token=CzxEkrVsj2lJL0g5KU3z2bDg600zZ56O&access_token_ttl=0]: WOPI::CheckFileInfo failed: | wsd/DocumentBroker.cpp:1875
collabora    | wsd-00001-00054 2021-12-10 20:38:55.870936 +0000 [ docbroker_001 ] ERR  Storage error while starting session on /nextcloud/index.php/apps/richdocuments/wopi/files/415_ocnept2iafmk for socket #24. Terminating connection. Error: WOPI::CheckFileInfo failed: | wsd/COOLWSD.cpp:3674
collabora    | wsd-00001-00054 2021-12-10 20:38:55.871645 +0000 [ docbroker_001 ] WRN  Ignoring attempted read from 24| ./net/Socket.hpp:1095
collabora    | wsd-00001-00054 2021-12-10 20:38:55.871949 +0000 [ docbroker_001 ] ERR  Invalid or unknown session [002] to remove.| wsd/DocumentBroker.cpp:1956
collabora    | wsd-00001-00052 2021-12-10 20:38:56.237968 +0000 [ websrv_poll ] WRN  DocBroker with docKey [/nextcloud/index.php/apps/richdocuments/wopi/files/415_ocnept2iafmk] that is marked to be destroyed. Rejecting client request.| wsd/COOLWSD.cpp:2276
collabora    | wsd-00001-00052 2021-12-10 20:38:56.238451 +0000 [ websrv_poll ] ERR  Error while handling Client WS Request: Failed to create DocBroker with docKey [/nextcloud/index.php/apps/richdocuments/wopi/files/415_ocnept2iafmk].| wsd/COOLWSD.cpp:3703
collabora    | wsd-00001-00052 2021-12-10 20:38:56.238544 +0000 [ websrv_poll ] ERR  #24: Socket write returned -1 (EPIPE: Broken pipe)| ./net/Socket.hpp:1381
collabora    | wsd-00001-00052 2021-12-10 20:38:56.238623 +0000 [ websrv_poll ] ERR  #24: Socket write returned -1 (EPIPE: Broken pipe)| ./net/Socket.hpp:1381
collabora    | wsd-00001-00052 2021-12-10 20:38:56.238672 +0000 [ websrv_poll ] WRN  Socket #24 is shutting down but 64 bytes couldn't be flushed and still remain in the output buffer.| ./net/WebSocketHandler.hpp:771
collabora    | wsd-00001-00052 2021-12-10 20:38:56.238736 +0000 [ websrv_poll ] ERR  #24: attempted to remove: 1338 which is > size: 0 clamped to 0| ./net/Socket.hpp:1210
collabora    | wsd-00001-00052 2021-12-10 20:38:56.238808 +0000 [ websrv_poll ] WRN  Ignoring attempted read from 24| ./net/Socket.hpp:1095
collabora    | wsd-00001-00052 2021-12-10 20:38:56.238866 +0000 [ websrv_poll ] ERR  #24: Socket write returned -1 (EPIPE: Broken pipe)| ./net/Socket.hpp:1381
collabora    | wsd-00001-00052 2021-12-10 20:38:56.750893 +0000 [ websrv_poll ] WRN  DocBroker with docKey [/nextcloud/index.php/apps/richdocuments/wopi/files/415_ocnept2iafmk] that is marked to be destroyed. Rejecting client request.| wsd/COOLWSD.cpp:2276
collabora    | wsd-00001-00052 2021-12-10 20:38:56.751353 +0000 [ websrv_poll ] ERR  Error while handling Client WS Request: Failed to create DocBroker with docKey [/nextcloud/index.php/apps/richdocuments/wopi/files/415_ocnept2iafmk].| wsd/COOLWSD.cpp:3703
collabora    | wsd-00001-00052 2021-12-10 20:38:56.751434 +0000 [ websrv_poll ] ERR  #24: Socket write returned -1 (EPIPE: Broken pipe)| ./net/Socket.hpp:1381
collabora    | wsd-00001-00052 2021-12-10 20:38:56.751510 +0000 [ websrv_poll ] ERR  #24: Socket write returned -1 (EPIPE: Broken pipe)| ./net/Socket.hpp:1381
collabora    | wsd-00001-00052 2021-12-10 20:38:56.751558 +0000 [ websrv_poll ] WRN  Socket #24 is shutting down but 64 bytes couldn't be flushed and still remain in the output buffer.| ./net/WebSocketHandler.hpp:771
collabora    | wsd-00001-00052 2021-12-10 20:38:56.751621 +0000 [ websrv_poll ] ERR  #24: attempted to remove: 1338 which is > size: 0 clamped to 0| ./net/Socket.hpp:1210
collabora    | wsd-00001-00052 2021-12-10 20:38:56.751691 +0000 [ websrv_poll ] WRN  Ignoring attempted read from 24| ./net/Socket.hpp:1095
collabora    | wsd-00001-00052 2021-12-10 20:38:56.751748 +0000 [ websrv_poll ] ERR  #24: Socket write returned -1 (EPIPE: Broken pipe)| ./net/Socket.hpp:1381
collabora    | wsd-00001-00052 2021-12-10 20:38:58.765651 +0000 [ websrv_poll ] WRN  Prisoner connection disconnected but without valid socket.| wsd/COOLWSD.cpp:2363
collabora    | wsd-00001-00066 2021-12-10 20:38:58.781565 +0000 [ docbroker_002 ] WRN  Waking up dead poll thread [HttpSynReqPoll], started: false, finished: false| ./net/Socket.hpp:718
collabora    | wsd-00001-00066 2021-12-10 20:38:59.004041 +0000 [ docbroker_002 ] WRN  Waking up dead poll thread [HttpSynReqPoll], started: false, finished: false| ./net/Socket.hpp:718