Confluence doesn't startup!!
Asked by Samuel:

I am trying to upgrade confluence from 5.1.4 TO 5.4.3. I have confluence 5.1.4 running on Tomcat 6. Before, i actually do the upgrade, I wanted to test it on the my test-server. I installed confluence 5.4.3 version. I made a copy of existing database in mysql and confluence home_directory, and linked with the new version 5.4.3. I followed the steps from the attlassian guideline provided online but, i cant find the solutioin for the following error;

when i start the tomcat server, i am getting the following error;

Mar 06, 2014 8:36:02 PM org.apache.coyote.http11.Http11Protocol pause

INFO: Pausing Coyote HTTP/1.1 on http-8089

Mar 06, 2014 8:36:03 PM org.apache.catalina.core.StandardService stop

INFO: Stopping service Catalina

Mar 06, 2014 8:36:03 PM org.apache.coyote.http11.Http11Protocol destroy

INFO: Stopping Coyote HTTP/1.1 on http-8089

Mar 06, 2014 8:36:05 PM org.apache.catalina.startup.ClassLoaderFactory validateFile

WARNING: Problem with directory \[/var/lib/tomcat6/common/classes\], exists: \[false\], isDirectory: \[false\], canRead: \[false\]

Mar 06, 2014 8:36:05 PM org.apache.catalina.startup.ClassLoaderFactory validateFile

WARNING: Problem with directory \[/var/lib/tomcat6/common\], exists: \[false\], isDirectory: \[false\], canRead: \[false\]

Mar 06, 2014 8:36:05 PM org.apache.catalina.startup.ClassLoaderFactory validateFile

WARNING: Problem with directory \[/usr/share/tomcat6/server/classes\], exists: \[false\], isDirectory: \[false\], canRead: \[false\]

Mar 06, 2014 8:36:05 PM org.apache.catalina.startup.ClassLoaderFactory validateFile

WARNING: Problem with directory \[/usr/share/tomcat6/server\], exists: \[false\], isDirectory: \[false\], canRead: \[false\]

Mar 06, 2014 8:36:05 PM org.apache.catalina.startup.ClassLoaderFactory validateFile

WARNING: Problem with directory \[/var/lib/tomcat6/server/classes\], exists: \[false\], isDirectory: \[false\], canRead: \[false\]

Mar 06, 2014 8:36:05 PM org.apache.catalina.startup.ClassLoaderFactory validateFile

WARNING: Problem with directory \[/var/lib/tomcat6/server\], exists: \[false\], isDirectory: \[false\], canRead: \[false\]

Mar 06, 2014 8:36:05 PM org.apache.catalina.startup.ClassLoaderFactory validateFile

WARNING: Problem with directory \[/usr/share/tomcat6/shared/classes\], exists: \[false\], isDirectory: \[false\], canRead: \[false\]

Mar 06, 2014 8:36:05 PM org.apache.catalina.startup.ClassLoaderFactory validateFile

WARNING: Problem with directory \[/usr/share/tomcat6/shared\], exists: \[false\], isDirectory: \[false\], canRead: \[false\]

Mar 06, 2014 8:36:05 PM org.apache.catalina.startup.ClassLoaderFactory validateFile

WARNING: Problem with directory \[/var/lib/tomcat6/shared/classes\], exists: \[false\], isDirectory: \[false\], canRead: \[false\]

Mar 06, 2014 8:36:05 PM org.apache.catalina.startup.ClassLoaderFactory validateFile

WARNING: Problem with directory \[/var/lib/tomcat6/shared\], exists: \[false\], isDirectory: \[false\], canRead: \[false\]

Mar 06, 2014 8:36:06 PM org.apache.coyote.http11.Http11Protocol init

INFO: Initializing Coyote HTTP/1.1 on http-8089

Mar 06, 2014 8:36:06 PM org.apache.catalina.startup.Catalina load

INFO: Initialization processed in 624 ms

Mar 06, 2014 8:36:06 PM org.apache.catalina.core.StandardService start

INFO: Starting service Catalina

Mar 06, 2014 8:36:06 PM org.apache.catalina.core.StandardEngine start

INFO: Starting Servlet Engine: Apache Tomcat/6.0.35

