Jira cannot be accessed suddenly "Unable to esablish a connection with the database"


I am using JIRA very well, suddenly I cannot access and it throws error like:

HTTP Status 500 - com.opensymphony.module.propertyset.PropertyImplementationException: Unable to esablish a connection with the database. (File input/output error: java.io.IOException: org.hsqldb.HsqlException: Unexpected end of command)


I hope you guys can help me to get out of this.

Thanks and regards,


1 answer

0 votes

The error means that there is a problem connecting to the database.  This is usually a networking error or something has taken the database offline.

However, in this case, you appear to be using HSQL as the database.  If this is the case, then there are other possible reasons - another program opening one of the database files in write mode can do it, but the most likely cause is the database has become corrupted.  I'd use lsof to check the first possibility, but if it's the failure, you should just rebuild it from production data, or start clean, as it is only a dev/test system.

Hello Nic, Thanks for your answer. Let me check with first possibility that whether there is another program using this database. Just check. Otherwise, can you tell me in details what I need to do to rebuild it from production data? Thanks Linh

Hello Nic, Or can you tell me how to take database online again? Thanks, Linh

Export all the data from production, get a clean JIRA running and import the data - that's the most simple route, but it's only suitable for smallish systems and there are other options. Depends on the size and setup you've got. To get the database online, all you can really do is restart JIRA. The HSQL stuff is part of your installation. If it fails again, it means it's locked or corrupted.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Nov 27, 2018 in Portfolio for Jira

Introducing a new planning experience in Portfolio for Jira (Server/DC)

In the past, Portfolio for Jira required a high degree of detail–foresight that was unrealistic for many businesses to   have–in   order to produce a reliable long-term roadmap. We're tur...

2,773 views 18 21
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you