# Problem, rebuild to latest version

**URL:** <https://meta.discourse.org/t/problem-rebuild-to-latest-version/120564>\
**Category:** Self-hosting\
**Created:** [June 17, 2019, 8:07am UTC](https://meta.discourse.org/t/problem-rebuild-to-latest-version/120564 "2019-06-17T08:07:46Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![tksyfy](https://avatars.discourse-cdn.com/v4/letter/t/13edae/32.png) [@tksyfy](https://meta.discourse.org/u/tksyfy)\
**Post date:** [June 17, 2019, 8:07am UTC](https://meta.discourse.org/t/problem-rebuild-to-latest-version/120564/1 "2019-06-17T08:07:46Z")

</div>

Hi,  
when I try to rebuild app to latest version with this add-ons on:

```
## see https://meta.discourse.org/t/19157 for details
hooks:
  after_code:
    - exec:
        cd: $home/plugins
        cmd:
          - git clone https://github.com/discourse/docker_manager.git
          - git clone https://github.com/jonmbake/discourse-ldap-auth.git
          - git clone https://github.com/discourse/discourse-solved.git
          - git clone https://github.com/angusmcleod/discourse-qa.git
          - git clone https://github.com/discourse/discourse-voting.git
          - git clone https://github.com/discourse/discourse-chat-integration.git

```

I cannot build it properly. And i received this error:

```
FAILED
--------------------
Pups::ExecError: cd /var/www/discourse && su discourse -c 'bundle exec rake assets:precompile' failed with return #<Process::Status: pid 500 exit 1>
Location of failure: /pups/lib/pups/exec_command.rb:112:in `spawn'
exec failed with the params {"cd"=>"$home", "hook"=>"assets_precompile", "cmd"=>["su discourse -c 'bundle exec rake assets:precompile'"]}
5e2de95480cbc5131ed5a54998d303fd6d8e4f6f0fd2058d4878740bb99aeab2

```

or

```
FAILED
--------------------
Pups::ExecError: cd /var/www/discourse && su discourse -c 'bundle exec rake db:migrate' failed with return #<Process::Status: pid 6929 exit 1>
Location of failure: /pups/lib/pups/exec_command.rb:112:in `spawn'
exec failed with the params {"cd"=>"$home", "hook"=>"db_migrate", "cmd"=>["su discourse -c 'bundle exec rake db:migrate'"]}
f920fb8b608312a02f07ef2c612342505b5bf1ad7d7d270c6c98cc5b2e48b287
**FAILED TO BOOTSTRAP** please scroll up and look for earlier error messages, there may be more than one

```

Could you please help me with that?

---

_[View the full topic](https://meta.discourse.org/t/problem-rebuild-to-latest-version/120564)._
