# Discourse Randomly Does Not run or Rebuild

**URL:** <https://meta.discourse.org/t/discourse-randomly-does-not-run-or-rebuild/358231>\
**Category:** Self-hosting\
**Tags:** postgres\
**Created:** [March 20, 2025, 9:28pm UTC](https://meta.discourse.org/t/discourse-randomly-does-not-run-or-rebuild/358231 "2025-03-20T21:28:11Z")\
**Posts on this page:** 1\
**Showing post:** 14

<div class="post-metadata">

**Author:** ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)\
**Post date:** [March 22, 2025, 3:23am UTC](https://meta.discourse.org/t/discourse-randomly-does-not-run-or-rebuild/358231/14 "2025-03-22T03:23:03Z")

</div>

> [@joshhabka](#):
>
> How can I access my backups if my forum is down

They are in /var/discourse/shared/standalone/backups/default

If you follow the rsync instructions I linked earlier, you’ll get them.

> [@joshhabka](#):
>
> Why would the database have an unclean shutdown?

It crashed or the server rebooted or something things happen.

The database is “migrated” from one set of tables (tables get added and changed) to another on most upgrades.

You might try to stop the container and delete that lock file

And look in PG\_VERSION to see what version you have, since I think you tried changing the template.

---

_[View the full topic](https://meta.discourse.org/t/discourse-randomly-does-not-run-or-rebuild/358231)._
