Error opening confluence just after installation - IllegalStateException
Asked by Suporte AGTI:

Hi,

I installed confluenc in my vps yesterday, and then turned off the machine to upgrade it in order to run jira and confluence in same machine.

Now, when I access mydomain.com:8090, I see the following error:

> The SystemInformationService could not be retrieved from the container. Therefore very limited information is available in this error report.  
> The SystemInformationService could not be retrieved due to the following error: java.lang.IllegalStateException: Spring Application context has not been set
>
> ### Cause {#toc-hId-1167438127}
>
> 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)
>
> #### Stack Trace:\[hide\] {#toc-hId-1857999601}
>
> ```
> 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)	at com.atlassian.util.concurrent.LazyReference.get(LazyReference.java:112)	at com.atlassian.confluence.setup.webwork.ConfluenceXWorkTransactionInterceptor.getTransactionManager(ConfluenceXWorkTransactionInterceptor.java:29)	at com.atlassian.xwork.interceptors.XWorkTransactionInterceptor.intercept(XWorkTransactionInterceptor.java:50)	at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:165)	at com.atlassian.confluence.xwork.SetupIncompleteInterceptor.intercept(SetupIncompleteInterceptor.java:52)	at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:165)	at com.atlassian.confluence.security.interceptors.SecurityHeadersInterceptor.intercept(SecurityHeadersInterceptor.java:26)	at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:165)	at com.opensymphony.xwork.interceptor.AroundInterceptor.intercept(AroundInterceptor.java:35)	at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:165)
> ```
>
> ### Referer URL {#toc-hId-1847496497}
>
> Unknown
>
I tried to re-execute the confluence install script, using the "upgrade" option, but the error persist. I didn't see any error before the vps was turned off.


Answers:
author: Diego
body: Hello [@Suporte AGTI](/t5/user/viewprofilepage/user-id/1171325) !

As [@Pedro Felgueiras](/t5/user/viewprofilepage/user-id/510378) said, there is a comprehensive document for us to use as a reference when tackling this issue:
> * ++***[\[Confluence Server\] Confluence does not start due to Spring Application context has not been set](https://confluence.atlassian.com/confkb/confluence-does-not-start-due-to-spring-application-context-has-not-been-set-218278311.html)***++

There are a few notes to be made about it though:
> * *Each possible solution must be tested on its own, do not try to apply multiple solutions at the same time*
> * *Make sure that the user used to start/stop Confluence has enough permissions on both \<confluence-home\> and \<confluence-install\> folders
>   ++**[Confluence Home and other important directories](https://confluence.atlassian.com/doc/confluence-home-and-other-important-directories-590259707.html)**++*
> * *Make sure that your Virtual Private Server is within the Supported Platforms for your Confluence Server version:* ++**[\[Confluence Server\] Supported Platforms](https://confluence.atlassian.com/doc/supported-platforms-207488198.html)**++

You can check further instructions on how to install Confluence here:
> * [++***\[Confluence Server\] Confluence Installation Guide***++](https://confluence.atlassian.com/doc/confluence-installation-guide-135681.html)

You can try to rule out problems with the permissions by performing the installation while using the System Administrator user account. It is not advisable for you to install Confluence outside a test environment with a System Administrator account.

Let us hear from you!

comments: author: Suporte AGTI
body: Hi, [@Diego](/t5/user/viewprofilepage/user-id/1188952) Thank you for your reply

I was not able to fix the installation in the Server that is running Jira, so I made a Brand new installation in other VPS and everything went fine. As far as I can tell I made them in the same way.

But as it is working in the new server I will keep them as they are, in separate environments.

Thank you anyway.


author: Pedro Felgueiras
body: hi [@Suporte AGTI](/t5/user/viewprofilepage/user-id/1171325)

Las tweek i had made an upgrade to confluence 7.4.0 and had the same problem.

For what I had checked it's because the permissions on folders.

Try the resolution 1 on this document, it fix'd it for me

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

comments: author: Suporte AGTI
body: Hi, [@Pedro Felgueiras](/t5/user/viewprofilepage/user-id/510378)

I tried the 11 itens descriped in this link, but none of them worked for me.. I even tried to remove the confluence folder and install it again, bit now even the installer is not displayed for me in the browser. I see the exact same error..