ballerine-io / ballerine

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

Bug pnpm run #2475

Open Vladusha94 opened 2 weeks ago

Vladusha94 commented 2 weeks ago

Hello. after start pnpm run kyb-manual-review-example or
pnpm kyc-manual-review-example i have:

> @ballerine/workflows-service@0.7.13 setup /home/administrator/ballerine/services/workflows-service
> npm run docker:db:down && npm run docker:db && npm run db:reset && npm run seed
> @ballerine/workflows-service@0.7.13 docker:db:down
> docker compose -f docker-compose.db.yml down --volumes
time="2024-06-25T05:57:56Z" level=warning msg="The \"DB_PORT\" variable is not set. Defaulting to a blank string."
time="2024-06-25T05:57:56Z" level=warning msg="The \"DB_USER\" variable is not set. Defaulting to a blank string."
time="2024-06-25T05:57:56Z" level=warning msg="The \"DB_PASSWORD\" variable is not set. Defaulting to a blank string."
time="2024-06-25T05:57:56Z" level=warning msg="/home/administrator/ballerine/services/workflows-service/docker-compose.db.yml: `version` is obsolete"
 Container workflows-service-db-1  Stopping
 Container workflows-service-db-1  Stopped
 Container workflows-service-db-1  Removing
 Container workflows-service-db-1  Removed
 Volume workflows-service_postgres15  Removing
 Network workflows-service_default  Removing
 Volume workflows-service_postgres15  Removed
 Network workflows-service_default  Removed
> @ballerine/workflows-service@0.7.13 docker:db
> docker compose -f docker-compose.db.yml up -d --wait
time="2024-06-25T05:57:57Z" level=warning msg="The \"DB_PORT\" variable is not set. Defaulting to a blank string."
time="2024-06-25T05:57:57Z" level=warning msg="The \"DB_USER\" variable is not set. Defaulting to a blank string."
time="2024-06-25T05:57:57Z" level=warning msg="The \"DB_PASSWORD\" variable is not set. Defaulting to a blank string."
time="2024-06-25T05:57:57Z" level=warning msg="/home/administrator/ballerine/services/workflows-service/docker-compose.db.yml: `version` is obsolete"
 Network workflows-service_default  Creating
 Network workflows-service_default  Created
 Volume "workflows-service_postgres15"  Creating
 Volume "workflows-service_postgres15"  Created
 Container workflows-service-db-1  Creating
 Container workflows-service-db-1  Created
 Container workflows-service-db-1  Starting
 Container workflows-service-db-1  Started
 Container workflows-service-db-1  Waiting
container workflows-service-db-1 exited (1)
 ELIFECYCLE  Command failed with exit code 1.

 ———————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————

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

    ✖    1/1 failed
    ✔    0/1 succeeded [0 read from cache]

 ELIFECYCLE  Command failed with exit code 1.

Docker Log:

root@administrator:/home/administrator/ballerine# docker logs workflows-service-db-1
Error: Database is uninitialized and superuser password is not specified.
       You must specify POSTGRES_PASSWORD to a non-empty value for the
       superuser. For example, "-e POSTGRES_PASSWORD=password" on "docker run".

       You may also use "POSTGRES_HOST_AUTH_METHOD=trust" to allow all
       connections without a password. This is *not* recommended.

       See PostgreSQL documentation about "trust":
       https://www.postgresql.org/docs/current/auth-trust.html

Ubuntu 22.04