Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

UnknownHostException in Confluence docker when started as service

phillies
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
August 2, 2019

Hi,

I just moved my confluence server from a stand-alone installation to the docker image and it works nicely when I start confluence as a regular container like this:

docker run \
--mount type=bind,source=/mnt/data/atlassian/application-data/confluence,target=/var/atlassian/application-data/confluence \
--name="confluence" \
-d -p 8090:8090 -p 8091:8091 \
-e CATALINA_CONNECTOR_PROXYNAME=####removed#### \
-e CATALINA_CONNECTOR_PROXYPORT=443 \
-e CATALINA_CONNECTOR_SECURE=true \
-e CATALINA_CONNECTOR_SCHEME=https \
atlassian/confluence-server

 But I want to start it as service with identical configuration

docker service create \
--mount type=bind,source=/mnt/data/atlassian/application-data/confluence,target=/var/atlassian/application-data/confluence \
--name="confluence" \
-p 8090:8090 -p 8091:8091 \
-e CATALINA_CONNECTOR_PROXYNAME=####removed#### \
-e CATALINA_CONNECTOR_PROXYPORT=443 \
-e CATALINA_CONNECTOR_SECURE=true \
-e CATALINA_CONNECTOR_SCHEME=https \
--restart-condition="on-failure" \
atlassian/confluence-server

Now when I open the confluence page I get "Confluence had a problem starting up" with the error message UnknownHostException: ee21837a530d: Name or service not known

The ID ee21837a530d is the docker container ID (and hostname). The connector config is required as I access confluence through a reverse proxy.

What am I missing here?

 

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events