Confluence Upgrade from 5.7.1 to 6.8.3
Asked by Charan Singh:

Hello All,

Upgrading confluence with internal database (comes default) from 5.7.1 to latest throwing an error as below:

This doesn't show any helpful information. Any helps and useful tips here?

---------------------------------------------

A system error has occurred --- our apologies!

For immediate troubleshooting, consult our **[knowledge base](http://confluence.atlassian.com/display/CONFKB/Confluence+Knowledge+Base+Home)** for a solution.

If you would like to receive support from Atlassian's support team, ask your **[Confluence administrator](https://mobdoc.us.deloitte.com/contactadministrators.action)** to create a support issue on [Atlassian's support system](http://support.atlassian.com/) with the following information:

1. a description of your problem and what you were doing at the time it occurred
2. a copy of the error and system information found below
3. a copy of the application logs (if possible).

Your Confluence administrator can use the **[support request form](https://mobdoc.us.deloitte.com/admin/raisesupportrequest.action)** to create a support ticket which will include this information.

We will respond as promptly as possible.  
Thank you!

[**Return to site homepage...**](https://mobdoc.us.deloitte.com/)

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

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)

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

Unknown


Answers:
author: Vickey Palzor Lepcha
body: [@Charan Singh](/t5/user/viewprofilepage/user-id/341077) That is a very bad upgrade path that you've jumped .

There is a huge gap between 5.7.1 and 6.8.3.

Please avoid skipping so many important releases between them.

If you have a backup - restore back to 5.7.1 and take a better upgrade path.

comments: author: Charan Singh
body: Hi.. Thanks for the quick reply.

You are correct and I realised this hard way. Now, this is my problem.

I uninstalled the 6.8.x version.

When I try to restore back my installation directory, I keep getting an error from the Windows service that some file missing. I couldn't restore my installation directory. I just pasted the whole directory from my backup location to the installation directory.

Any help or restoring back to previous state? I am not familiar with the Atlassian products.

Thanks again.


author: Vickey Palzor Lepcha
body: For now, stop the service and see if you can start the application from under the /bin directory..


author: Charan Singh
body: Service stopped. Deleted the Confluence installation folder and restored the backup folder.

How do you want me to start the application from /bin folder? Can you elaborate a bit on that?


author: Charan Singh
body: If I am not wrong, you might be referring to the start-confluence batch file? I did that and the page loaded.

But got the below errors:

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: F:\\Atlassian\\Confluence\\plugins-osgi-cache\\felix  
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:275)

caused by: 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: F:\\Atlassian\\Confluence\\plugins-osgi-cache\\felix  
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:275)

caused by: 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: F:\\Atlassian\\Confluence\\plugins-osgi-cache\\felix  
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:275)

caused by: 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: F:\\Atlassian\\Confluence\\plugins-osgi-cache\\felix  
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:275)

caused by: 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: F:\\Atlassian\\Confluence\\plugins-osgi-cache\\felix  
at org.springframework.beans.factory.support.FactoryBeanRegistrySupport$1.run(FactoryBeanRegistrySupport.java:127)


author: Charan Singh
body: Any help here?


author: Igor M.
body: Please try clearing the plugins cache by following steps in: [How to clear confluence plugins cache](https://confluence.atlassian.com/confkb/how-to-clear-confluence-plugins-cache-297664846.htm) .

Shutdown Confluence,  
Delete bellow directories:  
\<confluence-home\>/bundled-plugins  
\<confluence-home\>/plugins-cache  
\<confluence-home\>/plugins-osgi-cache  
\<confluence-home\>/plugins-temp  
\<confluence-home\>/bundled-plugins_language  
Start Confluence

User startup script, the batch file you mentioned earlier.

Regards

Igor