mirror of
https://github.com/plankanban/planka.git
synced 2026-02-25 03:14:50 +03:00
Development version with docker : error connection refused on database / getaddrinfo EAI_AGAIN #159
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @0x0fe on GitHub (Jan 18, 2022).
I installed docker desktop, and created a new dev environement, which pulled planka github fork. docker-compose -f docker-compose-dev.yml up runs fine, but npm run server:db:init fails because it cannot reach the database. I have tried changing the URL to the one provided by the let terminal, with the same result, connection refused.
@0x0fe commented on GitHub (Jan 18, 2022):
OK, i found the problem:
DATABASE_URL=postgresql://postgres@elated_elion:5432/planka
the base url has to use the docker container name instead of localhost
@0x0fe commented on GitHub (Jan 18, 2022):
well, actually there is another error now
getaddrinfo EAI_AGAIN
@0x0fe commented on GitHub (Jan 18, 2022):
So it looks like there is still problems with reaching the database
Steps to reproduce the issue:
-create a new dev environement in docker pulling planka from github
-open the container in the dev environement window and clic the "open in vscode" button
-in vscode open a terminal and run docker-compose -f docker-compose-dev.yml up
-open another terminal and run npm run server:db:init
-open a third terminal and run npm start
-open http://localhost:3000/ or http://localhost:1337
The second terminal will show the error (also reported in the 3rd terminal).
@mattague commented on GitHub (Oct 20, 2023):
Has there been any update on this? I have been unable to get Planka started, and it seems to just be unable to connect to the database.
@daniel-hiller commented on GitHub (Oct 20, 2023):
An update on what?
You are posting into an 2year old issue
@mattague commented on GitHub (Oct 20, 2023):
An open two year old issue, with someone else experiencing the same unresolved issue 9 months ago, and no activity or advice since then.
I am just asking, on this open issue, if the original user, or anyone else who might have run into this issue, figured out what was causing it and possibly figured out how to resolve it. I would like to selfhost this project, but the docker-compose file provided seems to hang up.
@meltyshev commented on GitHub (Oct 20, 2023):
Hi! Are you trying to install using
docker-compose.ymlor just to develop withdocker-compose-dev.yml?If there is any problem with the installation, please let us know all your steps and what error you are getting, that way it'll be easier to figure out.
@0x0fe commented on GitHub (Oct 20, 2023):
@mattague honnestly i dont recall, its pretty old, in the end we could run this planka on the hosting.
@sunchezz89 commented on GitHub (Apr 24, 2025):
I get a similar/same issue.
I just tried to follow the docker-compose instructions, did not change anything (except what was mentioned in the Docs).
I tried to disable IP6, I tried to create explicit docker network, I tried using "localhost" for DATABASE_URL, I tried to use the resolved IP (seen in the logs).
All attempts lead to planka not starting.
Help is appreciated, as this is not even a special case. And the fix could be mentioned in the docs as hint as well.