Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Jira access problem every day because of lock file

Berf Akın
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
March 22, 2019

Hi Atlassian,

 

I am receiving the error below every day. It's happening when the "atlas-run" command runs several hours.

 image.png

I checked the logs it says "the jira.home directory is validated and locked for exclusive use by this instance"  see below :

 

2019-03-22 16:05:02,998 localhost-startStop-1 INFO [c.a.j.config.database.SystemDatabaseConfigurationLoader] Reading database configuration from C:\wkspaces\TOOLS_INT_APP\AutoScrum\Src\reports\target\jira\home\dbconfig.xml
2019-03-22 16:05:03,418 localhost-startStop-1 INFO [c.a.jira.startup.JiraHomeStartupCheck] The jira.home directory 'C:\wkspaces\TOOLS_INT_APP\AutoScrum\Src\reports\target\jira\home' is validated and locked for exclusive use by this instance.
2019-03-22 16:05:05,981 localhost-startStop-1 ERROR [c.a.config.bootstrap.DefaultAtlassianBootstrapManager] Couldn't open a connection on Datasource (java:comp/env/jdbc/JiraDS): java.sql.SQLException: Cannot create PoolableConnectionFactory (General error: "java.lang.NullPointerException" [50000-185])
2019-03-22 16:05:06,069 localhost-startStop-1 ERROR [c.a.jira.health.HealthChecks] JIRA couldn't connect to your database
2019-03-22 16:05:06,070 localhost-startStop-1 ERROR [c.a.jira.health.HealthChecks] 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-03-22 16:05:06,070 localhost-startStop-1 INFO [c.a.jira.startup.ChecklistLauncher] Setting system property 'atlassian.webresource.disable.minification' to 'true' for development mode.
2019-03-22 16:05:06,072 localhost-startStop-1 INFO [c.a.jira.startup.ChecklistLauncher] Setting system property 'atlassian.mail.senddisabled' to 'true' for development mode.
2019-03-22 16:05:06,072 localhost-startStop-1 INFO [c.a.jira.startup.ChecklistLauncher] Setting system property 'atlassian.mail.fetchdisabled' to 'true' for development mode.
2019-03-22 16:05:06,072 localhost-startStop-1 INFO [c.a.jira.startup.ChecklistLauncher] Setting system property 'com.atlassian.gadgets.dashboard.ignoreCache' to 'true' for development mode.
2019-03-22 16:05:06,073 localhost-startStop-1 INFO [c.a.jira.startup.ChecklistLauncher] Setting system property 'atlassian.disable.caches' to 'true' for development mode.
2019-03-22 16:05:06,073 localhost-startStop-1 INFO [c.a.jira.startup.ChecklistLauncher] Setting system property 'jira.websudo.is.disabled' to 'true' for development mode.
2019-03-22 16:05:06,075 localhost-startStop-1 INFO [c.a.jira.startup.ChecklistLauncher] Setting system property 'jira.i18n.reloadbundles' to 'true' for development mode.
2019-03-22 16:05:06,076 localhost-startStop-1 INFO [c.a.jira.startup.JiraStartupLogger] Running JIRA startup checks.
2019-03-22 16:05:06,078 localhost-startStop-1 FATAL [c.a.jira.startup.JiraStartupLogger] Startup check failed. JIRA will be locked.
2019-03-22 16:05:06,346 localhost-startStop-1 INFO [c.a.jira.startup.LauncherContextListener] Memory Usage:
---------------------------------------------------------------------------------
Heap memory : Used: 93 MiB. Committed: 380 MiB. Max: 4077 MiB
Non-heap memory : Used: 44 MiB. Committed: 45 MiB. Max: 1264 MiB
---------------------------------------------------------------------------------
TOTAL : Used: 137 MiB. Committed: 425 MiB. Max: 5341 MiB
---------------------------------------------------------------------------------

 

When I check the jira/home folder I can see the .jira-home.lock file. I am deleting it and running atlas-run command but still same error. 

I am copying already backed-up target folder every time when this error happens and my all work is gone!

I am bored to get this error every day. Could you please help me on this issue ?

 

Regards,

B

 

 

 

1 answer

0 votes
Paresh Nawale March 31, 2020

Did you find a solution to this problem?

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events