I can't run Collabora on the local machine (desktop)

I’m trying to run Collabora locally, but I’m getting the following error message when trying to open a document:

"Document upload failed
A failure occurred while establishing the socket connection, or the socket connection was closed unexpectedly. The reverse proxy may be misconfigured, contact your administrator. For more information about proxy configuration see: https://sdk.collaboraonline.com/installation/Proxy_settings.html"

docker-compose collabora:

version: '3.9'

services:
    collabora:
      container_name: collabora
      image: collabora/code:23.05.6.4.1
      restart: always
      environment:
        - username=admin
        - password=b1gl1nux_collabora
        - aliasgroup1=http://localhost:8286
        - extra_params=-o:welcome.enable=false -o:ssl.enable=false
        - dictionaries=en_US es_ES pt_BR pt_PT
      volumes:
        # Configuration Collabora
        - ${HOME}/Docker/Nextcloud-Plus/Collabora/config/coolwsd.xml:/etc/coolwsd/coolwsd.xml
        #- ${HOME}/Docker/Nextcloud-Plus/Collabora/fonts/truetype:/usr/share/fonts/truetype
        #- ${HOME}/Docker/Nextcloud-Plus/Collabora/fonts/truetype:/opt/cool/systemplate/usr/share/fonts/truetype
      ports:
        - "9980:9980"
      deploy:
        resources:
          limits:
            # Limits the CPU usage by the container to 4 cores.
            cpus: '4'
            # Limits the memory usage by the container to 4GB.
            memory: 4G
      healthcheck:
          # Checks the health of the container using curl to access port 9980.
          test: ["CMD", "curl", "-f", "https://127.0.0.1:9980"]
          # The interval between each health check.
          interval: 30s
          # The maximum amount of time a health check can take before it is considered a failure.
          timeout: 10s
          # The number of consecutive health check failures required for the container to be considered unhealthy.
          retries: 6
      # Network the container will be connected to.
      networks:
        collabora-net:
          ipv4_address: 172.20.0.200

# Defines the networks that will be created
networks:
  collabora-net:
    driver: bridge
    ipam:
      config:
        - subnet: 172.20.0.0/16

docker-compose nextcloud:

version: '3.9'

services:
    nextcloud_db:
      image: postgres:15-alpine
      container_name: nextcloud_db
      restart: always
      volumes:
        - ${HOME}/Docker/Nextcloud-Plus/db:/var/lib/postgresql/data
      environment:
        - POSTGRES_PASSWORD=b1gl1nux@db
        - POSTGRES_DB=nextcloud
        - POSTGRES_USER=nextcloud
      deploy:
        resources:
          limits:
            # Limits the CPU usage by the container to 2 cores.
            cpus: '2'
            # Limits the memory usage by the container to 4GB.
            memory: 4G
      healthcheck:
        # Checks the health of the container using curl to access port 5432.
        test: ["CMD", "curl", "-f", "http://127.0.0.1:5432"]
        # The interval between each health check.
        interval: 30s
        # The maximum amount of time a health check can take before it is considered a failure.
        timeout: 10s
        # The number of consecutive health check failures required for the container to be considered unhealthy.
        retries: 6
      networks:
        - nextcloud-net

    nextcloud:
        image: nextcloud:stable
        container_name: nextcloud
        restart: always
        volumes:
          - ${HOME}/Docker/Nextcloud-Plus/nextcloud:/var/www/html
          #- ${HOME}/Docker/Nextcloud-Plus/nextcloud/opcache-recommended.ini:/usr/local/etc/php/conf.d/opcache-recommended.ini
        environment:
          - POSTGRES_HOST=nextcloud_db
          - POSTGRES_PASSWORD=b1gl1nux@db
          - POSTGRES_DB=nextcloud
          - POSTGRES_USER=nextcloud
          - NEXTCLOUD_ADMIN_USER=admin
          - NEXTCLOUD_ADMIN_PASSWORD=biglinux
          - REDIS_HOST=redis
          - REDIS_HOST_PORT=6379
          - REDIS_HOST_PASSWORD=b1gl1nux@redis
        depends_on:
          - nextcloud_db
          - redis
        ports:
          - "8286:80/tcp"
        deploy:
          resources:
            limits:
              # Limits the CPU usage by the container to 2 cores.
              cpus: '2'
              # Limits the memory usage by the container to 4GB.
              memory: 4G
        healthcheck:
          # Checks the health of the container using curl to access port 8200.
          test: ["CMD", "curl", "-f", "http://127.0.0.1:80"]
          # The interval between each health check.
          interval: 30s
          # The maximum amount of time a health check can take before it is considered a failure.
          timeout: 10s
          # The number of consecutive health check failures required for the container to be considered unhealthy.
          retries: 6
        networks:
          - nextcloud-net
          - collabora-net

    redis:
      image: redis:alpine
      container_name: redis
      restart: unless-stopped
      command: redis-server --requirepass b1gl1nux@redis --appendonly yes
      volumes:
        - ${HOME}/Docker/Nextcloud-Plus/redis:/data
      deploy:
        resources:
          limits:
            # Limits the CPU usage by the container to 1 cores.
            cpus: '1'
            # Limits the memory usage by the container to 1GB.
            memory: 1G
      # Network the container will be connected to.
      networks:
        - nextcloud-net

