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

Next challenges

Recent achievements


  • Give kudos
  • My kudos


  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

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

How to solve fatal error "Lock file exists - db.lock.db" ? Edited


I tried to start bitbucket server via start-bitbucket.bat file. 

After this I get the error which is attached to this post.


Hope someone can help me with that!

Thanks in advance,



1 answer

0 votes
Alexis Robert Community Leader Oct 28, 2019

Hi @DavidJng , 


can you try stopping Bitbucket and removing C:/Bitbucket/shared/data/db.lock.db manually ? You can then restart and see if it fixes your issue.


Let me know if this works, 



Hi @Alexis Robert ,

thanks for your answer.

After deleting the file and restarting the server the attached error occures.

On C:/Bitbucket every user has all permissions.


Alexis Robert Community Leader Oct 28, 2019

Hi @DavidJng , 


looks like an issue with your local database. What database did you use ? Can you restart it ? It looks like it's not running as the error is "Database not accessible".


Let me know if you have any issues, 



Hi @Alexis Robert ,

I use the built-in database. How can I restart it?


Below C:/Bitbucket/shared/data I got a db.h2 file, so it should be a H2-database.

Thanks in advance,


Hey @Alexis Robert ,

any ideas about it?

Thanks in advance,


Hi @Alexis Robert ,

I really need help with this.

Thanks in advance,


Alexis Robert Community Leader Nov 10, 2019

Hi @DavidJng , 


I don't see any fix for this. I think you should start from scratch with a proper database (mysql or postgresql).

Hi @Alexis Robert ,

I started from scratch and built a completely new machine with Bitbucket installed. I use the same configuration as before. Until now everything works fine.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Bitbucket

Powering DevOps with Bitbucket Server & Data Center

Hi everyone, The Cloud team recently announced 12 new DevOps features that help developers ship better code, faster   ! While we’re all excited about the new improvements to Bitbucket ...

1,914 views 0 7
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