grandma-collaboration / skyportal_grandma_dev

Little Git Repo to keep track of the work done by the A4 ESILV TEAM
2 stars 0 forks source link

LIU Céline - Installing SkyPortal #7

Closed celiune closed 1 year ago

celiune commented 1 year ago

Hello ! I'm at the 1st step of Launch phase "make db_init", having some issue with psql connection, I'm currently looking at the 2nd step of installation to check if the default port is 5432. The error I'm having is : psql: error: connection to server at "localhost" (::1), port 5432 failed: Connection refused Is the server running on that host and accepting TCP/IP connections? connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused Is the server running on that host and accepting TCP/IP connections? Thank you!

Theodlz commented 1 year ago

Hi @celiune. Thanks for reporting your current advancement. One thing to note, is that very often the app doesn't manage to connect to PostgreSQL due to the 2 lines not correctly added to pg_hba.conf. Otherwise, did you restart PostgreSQL after adding these 2 lines? Last by not least, you can replace these 2 lines by a more permissive one, to basically allow any connection without any password. Locally (on your machine to develop) this is honestly fine. So you can try that if none of the above work.

celiune commented 1 year ago

Hi @Theodlz , thank you for your help, the problem was because I really forgot to restart PostgreSQL, I've now finished the fourth step of the Launch phase and am connected to SkyPortal 🥳

Theodlz commented 1 year ago

can we consider that you are done with this issue? If that's so, please close it :)