Laravel project - after reloging on project idx > Issues server

Hi everyone,

I’m new into project IDX & configured a laravel project with a postgresql database.
Everything was working fine. I only configured and did no changes at all to the base.

But now after re-connecting to my project, I got the message:

SQLSTATE[08006] [7] connection to server at “127.0.0.1”, port 5432 failed: Connection refused Is the server running on that host and accepting TCP/IP connections? (Connection: pgsql, SQL: select * from “sessions” where “id” = ZNchl3LimDaXTZAo2erG74J9wHlKJ03IAlZHikM7 limit 1)

But i did no changes, when I try to connect to the Database I got the error message (127.0.0.1 @5432):

Econnrefused

.

But the configuration seems correct isn’t it ?

DB_CONNECTION=pgsql
DB_HOST=127.0.0.1
DB_PORT=5432
DB_DATABASE=laravel
DB_USERNAME=user
DB_PASSWORD=

Hi @Francois_123!

You should be able to check if your postgresql server is running by checking the “Backend ports” section in the IDX panel.

You can try (if you’re not already) managing your postgresql server using services.postgres.enable in your dev.nix, see docs for more info

Hi jbm,
I learned something new thanks!

Strangly after logging in on my project today, the issue dissapeard.
I see in the git that the file postmaster.pid has changed on his own, down know if its related.
Anyway problem solved for today :smiley:

1 Like