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
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Julia Dillon
Posted Tuesday in Jira

Tell us how your team runs on Jira!

Hey Atlassian Community! Today we are launching a bunch of customer stories about the amazing work teams, like Dropbox and Twilio, are doing with Jira. You can check out the stories here. The thi...

533 views 1 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