Confluence Server (evaluation) error
Asked by Clive Warner:

Trying to use Confluence server first time following install and load of key :

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-1569114529}

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--1179555937}

### Referer URL {#toc-hId-759767903}

Unknown


Answers:
author: Clive Warner
body: Which files and Folders ?

Wrong User??

comments: author: Clive Warner
body: Hi Nic,

I am using an account called AGRAdmin which has full access on the Atlassian folder and sun folders (ie Confluence and Jira). ARe there some other permissions required?


author: Nic Brough -Adaptavist-
body: When you say Atlassian and sun, do you mean the Atlassian installation directory and the data directories for them?

As an example, my installs are:

* /opt/atlassian/confluence
* /opt/atlassian/jira
* /data/confluence-home
* /data/jira-home

First two are the installations, the second two are the "home" directories. All four are owned by "charlie" who also runs the applications.

Is that the same permissions you've got with AGRAdmin?


author: Clive Warner
body: Hi I have tried using the Local System account but that did not work so I tried AGRAdmin (as I sign on the server user that ID) but I have reverted back to using the Local System Account - Any help would be gratefully received :)


author: Nic Brough -Adaptavist-
body: Swapping accounts to run it with is a good way to cause the ownership to change. Could you check the owners of the installation directories and data directories.


author: Clive Warner
body: Sorted now thanks!


author: Nic Brough -Adaptavist-
body: The two most common causes of this problem are:

Some files and folders are owned by the wrong user (i.e. not the one running Confluence). Check the ownership and access to the files.

The wrong version of Java is in use (If you've done a simple install of a more recent Confluence, it will be using its own version, distributed with it, so you won't have that problem)

comments: author: Clive Warner
body: This is a new install for evaluation purposes. Your response is a bit vague, can you let me know which 'files and folders' you are referring to, what you mean by the 'wrong user' and what I can do to remedy this?


author: Nic Brough -Adaptavist-
body: Yes, sorry, it was a bit vague.

You need to check all files and directories in the Confluence installation and data (home) directories.

For "wrong user" - everything on a server runs with a user profile. That profile may well be a system owner or service account rather than what looks like a human user, but it's still a user. Confluence is usually run with a dedicated account for it, one that runs nothing else. You need to check who Confluence is running as and make sure all the files and directories are accessible to them (the easiest option is usually to make the account the owner of the files)


Tags: confluence-administration