# Defines the networks that will be created
networks:
  # Network name
  nextcloud-net:
    # Name assigned to the network
    name: nextcloud-net
docker exec -it nextcloud curl http://172.20.0.200:9980

OK%                                                                                                                                              ❯ docker exec -u www-data nextcloud php occ config:app:get richdocuments wopi_url
http://172.20.0.200:9980

coolwsd.xml:
https://bitbin.it/P5noFIg9/raw/

log collabora:
https://bitbin.it/b9fxWky7/raw/

I need to send links to the logs, and other things, but the forum won’t let me because I’m a new user, which is really annoying. How will I send complete content?

I’ll wait for someone to show up so I can interact more to port the rest of the content, logs and other things, the log is big, I can’t post it directly here.

Video: https://cloud.talesam.org/s/LypcArLaRCGdZwa

Hey @talesam,

Welcome to the forum + thanks for the question. :slight_smile:

Hmmmm… I took a quick skim through your logs, and it seems like it might be the same exact issue as:

wwe over there said this:

If you still are having trouble, there’s this fantastic Wiki over at the Nextcloud forums too:

It even has a “troubleshooting checklist” which might help you step-by-step debug and make sure things are working in your setup.


Can you give a little more info on your setup? Like what:

  • Version of Nextcloud
  • Version of Collabora Online (Help > About).

Was it working fine previously, and only just recently broke? Or was this trying to open your very first file?


There has even been a few more minor versions of CODE released since last month.

If none of the above works, would you mind following the docker install instructions again from scratch?


Side Note: I believe this was the relevant lines out of your collabora log file:

(Pasting it there for easy findability/searchability, just in case anyone else comes across this same issue in the future.)

