# Unable to connect to CODE in Docker ERR WOPI::CheckFileInfo failed for URI

**URL:** https://forum.collaboraonline.com/t/unable-to-connect-to-code-in-docker-err-wopi-checkfileinfo-failed-for-uri/1688
**Category:** Installation & Configuration
**Tags:** english-en
**Created:** [March 15, 2023, 11:26am UTC](https://forum.collaboraonline.com/t/unable-to-connect-to-code-in-docker-err-wopi-checkfileinfo-failed-for-uri/1688 "2023-03-15T11:26:03Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![DanBrown47](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.collaboraonline.com/danbrown47/32/711_2.png) [@DanBrown47](https://forum.collaboraonline.com/u/DanBrown47)
#### Post date: [March 15, 2023, 11:26am UTC](https://forum.collaboraonline.com/t/unable-to-connect-to-code-in-docker-err-wopi-checkfileinfo-failed-for-uri/1688/1 "2023-03-15T11:26:03Z")

</div>

I am trying to setup Collabora CODE docker, Followed the steps in the installation guide  
Here is the command I used to run CODE

```auto
docker run -t -d -p 0.0.0.0:9980:9980 -e "aliasgroup1=http://127\\.0\\.0\\.1:8000" -e "username=admin" -e "password=S3cRet" -e "extra_params=--o:ssl.enable=false" --privileged --restart always collabora/code

```

Along with it ran the [python sample example of WOPI Host](https://github.com/CollaboraOnline/collabora-online-sdk-examples)

Connection stuck at 0% and getting server disconnected popups repeatedly.

On Looking into the docker logs of the container, I get the log output as shown below:

```auto
wsd-00001-00056 2023-03-15 08:44:21.211364 +0000 [docbroker_001] ERR #34: Read failed, have 0 buffered bytes (ECONNREFUSED: Connection refused)| net/Socket.hpp:1136
wsd-00001-00056 2023-03-15 08:44:21.211511 +0000 [docbroker_001] ERR #34: Socket write returned -1 (EPIPE: Broken pipe)| net/Socket.hpp:1436
wsd-00001-00056 2023-03-15 08:44:21.211570 +0000 [docbroker_001] ERR #34: Socket write returned -1 (EPIPE: Broken pipe)| net/Socket.hpp:1436
wsd-00001-00056 2023-03-15 08:44:21.211655 +0000 [docbroker_001] ERR WOPI::CheckFileInfo failed for URI [http://127.0.0.1:8000/wopi/files/1?access_token=test&access_token_ttl=0]: 0 . Headers: Body: []| wsd/Storage.cpp:687
wsd-00001-00056 2023-03-15 08:44:21.211773 +0000 [docbroker_001] ERR loading document exception: WOPI::CheckFileInfo failed: | wsd/DocumentBroker.cpp:2415
wsd-00001-00056 2023-03-15 08:44:21.211831 +0000 [docbroker_001] ERR Failed to add session to [http://127.0.0.1:8000/wopi/files/1] with URI [http://127.0.0.1:8000/wopi/files/1?access_token=test&access_token_ttl=0]: WOPI::CheckFileInfo failed: | wsd/DocumentBroker.cpp:2377
wsd-00001-00056 2023-03-15 08:44:21.211880 +0000 [docbroker_001] ERR Storage error while starting session on http://127.0.0.1:8000/wopi/files/1 for socket #29. Terminating connection. Error: WOPI::CheckFileInfo failed: | wsd/COOLWSD.cpp:4872
wsd-00001-00056 2023-03-15 08:44:21.239570 +0000 [docbroker_001] ERR #22: Read failed, have 0 buffered bytes (ECONNRESET: Connection reset by peer)| net/Socket.hpp:1136
wsd-00001-00056 2023-03-15 08:44:21.239675 +0000 [docbroker_001] WRN Unassociated Kit (41) disconnected unexpectedly| wsd/COOLWSD.cpp:3405

```

This repeatedly comes in the logs.

 ![Screenshot from 2023-03-15 16-53-09](https://europe1.discourse-cdn.com/flex013/uploads/collaboraonline/original/1X/fd50433e568c23eefd389fe57d696ad494148cff.png)

I have tried with an alias name as localhost and 0.0.0.0 in the docker parameters.

Thanks in Advance

---

<div class="post-metadata">

### Author: ![wwe](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.collaboraonline.com/wwe/32/534_2.png) [@wwe](https://forum.collaboraonline.com/u/wwe)
#### Post date: [March 16, 2023, 9:09pm UTC](https://forum.collaboraonline.com/t/unable-to-connect-to-code-in-docker-err-wopi-checkfileinfo-failed-for-uri/1688/2 "2023-03-16T21:09:20Z")

</div>

hello @DanBrown47 welcome to the forum 🤝

I assume the issue is related to localhost/127.0.0.1 - this has special meaning to be “`service running on the same host`” which has different meaning for a docker container vs docker host vs client etc… I would recommend to use **real** hostnames or real IPs…

Depending on your setup you might find this guide useful:

> **[Nextcloud Collabora integration](https://help.nextcloud.com/t/nextcloud-collabora-integration/151879)**
>
> ! this is a wiki article - everybody can improve ! Nextcloud integrates functionality to edit office documents online (even collaborative - meaning multiple user can work on the same document at same time). This integration primarily happens with...

---

<div class="post-metadata">

### Author: ![Petter](https://avatars.discourse-cdn.com/v4/letter/p/dbc845/32.png) [@Petter](https://forum.collaboraonline.com/u/Petter)
#### Post date: [March 17, 2023, 11:58am UTC](https://forum.collaboraonline.com/t/unable-to-connect-to-code-in-docker-err-wopi-checkfileinfo-failed-for-uri/1688/3 "2023-03-17T11:58:37Z")

</div>

If you are only testing something local, you could add `--network host` to your docker command. See more here: [Use host networking](https://docs.docker.com/network/host/)

This way the network and the ports between your container and your machine will be the same. Also `-p 0.0.0.0:9980:9980` will have no effect.

---

<div class="post-metadata">

### Author: ![theredpea](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.collaboraonline.com/theredpea/32/762_2.png) [@theredpea](https://forum.collaboraonline.com/u/theredpea)
#### Post date: [May 30, 2023, 2:20am UTC](https://forum.collaboraonline.com/t/unable-to-connect-to-code-in-docker-err-wopi-checkfileinfo-failed-for-uri/1688/4 "2023-05-30T02:20:17Z")

</div>

I have the same problem.

I like @DanBrown47’s question because trying to use the `collabora/code` docker image **directly** , instead of the NextCloud docker or ownCloud docker – of course this means running a WOPI host (@DanBrown47 is trying Python, I’m trying Node.js)

I tried using `--network host` it did not help.

I tried using `127.0.0.1`, I also tried using my public-facing IP address, it didn’t help… (I was desperate…)

Hmm…