Mar 06, 2014 8:36:06 PM org.apache.catalina.startup.HostConfig deployDescriptor

INFO: Deploying configuration descriptor confluence-test.xml

2014-03-06 20:36:08,075 INFO \[main\] \[com.atlassian.confluence.lifecycle\] contextInitialized Starting Confluence 5.4.3 \[build 4732 based on commit hash f543bd9a3bbc12daed85f6f5e5cba84282599932\]

Mar 06, 2014 8:36:12 PM org.apache.catalina.core.StandardContext start

SEVERE: Error listenerStart

Mar 06, 2014 8:36:12 PM org.apache.catalina.core.StandardContext start

SEVERE: Context \[/confluence-test\] startup failed due to previous errors

log4j:ERROR LogMananger.repositorySelector was null likely due to error in class reloading, using NOPLoggerRepository.

Mar 06, 2014 8:36:12 PM org.apache.catalina.startup.HostConfig deployDescriptor

INFO: Deploying configuration descriptor probe5.xml

Mar 06, 2014 8:36:17 PM org.apache.coyote.http11.Http11Protocol start

INFO: Starting Coyote HTTP/1.1 on http-8089

Mar 06, 2014 8:36:17 PM org.apache.jk.common.ChannelSocket init

INFO: JK: ajp13 listening on /0.0.0.0:8019

Mar 06, 2014 8:36:17 PM org.apache.jk.server.JkMain start

INFO: Jk running ID=0 time=0/32 config=null

Mar 06, 2014 8:36:17 PM org.apache.catalina.startup.Catalina start

INFO: Server startup in 10800 ms


Answers:
author: salehparsa
body: Hi Samar,

