After rebooting linux server with confluence browser display 404 error
Asked by rgisbac:

After rebooting linux server with confluence browser display 404 error

Confluence logs:

2018-02-14 19:49:31,579 ERROR \[localhost-startStop-1\] \[atlassian.config.bootstrap.BootstrappedContextLoaderListener\] contextInitialized Failed to initialize the main Confluence context

org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'hostComponentProvider': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire method: public void com.atlassian.plugin.spring.SpringHostComponentProviderFactoryBean.setSpringHostComponentProviderConfig(com.atlassian.plugin.spring.SpringHostComponentProviderConfig); nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'bundledPluginLoader' defined in class path resource \[services/pluginServiceContext.xml\]: Cannot resolve reference to bean 'osgiPluginFactory' while setting constructor argument with key \[1\]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'osgiPluginFactory' defined in class path resource \[services/pluginServiceContext.xml\]: Cannot resolve reference to bean 'osgiPersistentCache' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'osgiPersistentCache': FactoryBean threw exception on object creation; nested exception is com.atlassian.plugin.osgi.container.OsgiContainerException: Unable to clean the cache directory: /var/atlassian/application-data/confluence/plugins-osgi-cache/felix

Related cause: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'cacheStatisticsManager' defined in class path resource \[services/cacheServiceContext.xml\]: Invocation of init method failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'ehCacheStatisticsManager' defined in URL \[jar:file:/opt/atlassian/confluence/webapps/../confluence/WEB-INF/lib/confluence-cache-ehcache-6.3.2.jar!/cacheProviderContext.xml\]: Cannot resolve reference to bean 'userI18NBeanFactory' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'userI18NBeanFactory' defined in class path resource \[i18NContext.xml\]: Cannot resolve reference to bean 'localeManager' while setting bean property 'localeManager'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'localeManager' defined in class path resource \[i18NContext.xml\]: Cannot resolve reference to bean 'languageManager' while setting bean property 'languageManager'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'languageManager' defined in class path resource \[applicationContext.xml\]: Cannot resolve reference to bean 'settingsManager' while setting bean property 'settingsManager'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'settingsManager' defined in class path resource \[applicationContext.xml\]: Cannot resolve reference to bean 'upgradeManager' while setting bean property 'upgradeManager'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'upgradeManager' defined in class path resource \[upgradeSubsystemContext.xml\]: Cannot resolve reference to bean 'conditionallyEnableMailArchivePluginUpgradeTask' while setting bean property 'pluginDependentUpgradeTasks' with key \[0\]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'conditionallyEnableMailArchivePluginUpgradeTask' defined in class path resource \[upgradeSubsystemContext.xml\]: Cannot resolve reference to bean 'pluginController' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'pluginController' defined in class path resource \[services/pluginServiceContext.xml\]: Cannot resolve reference to bean 'pluginManager' while setting bean property 'pluginController'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'pluginManager' defined in class path resource \[services/pluginServiceContext.xml\]: Cannot resolve reference to bean 'pluginLoaders' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'pluginLoaders' defined in class path resource \[services/pluginServiceContext.xml\]: Cannot resolve reference to bean 'bundledPluginLoader' while setting constructor argument with key \[0\]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'bundledPluginLoader' defined in class path resource \[services/pluginServiceContext.xml\]: Cannot resolve reference to bean 'osgiPluginFactory' while setting constructor argument with key \[1\]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'osgiPluginFactory' defined in class path resource \[services/pluginServiceContext.xml\]: Cannot resolve reference to bean 'osgiPersistentCache' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'osgiPersistentCache': FactoryBean threw exception on object creation; nested exception is com.atlassian.plugin.osgi.container.OsgiContainerException: Unable to clean the cache directory: /var/atlassian/application-data/confluence/plugins-osgi-cache/felix

Related cause: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'databasePluginLoader' defined in class path resource \[services/pluginServiceContext.xml\]: Cannot resolve reference to bean 'databasePluginLoaderTarget' while setting bean property 'target'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'databasePluginLoaderTarget' defined in class path resource \[services/pluginServiceContext.xml\]: Cannot resolve reference to bean 'osgiPluginFactory' while setting constructor argument with key \[1\]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'osgiPluginFactory' defined in class path resource \[services/pluginServiceContext.xml\]: Cannot resolve reference to bean 'osgiPersistentCache' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'osgiPersistentCache': FactoryBean threw exception on object creation; nested exception is com.atlassian.plugin.osgi.container.OsgiContainerException: Unable to clean the cache directory: /var/atlassian/application-data/confluence/plugins-osgi-cache/felix

at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:334)

at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1214)

at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:543)

at

.......


Answers:
author: josh
body: This is usually a permissions issue. Make sure your whole installation directory is owned and readable by the account that runs confluence.

    chown -R confluence.confluence <confluence-install-folder>chown -R confluence.confluence <confluence-home-folder>chmod -R u=rwx,go-rwx <confluence-install-folder>chmod -R u=rwx,go-rwx <confluence-home-folder>