Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error during connect - docker #98

Closed
advtechsol opened this issue Apr 30, 2024 · 21 comments
Closed

error during connect - docker #98

advtechsol opened this issue Apr 30, 2024 · 21 comments

Comments

@advtechsol
Copy link

I'm probably doing something wrong or have missed a dependancy but on a fresh ubuntu install trying to use docker I get this error.

error during connect: Post "http://%2Fvar%2Frun%2Fdocker.sock/v1.43/containers/8e1eb3801893ae0a815a2015e7c3a48dbc8e2c2e016e8f67ddd94fd38357ffbf/start": EOF

@GeeSuth
Copy link

GeeSuth commented Apr 30, 2024

seems something related to your environment, trying to upgrade the docker version and also, maybe happen cause the network/firewall issues,

and in some rare cause from docker server and you can check it from here: https://status.docker.com/

@advtechsol
Copy link
Author

It was a fresh install of ubuntu 22.04 on a VPS and a fresh install of docker.

I disabled ufw so I'm not sure...

@andreisabau
Copy link
Member

@advtechsol I will test this in a similar environment and come back to you.

@advtechsol
Copy link
Author

originally I installed docker by snap.

I just tried it again installing from source.

I not longer get that error, but I cannot create an account I just have an endless spinning wheel on create account.

@GeeSuth
Copy link

GeeSuth commented May 1, 2024

I not longer get that error, but I cannot create an account I just have an endless spinning wheel on create account.

can you check the console inside the browser and Network tab?

@advtechsol
Copy link
Author

index-e5f09c97.js:94
POST http://localhost:3001/account net::ERR_CONNECTION_REFUSED

@GeeSuth
Copy link

GeeSuth commented May 2, 2024

index-e5f09c97.js:94 POST http://localhost:3001/account net::ERR_CONNECTION_REFUSED

I cannot say the reason, if there a screenshot very well, but it's clear the backend app it's not started.

@advtechsol
Copy link
Author

What do you want a screenshot of?

Am I missing a step?

  1. install docker
  2. download docker file
  3. docker-compose up

@advtechsol
Copy link
Author

Screenshot 2024-05-02 at 9 17 39 pm

@GeeSuth
Copy link

GeeSuth commented May 2, 2024

What do you want a screenshot of?

Am I missing a step?

  1. install docker
  2. download docker file
  3. docker-compose up

the front-end trying to connect to the back-end app using "http://localhost:3001/account" when the backend service running on the same domain of front-end, So, just change the URL,

@advtechsol
Copy link
Author

I'm not sure what you mean

@advtechsol
Copy link
Author

Are there any extra steps that are required if you are using a VPS?

@GeeSuth
Copy link

GeeSuth commented May 4, 2024

Are there any extra steps that are required if you are using a VPS?

your system is working fine, I was able to create an account you can find it later in database, the domain is the problem only,

image

the frontend end app using the http://45.63.31.209:3000/ domain right? but the backend app using http://localhost:3001
you need to change the http://localhost:3001 domain to http://45.63.31.209:3001

and everything should work,

@GeeSuth
Copy link

GeeSuth commented May 4, 2024

image

@advtechsol
Copy link
Author

@GeeSuth thats great..

how do I change the backend from localhost to my IP address?

@andreisabau
Copy link
Member

@advtechsol By modifying the docker-compose.yml file line 10 you can change the backend URL on the frontend web app:

- NAVTRACK_API_URL=http://localhost:3001

@advtechsol
Copy link
Author

ok I did that and got a bunch of new errors.

I need to run docker compose up

NOT docker-compose up

@GeeSuth
Copy link

GeeSuth commented May 8, 2024

@advtechsol its working fine with you know? please close this issue!

@andreisabau
Copy link
Member

@advtechsol what kind of errors are you still getting?

@GeeSuth
Copy link

GeeSuth commented May 9, 2024

@advtechsol what kind of errors are you still getting?

from his server, he able to resolve that problem, it's maybe related to update docker compose file,

@advtechsol
Copy link
Author

sorry folks, ive been busy.

if you update your run guide from

docker-compose up

TO

docker compose up

there are no errors

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants