# Site maintenance mode during rebuilds?

**URL:** https://meta.discourse.org/t/site-maintenance-mode-during-rebuilds/29697
**Category:** Feature
**Created:** [June 5, 2015, 6:42pm UTC](https://meta.discourse.org/t/site-maintenance-mode-during-rebuilds/29697 "2015-06-05T18:42:39Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![mlinksva](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mlinksva/32/102666_2.png) [@mlinksva](https://meta.discourse.org/u/mlinksva)
#### Post date: [June 5, 2015, 6:42pm UTC](https://meta.discourse.org/t/site-maintenance-mode-during-rebuilds/29697/1 "2015-06-05T18:42:39Z")

</div>

Continuing the discussion from [How do I update my Docker image to latest?](https://meta.discourse.org/t/how-do-i-update-my-docker-image-to-latest/23325/3):

> [@Manually update Discourse and Docker image to latest](https://meta.discourse.org/t/manually-update-discourse-and-docker-image-to-latest/23325/3):
>
> Should take about 10-15 minutes but it depends where you are hosted. Good news is the Docker images don’t change too often.

Only took 7 minutes just now for me on a $20/month DigitalOcean instance, site down (refusing connections) for about 6 minutes, 502 from nginx for last seconds before app back up. Similar when rebuilding to [install a plugin](https://meta.discourse.org/t/install-a-plugin/19157) which makes sense given it is the same command.

If you’re already on site when it goes down, clicking on a topic obtains a nice looking message

> Topic failed to load  
> Sorry, we couldn’t load that topic, possibly due to a  
> connection problem. Please try again. If the problem persists, let us  
> know.  
> [Try Again]

It’d be really nice if a maintenance webserver stated up while the app is down so a nice message rather than connection refused could be displayed. Presumably that’d be a lot of juggling for a small benefit. Maybe some enterprise customer will want the appearance of zero downtime and pay for it someday. 😄

---

<div class="post-metadata">

### Author: ![downey](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/downey/32/166878_2.png) [@downey](https://meta.discourse.org/u/downey)
#### Post date: [June 5, 2015, 6:57pm UTC](https://meta.discourse.org/t/site-maintenance-mode-during-rebuilds/29697/2 "2015-06-05T18:57:11Z")

</div>

Agreed on this. Alternatively, any hacks people have come up with, to put something up in place of the down site would be welcome, too. 😄

---

<div class="post-metadata">

### Author: ![jesselperry](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jesselperry/32/119501_2.png) [@jesselperry](https://meta.discourse.org/u/jesselperry)
#### Post date: [June 5, 2015, 6:57pm UTC](https://meta.discourse.org/t/site-maintenance-mode-during-rebuilds/29697/3 "2015-06-05T18:57:52Z")

</div>

It’s pretty trivial to set up your registrar to do a temporary redirect to a “We’re down…” message on another web server, right?

I’ve just never bothered because I don’t have that many visitors to bother for a 15 minute window.

By and large, I’m really impressed with the speed of the upgrade process.

---

<div class="post-metadata">

### Author: ![downey](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/downey/32/166878_2.png) [@downey](https://meta.discourse.org/u/downey)
#### Post date: [June 5, 2015, 6:59pm UTC](https://meta.discourse.org/t/site-maintenance-mode-during-rebuilds/29697/4 "2015-06-05T18:59:47Z")

</div>

> [@jesselperry](#):
>
> It’s pretty trivial to set up your registrar to do a temporary redirect to a “We’re down…” message on another web server, right?

Maybe? I’m not exactly sure what domain registration would have to do with this, so perhaps you can say more of what you’re thinking about?

Generally, we’re very happy with our Discourse uptime, but when it **does** go down for (planned or unplanned) maintenance, it’s a bit annoying to get additional help desk tickets when the same people are already dealing with the outage/upgrade.

---

<div class="post-metadata">

### Author: ![mlinksva](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mlinksva/32/102666_2.png) [@mlinksva](https://meta.discourse.org/u/mlinksva)
#### Post date: [June 5, 2015, 7:11pm UTC](https://meta.discourse.org/t/site-maintenance-mode-during-rebuilds/29697/5 "2015-06-05T19:11:35Z")

</div>

Presumably @jesselperry means having DNS point to a different host during maintenance. This would only make sense for extended downtime given that DNS needs to propagate.

---

<div class="post-metadata">

### Author: ![jesselperry](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jesselperry/32/119501_2.png) [@jesselperry](https://meta.discourse.org/u/jesselperry)
#### Post date: [June 5, 2015, 7:39pm UTC](https://meta.discourse.org/t/site-maintenance-mode-during-rebuilds/29697/6 "2015-06-05T19:39:21Z")

</div>

Most registrars let you set up a subdomain Forward temporarily to override DNS (as long as Nameserver is set to the registrar’s) it will be an immediate change.

---

<div class="post-metadata">

### Author: ![Overgrow](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/overgrow/32/478189_2.png) [@Overgrow](https://meta.discourse.org/u/Overgrow)
#### Post date: [October 17, 2016, 12:00pm UTC](https://meta.discourse.org/t/site-maintenance-mode-during-rebuilds/29697/7 "2016-10-17T12:00:22Z")

</div>

I can’t found topic about temporary page setup (possibly with apache2 or nginx on host) when rebuilding container.. I’ve seen some howto here in forum which I struggle to find..

Can’t somebody point me there or share their strategy for site down times? I’d like to display “Site under maintenance” message to users..

In general: Is it reasonable solution to have host server to serve that page? How do you guys do it here on meta?

---

<div class="post-metadata">

### Author: ![Steven](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/steven/32/187890_2.png) [@Steven](https://meta.discourse.org/u/Steven)
#### Post date: [October 17, 2016, 12:52pm UTC](https://meta.discourse.org/t/site-maintenance-mode-during-rebuilds/29697/8 "2016-10-17T12:52:24Z")

</div>

Here 👍

> [@Add an offline page to display when Discourse is rebuilding or starting up](https://meta.discourse.org/t/adding-an-offline-page-when-rebuilding/45238):
>
> warning This guide is intended for advanced users, who are already using nginx outside the docker container. By following this guide you make your setup more complicated and will lose some speed benefits like HTTP2 if you’re not running Ubuntu 16.04 or later. Proceed with caution! When Discourse is rebuilding or starting up, your users will usually either see an error message from their browser… …or a not-so-nice 502 error message from Nginx: If you’re a perfectionist …

---

<div class="post-metadata">

### Author: ![erlend\_sh](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/erlend_sh/32/119475_2.png) [@erlend\_sh](https://meta.discourse.org/u/erlend_sh)
#### Post date: [October 19, 2016, 1:41pm UTC](https://meta.discourse.org/t/site-maintenance-mode-during-rebuilds/29697/9 "2016-10-19T13:41:19Z")

</div>

This topic was automatically closed after 2 days. New replies are no longer allowed.
