Forums

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

Problem with installation

Alexander Hert July 29, 2019

Hello, 

i am facing an issue after installing confluence from skretch. 

I've checked all the points from here already and think I am fine will all of them. 

https://confluence.atlassian.com/confkb/confluence-does-not-start-due-to-spring-application-context-has-not-been-set-218278311.html

 

Can you help me. 

 

I am getting this error. 

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)

 

Thanks in advice. 

 

Cheers

Alex

 

2 answers

0 votes
JP _AC Bielefeld Leader_
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 29, 2019

Hi,

which OS are you using? Linux or Windows?

Best

JP

Alexander Hert July 30, 2019

hey JP,

 

i am running an Ubuntu 16.04.

any ideas?

 

cheers

alex

Pavel Junek
Community Champion
July 30, 2019

OK, I have several points:

  • Is there enough HDD space on the server where is Confluence Home and Confluence Install folder?
  • How look your CONF-INSTALL/confluence/WEB-INF/classes/confluence-init.properties  file?
  • You need run Confluence app as eg. Confluence user, not root.
  • Have yout set up SSL for Confluence?
  • You run Confluence app like Service (service confluence start|stop)?

Pavel

Alexander Hert July 31, 2019

Hey Pavel, 

  • Is there enough HDD space on the server where is Confluence Home and Confluence Install folder?

YES, it is. 

 

  • How look your CONF-INSTALL/confluence/WEB-INF/classes/confluence-init.properties  file?

There is only this line which is uncommented there. 

###########################
# Configuration Directory #
###########################

# specify your directory below (don't forget to remove the '#' in front)

confluence.home = /var/atlassian/application-data/confluence

 

  • You need run Confluence app as eg. Confluence user, not root.

I've tried that several times as well already by becoming confluence user 

su - confluence 

and starting confluence like

/etc/init.d/confluece start

 

  • Have yout set up SSL for Confluence?

not that I know of. I have an nginx running with and valid ssl cert. what do I need to set up in confluence itself for this?

 

  • You run Confluence app like Service (service confluence start|stop)?

yes, exactly

 

Cheers

Alex

Pavel Junek
Community Champion
July 31, 2019

Hi Alex,

Thank you for provide information for me. All looks like good, but I have one idea - you use NGINX with SSL. Did you make the necessary settings in CONFL_Install/conf/server.xml?

Running Confluence behind NGINX with SSL

Pavel

Alexander Hert July 31, 2019

hey Pavel, 

unfortunately even this did not help. still getting the same errors. 

;-(

Pavel Junek
Community Champion
August 1, 2019

:-(

How much HW resources does the Ubuntu server have allocated? 

Please see Server Hardware Requirements Guide

You can try delete the confluence.cfg.xml file and restarted confluence.

Pavel

0 votes
Pavel Junek
Community Champion
July 29, 2019

Hi Alxander,

this is caused probably wrong OS permission to Confluence Intall and Confluence Home folder. Please try:

sudo chown -R <confluence-user> <confluence-install-folder>
sudo chown -R <confluence-user> <confluence-home-folder>
sudo chmod -R u=rwx,g=rx,o=rx <confluence-install-folder>
sudo chmod -R u=rwx,g=rx,o=rx <confluence-home-folder>

Pavel 

Alexander Hert July 30, 2019

hey Pavel, i've checked this already. permissions are fine. 

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events