Confluence not starting after instalation
Asked by Dianna Newman:

I have reinstalled it several times and it still will not load. Jira works fine but Confluence just will not load in my browser. I am running on CentOS 7 and it installs with no errors using command lines. Here is the log

```
2017-07-04 03:20:14,679 INFO [localhost-startStop-1] [com.atlassian.confluence.lifecycle] contextInitialized Starting Confluence 6.2.3 [build 7201 based on commit hash e9483755159fbecaf5aef9b1eebd094ee4430d2f] - synchrony version 0.3.1-release-confluence_6.1-e20fb9442017-07-04 03:20:37,580 WARN [localhost-startStop-1] [com.atlassian.config.ApplicationConfig] setApplicationHome Application home does not exist. Creating directory: /var/atlassian/application-data/confluence/shared-home2017-07-04 03:20:37,669 INFO [localhost-startStop-1] [atlassian.confluence.cluster.DefaultClusterConfigurationHelper] lambda$populateExistingClusterSetupConfig$1 Populating setup configuration if running with Cluster mode...2017-07-04 03:20:37,671 WARN [localhost-startStop-1] [atlassian.confluence.cluster.DefaultClusterConfigurationHelper] lambda$populateExistingClusterSetupConfig$1 Could not find shared config file.2017-07-04 03:20:50,659 INFO [localhost-startStop-1] [atlassian.plugin.manager.DefaultPluginManager] earlyStartup Plugin system earlyStartup begun2017-07-04 03:21:22,473 INFO [localhost-startStop-1] [atlassian.plugin.manager.DefaultPluginManager] logTime Plugin system earlyStartup ended2017-07-04 03:21:22,479 INFO [localhost-startStop-1] [atlassian.plugin.manager.DefaultPluginManager] lateStartup Plugin system lateStartup begun2017-07-04 03:21:31,760 INFO [localhost-startStop-1] [atlassian.plugin.manager.DefaultPluginManager] logTime Plugin system lateStartup ended2017-07-04 03:21:37,948 INFO [localhost-startStop-1] [com.atlassian.confluence.lifecycle] init Confluence is ready to serve2017-07-04 03:39:16,778 FATAL [localhost-startStop-3] [atlassian.spring.container.SpringContainerContext] getComponent Spring Application context has not been set2017-07-04 03:39:16,782 WARN [localhost-startStop-3] [atlassian.confluence.plugin.PluginFrameworkContextListener] contextDestroyed Failed to shut down plugin system during ServletContext shutdown: Spring Application context has not been set2017-07-04 03:39:17,166 INFO [localhost-startStop-3] [com.atlassian.confluence.lifecycle] contextDestroyed Stopping Confluence2017-07-04 03:39:19,257 INFO [localhost-startStop-3] [atlassian.plugin.manager.DefaultPluginManager] shutdown Preparing to shut down the plugin system2017-07-04 03:39:19,281 INFO [localhost-startStop-3] [atlassian.plugin.manager.DefaultPluginManager] shutdown Shutting down the plugin system2017-07-04 03:43:36,278 INFO [localhost-startStop-1] [com.atlassian.confluence.lifecycle] contextInitialized Starting Confluence 6.2.3 [build 7201 based on commit hash e9483755159fbecaf5aef9b1eebd094ee4430d2f] - synchrony version 0.3.1-release-confluence_6.1-e20fb9442017-07-04 03:45:08,177 INFO [localhost-startStop-1] [atlassian.confluence.cluster.DefaultClusterConfigurationHelper] lambda$populateExistingClusterSetupConfig$1 Populating setup configuration if running with Cluster mode...2017-07-04 03:45:08,179 WARN [localhost-startStop-1] [atlassian.confluence.cluster.DefaultClusterConfigurationHelper] lambda$populateExistingClusterSetupConfig$1 Could not find shared config file.2017-07-04 03:43:35,071 INFO [localhost-startStop-1] [com.atlassian.confluence.lifecycle] contextInitialized Starting Confluence 6.2.3 [build 7201 based on commit hash e9483755159fbecaf5aef9b1eebd094ee4430d2f] - synchrony version 0.3.1-release-confluence_6.1-e20fb9442017-07-04 03:45:08,755 INFO [localhost-startStop-1] [atlassian.confluence.cluster.DefaultClusterConfigurationHelper] lambda$populateExistingClusterSetupConfig$1 Populating setup configuration if running with Cluster mode...2017-07-04 03:45:08,756 WARN [localhost-startStop-1] [atlassian.confluence.cluster.DefaultClusterConfigurationHelper] lambda$populateExistingClusterSetupConfig$1 Could not find shared config file.2017-07-04 03:43:37,255 INFO [localhost-startStop-1] [com.atlassian.confluence.lifecycle] contextInitialized Starting Confluence 6.2.3 [build 7201 based on commit hash e9483755159fbecaf5aef9b1eebd094ee4430d2f] - synchrony version 0.3.1-release-confluence_6.1-e20fb9442017-07-04 03:45:11,266 INFO [localhost-startStop-1] [atlassian.confluence.cluster.DefaultClusterConfigurationHelper] lambda$populateExistingClusterSetupConfig$1 Populating setup configuration if running with Cluster mode...2017-07-04 03:45:11,384 WARN [localhost-startStop-1] [atlassian.confluence.cluster.DefaultClusterConfigurationHelper] lambda$populateExistingClusterSetupConfig$1 Could not find shared config file.2017-07-04 03:45:41,969 INFO [localhost-startStop-1] [atlassian.plugin.manager.DefaultPluginManager] earlyStartup Plugin system earlyStartup begun2017-07-04 03:45:43,338 INFO [localhost-startStop-1] [atlassian.plugin.manager.DefaultPluginManager] earlyStartup Plugin system earlyStartup begun2017-07-04 03:45:46,076 INFO [localhost-startStop-1] [atlassian.plugin.manager.DefaultPluginManager] earlyStartup Plugin system earlyStartup begun2017-07-04 03:47:12,683 INFO [localhost-startStop-1] [atlassian.plugin.manager.DefaultPluginManager] logTime Plugin system earlyStartup ended2017-07-04 03:47:12,742 INFO [localhost-startStop-1] [atlassian.plugin.manager.DefaultPluginManager] logTime Plugin system earlyStartup ended2017-07-04 03:47:12,771 INFO [localhost-startStop-1] [atlassian.plugin.manager.DefaultPluginManager] lateStartup Plugin system lateStartup begun2017-07-04 03:47:12,886 INFO [localhost-startStop-1] [atlassian.plugin.manager.DefaultPluginManager] lateStartup Plugin system lateStartup begun2017-07-04 03:47:16,153 INFO [localhost-startStop-1] [atlassian.plugin.manager.DefaultPluginManager] logTime Plugin system earlyStartup ended2017-07-04 03:47:16,262 INFO [localhost-startStop-1] [atlassian.plugin.manager.DefaultPluginManager] lateStartup Plugin system lateStartup begun2017-07-04 03:47:31,661 INFO [localhost-startStop-1] [atlassian.plugin.manager.DefaultPluginManager] logTime Plugin system lateStartup ended2017-07-04 03:47:31,971 INFO [localhost-startStop-1] [atlassian.plugin.manager.DefaultPluginManager] logTime Plugin system lateStartup ended2017-07-04 03:47:35,037 INFO [localhost-startStop-1] [atlassian.plugin.manager.DefaultPluginManager] logTime Plugin system lateStartup ended2017-07-04 03:47:51,044 INFO [localhost-startStop-1] [com.atlassian.confluence.lifecycle] init Confluence is ready to serve2017-07-04 03:47:51,352 INFO [localhost-startStop-1] [com.atlassian.confluence.lifecycle] init Confluence is ready to serve2017-07-04 03:47:53,572 FATAL [localhost-startStop-3] [atlassian.spring.container.SpringContainerContext] getComponent Spring Application context has not been set2017-07-04 03:47:54,372 WARN [localhost-startStop-3] [atlassian.confluence.plugin.PluginFrameworkContextListener] contextDestroyed Failed to shut down plugin system during ServletContext shutdown: Spring Application context has not been set2017-07-04 03:47:54,447 INFO [localhost-startStop-3] [com.atlassian.confluence.lifecycle] contextDestroyed Stopping Confluence2017-07-04 03:47:54,552 INFO [localhost-startStop-1] [com.atlassian.confluence.lifecycle] init Confluence is ready to serve2017-07-04 03:47:54,961 FATAL [localhost-startStop-3] [atlassian.spring.container.SpringContainerContext] getComponent Spring Application context has not been set2017-07-04 03:47:55,468 INFO [localhost-startStop-3] [atlassian.plugin.manager.DefaultPluginManager] shutdown Preparing to shut down the plugin system2017-07-04 03:47:55,469 INFO [localhost-startStop-3] [atlassian.plugin.manager.DefaultPluginManager] shutdown Shutting down the plugin system2017-07-04 03:47:55,761 WARN [localhost-startStop-3] [atlassian.confluence.plugin.PluginFrameworkContextListener] contextDestroyed Failed to shut down plugin system during ServletContext shutdown: Spring Application context has not been set2017-07-04 03:47:55,777 INFO [localhost-startStop-3] [com.atlassian.confluence.lifecycle] contextDestroyed Stopping Confluence2017-07-04 03:47:56,978 INFO [localhost-startStop-3] [atlassian.plugin.manager.DefaultPluginManager] shutdown Preparing to shut down the plugin system2017-07-04 03:47:56,979 INFO [localhost-startStop-3] [atlassian.plugin.manager.DefaultPluginManager] shutdown Shutting down the plugin system
```

I have restarted the sever several times too.


Answers:
author: AnnWorley
body: The error:

```
Spring Application context has not been set
```

can have several causes, usually related to file system permissions. Please review [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) and see if the resolutions there are of help.

If the guide helps, please let us know which resolution applied to your case.