Confluence can`t start
Asked by David_Canalejo:

When I try to log into my Confluence account, it gets me the following error: "Confluence had problems starting up".

![Captura.PNG](https://community.atlassian.com/t5/image/serverpage/image-id/95150iEB801B4335DD5ABA/image-dimensions/805x489?v=v2 "Captura.PNG")


Answers:
author: Nic Brough -Adaptavist-
body: What does the application log say the underlying error is? \<confluence home directory\>/log/atlassian-confluence.log is the file to look in

comments: author: David_Canalejo
body: The log file that you are asking for does not appear in confluence/log. The most similar name that we found is the file "confluence131119114958-stdout.2020-05-13.log".

This answer format does not allow me to attach the log file. Can you give another way to contact you so that I can attach the log file, please?

These are the first lines of the file (there are thousand of lines in the log file so that I decided not to paste it all):

<br />

2020-05-13 12:33:30 Commons Daemon procrun stdout initialized  
2020-05-13 12:33:35,308 INFO \[Catalina-utility-1\] \[com.atlassian.confluence.lifecycle\] contextInitialized Starting Confluence 7.1.0 \[build 8301 based on commit hash 8fa50d05398fea29bc3b44b63cde07d279fbe836\] - synchrony version 3.1.0-master-0f086db5  
2020-05-13 12:33:41,338 ERROR \[Catalina-utility-1\] \[atlassian.confluence.setup.ConfluenceConfigurationListener\] contextInitialized An error was encountered while bootstrapping Confluence (see below):  
Cannot connect to h2db  
java.lang.RuntimeException: Cannot connect to h2db  
at com.atlassian.h2.DatabaseCreatingServerLifecycle.start(DatabaseCreatingServerLifecycle.java:57)  
at com.atlassian.confluence.core.persistence.hibernate.ConfluenceHibernateConfig.getHibernateProperties(ConfluenceHibernateConfig.java:51)  
at com.atlassian.confluence.setup.DefaultBootstrapManager.getHibernateProperties(DefaultBootstrapManager.java:634)  
at com.atlassian.confluence.setup.DefaultBootstrapManager.performPersistenceUpgrade(DefaultBootstrapManager.java:318)  
at com.atlassian.config.bootstrap.DefaultAtlassianBootstrapManager.init(DefaultAtlassianBootstrapManager.java:81)  
at com.atlassian.confluence.setup.DefaultBootstrapManager.init(DefaultBootstrapManager.java:188)  
at com.atlassian.config.util.BootstrapUtils.init(BootstrapUtils.java:36)  
at com.atlassian.confluence.setup.ConfluenceConfigurationListener.initialiseBootstrapContext(ConfluenceConfigurationListener.java:133)  
at com.atlassian.confluence.setup.ConfluenceConfigurationListener.contextInitialized(ConfluenceConfigurationListener.java:64)  
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4682)  
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5143)


author: Nic Brough -Adaptavist-
body: \>Cannot connect to h2db

is what I'd worry about - my guess is that the underlying h2 database is unreachable, which happens when you're trying to reconfigure Confluence to use another database, or when the h2 database fails. If it has failed, it's likely to be corrupt and probably un-repairable.

I would look for the standard backup exports in \<confluence data\>/export, take the latest one, create a new installation of Confluence and import from the backup


author: David_Canalejo
body: Is there a way to check if the h2db has failed? Can you give us a guide of how to do it?

In the case that it has failed, we'd like to repair it. We have been searching for related issues in the Altassian Community and saw that sometimes it is possible to repair the h2db. Can you indicate us how to proceed, step by step?

Thank you in advance


author: Nic Brough -Adaptavist-
body: There may be other errors in the logs that say "unable to read" about the database, but the way to check proprely is to get into it with a command line. <http://www.h2database.com/html/tutorial.html> is a primer for that. You'll probably need that if it is fixable too.


author: David_Canalejo
body: Good morning,

We have reinstalled Confluence, but we are still getting the same error. In order to import from the backup, it is necessary that the application is ok.

Can you give us a step-by-step installation guide for Windows?

Thank you in advance and best regards.


author: David_Canalejo
body: Hi,

We have already reinstalled Confluence and now we get another error:

Can you tell us how to proceed and give us a guide?

Thank you in advance![Captura.PNG](https://community.atlassian.com/t5/image/serverpage/image-id/95239i0BBD857BE9D72B09/image-size/large?v=v2&px=999 "Captura.PNG")


Tags: confluence-server

server