Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,294,432
Community Members
 
Community Events
165
Community Groups

Bitbucket v6.6.0 maintenance mode - no response from /mvc/maintenance

I'm trying to run a DIY backup using the Atlassian scripts provided on Bitbucket v6.6.0.

Once the script puts BitBucket into maintenance mode via CURL, the script just hangs with the message: Waiting for Bitbucket to become ready to be backed up.

If I use curl myself, I get this:

curl -s -v -u <user> -X GET -H "X-Atlassian-Maintenance-Token: <token>" -H "Accept: application/json" -H "Content-type: application/json" "http://localhost:7990/mvc/maintenance"
Enter host password for user '<user>':
* About to connect() to localhost port 7990 (#0)
* Trying ::1...
* Connected to localhost (::1) port 7990 (#0)
* Server auth using Basic with user '<user>'
> GET /mvc/maintenance HTTP/1.1
> Authorization: Basic abcd
> User-Agent: curl/7.29.0
> Host: localhost:7990
> X-Atlassian-Maintenance-Token: <token>
> Accept: application/json
> Content-type: application/json

And then it hangs indefinitely - no response, no timeout. I can't lock/unlock via curl either.

Once I've restarted BitBucket I can do the above no worries:

curl -s -v -u <user> -X GET -H "X-Atlassian-Maintenance-Token: <token>" -H "Accept: application/json" -H "Content-type: application/json" "http://localhost:7990/mvc/maintenance"
Enter host password for user '<user>':
* About to connect() to localhost port 7990 (#0)
* Trying ::1...
* Connected to localhost (::1) port 7990 (#0)
* Server auth using Basic with user '<user>'
> GET /mvc/maintenance HTTP/1.1
> Authorization: Basic abcd
> User-Agent: curl/7.29.0
> Host: localhost:7990
> X-Atlassian-Maintenance-Token: <token>
> Accept: application/json
> Content-type: application/json
>
< HTTP/1.1 200
< X-AREQUESTID:
< X-ASEN:
< x-xss-protection: 1; mode=block
< x-frame-options: SAMEORIGIN
< x-content-type-options: nosniff
< Pragma: no-cache
< Expires: Thu, 01 Jan 1970 00:00:00 GMT
< Cache-Control: no-cache
< Cache-Control: no-store
< Cache-Control: no-cache
< vary: accept-encoding
< Content-Type: application/json;charset=UTF-8
< Transfer-Encoding: chunked
< Date: Wed, 21 Jul 2021 06:19:47 GMT
<
* Connection #0 to host localhost left intact
{"task":null,"db-state":"AVAILABLE","scm-state":"AVAILABLE"}

 

atlassian logs:

2021-07-21 14:56:52,688 INFO [hz.hazelcast.cached.thread-4] c.a.s.i.m.DefaultMaintenanceService The system has been locked for maintenance. It may be unlocked with token: <token>
2021-07-21 14:56:52,969 INFO [http-nio-7990-exec-11] backup @1FOSNEEx896x1345x0 0:0:0:0:0:0:0:1 "POST /mvc/admin/backups HTTP/1.1" c.a.s.i.m.DefaultMaintenanceService BACKUP started. It may be canceled with token: <token>
2021-07-21 14:56:53,131 WARN [hz.hazelcast.cached.thread-1] c.a.s.i.db.DefaultDatabaseManager The DataSource for the current database does not implement ForcedDrainable. Existing connections will not be closed.

< Nothing else here, I restarted BitBucket ~1h 20m after trying the backup >

2021-07-21 16:15:16,490 INFO [Thread-4] c.a.b.i.boot.log.BuildInfoLogger Bitbucket 6.6.0 has shut down

What am I doing wrong?

0 answers

Suggest an answer

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

Git push size limits are coming to Bitbucket Cloud starting April 4th, 2022

Beginning on April 4th, we will be implementing push limits. This means that your push cannot be completed if it is over 3.5 GB. If you do attempt to complete a push that is over 3.5 GB, it will fail...

2,156 views 2 9
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