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

2nd Jira instance throwing error Setup: JIRA can't create a lock for your jira.home directory why?

kapil kinikar Jul 20, 2018

I have installed 2nd Jira instance on same VM with different Atlassian folder name as 

C:\program files\ atlassian (Project name)\......   and different ports (other than default).

Problem: 

when I hit its login url , its throws error as '

Setup: JIRA can't create a lock for your jira.home directory

Your jira.home directory C:\Program Files\Atlassian Ashion\Application Data\JIRA can only be used by one running JIRA instance. This instance needs to create a lock to make sure another instance can't access the jira.home directory. Ensure JIRA has read and write access to the jira.home directory.
Review our documentation for more information on setting your JIRA home.

not able to run both instances at the same time. please suggest the workaround.

 

 

1 answer

0 votes
Nic Brough [Adaptavist] Community Leader Jul 20, 2018

You have told the second installation to use the same home directory as the first.

This will not work.

Stop the second installation, and give it a separate home directory.  To do this, go to <installation>/atlassian-jira/WEB-INF/classes and edit the file called jira-application.properties

You should find that holds the location of the home directory - change it to a new separate (empty) place and restart Jira.

Mugdha Jul 22, 2018

Changed 'jira-application.properties' file and set different path on but no luck

Previous: jira.home = C:\\Program Files\\Atlassian sobel\\Application Data\\JIRA

New:jira.home = C:\\Program Files\\Sobel Jira\\Atlassian sobel\\Application Data\\JIRA

is anything wrong?

Nic Brough [Adaptavist] Community Leader Jul 23, 2018

I suspect you've copied the original directory and hence inherited the lock files. 

Start clean with nothing in the new installation's home directory.

Mugdha Jul 23, 2018

The JRE_HOME environment variable is not defined correctly
This environment variable is needed to run this program
C:\Program Files\sobel Jira\Atlassian sobel\JIRA\bin>

 

didn't understand 'Start clean with nothing in the new installation's home directory.'

Thanks

Nic Brough [Adaptavist] Community Leader Jul 23, 2018

Ok, so now your start up scripts are damaged, or you're using the wrong thing to try to start it.

I am not sure how else to explain "start clean", but I will try.  You need to do a proper full installation into directories that do not have anything in them.

Suggest an answer

Log in or Sign up to answer
This widget could not be displayed.
This widget could not be displayed.
Community showcase
Posted in Jira Core

How to manage many similar workflows?

I have multiple projects that use variations of the same base workflow. The variations depend on the requirements of the project or issue type. The variations mostly come in the form of new statuses ...

665 views 7 0
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