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

Dear,

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 vote

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
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published yesterday in Jira

5 ways you can make the most of Jira Software and Bitbucket Cloud

As part of the Bitbucket product team I'm always interested in better understanding what kind of impact the use of our tools have on the way you work. In a recent study we conducted of software devel...

57 views 0 5
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