-
Notifications
You must be signed in to change notification settings - Fork 199
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bug - Installation Failure - SQL Error #2721
Comments
is this first run? |
@WFA-juliver I have tried multiple times and unsuccessful before trying to install it via docker |
@sarshad01 when running the example, did you verify if theres a db container with postgres running? try
and check if theres database running |
@WFA-juliver Yes I did and the db container is running. The workflows-service:setup basically starts the db container via docker:db command, so even if it is not running, it starts running when the workflows-service is setup. If it is already running, the command restarts it. My assumption is the 'wait' for whatever reason does not work and the script tries to run migrations before the container is ready for accepting connections? |
yeah I see that too, hope someone on the ballerine team can help us. I really wanted to make this software up and running on my instance. |
@sarshad01 any luck on your side? |
I was able to get it up and running by manually running the db commands, to fix the |
@sarshad01 how about the docker deployment, you have luck? |
Created a special sh script /home/XXXXXXXXX/ballerine/services/workflows-service/scripts/waitDb.sh #!/bin/bash
Then add a lauch of this script to /home/XXXXXXXXX/ballerine/services/workflows-service/scripts/db-reset.ts
Actually, 3-5 seconds delay is the solution |
@TestYouTestUntilTest I'm stuck on this error
any idea? |
Add sudo to the shell script to run commands and enter your user pass during script running. echo "Extra wait for 5 second(s)" |
Description
pnpm run kyb-manual-review-example
results in failure, more specifically database connection error when@ballerine/[email protected] db:reset
is invoked. Runningnpm db:reset
executes successfully if ran manually within services/workflows-service directory. However, runningnpm run seed
throws Foreign key constraint error (Alert_businessId_fkey (index))Expected Behaviour
BackOffice, Collection and Workflows services should start listening
Actual Behaviour
Command Fails with Exit code 1
Environment
*
*
*
Steps to Reproduce
pnpm run kyb-manual-review-example
would exit the process with the database connection errornpm run db:reset
while the db container is running and the command will succeednpm run seed
this will fail showing foreign key errorAny possible solutions
1- My assumption was the database connection error occurs due to localhost being used, I switched it to 127.0.0.1 in the /services/workflows-service/.env however it did not solve the issue.
2- I then tried to run
npm run db:reset
manually and it worked3- I then manually ran
npm run seed
which failed throwing foreign key constraint errorExamples and references
Output of
pnpm run kyb-manual-review-example
:Output of
npm run seed
:The text was updated successfully, but these errors were encountered: