It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Database: JIRA couldn't connect to your database

Screenshot from 2019-09-23 14-54-32.png

2019-09-23 14:18:39,170 JIRA-Bootstrap INFO [c.a.j.config.database.SystemDatabaseConfigurationLoader] Reading database configuration from /home/apps/atlassian/application-data/jira/dbconfig.xml
2019-09-23 14:18:39,454 JIRA-Bootstrap ERROR [c.a.config.bootstrap.DefaultAtlassianBootstrapManager] Could not successfully test your database:
org.h2.jdbc.JdbcSQLException: IO Exception: "/home/apps/atlassian/application-data/jira/database/" [90028-185]
at org.h2.message.DbException.getJdbcSQLException(
at org.h2.message.DbException.get(
at org.h2.mvstore.db.MVTableEngine.init(
at org.h2.engine.Database.getPageStore(
at org.h2.engine.Database.openDatabase(
at org.h2.engine.Database.<init>(
at org.h2.engine.Engine.openSession(
at org.h2.engine.Engine.openSession(
at org.h2.engine.Engine.createSessionAndValidate(
at org.h2.engine.Engine.createSession(
at org.h2.engine.Engine.createSession(
at org.h2.engine.SessionRemote.connectEmbeddedOrServer(
at org.h2.jdbc.JdbcConnection.<init>(
at org.h2.jdbc.JdbcConnection.<init>(
at org.h2.Driver.connect(
at java.sql.DriverManager.getConnection(
at java.sql.DriverManager.getConnection(
at com.atlassian.config.bootstrap.DefaultAtlassianBootstrapManager.getTestDatabaseConnection(
at com.atlassian.jira.config.database.JdbcDatasource.getConnection(
at com.atlassian.jira.config.database.DatabaseConfig.testConnection(
at java.util.Iterator.forEachRemaining(
at java.util.Spliterators$IteratorSpliterator.forEachRemaining(
at com.atlassian.jira.startup.BootstrapContainerLauncher.start(
at com.atlassian.jira.startup.DefaultJiraLauncher.preDbLaunch(
at com.atlassian.jira.startup.DefaultJiraLauncher.lambda$start$0(
at com.atlassian.jira.startup.DefaultJiraLauncher.start(
at com.atlassian.jira.startup.LauncherContextListener.initSlowStuff(
Caused by: java.lang.IllegalStateException: Reading from cache:nio:/home/apps/atlassian/application-data/jira/database/ failed; file length 132698112 read length 1024 at 138630033 [1.4.185/1]
at org.h2.mvstore.DataUtils.newIllegalStateException(
at org.h2.mvstore.DataUtils.readFully(
at org.h2.mvstore.FileStore.readFully(
at org.h2.mvstore.MVStore.readPage(
at org.h2.mvstore.Page.getChildPage(
at org.h2.mvstore.Cursor.fetchNext(
at org.h2.mvstore.MVStore.readFileHeader(
at org.h2.mvstore.MVStore.<init>(
at org.h2.mvstore.MVStore$
at org.h2.mvstore.db.MVTableEngine$Store.<init>(
at org.h2.mvstore.db.MVTableEngine.init(
... 44 more
Caused by:
at org.h2.mvstore.DataUtils.readFully(
... 56 more
2019-09-23 14:18:39,479 JIRA-Bootstrap ERROR [] JIRA couldn't connect to your database
2019-09-23 14:18:39,479 JIRA-Bootstrap ERROR [] JIRA failed to establish a connection to your database.
This could be because:
- Your database isn't running
- The configuration of your dbconfig.xml file is incorrect (user, password, or database URL etc.)
- There is a network issue between JIRA and your database (e.g. firewall, database doesn't allow remote access etc.)

There are several other solutions you can try, review our documentation and see what works for you.

2019-09-23 14:18:39,482 JIRA-Bootstrap INFO [c.a.jira.startup.JiraStartupLogger] Running JIRA startup checks.
2019-09-23 14:18:39,482 JIRA-Bootstrap FATAL [c.a.jira.startup.JiraStartupLogger] Startup check failed. JIRA will be locked.
2019-09-23 14:18:39,533 JIRA-Bootstrap INFO [c.a.jira.startup.LauncherContextListener] Memory Usage:
Heap memory : Used: 306 MiB. Committed: 908 MiB. Max: 2020 MiB
Non-heap memory : Used: 45 MiB. Committed: 64 MiB. Max: 1536 MiB
TOTAL : Used: 351 MiB. Committed: 972 MiB. Max: 3556 MiB


2 answers

Hi @Naresh Mishra 


First You Will Up the database after  You Will Do this Steps


First You Will Shutdown Jira And Go to Application Folder And Clear Cache And Delete Lock File Ann Delete  PLugin .osgi-plugins and .bundled-plugins after That Open Data base  Its Running or Not U can check When Its Running U can Restart The jira U Can do Success Fully Doing This that time jira is not Showing the Error That is the .Error  


Thanks ,


0 votes

This message in the log is the key:

>IO Exception: "/home/apps/atlassian/application-data/jira/database/"

This means either that the database file (h2 is a file based database loaded into memory at run time) is

  • locked by another process
  • has the wrong ownership and/or permissions
  • damaged, and too badly damaged to be read

Use "lsof" to check the first, "ls" to check the second (check all the files in that directory, and the directory itself), and check that you have plenty of disk space free (with "df").

  If it is the last option, then there is very little chance that you will be able to fix it.  H2 is not suitable for long term operation of Jira, only for demos and a bit of testing, and only for smaller systems.  When it fails, it often fails really badly, and the only "fix" is "install a new Jira and import an export from a backup (see the "export" directory in the jira home directory)

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted in Jira

Demo Den Ep. 7: New Jira Cloud Reports

Learn how to use two new reports for next-gen projects in Jira Cloud:  Cumulative flow diagram and Sprint burndown chart. Ivan Teong, Product Manager, Jira Software, demos the Cumulative ...

375 views 1 3
Join discussion

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you