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

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
Posted in Bitbucket

How do you use the Bitbucket-Jira integration? How does it help your team?

Hey everyone, over the past year, we've added several new features on how you can use Bitbucket and Jira together. We'd love to know how you'll are using the integration and how it's helping your t...

135 views 0 2
Join discussion

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