# Third party plugin causes rebuild to fail

**URL:** https://meta.discourse.org/t/third-party-plugin-causes-rebuild-to-fail/116713
**Category:** Support
**Created:** [May 2, 2019, 6:50pm UTC](https://meta.discourse.org/t/third-party-plugin-causes-rebuild-to-fail/116713 "2019-05-02T18:50:14Z")
**Posts on this page:** 11
**Page:** 1

<div class="post-metadata">

### Author: ![Seshank\_K](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/seshank_k/32/140017_2.png) [@Seshank\_K](https://meta.discourse.org/u/Seshank_K)
#### Post date: [May 2, 2019, 6:50pm UTC](https://meta.discourse.org/t/third-party-plugin-causes-rebuild-to-fail/116713/1 "2019-05-02T18:50:14Z")

</div>

I tried rebuilding my website co it crashed about 4 hours ago… I have no idea how to fix this rebuilding issue. I’ve tried all the fixes on this forum (the ones that I could understand). But none of them worked. Can you guys help me out?  
The Error:

```plaintext
> FAILED
Pups::ExecError: cd /var/www/discourse && su discourse -c 'bundle exec rake db:migrate' failed with return #<Process::Status: pid 11252 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'"]}
13bd5893991a6ed39bb8c980fa8330c094d586838b2a54def897f7617c650f5f
**FAILED TO BOOTSTRAP** please scroll up and look for earlier error messages,there may be more than one

```

It asks me to scroll up and check.. This is the only error that I could find after scrolling up.

```plaintext
> I, [2019-05-02T16:18:15.465377 #14] INFO -- : > cd /var/www/discourse && su discourse -c 'bundle exec rake db:migrate'
rake aborted!
LoadError: No such file to load -- jobs/scheduled/pending_flags_reminder.rb

```

---

<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: [May 2, 2019, 7:13pm UTC](https://meta.discourse.org/t/third-party-plugin-causes-rebuild-to-fail/116713/2 "2019-05-02T19:13:56Z")

</div>

Do you have an non-standard plugins installed?

---

<div class="post-metadata">

### Author: ![Seshank\_K](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/seshank_k/32/140017_2.png) [@Seshank\_K](https://meta.discourse.org/u/Seshank_K)
#### Post date: [May 2, 2019, 7:30pm UTC](https://meta.discourse.org/t/third-party-plugin-causes-rebuild-to-fail/116713/3 "2019-05-02T19:30:01Z")

</div>

Only ones from github

---

<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: [May 2, 2019, 7:31pm UTC](https://meta.discourse.org/t/third-party-plugin-causes-rebuild-to-fail/116713/4 "2019-05-02T19:31:09Z")

</div>

Do they all start with `https://github.com/discourse`?

---

<div class="post-metadata">

### Author: ![Seshank\_K](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/seshank_k/32/140017_2.png) [@Seshank\_K](https://meta.discourse.org/u/Seshank_K)
#### Post date: [May 2, 2019, 7:33pm UTC](https://meta.discourse.org/t/third-party-plugin-causes-rebuild-to-fail/116713/5 "2019-05-02T19:33:12Z")

</div>

Yes absolutely! They are all from github.

---

<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: [May 2, 2019, 7:34pm UTC](https://meta.discourse.org/t/third-party-plugin-causes-rebuild-to-fail/116713/6 "2019-05-02T19:34:11Z")

</div>

Virtually every plugin in the world comes from github. They are not all maintained by [discourse.org](http://discourse.org). What plugins do you have?

---

<div class="post-metadata">

### Author: ![Seshank\_K](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/seshank_k/32/140017_2.png) [@Seshank\_K](https://meta.discourse.org/u/Seshank_K)
#### Post date: [May 2, 2019, 7:37pm UTC](https://meta.discourse.org/t/third-party-plugin-causes-rebuild-to-fail/116713/7 "2019-05-02T19:37:04Z")

</div>

![Screenshot%20(1)](https://global.discourse-cdn.com/meta/original/3X/6/4/64346af314e6a8e23ee7a17388cea25311e1ac53.png) ![Screenshot%20(2)](https://global.discourse-cdn.com/meta/original/3X/0/6/06dd76646886f6f802277bc2d77c504093d85d73.png)

---

<div class="post-metadata">

### Author: ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)
#### Post date: [May 2, 2019, 7:39pm UTC](https://meta.discourse.org/t/third-party-plugin-causes-rebuild-to-fail/116713/8 "2019-05-02T19:39:59Z")

</div>

Remove all plugins and rebuild.

After that, start enabling **just the ones you absolutely need** , one by one.

---

<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: [May 2, 2019, 7:40pm UTC](https://meta.discourse.org/t/third-party-plugin-causes-rebuild-to-fail/116713/9 "2019-05-02T19:40:24Z")

</div>

Do you see all the plugins that do not start with `https://github.com/discourse`? You need to comment those out by putting a `#` at the beginning of the line.

Then rebuild and see that it works.

After that, you can uncomment them one at a time.

But you should probably do what @falco said instead.

---

<div class="post-metadata">

### Author: ![Seshank\_K](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/seshank_k/32/140017_2.png) [@Seshank\_K](https://meta.discourse.org/u/Seshank_K)
#### Post date: [May 2, 2019, 7:48pm UTC](https://meta.discourse.org/t/third-party-plugin-causes-rebuild-to-fail/116713/10 "2019-05-02T19:48:32Z")

</div>

Okay got it thanks. I’ll try doing the same.

---

<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: [August 22, 2022, 5:55pm UTC](https://meta.discourse.org/t/third-party-plugin-causes-rebuild-to-fail/116713/12 "2022-08-22T17:55:21Z")

</div>


