Just a heads up: On March 24, 2025, starting at 4:30pm CDT / 19:30 UTC, the site will be undergoing scheduled maintenance for a few hours. During this time, the site might be unavailable for a short while. Thanks for your patience.

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

Bitbucket Server stuck during backup

daniele_bernardini February 13, 2019

Sometimes my Bitbucket backup gets stuck showing the progress bar. The actual backup seems to be completed but the progress bar doesn't move. Any suggestion? Thanks.

backup.PNG

 

2 answers

1 accepted

1 vote
Answer accepted
Ben Stuart
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
February 14, 2019

I just ran into this with another customer and you're probably running an older script version. If 

./common.sh: line 293: bitbucket_unlock: command not found

According to our repository, the method to be called is unlock_bitbucket:

# Unlock a previously locked Bitbucket instance 

function unlock_bitbucket {

Could you please download the latest DIY Scripts. Place them into a different directory and then don't copy any changed files in your existing instance, but rather reconfigure the new download of the DIY scripts.

I hope this helps!

0 votes
Ben Stuart
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
February 13, 2019

Hey Daniele, 

I think we would need to take a look at the log generated by the backup client or the output of your backup DIY script and correlate that with your atlassian-bitbucket.log. There are some debug logging options that could be helpful as well. It may be easiest to open up a support ticket if you have a valid support license. Does this backup ever complete from the UI? Also, is this for data center? 

daniele_bernardini February 13, 2019

Hey Ben,

Thanks for helping. We have a starter license so I guess we don't qualify for tech support. Backup is done every night and completes almost every time, in several months it got stuck twice. This is for Bitbucket Server. We have log that we could definitely share.

Ben Stuart
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
February 14, 2019

When it get's stuck does it eventually complete? Or how do you stop the backup in these cases? 

If you have logs from these instances, you can try to post any relevent sections here as long as you don't mind them being public. 

Like daniele_bernardini likes this
daniele_bernardini February 14, 2019

When it gets stuck it never completes, or more precisely, the progress bar never completes, but we think the actual backup does complete. In these cases we need to force a stop manually. 

The backup script we use is the one from here:

https://confluence.atlassian.com/bitbucketserver/using-bitbucket-server-diy-backup-776640056.html

In the logs of the backup process, the only difference with an instance where everything runs fine is the presence of the following lines:

[bitbucket.diy-backup.sh:0 -> main][Ubuntu-1604-xenial-64-nextcloud]  INFO: Backing up the database and filesystem in parallel
file has vanished: "/var/atlassian/application-data/bitbucket/log/audit/atlassian-bitbucket-audit-2019-02-12.0.log9085978665663793.tmp"
rsync warning: some files vanished before they could be transferred (code 24) at main.c(1183) [sender=3.1.1]
/var/atlassian/application-data/bitbucket/backupscript/atlassian-bitbucket-diy-backup/common.sh: line 293: bitbucket_unlock: command not found

 

Does this help?

We also have the full logs I can post if necessary. Thanks!

Like Ben Stuart likes this

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events