How do I check startup jobs without being able to start confluence?
Asked by Raymond Moy:

I recently discovered my confluence instance displaying this error when trying to go to the page.

I'm not quite sure what to do now to get it back up. Any assistance is appreciated!

Unable to start up Confluence. Fatal error during startup sequence: confluence.lifecycle.core:mananagedjobs (Start and stop the Managed Scheduled Jobs) - org.springframework.transaction.UnexpectedRollbackException: Transaction rolled back because it has been marked as rollback-only

Log error says

28-Aug-2017 09:57:32.496 SEVERE \[Thread-68\] org.apache.catalina.startup.Catalina.stopServer Catalina.stop:  
org.apache.catalina.LifecycleException: An invalid Lifecycle transition was attempted (\[before_stop\]) for component \[StandardServer\[8000\]\] in state \[DESTROYED\]  
at org.apache.catalina.util.LifecycleBase.invalidTransition(LifecycleBase.java:395)  
at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:208)  
at org.apache.catalina.startup.Catalina.stopServer(Catalina.java:440)  
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)  
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)  
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)  
at java.lang.reflect.Method.invoke(Method.java:498)  
at org.apache.catalina.startup.Bootstrap.stopServer(Bootstrap.java:400)  
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:487)  


Answers:
author: Nic Brough -Adaptavist-
body: There are many reasons Confluence throws that error, you will need to read the log to see what caused it.

comments: author: Raymond Moy
body: This is what I found in the logs. The other warnings don't seem to be related.

28-Aug-2017 09:57:32.496 SEVERE \[Thread-68\] org.apache.catalina.startup.Catalina.stopServer Catalina.stop:  
org.apache.catalina.LifecycleException: An invalid Lifecycle transition was attempted (\[before_stop\]) for component \[StandardServer\[8000\]\] in state \[DESTROYED\]  
at org.apache.catalina.util.LifecycleBase.invalidTransition(LifecycleBase.java:395)  
at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:208)  
at org.apache.catalina.startup.Catalina.stopServer(Catalina.java:440)  
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)  
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)  
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)  
at java.lang.reflect.Method.invoke(Method.java:498)  
at org.apache.catalina.startup.Bootstrap.stopServer(Bootstrap.java:400)  
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:487)


author: Nic Brough -Adaptavist-
body: That's another symptom, not the root cause we're looking for. But I have seen that before when I had a Confluence where some of the files were owned by the wrong user.


author: Raymond Moy
body: What should I be looking for for the root cause? I'm not exactly sure what to look for with this.

When you say some files were owned by the wrong user, are you talking about Confluence data files or the Windows files and directories. If it's the Windows files, I'm not sure why the permissions would change there and suddenly cause this to stop working.


author: Nic Brough -Adaptavist-
body: Yes, the installation files and directories - check that they're all owned by and fully read/writable by the user running the confluence service.

The logs should contain more than just the two errors you have posted, the root cause is likely to be in there.


Tags: startup