org.hibernate.exception.GenericJDBCException: unable to obtain isolated JDBC connection
I'm working with a Spring Boot application that connects to a PostgreSQL container running through Docker. However, when I try to run the application, I encounter the following error:
org.hibernate.exception.GenericJDBCException: unable to obtain isolated JDBC connection [FATAL: password authentication failed for user "your_user"]
11 Replies
⌛
This post has been reserved for your question.
Hey @Sky! Please useTIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here./close
or theClose Post
button above when your problem is solved. Please remember to follow the help guidelines. This post will be automatically marked as dormant after 300 minutes of inactivity.
read the error geez
password authentication failed for user "your_user"
your username/password is incorrectI read it but they are correct
how can I write them incorrectly I just copy pasted them
spring.application.name=moviz
spring.security.user.name=admin
spring.security.user.password=admin
server.port=8080
spring.datasource.url=jdbc:postgresql://localhost:5432/your_database
spring.datasource.username=your_user
spring.datasource.password=your_password
spring.datasource.driver-class-name=org.postgresql.Driver
spring.jpa.database-platform=org.hibernate.dialect.PostgreSQLDialect
spring.jpa.hibernate.ddl-auto=update
spring.sql.init.mode=never
services:
postgres:
image: 'postgres:latest'
environment:
- POSTGRES_DB=your_database
- POSTGRES_USER=your_user
- POSTGRES_PASSWORD=your_password
ports:
- '5432:5432'
Please check that you are using the correct credentials for your DB here
the error is specifically about the DB connection
but you can see in my docker that it is the same no ?
Can you try connecting with these credentials from outside of your application?
POSTGRES_DB=your_database
POSTGRES_USER=your_user
POSTGRES_PASSWORD=your_password
thats so 🎿 🐝 🦌
does it work when you launch it without using docker
oh
daniel already said that
lmao
💤
Post marked as dormant
This post has been inactive for over 300 minutes, thus, it has been archived.
If your question was not answered yet, feel free to re-open this post or create a new one.
In case your post is not getting any attention, you can try to use /help ping
.
Warning: abusing this will result in moderative actions taken against you.
yes it works without docker if I connect to the local postgresql
but I don't know how docker does it exactly when I try to use the credentials I put in my docker file, it says it can't connect
💤
Post marked as dormant
This post has been inactive for over 300 minutes, thus, it has been archived.
If your question was not answered yet, feel free to re-open this post or create a new one.
In case your post is not getting any attention, you can try to use /help ping
.
Warning: abusing this will result in moderative actions taken against you.