wsd-00001-00045 2024-01-05 13:23:31.764578 +0000 [ docbroker_001 ] ERR  WOPI::CheckFileInfo failed for URI [http://localhost:8286/index.php/apps/richdocuments/wopi/files/208_ocegxcyz7p9x?access_token=dfLaEbFd1OBWUFzR6I745t15yfZb6ZPk&access_token_ttl=0]: 0 (Unknown) . Headers:     Body: []| wsd/Storage.cpp:712
wsd-00001-00045 2024-01-05 13:23:31.764637 +0000 [ docbroker_001 ] ERR  loading document exception: WOPI::CheckFileInfo failed: | wsd/DocumentBroker.cpp:2640
wsd-00001-00045 2024-01-05 13:23:31.764655 +0000 [ docbroker_001 ] ERR  Failed to add session to [http%3A%2F%2Flocalhost%3A8286%2Findex.php%2Fapps%2Frichdocuments%2Fwopi%2Ffiles%2F208_ocegxcyz7p9x] with URI [http://localhost:8286/index.php/apps/richdocuments/wopi/files/208_ocegxcyz7p9x?access_token=dfLaEbFd1OBWUFzR6I745t15yfZb6ZPk&access_token_ttl=0]: WOPI::CheckFileInfo failed: | wsd/DocumentBroker.cpp:2602
wsd-00001-00045 2024-01-05 13:23:31.764670 +0000 [ docbroker_001 ] ERR  Storage error while starting session on http%3A%2F%2Flocalhost%3A8286%2Findex.php%2Fapps%2Frichdocuments%2Fwopi%2Ffiles%2F208_ocegxcyz7p9x for socket #25. Terminating connection. Error: WOPI::CheckFileInfo failed: | wsd/COOLWSD.cpp:5330
wsd-00001-00045 2024-01-05 13:23:31.780150 +0000 [ docbroker_001 ] ERR  #18: Read failed, have 0 buffered bytes (ECONNRESET: Connection reset by peer)| net/Socket.hpp:1139
wsd-00001-00045 2024-01-05 13:23:31.780185 +0000 [ docbroker_001 ] WRN  #18: Unassociated Kit (28) disconnected unexpectedly| wsd/COOLWSD.cpp:3763
wsd-00001-00047 2024-01-05 13:23:32.192217 +0000 [ docbroker_002 ] ERR  #30: Read failed, have 0 buffered bytes (ECONNREFUSED: Connection refused)| net/Socket.hpp:1139
wsd-00001-00047 2024-01-05 13:23:32.192248 +0000 [ docbroker_002 ] ERR  #30: Socket write returned -1 (EPIPE: Broken pipe)| net/Socket.hpp:1447
wsd-00001-00047 2024-01-05 13:23:32.192253 +0000 [ docbroker_002 ] ERR  #30: Socket write returned -1 (EPIPE: Broken pipe)| net/Socket.hpp:1447
wsd-00001-00047 2024-01-05 13:23:32.192276 +0000 [ docbroker_002 ] ERR  WOPI::CheckFileInfo failed for URI [http://localhost:8286/index.php/apps/richdocuments/wopi/files/208_ocegxcyz7p9x?access_token=dfLaEbFd1OBWUFzR6I745t15yfZb6ZPk&access_token_ttl=0&permission=edit]: 0 (Unknown) . Headers:      Body: []| wsd/Storage.cpp:712
wsd-00001-00047 2024-01-05 13:23:32.192319 +0000 [ docbroker_002 ] ERR  loading document exception: WOPI::CheckFileInfo failed: | wsd/DocumentBroker.cpp:2640
wsd-00001-00047 2024-01-05 13:23:32.192330 +0000 [ docbroker_002 ] ERR  Failed to add session to [http%3A%2F%2Flocalhost%3A8286%2Findex.php%2Fapps%2Frichdocuments%2Fwopi%2Ffiles%2F208_ocegxcyz7p9x] with URI [http://localhost:8286/index.php/apps/richdocuments/wopi/files/208_ocegxcyz7p9x?access_token=dfLaEbFd1OBWUFzR6I745t15yfZb6ZPk&access_token_ttl=0&permission=edit]: WOPI::CheckFileInfo failed: | wsd/DocumentBroker.cpp:2602
wsd-00001-00047 2024-01-05 13:23:32.192339 +0000 [ docbroker_002 ] ERR  Storage error while starting session on http%3A%2F%2Flocalhost%3A8286%2Findex.php%2Fapps%2Frichdocuments%2Fwopi%2Ffiles%2F208_ocegxcyz7p9x for socket #25. Terminating connection. Error: WOPI::CheckFileInfo failed: | wsd/COOLWSD.cpp:5330
sh: 1: /usr/bin/coolmount: Operation not permitted
sh: 1: /usr/bin/coolmount: Operation not permitted
sh: 1: /usr/bin/coolmount: Operation not permitted
wsd-00001-00047 2024-01-05 13:23:32.198843 +0000 [ docbroker_002 ] ERR  #18: Read failed, have 0 buffered bytes (ECONNRESET: Connection reset by peer)| net/Socket.hpp:1139
wsd-00001-00047 2024-01-05 13:23:32.198883 +0000 [ docbroker_002 ] WRN  #18: Unassociated Kit (46) disconnected unexpectedly| wsd/COOLWSD.cpp:3763

It might also be an SSL/HTTPS issue?

wsd-00001-00047 2024-01-05 13:34:58.847415 +0000 [ docbroker_002 ] ERR  Storage error while starting session on http%3A%2F%2Flocalhost%3A8286%2Findex.php%2Fapps%2Frichdocuments%2Fwopi%2Ffiles%2F208_ocegxcyz7p9x for socket #19. Terminating connection. Error: WOPI::CheckFileInfo failed: | wsd/COOLWSD.cpp:5330
wsd-00001-00047 2024-01-05 13:34:58.856042 +0000 [ docbroker_002 ] ERR  #25: Read failed, have 0 buffered bytes (ECONNRESET: Connection reset by peer)| net/Socket.hpp:1139
wsd-00001-00047 2024-01-05 13:34:58.856160 +0000 [ docbroker_002 ] WRN  #25: Unassociated Kit (40) disconnected unexpectedly| wsd/COOLWSD.cpp:3763
sh: 1: /usr/bin/coolmount: Operation not permitted
sh: 1: /usr/bin/coolmount: Operation not permitted
sh: 1: /usr/bin/coolmount: Operation not permitted
wsd-00001-00031 2024-01-05 13:35:07.451718 +0000 [ websrv_poll ] ERR  #25: Looks like SSL/TLS traffic on plain http port| wsd/COOLWSD.cpp:4131
wsd-00001-00001 2024-01-05 13:35:17.569942 +0000 [ coolwsd ] WRN  Failed to update the infobar. Got: 400 (Bad Request) Bad Request| wsd/COOLWSD.cpp:5873
wsd-00001-00031 2024-01-05 13:35:37.593269 +0000 [ websrv_poll ] ERR  #25: Looks like SSL/TLS traffic on plain http port| wsd/COOLWSD.cpp:4131
wsd-00001-00031 2024-01-05 13:36:07.723146 +0000 [ websrv_poll ] ERR  #25: Looks like SSL/TLS traffic on plain http port| wsd/COOLWSD.cpp:4131
wsd-00001-00031 2024-01-05 13:36:37.911898 +0000 [ websrv_poll ] ERR  #25: Looks like SSL/TLS traffic on plain http port| wsd/COOLWSD.cpp:4131
wsd-00001-00031 2024-01-05 13:37:08.038390 +0000 [ websrv_poll ] ERR  #25: Looks like SSL/TLS traffic on plain http port| wsd/COOLWSD.cpp:4131
wsd-00001-00031 2024-01-05 13:37:38.188387 +0000 [ websrv_poll ] ERR  #25: Looks like SSL/TLS traffic on plain http port| wsd/COOLWSD.cpp:4131
wsd-00001-00031 2024-01-05 13:38:08.320843 +0000 [ websrv_poll ] ERR  #25: Looks like SSL/TLS traffic on plain http port| wsd/COOLWSD.cpp:4131
wsd-00001-00031 2024-01-05 13:38:38.460977 +0000 [ websrv_poll ] ERR  #25: Looks like SSL/TLS traffic on plain http port| wsd/COOLWSD.cpp:4131
wsd-00001-00031 2024-01-05 13:39:08.584819 +0000 [ websrv_poll ] ERR  #25: Looks like SSL/TLS traffic on plain http port| wsd/COOLWSD.cpp:4131
wsd-00001-00031 2024-01-05 13:39:38.741878 +0000 [ websrv_poll ] ERR  #25: Looks like SSL/TLS traffic on plain http port| wsd/COOLWSD.cpp:4131
wsd-00001-00031 2024-01-05 13:40:09.033696 +0000 [ websrv_poll ] ERR  #25: Looks like SSL/TLS traffic on plain http port| wsd/COOLWSD.cpp:4131
wsd-00001-00031 2024-01-05 13:40:40.005072 +0000 [ websrv_poll ] ERR  #25: Looks like SSL/TLS traffic on plain http port| wsd/COOLWSD.cpp:4131
wsd-00001-00031 2024-01-05 13:41:10.124634 +0000 [ websrv_poll ] ERR  #25: Looks like SSL/TLS traffic on plain http port| wsd/COOLWSD.cpp:4131
wsd-00001-00031 2024-01-05 13:41:40.239243 +0000 [ websrv_poll ] ERR  #25: Looks like SSL/TLS traffic on plain http port| wsd/COOLWSD.cpp:4131
wsd-00001-00031 2024-01-05 13:42:10.366757 +0000 [ websrv_poll ] ERR  #25: Looks like SSL/TLS traffic on plain http port| wsd/COOLWSD.cpp:4131
wsd-00001-00031 2024-01-05 13:42:40.488268 +0000 [ websrv_poll ] ERR  #25: Looks like SSL/TLS traffic on plain http port| wsd/COOLWSD.cpp:4131
wsd-00001-00031 2024-01-05 13:43:10.609624 +0000 [ websrv_poll ] ERR  #25: Looks like SSL/TLS traffic on plain http port| wsd/COOLWSD.cpp:4131
wsd-00001-00031 2024-01-05 13:43:40.743205 +0000 [ websrv_poll ] ERR  #25: Looks like SSL/TLS traffic on plain http port| wsd/COOLWSD.cpp:4131
wsd-00001-00031 2024-01-05 13:44:10.885040 +0000 [ websrv_poll ] ERR  #25: Looks like SSL/TLS traffic on plain http port| wsd/COOLWSD.cpp:4131
wsd-00001-00031 2024-01-05 13:44:41.009766 +0000 [ websrv_poll ] ERR  #25: Looks like SSL/TLS traffic on plain http port| wsd/COOLWSD.cpp:4131
wsd-00001-00031 2024-01-05 13:45:11.140412 +0000 [ websrv_poll ] ERR  #25: Looks like SSL/TLS traffic on plain http port| wsd/COOLWSD.cpp:4131

Anyway, hopefully the update + Nextcloud checklist will help. :slight_smile: