Forums

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

Confluence server in docker crashes during initialization during setuppaths.action

Scott Howell
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!
April 13, 2021

I'm trying to run an eval of confluence on Mac OSX using the atlassian confluence docker image from docker hub but as I go through the SetupWizard on localhost:8090, after the DB setup completes and I reach setup/setuppaths.action, the confluence server (and docker container) crashes consistently.

I've confirmed its not an issue with file/directory permissions with the mounted directory and I believe I've set the database up following the posted instructions.  The logs/atlassian-confluence.log doesn't appear to contain any errors.

Is this a known issue with my platform or database choice or.....?

Any insight on the issue would be appreciated.  Here are some additional details:

Docker image:

https://hub.docker.com/r/atlassian/confluence-server

Docker run command:

docker run -v /tmp/data/confluence-home:/var/atlassian/application-data/confluence --name="confluence" --user 2002:2002 -d -p 8090:8090 -p 8091:8091 atlassian/confluence-server

Database:

Postgres 13

Database create command used:

CREATE DATABASE confluence WITH TEMPLATE = template0 ENCODING = 'UTF8' LC_COLLATE = 'en_US.UTF-8' LC_CTYPE = 'en_US.UTF-8';

The last line in the log prior to the crash is: 

"2021-04-13 20:31:08,350 INFO [Catalina-utility-1] [atlassian.plugin.manager.DefaultPluginManager] logTime Plugin system lateStartup ended"

If its useful, if I restart the docker container w/o cleaning up the contents of $CONFLUENCE_HOME, I get the following additional log entry:

Cause

com.atlassian.util.concurrent.LazyReference$InitializationException: java.lang.IllegalStateException: Spring Application context has not been set
    at com.atlassian.util.concurrent.LazyReference.getInterruptibly(LazyReference.java:149)

caused by: java.lang.IllegalStateException: Spring Application context has not been set
    at com.atlassian.spring.container.SpringContainerContext.getComponent(SpringContainerContext.java:48)

 

1 answer

1 accepted

2 votes
Answer accepted
Scott Howell
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!
April 14, 2021

FYI....Got it working.  Turns out the memory recommendation on the site for the docker image (https://hub.docker.com/r/atlassian/confluence-server) is incorrect: "We recommend 2GiB of memory allocated to accommodate the application server."  docker stats shows it taking up 3GiB during initialization and during runtime.

Christian May 6, 2021

That's good news Scott! Because this is exactly what I can trying to accomplish and also run into weird crashes and nothing ever booting. It just seemed to cycle.

I don't remember the cpu/memory limits I set but as assume they were too small as well.

Awesome :D Now I can try again! And thanks for sharing the docker run cmdline with your volumes and port mapping. That clears up another question I had!

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events