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

Lock out users during maintenance

Zühlke Operations Dec 17, 2015

Currently we have JIRA 6.3, Stash 3.6 and Confluence 5.7 hosted on our infrastructure and attached them to our active directory.

During recurring maintenance activities (e.g. the one we have planned now to upgrade to JIRA Software, Bitbucket 4 and Confluence 5.9) we'd like to be able to prevent all users from login in or performing any actions/checkins - except for system administrators (they of course need to be able to do whatever they need).

Our first try was removing the jira-users/stash-users/confluence-users group from the Global Permissions, so they don't have the rights to login.

However, during the application's upgrade process on our test instance we noticed that the groups are added again automatically to the corresponding permissions during upgrade installation. So after upgrade has finished the users would automatically be able to login again. But this is not what we want, because after the upgrade installation we still want to be able to perform further maintenance and tests before allowing the users to login again.

Is there any maintenance mode that can be enabled or something similar? Or how do you prevent your users from login in?

4 answers

3 votes
Phill Fox Dec 17, 2015


If your installations are behind a proxy server then you can change the mapping to point at a maintenance page there but provide a different url/port for the system administrators to access.

If not behind a proxy then there is a similar method which requires you to edit the port on which you currently host.  See for JIRA and for Bitbucket. Your system administrators can then continue to access on the new port until all maintenance is complete at which point you would revert to your normal port.


Hope this helps


0 votes
Johannes Kilian Dec 17, 2015

There should be a way to lock/unlock the Bitbucket server in the way you requested: - Sections: Lock the Bitbucket Server instance /Unlock the Bitbucket Server instance

As I'm only using Bitbucket - I cannot say anything about confluence of JIRA ...

Haven't tested it - so cannot help any further ....

Johannes Kilian Dec 17, 2015

It's only possible to lock the complete bitbucket server. I recently needed a possibility to lock single repositories - but this seems not to be available the easy way. See:

Zühlke Operations Dec 17, 2015

What happens if I lock the Bitbucket instance via REST API? - Can an Administrator still log in? - Is the lock kept during/after I perform a Bitbucket application upgrade? Or is it reset automatically during upgrade installation?

0 votes
chander inguva Dec 17, 2015
  • You can change the ports and reset it to correct one after the Upgrades


0 votes
Steven Behnke Community Leader Dec 17, 2015

You need to handle this from a System Administrator perspective rather than from the application side. There's a million ways to control access and provide a nice system down screen with any webserver you may be fronting your applications with. If you aren't fronting the apps, then you should try approaching this from the Tomcat side. Most of the time I front my applications with a webserver, which gives me this control in multitudes. 

Suggest an answer

Log in or Sign up to answer
This widget could not be displayed.
This widget could not be displayed.
Community showcase
Published in Bitbucket Pipelines

Building a Bitbucket Pipe as a casual coder :  #!/bin/bash source "$(dirname "$0")/" enable_debug extra_args="" if [[ "${DEBUG}" == "true" ]]; then extra_args="--verbose" fi # mandatory variables R...

3,126 views 1 22
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