Take a look at this [KB](https://confluence.atlassian.com/pages/viewpage.action?pageId=392888396) also the [resolution](https://confluence.atlassian.com/display/CONFKB/How+to+Change+All+Columns%27+Collation+to+utf8_bin+in+MySQL). Please **take a backup from your database** before you procees with the resolutions.

Cheers,

Saleh


author: Nic Brough -Adaptavist-
body: Those errors are often thrown if you've installed a newer Tomcat over an old one, instead of installing it "clean".

Did you start with a completely empty installation directory for the new system?


author: Samuel
body: Thanks Saleh!! yes, it was the issue with `collation_name = ``'utf8_bin`

I already fixed it though. Thanks again for your help

comments: author: salehparsa
body: Hi Samar,

Glad to hear that. You are most welcome

Regards,

Saleh


author: Samuel
body: Yes, i already verified the permission for the directory. I also cleared the pugin cash but still getting the following error;

2014-03-10 10:19:51,743 INFO \[Thread-48\] \[atlassian.plugin.manager.DefaultPluginManager\] shutdown Shutting down the plugin system

2014-03-10 10:19:51,805 INFO \[Thread-48\] \[com.atlassian.confluence.lifecycle\] destroy Shutting down long running task service

2014-03-10 10:19:54,222 INFO \[Thread-48\] \[com.atlassian.confluence.lifecycle\] contextDestroyed Stopping Confluence

2014-03-10 10:28:47,085 INFO \[main\] \[com.atlassian.confluence.lifecycle\] contextInitialized Starting Confluence 5.4.3 \[build 4732 based on commit hash f543bd9a3bbc12daed85f6f5e5cba84282599932\]

2014-03-10 10:28:50,225 INFO \[main\] \[springframework.web.context.ContextLoader\] initWebApplicationContext Root WebApplicationContext: initialization started

2014-03-10 10:28:54,087 INFO \[main\] \[com.atlassian.confluence.lifecycle\] \<init\> Loading EhCache cache manager

2014-03-10 10:29:10,291 WARN \[main\] \[org.springframework.beans.TypeConverterDelegate\] findDefaultEditor PropertyEditor \[com.sun.beans.editors.EnumEditor\] found through deprecated global PropertyEditorManager

2014-03-10 10:29:21,206 INFO \[main\] \[springframework.web.context.ContextLoader\] initWebApplicationContext Root WebApplicationContext: initialization completed in 30980 ms

2014-03-10 10:29:21,711 ERROR \[main\] \[atlassian.confluence.setup.BootstrapApplicationStartupListener\] checkConfigurationOnStartup Detected tables with non-default collation. See <https://confluence.atlassian>.

2014-03-10 10:29:21,949 WARN \[main\] \[atlassian.confluence.plugin.PluginFrameworkContextListener\] contextInitialized Not starting full plugin system due to upgrade or licensing errors

2014-03-10 10:29:23,675 INFO \[main\] \[com.atlassian.confluence.lifecycle\] init Confluence is ready to serve


author: salehparsa
body: Hi Samar,

Don't worry we are here to help.

Check the permission of the directory and grant writable permission to your directory. I would also recommend you to [clear the plugin cash](https://confluence.atlassian.com/display/CONFKB/How+to+Clear+Confluence+Plugins+Cache).

Cheers,

Saleh


author: Samuel
body: Can someone plz help me out? I am now getting the following error now. I am fighting with this issue all day

2014-03-07 18:39:13,577 INFO \[Thread-43\] \[atlassian.plugin.manager.DefaultPluginManager\] shutdown Shutting down the plugin system

2014-03-07 18:39:13,619 INFO \[Thread-43\] \[com.atlassian.confluence.lifecycle\] destroy Shutting down long running task service

2014-03-07 18:39:15,496 INFO \[Thread-43\] \[com.atlassian.confluence.lifecycle\] contextDestroyed Stopping Confluence

2014-03-07 18:39:21,440 INFO \[main\] \[com.atlassian.confluence.lifecycle\] contextInitialized Starting Confluence 5.4.3 \[build 4732 based on commit hash f543bd9a3bbc12daed85f6f5e5cba84282599932\]

2014-03-07 18:39:23,996 INFO \[main\] \[springframework.web.context.ContextLoader\] initWebApplicationContext Root WebApplicationContext: initialization started

2014-03-07 18:39:27,682 INFO \[main\] \[com.atlassian.confluence.lifecycle\] \<init\> Loading EhCache cache manager

2014-03-07 18:39:39,855 WARN \[main\] \[org.springframework.beans.TypeConverterDelegate\] findDefaultEditor PropertyEditor \[com.sun.beans.editors.EnumEditor\] found through deprecated global PropertyEditorManager

2014-03-07 18:39:48,213 INFO \[main\] \[springframework.web.context.ContextLoader\] initWebApplicationContext Root WebApplicationContext: initialization completed in 24217 ms

2014-03-07 18:39:48,603 ERROR \[main\] \[atlassian.confluence.setup.BootstrapApplicationStartupListener\] checkConfigurationOnStartup Detected tables with non-default collation. See <https://confluence.atlassian>.

2014-03-07 18:39:48,842 WARN \[main\] \[atlassian.confluence.plugin.PluginFrameworkContextListener\] contextInitialized Not starting full plugin system due to upgrade or licensing errors

2014-03-07 18:39:50,621 INFO \[main\] \[com.atlassian.confluence.lifecycle\] init Confluence is ready to serve


author: Samuel
body: Thanks Saleh,

Please find below the atlassian confluence.log, I tried to attached it but its not working. So i paste it here. I also checked my database information and its pointing to right one.

Request Information

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

URL: http://\*\*\*\*\*\*\*/500page.jsp

Scheme: http

Server: \*\*\*\*\*\*

Port: 8089

URI: /confluence-test/500page.jsp

Context Path: /confluence-test

Servlet Path: /500page.jsp

Path Info: null

Query String: null

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

Attributes

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

javax.servlet.forward.request_uri: /confluence-test/

javax.servlet.forward.context_path: /confluence-test

javax.servlet.forward.servlet_path: /index.action

javax.servlet.forward.path_info: /500page.jsp

os_securityfilter_already_filtered: true

atlassian.core.seraph.original.url: /500page.jsp

javax.servlet.error.status_code: 500

javax.servlet.error.servlet_name: action

loginfilter.already.filtered: true

javax.servlet.error.message:

com.opensymphony.sitemesh.APPLIED_ONCE: true

com.atlassian.core.filters.HeaderSanitisingFilter_already_filtered: true

javax.servlet.error.exception: com.atlassian.util.concurrent.LazyReference$InitializationException: java.lang.NullPointerException

javax.servlet.error.request_uri: /confluence-test/

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

Parameters

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

caused by: com.atlassian.util.concurrent.LazyReference$InitializationException: java.lang.NullPointerException

at com.atlassian.util.concurrent.LazyReference.getInterruptibly(LazyReference.java:149)

caused by: java.lang.NullPointerException

at com.atlassian.spring.container.ContainerManager.getComponent(ContainerManager.java:33)  
2014-03-07 10:30:52,903 ERROR \[http-8089-7\] \[ContainerBase.\[Catalina\].\[localhost\].\[/confluence-test\]\] log Unhandled exception occurred whilst decorating page  
java.lang.NullPointerException  
at com.atlassian.spring.container.ContainerManager.getComponent(ContainerManager.java:33)  
at com.atlassian.confluence.setup.sitemesh.PluginDecoratorMapper.getPluginAccessor(PluginDecoratorMapper.java:74)  
at com.atlassian.confluence.setup.sitemesh.PluginDecoratorMapper.getDecorator(PluginDecoratorMapper.java:23)  
at com.opensymphony.module.sitemesh.mapper.AbstractDecoratorMapper.getDecorator(AbstractDecoratorMapper.java:45)  
at com.opensymphony.module.sitemesh.mapper.InlineDecoratorMapper.getDecorator(InlineDecoratorMapper.java:41)  
at com.atlassian.confluence.util.profiling.ConfluenceDecoratorSelector.selectDecorator(ConfluenceDecoratorSelector.java:58)  
at com.opensymphony.sitemesh.webapp.SiteMeshFilter.doFilter(SiteMeshFilter.java:83)  
at com.atlassian.confluence.util.profiling.ProfilingPageFilter.doFilter(ProfilingPageFilter.java:44)  
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)  
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)  
at com.atlassian.plugin.servlet.filter.ServletFilterModuleContainerFilter.doFilter(ServletFilterModuleContainerFilter.java:71)  
at com.atlassian.plugin.servlet.filter.ServletFilterModuleContainerFilter.doFilter(ServletFilterModuleContainerFilter.java:63)  
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)  
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)  
at com.atlassian.seraph.filter.SecurityFilter.doFilter(SecurityFilter.java:211)  
at com.atlassian.confluence.web.filter.ConfluenceSecurityFilter.doFilter(ConfluenceSecurityFilter.java:27)  
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)  
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)  
at com.atlassian.seraph.filter.BaseLoginFilter.doFilter(BaseLoginFilter.java:150)  
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)  
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)  
at com.atlassian.plugin.servlet.filter.ServletFilterModuleContainerFilter.doFilter(ServletFilterModuleContainerFilter.java:71)  
at com.atlassian.plugin.servlet.filter.ServletFilterModuleContainerFilter.doFilter(ServletFilterModuleContainerFilter.java:63)  
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)  
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)  
at com.atlassian.plugin.servlet.filter.ServletFilterModuleContainerFilter.doFilter(ServletFilterModuleContainerFilter.java:71)  
at com.atlassian.plugin.servlet.filter.ServletFilterModuleContainerFilter.doFilter(ServletFilterModuleContainerFilter.java:63)  
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)  
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)  
at com.atlassian.confluence.web.filter.DebugFilter.doFilter(DebugFilter.java:50)  
at com.atlassian.core.filters.AbstractHttpFilter.doFilter(AbstractHttpFilter.java:31)  
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)  
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)  
at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:646)  
at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:438)  
at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:374)  
at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:302)  
at org.apache.catalina.core.StandardHostValve.custom(StandardHostValve.java:421)  
at org.apache.catalina.core.StandardHostValve.status(StandardHostValve.java:342)  
at org.apache.catalina.core.StandardHostValve.throwable(StandardHostValve.java:286)  
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:141)  
at com.googlecode.psiprobe.Tomcat60AgentValve.invoke(Tomcat60AgentValve.java:30)  
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)  
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)


author: salehparsa
body: Hi Samar,

Catalina.log doesn't show reasons of problem. Please attach atlassian-confluence.log located on \<confluence-home\>\\logs or look for error there.

I would also recommend you to check database information on \<confluence-home\>\\confluence.cfg . Ensure that all your database elements are correctly informed.

Cheers,

Saleh


Tags: catalina

tomcat

upgrade