Have hosted Confluence on Docker container and Postgres on another container. Both the containers are up and running. When I try to test the connection it says '
Can't reach database server or port
SQLState - 08001
org.postgresql.util.PSQLException: The connection attempt failed.'
The IP address is correctly entered
I have exposed port 5432
Anything that I have missed?
SQLState - 08001
org.postgresql.util.PSQLException: The connection attempt failed.
i have the same issue~
there is no problem for my jira, bitbucket jira service desk to connect the postgres.
i'm using the postgres paas service on Azure cloud.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Ranga vittal ,
Are you running Confluence and Postgres from the same Docker, meaning that they are on the same box session? If so, Confluence should be able to connect to PostgreSQL when providing its container's name.
As a suggestion, you could create a Network in docker so you do not face issues of getting a different IP every time your containers are started. Without a static IP, when starting a container, you may get a different IP address depending on the order of events.
# create a Docker network
docker network create \
--driver bridge \
--subnet=10.10.0.0/16 \
myNetwork
For PostgreSQL and Confluence you could do the following:
# create a PostgreSQL docker container
docker run -d \
--restart=unless-stopped \
--network myNetwork \
--ip 10.10.1.2 \
--name postgres96 \
--hostname postgres \
-p 5432:5432 \
-e POSTGRES_PASSWORD=mysecretpassword \
-e PGDATA=/var/lib/postgresql/data/pgdata \
-v /path/postgres/9.6:/var/lib/postgresql/data/pgdata \
-d postgres:9.6
# create a Confluence docker container
docker run -d --init \
--network myNetwork \
--ip 10.10.2.2 \
--name confluence667 \
--hostname confluence \
-p 8090:8090 \
-v /path/confluence/6.6.7:/var/atlassian/application-data/confluence \
atlassian/confluence-server:6.6.7
Then connect Confluence by providing the PostgreSQL name parameter (e.g postgres96)
<property name="hibernate.connection.url">
jdbc:postgresql://postgres96:5432/confluence667
</property>
Hope the above helps.
Kind regards,
Rafael
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Any luck?
Can't reach database server or port
SQLState - 08001
org.postgresql.util.PSQLException: The connection attempt failed.
So strange failed again here with PostgreSQL too while failed all time MSSQL
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.