# Discourse offline after failed upgrade "bootstrap failed with exit code 5"

**URL:** <https://meta.discourse.org/t/discourse-offline-after-failed-upgrade-bootstrap-failed-with-exit-code-5/288193>\
**Category:** Self-hosting\
**Created:** [December 11, 2023, 6:42am UTC](https://meta.discourse.org/t/discourse-offline-after-failed-upgrade-bootstrap-failed-with-exit-code-5/288193 "2023-12-11T06:42:03Z")\
**Posts on this page:** 1\
**Showing post:** 18

<div class="post-metadata">

**Author:** ![Richie](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/richie/32/115110_2.png) [@Richie](https://meta.discourse.org/u/Richie)\
**Post date:** [December 11, 2023, 10:29am UTC](https://meta.discourse.org/t/discourse-offline-after-failed-upgrade-bootstrap-failed-with-exit-code-5/288193/18 "2023-12-11T10:29:19Z")

</div>

Thanks Jay 🙂

I manually killed off all the sidekiq jobs and it looks like the database restore is now running:

> [@](#):
>
> [2023-12-11 10:24:19] Unzipping archive, this may take a while…  
> [2023-12-11 10:24:35] Extracting dump file…  
> [2023-12-11 10:25:19] Validating metadata…  
> [2023-12-11 10:25:19] Current version: 20231127165331  
> [2023-12-11 10:25:19] Restored version: 20231127165331  
> [2023-12-11 10:25:19] Enabling readonly mode…  
> [2023-12-11 10:25:19] Pausing sidekiq…  
> [2023-12-11 10:25:19] Waiting up to 60 seconds for Sidekiq to finish running jobs…  
> [2023-12-11 10:25:30] Creating missing functions in the discourse\_functions schema…  
> [2023-12-11 10:25:31] Restoring dump file… (this may take a while)  
> [2023-12-11 10:25:31] SET  
> [2023-12-11 10:25:31] SET  
> [2023-12-11 10:25:31] SET  
> [2023-12-11 10:25:31] SET  
> [2023-12-11 10:25:31] SET  
> [2023-12-11 10:25:31] set\_config  
> [2023-12-11 10:25:31] ------------  
> [2023-12-11 10:25:31] (1 row)  
> [2023-12-11 10:25:31] SET  
> [2023-12-11 10:25:31] SET  
> [2023-12-11 10:25:31] SET  
> [2023-12-11 10:25:31] SET  
> [2023-12-11 10:25:31] CREATE TYPE  
> [2023-12-11 10:25:31] SET  
> [2023-12-11 10:25:31] CREATE TABLE  
> [2023-12-11 10:25:31] CREATE SEQUENCE  
> [2023-12-11 10:25:31] ALTER SEQUENCE  
> [2023-12-11 10:25:31] CREATE TABLE  
> [2023-12-11 10:25:31] CREATE SEQUENCE  
> [2023-12-11 10:25:31] ALTER SEQUENCE  
> [2023-12-11 10:25:32] CREATE TABLE

🤞

If this also fails, I’ll pull the plug and go your `rsync` route, thank you 😊

---

_[View the full topic](https://meta.discourse.org/t/discourse-offline-after-failed-upgrade-bootstrap-failed-with-exit-code-5/288193)._
