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
JavaBot
JavaBot4w ago
This post has been reserved for your question.
Hey @Sky! Please use /close or the Close 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.
TIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here.
straightface
straightface4w ago
read the error geez password authentication failed for user "your_user" your username/password is incorrect
Sky
SkyOP4w ago
I 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'
dan1st
dan1st4w ago
spring.datasource.username=your_user
spring.datasource.password=your_password
spring.datasource.username=your_user
spring.datasource.password=your_password
Please check that you are using the correct credentials for your DB here the error is specifically about the DB connection
Sky
SkyOP4w ago
but you can see in my docker that it is the same no ?
dan1st
dan1st4w ago
Can you try connecting with these credentials from outside of your application?
Sky
SkyOP4w ago
POSTGRES_DB=your_database POSTGRES_USER=your_user POSTGRES_PASSWORD=your_password
ayylmao123xdd
ayylmao123xdd4w ago
thats so 🎿 🐝 🦌 does it work when you launch it without using docker oh daniel already said that lmao
JavaBot
JavaBot4w ago
💤 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.
Sky
SkyOP4w ago
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
JavaBot
JavaBot4w ago
💤 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.

Did you find this page helpful?