Problem with installation
Asked by Alexander Hert:

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 {#toc-hId-1085281149}

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


Answers:
author: JP _AC Bielefeld Leader_
body: Hi,

which OS are you using? Linux or Windows?

Best

JP

comments: author: Alexander Hert
body: hey JP,

i am running an Ubuntu 16.04.

any ideas?

cheers

alex


author: Pavel Junek
body: 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


author: Alexander Hert
body: 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


author: Pavel Junek
body: 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](https://confluence.atlassian.com/confeap/running-confluence-behind-nginx-with-ssl-849150880.html)

Pavel


author: Alexander Hert
body: hey Pavel,

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

;-(


author: Pavel Junek
body: :-(

How much HW resources does the Ubuntu server have allocated?

Please see [Server Hardware Requirements Guide](https://confluence.atlassian.com/doc/server-hardware-requirements-guide-30736403.html)

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

Pavel


author: Pavel Junek
body: 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

comments: author: Alexander Hert
body: hey Pavel, i've checked this already. permissions are fine.