Skip to content

Help Request: ./gradlew serverRun leads to PSQLException #13139

Closed Answered by NeoHW
NeoHW asked this question in Help requests
Discussion options

You must be logged in to vote

Hi, thanks for all the help. After some tinkering, I discovered the error and wanted to share it here in case anyone else encounters the same issue in the future.

The problem arises when a PostgreSQL service is already started using Homebrew and then a PostgreSQL container is started using Docker Compose. The program defaults to using the local PostgreSQL database from Homebrew instead of the Dockerized instance.

To fix this, create the necessary role and database in the local PostgreSQL instance to keep it running.

Replies: 4 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@NeoHW
Comment options

@dishenggg
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by NeoHW
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
4 participants