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 Join to answer
Community showcase
Sarah Schuster
Posted Jan 29, 2018 in Jira

What are common themes you've seen across successful & failed Jira Software implementations?

Hey everyone! My name is Sarah Schuster, and I'm a Customer Success Manager in Atlassian specializing in Jira Software Cloud. Over the next few weeks I will be posting discussion topics (8 total) to ...

2,898 views 12 18
Join discussion

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
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot