(56) Recv failure Connection reset by peer error [Mar 28]

:raising_hand_man: katkat_ asked

Hi everyone, I am having issues deploying this app using docker. I have my ports like this: -p 8484:8080 and 8484 is allowed on the firewall (this is an ubuntu server with nginx). Let’s say I do $ curl -I localhost:8484, I get (56) Recv failure: Connection reset by peer error. I am not very good with docker and I am not sure what I am doing wrong in terms of the networking here. Does anyone have an idea how to fix this?

Thanks!

:raising_hand_man: wkw replied

1. please show the exact command you run

2. please show the result of docker ps (just nocodb one)

3. please show the result of docker inspect nocodb -f "{{ json .NetworkSettings.Networks }}"

:raising_hand_man: katkat_ replied

Hi wkw@discord attached below the outputs I get:

:raising_hand_man: wkw replied

wt env did u pass in your env file?

:raising_hand_man: katkat_ replied

I passed in: NC_DB and NC_AUTH_JWT_SECRET

:raising_hand_man: wkw replied

is the database defined in NC_DB also in docker? or in your host machine?

:raising_hand_man: wkw replied

if i don’t specify it, r u able to hit this error ?

:raising_hand_man: katkat_ replied

The database is a postgresql sitting on the host machine but the credentials are all defined using NC_DB in my env file.

:raising_hand_man: katkat_ replied

I can ping the container on the host machine using its IP but when I pass the port 8080 that nocodb is supposed to listen on, I get the error of connection reset.

:raising_hand_man: wkw replied

any docker log can share?

:raising_hand_man: wkw replied

nocodb one

:raising_hand_man: katkat_ replied

Okay, I think I can now see something useful for troubleshooting.

My logs show: Invalid URL for the NC_DB I defined.

I think my problem now is, how am I supposed to pass the NC_DB in my env?

Here is how I passed it:

NC_DB=“pg://myhosturl:5432?u=nocodb&p=mypassword&d=nocodb”

:raising_hand_man: wkw replied

in .env file? try without double quotes

:raising_hand_man: katkat_ replied

Thank you so much. That worked out so well. My nocodb instance is now running.

Thank y’all for the great product.

Autogenerated from discord


Join NocoDB’s community

DiscordTwitterRedditDocs