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

Lock file on server start

lonres-sysadmin February 25, 2021

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
AUG Leaders

Atlassian Community Events