# Unable to run codebase locally with docker

**URL:** <https://talk.openelis-global.org/t/unable-to-run-codebase-locally-with-docker/522>\
**Category:** Uncategorized\
**Created:** [March 9, 2024, 5:24am UTC](https://talk.openelis-global.org/t/unable-to-run-codebase-locally-with-docker/522 "2024-03-09T05:24:31Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tochi](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.openelis-global.org/tochi/32/311_2.png) [@Tochi](https://talk.openelis-global.org/u/Tochi)\
**Post date:** [March 9, 2024, 5:24am UTC](https://talk.openelis-global.org/t/unable-to-run-codebase-locally-with-docker/522/1 "2024-03-09T05:24:31Z")

</div>

After running commands in the READme section of the openElis Global 2 github, when I get to the command " docker-compose -f dev.docker-compose.yml up -d", I get the errors below. Please, what do I need to do.

Traceback (most recent call last):  
File “/usr/lib/python3/dist-packages/urllib3/connectionpool.py”, line 700, in urlopen  
httplib\_response = self.\_make\_request(  
File “/usr/lib/python3/dist-packages/urllib3/connectionpool.py”, line 395, in \_make\_request  
conn.request(method, url, \*\*httplib\_request\_kw)  
File “/usr/lib/python3.10/http/client.py”, line 1283, in request  
self.\_send\_request(method, url, body, headers, encode\_chunked)  
File “/usr/lib/python3.10/http/client.py”, line 1329, in \_send\_request  
self.endheaders(body, encode\_chunked=encode\_chunked)  
File “/usr/lib/python3.10/http/client.py”, line 1278, in endheaders  
self.\_send\_output(message\_body, encode\_chunked=encode\_chunked)  
File “/usr/lib/python3.10/http/client.py”, line 1038, in \_send\_output  
self.send(msg)  
File “/usr/lib/python3.10/http/client.py”, line 976, in send  
self.connect()  
File “/usr/lib/python3/dist-packages/docker/transport/unixconn.py”, line 30, in connect  
sock.connect(self.unix\_socket)  
PermissionError: [Errno 13] Permission denied

During handling of the above exception, another exception occurred:

Before I ran the command " docker-compose -f dev.docker-compose.yml up -d", I ran the following commands

- git clone [https://github.com/username/OpenELIS-Global-2.git](https://github.com/username/OpenELIS-Global-2.git)
- cd OpenELIS-Global-2
- git submodule update --init --recursive
- cd dataexport
- mvn clean install -DskipTests
- cd …
- mvn clean install -DskipTests

---

<div class="post-metadata">

**Author:** ![Manish](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.openelis-global.org/manish/32/472_2.png) [@Manish](https://talk.openelis-global.org/u/Manish)\
**Post date:** [March 9, 2024, 6:41am UTC](https://talk.openelis-global.org/t/unable-to-run-codebase-locally-with-docker/522/2 "2024-03-09T06:41:47Z")

</div>

Hey @Tochi I am not sure , but if its an permission issue try running with

`sudo docker-compose -f dev.docker-compose.yml up -d `  
Also sometimes, restarting the Docker service can resolve connection issues.

---

<div class="post-metadata">

**Author:** ![Manish](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.openelis-global.org/manish/32/472_2.png) [@Manish](https://talk.openelis-global.org/u/Manish)\
**Post date:** [March 9, 2024, 6:47am UTC](https://talk.openelis-global.org/t/unable-to-run-codebase-locally-with-docker/522/3 "2024-03-09T06:47:57Z")

</div>

And If the issue still persists, you can try following the steps outlined in this video: [Troubleshooting Docker Connection Issues](https://www.youtube.com/watch?v=FcZ1Dh3X5JQ).  
Let me know if it works for you!😊

---

<div class="post-metadata">

**Author:** ![Tochi](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.openelis-global.org/tochi/32/311_2.png) [@Tochi](https://talk.openelis-global.org/u/Tochi)\
**Post date:** [March 9, 2024, 2:00pm UTC](https://talk.openelis-global.org/t/unable-to-run-codebase-locally-with-docker/522/4 "2024-03-09T14:00:52Z")

</div>

> [@Manish](#):
>
> sudo docker-compose -f dev.docker-compose.yml up -d

Hi Manish, thanks for your help. So I get a new error when I run the command above. I get “ERROR: Get “[https://registry-1.docker.io/v2/itechuw/openelis-global-2-frontend-dev/manifests/sha256:3341b39b76bdec9fcf1d9353f03db3193942ce1f6994b9c0d02d0385fe9f6b66](https://registry-1.docker.io/v2/itechuw/openelis-global-2-frontend-dev/manifests/sha256:3341b39b76bdec9fcf1d9353f03db3193942ce1f6994b9c0d02d0385fe9f6b66)”: read tcp 172.29.186.202:43122-\>54.227.20.253:443: read: connection reset by peer”

---

<div class="post-metadata">

**Author:** ![Tochi](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.openelis-global.org/tochi/32/311_2.png) [@Tochi](https://talk.openelis-global.org/u/Tochi)\
**Post date:** [March 9, 2024, 2:50pm UTC](https://talk.openelis-global.org/t/unable-to-run-codebase-locally-with-docker/522/5 "2024-03-09T14:50:54Z")

</div>

Never mind @Manish, it works now. But, was the username and password changed?. I get a Notification that username or password is incorrect, when i use:

Username: admin  
Password: adminADMIN!

Please see picture attached.

 ![20240309_152816](https://canada1.discourse-cdn.com/flex030/uploads/openelisci/original/1X/3511d370289ed12b32345708fa5561f3339de6de.jpeg)

---

<div class="post-metadata">

**Author:** ![Manish](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.openelis-global.org/manish/32/472_2.png) [@Manish](https://talk.openelis-global.org/u/Manish)\
**Post date:** [March 9, 2024, 3:08pm UTC](https://talk.openelis-global.org/t/unable-to-run-codebase-locally-with-docker/522/6 "2024-03-09T15:08:17Z")

</div>

Hey @Tochi i have faced this issue earlier ! You can resolve this following this [thread](https://talk.openelis-global.org/t/invalid-login-credentials/345/17).  
I have explained over there how to resolve this issue!

---

<div class="post-metadata">

**Author:** ![Tochi](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.openelis-global.org/tochi/32/311_2.png) [@Tochi](https://talk.openelis-global.org/u/Tochi)\
**Post date:** [March 11, 2024, 5:26pm UTC](https://talk.openelis-global.org/t/unable-to-run-codebase-locally-with-docker/522/7 "2024-03-11T17:26:21Z")

</div>

Thanks for your response. So when i ran the command " sudo docker compose up", i go to login into the application. But when i ran the command “sudo docker compose up”, then I stopped the server and ran “sudo docker-compose -f dev.docker-compose.yml up -d”, the application did not load, it gave an error of “502 bad gateway”.

So I stuck with running the app with the command “sudo docker compose up”, since its what works, but when I make changes locally to the frontend, i dont see my changes reflecting in the browser. Is there a way around this?

---

<div class="post-metadata">

**Author:** ![Manish](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.openelis-global.org/manish/32/472_2.png) [@Manish](https://talk.openelis-global.org/u/Manish)\
**Post date:** [March 11, 2024, 6:15pm UTC](https://talk.openelis-global.org/t/unable-to-run-codebase-locally-with-docker/522/8 "2024-03-11T18:15:24Z")

</div>

Hey @Tochi i just meant that for the inital setup you go with docker compose up and then thereafter you can always go with  
`docker-compose -f dev.docker-compose.yml up -d ` and as for the bad gateway is concerned sometimes it takes time for the page to load and also to load the containers properly , you just have to wait for 1-2 min and for implementing changes in frontend you have to go with the command `docker-compose -f dev.docker-compose.yml up -d` only!

---

<div class="post-metadata">

**Author:** ![sharif](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.openelis-global.org/sharif/32/85_2.png) [@sharif](https://talk.openelis-global.org/u/sharif)\
**Post date:** [March 11, 2024, 6:18pm UTC](https://talk.openelis-global.org/t/unable-to-run-codebase-locally-with-docker/522/9 "2024-03-11T18:18:00Z")

</div>

> [@Manish](#):
>
> `docker-compose -f dev.docker-compose.yml up -d` only!

You can remove -d hifen incase you want to see the logs.
