# Errors during rebuild app

**URL:** <https://meta.discourse.org/t/errors-during-rebuild-app/277690>\
**Category:** Self-hosting\
**Created:** [September 4, 2023, 9:48am UTC](https://meta.discourse.org/t/errors-during-rebuild-app/277690 "2023-09-04T09:48:08Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![Airw0lf](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/airw0lf/32/320260_2.png) [@Airw0lf](https://meta.discourse.org/u/Airw0lf)\
**Post date:** [September 4, 2023, 9:48am UTC](https://meta.discourse.org/t/errors-during-rebuild-app/277690/1 "2023-09-04T09:48:08Z")

</div>

Eaerlier this morning I tried to stop and rebuild the app but received several errors.

The stop didn’t report any errors.

The rebuild came with the following errors:

```plaintext
2023-09-04 08:30:19.937 UTC [45] LOG: database system was interrupted; last known up at 2023-09-03 21:07:49 UTC
2023-09-04 08:30:20.045 UTC [45] LOG: invalid resource manager ID in primary checkpoint record
2023-09-04 08:30:20.045 UTC [45] PANIC: could not locate a valid checkpoint record
2023-09-04 08:30:20.859 UTC [42] LOG: startup process (PID 45) was terminated by signal 6: Aborted
2023-09-04 08:30:20.859 UTC [42] LOG: aborting startup due to startup process failure
2023-09-04 08:30:20.919 UTC [42] LOG: database system is shut down

```

```plaintext
Pups::ExecError: su postgres -c 'psql discourse -c "alter schema public owner to discourse;"' failed with return #<Process::Status: pid 55 exit 2>
Location of failure: /usr/local/lib/ruby/gems/3.2.0/gems/pups-1.1.1/lib/pups/exec_command.rb:117:in `spawn'
exec failed with the params "su postgres -c 'psql $db_name -c \"alter schema public owner to $db_user;\"'"
bootstrap failed with exit code 2
**FAILED TO BOOTSTRAP** please scroll up and look for earlier error messages, there may be more than one.

```

Based on the logs it looks like it has something to do with this error?  
PANIC: could not locate a valid checkpoint record

However, I’m not sure if this is really the case.  
Let alone what to do about it.

Anyone suggestions on what could be wrong?  
And ideally also a way to get this working (again)?

Thnak you,

---

_[View the full topic](https://meta.discourse.org/t/errors-during-rebuild-app/277690)._
