ballerine-io / ballerine

Open-source infrastructure and data orchestration platform for risk decisioning
https://www.ballerine.com
Other
2k stars 173 forks source link

Can't reach database server at `localhost`:`5432` #2477

Closed richilp closed 2 weeks ago

richilp commented 2 weeks ago

Hello team,

trying to test ballerine-io on AlmaLinux 8 we get that error.

Have we missed smth during the install?

Many thanks

> @ballerine/workflows-service@0.7.13 db:reset
> if [ "$DB_USER" != "root" ]; then prisma migrate reset --skip-seed -f; else echo 'Cannot run reset as root'; fi
Environment variables loaded from .env
Prisma schema loaded from prisma/schema.prisma
Datasource "db": PostgreSQL database "postgres", schema "public" at "localhost:5432"
Error: P1001: Can't reach database server at localhost:5432
Please make sure your database server is running at localhost:5432.
âELIFECYCLEâ Command failed with exit code 1.

 âââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ

 >  NX   Ran target setup for project @ballerine/workflows-service (4s)

    â    1/1 failed
    â    0/1 succeeded [0 read from cache]

âELIFECYCLEâ Command failed with exit code 1.

`

MatanYadaev commented 2 weeks ago

Hi @richilp, do you have Docker installed? Is it running? And, can you please run nx run @ballerine/workflows-service:setup and share the output log of this command? It will help me understand what part of the Docker container provision failed.

richilp commented 2 weeks ago

It was a problem with Docker. Many thanks @MatanYadaev