-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
check-db.js
script should report the actual cause of a connection error
#2837
Comments
It should report it now in the latest version. |
? Lines 41 to 49 in b006747
This is the version of the script I was using, the latest commit, and it does not report the actual cause of the problem. |
Hi, I'm using provided docker compose and I'm having this issue too. I would suggest getting more details about this error too (if possible). EDIT: btw changing by this
dont add so much details
there is a way to do some test using a given compose file (by hand)
/app # nc -z db 5432
# wait ^^
/app # echo $?
1 umami image cant reach the remote db port, (I'm digging but not found for now: network, links, container_name,.. and pgsql is listening on IPv4 address "0.0.0.0", port 5432) |
Describe the feature or enhancement
While trying to install Umami I was stuck for quite a while at this stage:
The
check-db.js
script does not report what the actual exception raised by Prisma was. Credentials were correct, I was able to do a manual connection withpsql
with the given password etc., but this error persisted.The problem turned out to be that Prisma was not finding the right version of the OpenSSL library*. But finding this out involved quite a bit of guesswork and wasted over an hour of my life.
The
check-db.js
script should actually show the exception that caused the connection to fail.(* Why on earth it needs this in order to connect to a local database without SSL is anyone’s guess …)
The text was updated successfully, but these errors were encountered: