# Forum Offline, Trouble Updating

**URL:** https://meta.discourse.org/t/forum-offline-trouble-updating/257851
**Category:** Self-hosting
**Created:** [March 12, 2023, 12:45pm UTC](https://meta.discourse.org/t/forum-offline-trouble-updating/257851 "2023-03-12T12:45:55Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![jidetheblogger](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jidetheblogger/32/73213_2.png) [@jidetheblogger](https://meta.discourse.org/u/jidetheblogger)
#### Post date: [March 12, 2023, 12:45pm UTC](https://meta.discourse.org/t/forum-offline-trouble-updating/257851/1 "2023-03-12T12:45:55Z")

</div>

My forum is offline

And I tried updating it

but below is the error I get

```plaintext
102:signal-handler (1678624734) Received SIGTERM scheduling shutdown...
2023-03-12 12:38:54.291 UTC [41] LOG: aborting any active transactions
2023-03-12 12:38:54.295 UTC [41] LOG: background worker "logical replication launcher" (P
ID 50) exited with exit code 1
2023-03-12 12:38:54.297 UTC [45] LOG: shutting down
102:M 12 Mar 2023 12:38:54.326 # User requested shutdown...
102:M 12 Mar 2023 12:38:54.326 * Saving the final RDB snapshot before exiting.
2023-03-12 12:38:54.326 UTC [41] LOG: database system is shut down
102:M 12 Mar 2023 12:38:54.385 * DB saved on disk
102:M 12 Mar 2023 12:38:54.385 # Redis is now ready to exit, bye bye...

FAILED
--------------------
Pups::ExecError: cd /var/www/discourse && su discourse -c 'bundle install --deployment --r
etry 3 --jobs 4 --verbose --without test development' failed with return #<Process::Status
: pid 405 exit 5>
Location of failure: /usr/local/lib/ruby/gems/2.7.0/gems/pups-1.1.1/lib/pups/exec_command.
rb:117:in `spawn'
exec failed with the params {"cd"=>"$home", "hook"=>"bundle_exec", "cmd"=>["su discourse -
c 'bundle install --deployment --retry 3 --jobs 4 --verbose --without test development'"]}
bootstrap failed with exit code 5
**FAILED TO BOOTSTRAP** please scroll up and look for earlier error messages, there may 
be more than one.
./discourse-doctor may help diagnose the problem.
5e9f26636d37c9aa6ec6a4b0a99e14999c51c0d08cd4676924f620185c4a51cb

```

---

<div class="post-metadata">

### Author: ![Ed\_S](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ed_s/32/134015_2.png) [@Ed\_S](https://meta.discourse.org/u/Ed_S)
#### Post date: [March 12, 2023, 1:32pm UTC](https://meta.discourse.org/t/forum-offline-trouble-updating/257851/2 "2023-03-12T13:32:47Z")

</div>

Please include more lines - maybe 50 previous lines will be enough.

---

<div class="post-metadata">

### Author: ![jidetheblogger](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jidetheblogger/32/73213_2.png) [@jidetheblogger](https://meta.discourse.org/u/jidetheblogger)
#### Post date: [March 12, 2023, 2:46pm UTC](https://meta.discourse.org/t/forum-offline-trouble-updating/257851/3 "2023-03-12T14:46:44Z")

</div>

Fixed and OhK now

Thank You

---

<div class="post-metadata">

### Author: ![Jagster](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jagster/32/192154_2.png) [@Jagster](https://meta.discourse.org/u/Jagster)
#### Post date: [March 12, 2023, 2:48pm UTC](https://meta.discourse.org/t/forum-offline-trouble-updating/257851/4 "2023-03-12T14:48:18Z")

</div>

What did you fix?

(+20 characters)

---

<div class="post-metadata">

### Author: ![jidetheblogger](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jidetheblogger/32/73213_2.png) [@jidetheblogger](https://meta.discourse.org/u/jidetheblogger)
#### Post date: [March 12, 2023, 2:55pm UTC](https://meta.discourse.org/t/forum-offline-trouble-updating/257851/5 "2023-03-12T14:55:34Z")

</div>

I guess the problem is

```plaintext
fatal: detected dubious ownership in repository at '/var/www/discourse'
To add an exception for this directory, call:

        git config --global --add safe.directory /var/www/discourse

```

---

<div class="post-metadata">

### Author: ![jidetheblogger](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jidetheblogger/32/73213_2.png) [@jidetheblogger](https://meta.discourse.org/u/jidetheblogger)
#### Post date: [March 12, 2023, 2:57pm UTC](https://meta.discourse.org/t/forum-offline-trouble-updating/257851/6 "2023-03-12T14:57:50Z")

</div>

So, i tried some random commands but seems the one below fixed it

```plaintext
git config --system --add safe.directory /var/www/discourse

```

---

<div class="post-metadata">

### Author: ![core](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/core/32/183957_2.png) [@core](https://meta.discourse.org/u/core)
#### Post date: [June 14, 2023, 10:11pm UTC](https://meta.discourse.org/t/forum-offline-trouble-updating/257851/7 "2023-06-14T22:11:08Z")

</div>

I had a custom docker `.yml` template. In the end what solved it for me was to do something like this:

[https://github.com/discourse/discourse\_docker/commit/05ee40d778e4d19e631f38877cebc2af447b53c7](https://github.com/discourse/discourse_docker/commit/05ee40d778e4d19e631f38877cebc2af447b53c7)
