Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

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

Lock file on server start

We are experiencing this error when the server start.

Also tried to remove the lock files and checked the lock on the database as described on https://confluence.atlassian.com/bitbucketserverkb/bitbucket-server-does-not-start-could-not-acquire-change-log-lock-779171307.html which was is already set properly.

 

Any suggestions on how to fix this?

 

{code}

2021-02-25 08:15:01,529 INFO [main] c.a.b.i.b.BitbucketServerApplication Starting BitbucketServerApplication on bitbucket with PID 110 (/opt/atlassian/bitbucket/app/WEB-INF/classes started by bitbucket in /var/atlassian/application-data/bitbucket)
2021-02-25 08:15:01,531 INFO [main] c.a.b.i.b.BitbucketServerApplication No active profile set, falling back to default profiles: default
2021-02-25 08:15:02,690 INFO [main] c.a.b.i.boot.log.BuildInfoLogger Starting Bitbucket 7.6.0 (5ab4b55 built on Fri Sep 11 05:11:57 GMT 2020)
2021-02-25 08:15:02,691 INFO [main] c.a.b.i.boot.log.BuildInfoLogger JVM: AdoptOpenJDK OpenJDK 64-Bit Server VM 1.8.0_262-b10
2021-02-25 08:15:07,761 INFO [main] c.a.b.i.b.BitbucketServerApplication Started BitbucketServerApplication in 9.118 seconds (JVM running for 13.466)
2021-02-25 08:15:13,501 ERROR [spring-startup] c.a.s.internal.home.HomeLockAcquirer Home directory /var/atlassian/application-data/bitbucket has already been locked by another instance
2021-02-25 08:15:13,512 WARN [spring-startup] o.s.w.c.s.XmlWebApplicationContext Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'homeLockAcquirer' defined in class path resource [critical-context.xml]: Invocation of init method failed; nested exception is com.atlassian.stash.internal.home.HomeLockDeniedException: Home directory '/var/atlassian/application-data/bitbucket' is already locked by another running instance of Bitbucket.

Please stop the other instance of Bitbucket and restart this instance.

If you are absolutely certain that no other instance of Bitbucket is running, please remove the lock file '/var/atlassian/application-data/bitbucket/.lock' and restart this instance.
2021-02-25 08:15:13,519 ERROR [spring-startup] c.a.j.s.w.s.JohnsonDispatcherServlet SpringMVC dispatcher [springMvc] could not be started
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'homeLockAcquirer' defined in class path resource [critical-context.xml]: Invocation of init method failed; nested exception is com.atlassian.stash.internal.home.HomeLockDeniedException: Home directory '/var/atlassian/application-data/bitbucket' is already locked by another running instance of Bitbucket.

Please stop the other instance of Bitbucket and restart this instance.

If you are absolutely certain that no other instance of Bitbucket is running, please remove the lock file '/var/atlassian/application-data/bitbucket/.lock' and restart this instance.
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1796)
at org.springframework.context.support.PostProcessorRegistrationDelegate.invokeBeanFactoryPostProcessors(PostProcessorRegistrationDelegate.java:155)
at org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:706)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:532)
at javax.servlet.GenericServlet.init(GenericServlet.java:158)
at java.lang.Thread.run(Thread.java:748)
... 22 frames trimmed
Caused by: com.atlassian.stash.internal.home.HomeLockDeniedException: Home directory '/var/atlassian/application-data/bitbucket' is already locked by another running instance of Bitbucket.

Please stop the other instance of Bitbucket and restart this instance.

If you are absolutely certain that no other instance of Bitbucket is running, please remove the lock file '/var/atlassian/application-data/bitbucket/.lock' and restart this instance.
at com.atlassian.stash.internal.home.HomeLockAcquirer.onLockDenied(HomeLockAcquirer.java:148)
at com.atlassian.stash.internal.home.HomeLockAcquirer.lock(HomeLockAcquirer.java:63)
... 6 common frames omitted

{code}

0 answers

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
SERVER
TAGS
Community showcase
Published in Bitbucket

New improvements to user management in Bitbucket Cloud 👥

Hey Community! We’re willing to wager that quite a few of you not only use Bitbucket, but administer it too. Our team is excited to share that we’ll be releasing improvements throughout this month of...

3,785 views 10 16
Read article

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