Hello Support,
We are trying to do a migration from the embedded database in Confluence to a MySQL server in the network that is hosting JIRA as well. The process worked out fine until the setup process was trying to setup the necessary database in the MySQL. During the process, Confluence crashed and make it unreachable. From the traceback of the logs, it says "Container is not setup". Can someone take a look into the traceback and let me know what went wrong in the first place please? For your reference, I have attached the logs below:
java.lang.RuntimeException: javax.servlet.ServletException: org.apache.velocity.exception.MethodInvocationException: Invocation of method 'getResources' in class com.atlassian.confluence.plugin.webresource.DefaultConfluenceWebResourceManager threw exception com.atlassian.util.concurrent.LazyReference$InitializationException: java.lang.IllegalStateException: Container is not setup at /decorators/setup.vmd[line 9, column 25]
at com.opensymphony.sitemesh.webapp.decorator.BaseWebAppDecorator.render(BaseWebAppDecorator.java:37)
caused by: javax.servlet.ServletException: org.apache.velocity.exception.MethodInvocationException: Invocation of method 'getResources' in class com.atlassian.confluence.plugin.webresource.DefaultConfluenceWebResourceManager threw exception com.atlassian.util.concurrent.LazyReference$InitializationException: java.lang.IllegalStateException: Container is not setup at /decorators/setup.vmd[line 9, column 25]
at com.atlassian.confluence.util.profiling.ConfluenceSitemeshDecorator$ErrorSendingErrorHandlingStrategy.handleException(ConfluenceSitemeshDecorator.java:244)
caused by: org.apache.velocity.exception.MethodInvocationException: Invocation of method 'getResources' in class com.atlassian.confluence.plugin.webresource.DefaultConfluenceWebResourceManager threw exception com.atlassian.util.concurrent.LazyReference$InitializationException: java.lang.IllegalStateException: Container is not setup at /decorators/setup.vmd[line 9, column 25]
at org.apache.velocity.runtime.parser.node.ASTMethod.handleInvocationException(ASTMethod.java:337)
caused by: com.atlassian.util.concurrent.LazyReference$InitializationException: java.lang.IllegalStateException: Container is not setup
at com.atlassian.util.concurrent.LazyReference.getInterruptibly(LazyReference.java:149)
caused by: java.lang.IllegalStateException: Container is not setup
at com.atlassian.spring.container.LazyComponentReference.create(LazyComponentReference.java:41)
I have the complete log - including the stack trace. Please let me know if you need it.
Thank you,
Chris
Chris,
Can you let me know the exact steps you took to migrate the database? You'll want to be sure you're following exactly the Migrating to Another Database procedure and that the MySQL database is setup exactly per Database Setup for MySQL. This can commonly cause those errors if there is any difference in setup.
Let us know also your Confluence version and MySQL version.
Regards,
Shannon
Hello Shannon,
The Confluence I am running on is v6.10.1 and the MySQL version is 5.6.40.
Here is the steps I took to when migrating the database:
Expected Result: The setup script should setup the tables in the database I designated and completed successfully.
Actual Result: It crashed with the error message I submitted.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank you, Frank.
Can you confirm which MySQL driver you installed?
Please also review the steps at Spring Application Context has not been set.
Regards
Shannon
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Shannon,
The MySQL driver version (If i get it correctly) is 8.0.11-1.el7.
I believe I have do most of the things listed in the "Spring Application" document you provided, but let me go through once again.
Also I have the track dump as well. If you need that for troubleshooting purpose, please let me know.
Thank you,
Chris
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Chris,
I'm so sorry for the delay, I must have missed the notification. I assume you may have resolved it at this point, but if not, please have a look at the following.
Confluence is currently tested with the 5.1.42 driver.
The latest driver (8.x) is not currently supported.
Please download the driver from here.
Let me know if that helps! If not, I can create a support ticket and you can submit the dump there.
Regards,
Shannon
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.