# Rebuild fails due to missing gem

**URL:** https://meta.discourse.org/t/rebuild-fails-due-to-missing-gem/85009
**Category:** Support
**Created:** [April 10, 2018, 6:47pm UTC](https://meta.discourse.org/t/rebuild-fails-due-to-missing-gem/85009 "2018-04-10T18:47:00Z")
**Posts on this page:** 20
**Page:** 1

<div class="post-metadata">

### Author: ![Jay91](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jay91/32/135181_2.png) [@Jay91](https://meta.discourse.org/u/Jay91)
#### Post date: [April 10, 2018, 6:47pm UTC](https://meta.discourse.org/t/rebuild-fails-due-to-missing-gem/85009/1 "2018-04-10T18:47:00Z")

</div>

Hello Friends,

I added a plugin to my website and when i want to re-build am getting error as below:

 ![re-bulid](https://global.discourse-cdn.com/meta/original/3X/b/8/b895febca14692842f0ccc2ce52ec88b7fdfb0b1.JPG)

Please help

---

<div class="post-metadata">

### Author: ![schleifer](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/schleifer/32/86416_2.png) [@schleifer](https://meta.discourse.org/u/schleifer)
#### Post date: [April 10, 2018, 6:56pm UTC](https://meta.discourse.org/t/rebuild-fails-due-to-missing-gem/85009/2 "2018-04-10T18:56:31Z")

</div>

“scroll up and look for earlier error messages”

What do they say?

---

<div class="post-metadata">

### Author: ![Jay91](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jay91/32/135181_2.png) [@Jay91](https://meta.discourse.org/u/Jay91)
#### Post date: [April 10, 2018, 6:59pm UTC](https://meta.discourse.org/t/rebuild-fails-due-to-missing-gem/85009/3 "2018-04-10T18:59:34Z")

</div>

In fact am looking at hundreds lines of codes i cant locate the error !!

any suggestions?

---

<div class="post-metadata">

### Author: ![Jay91](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jay91/32/135181_2.png) [@Jay91](https://meta.discourse.org/u/Jay91)
#### Post date: [April 10, 2018, 7:19pm UTC](https://meta.discourse.org/t/rebuild-fails-due-to-missing-gem/85009/4 "2018-04-10T19:19:31Z")

</div>

I just log again to the server through putty and i can see something that says  
**156 packages can be updated**  
**70 updates are security updates**

I dont if this is useful

---

<div class="post-metadata">

### Author: ![bartv](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/bartv/32/130052_2.png) [@bartv](https://meta.discourse.org/u/bartv)
#### Post date: [April 10, 2018, 7:21pm UTC](https://meta.discourse.org/t/rebuild-fails-due-to-missing-gem/85009/5 "2018-04-10T19:21:15Z")

</div>

Do you need help getting your site back online, or help getting the plugin to work?

Here’s what I’d do:

- Getting the site online: remove the plugin from containers/app.yml and rebuild.
- Getting the plugin to work: make sure the plugin is current (and not made for an old version of Discourse), and ask the plugin author for help.

---

<div class="post-metadata">

### Author: ![Jay91](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jay91/32/135181_2.png) [@Jay91](https://meta.discourse.org/u/Jay91)
#### Post date: [April 10, 2018, 7:24pm UTC](https://meta.discourse.org/t/rebuild-fails-due-to-missing-gem/85009/6 "2018-04-10T19:24:27Z")

</div>

I need my website back online !  
i removed the plugin but am still getting the error same as i shared above, now my website is offline unfortunately.  
the rebuild is failing.

---

<div class="post-metadata">

### Author: ![supermathie](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/supermathie/32/507518_2.png) [@supermathie](https://meta.discourse.org/u/supermathie)
#### Post date: [April 10, 2018, 8:29pm UTC](https://meta.discourse.org/t/rebuild-fails-due-to-missing-gem/85009/8 "2018-04-10T20:29:06Z")

</div>

Instead of pasting pictures of text, I strongly recommend pasting the actual text logs so we can take a look at them.

---

<div class="post-metadata">

### Author: ![Jay91](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jay91/32/135181_2.png) [@Jay91](https://meta.discourse.org/u/Jay91)
#### Post date: [April 10, 2018, 8:31pm UTC](https://meta.discourse.org/t/rebuild-fails-due-to-missing-gem/85009/9 "2018-04-10T20:31:36Z")

</div>

This is something i dont know 😉😉 please direct me because Ctrl and C does other thing in putty

---

<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: [April 10, 2018, 8:41pm UTC](https://meta.discourse.org/t/rebuild-fails-due-to-missing-gem/85009/10 "2018-04-10T20:41:43Z")

</div>

What’s the output of the following?

```
df -h
du -hs /var/discourse/shared/standalone/p*

```

My guess is that you had a problem with upgrading postgres. And I guess further that the upgrade failed because you ran out of disk space. If that’s correct, and you’re on Digital Ocean, you need to

- add a volume big enough to hold 4X your database (you need 3X and a bit more to make the math less critical–500GB is \< ten cents an hour).
- move the database to the volume
- reconfigure app.yml to use the volume for the database
- run the upgrade
- move the database back to the (faster) SSD
- switch app.yml back to having data on SSD
- remove volume

I’m very busy this week and am losing all day Thursday to travel. If my assessment above is  
it’s an emergency and you want me to drop everything to fix it, I’ll do it for $600. You can pay for 4 hours of time [here](https://www.literatecomputing.com/product/discourse-support/). See [this page](https://www.literatecomputing.com/product/custom-install/) for instructions to install my ssh keys on your server.

You can email [support@literatecomputing.com](mailto:support@literatecomputing.com).

---

<div class="post-metadata">

### Author: ![Jay91](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jay91/32/135181_2.png) [@Jay91](https://meta.discourse.org/u/Jay91)
#### Post date: [April 10, 2018, 8:46pm UTC](https://meta.discourse.org/t/rebuild-fails-due-to-missing-gem/85009/11 "2018-04-10T20:46:14Z")

</div>

Sir,

Thanks for your reply, in fact am on vultr, and my website is new with 100 members and 120 posts only, i made a backup of my website few days ago and found its only 36MB, we are running on vultr with 2CPU and 4Gb ram and 60GB storage.

This is what i know until now.

---

<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: [April 10, 2018, 8:50pm UTC](https://meta.discourse.org/t/rebuild-fails-due-to-missing-gem/85009/12 "2018-04-10T20:50:37Z")

</div>

In that case, it should be much easier than I described. I’ll do it for half the previous offer. Email [support@literatecomputing.com](mailto:support@literatecomputing.com) for me to do it, or provide the full output of the rebuild so that someone else can help you.

---

<div class="post-metadata">

### Author: ![Jay91](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jay91/32/135181_2.png) [@Jay91](https://meta.discourse.org/u/Jay91)
#### Post date: [April 10, 2018, 9:09pm UTC](https://meta.discourse.org/t/rebuild-fails-due-to-missing-gem/85009/13 "2018-04-10T21:09:01Z")

</div>

Am trying to past the output but its long more than 40000 characters !!😥

---

<div class="post-metadata">

### Author: ![Jay91](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jay91/32/135181_2.png) [@Jay91](https://meta.discourse.org/u/Jay91)
#### Post date: [April 10, 2018, 9:29pm UTC](https://meta.discourse.org/t/rebuild-fails-due-to-missing-gem/85009/19 "2018-04-10T21:29:22Z")

</div>

```
I, [2018-04-10T20:54:58.729171 #14] INFO -- : > cd /var/www/discourse && su dis course -c 'bundle exec rake db:migrate'
rake aborted!
Gem::MissingSpecError: Could not find 'mime-types' (>= 1.6) among 260 total gem(s)
Checked in 'GEM_PATH=/var/www/discourse/vendor/bundle/ruby/2.4.0', execute `gem env` for more information
/var/www/discourse/lib/plugin_gem.rb:18:in `load'

```

The output as above.

Thanks in advance.

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [April 10, 2018, 9:54pm UTC](https://meta.discourse.org/t/rebuild-fails-due-to-missing-gem/85009/20 "2018-04-10T21:54:46Z")

</div>

Please use [pastebin.com](http://pastebin.com) or some other service for large pastes.. posting that much log content here is abusive.

All you need do is search for the word “error” in your log and copy out that plus 5 lines above and below, which I have done for you and edited your post.

---

<div class="post-metadata">

### Author: ![Jay91](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jay91/32/135181_2.png) [@Jay91](https://meta.discourse.org/u/Jay91)
#### Post date: [April 11, 2018, 5:41pm UTC](https://meta.discourse.org/t/rebuild-fails-due-to-missing-gem/85009/21 "2018-04-11T17:41:27Z")

</div>

Thank you so much, sorry for that.  
what i can do now to solve this problem ? please advice.

---

<div class="post-metadata">

### Author: ![Jay91](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jay91/32/135181_2.png) [@Jay91](https://meta.discourse.org/u/Jay91)
#### Post date: [April 11, 2018, 6:42pm UTC](https://meta.discourse.org/t/rebuild-fails-due-to-missing-gem/85009/22 "2018-04-11T18:42:35Z")

</div>

My website is down since yesterday, so please help me to fix it.

---

<div class="post-metadata">

### Author: ![dnsmichi](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/dnsmichi/32/379505_2.png) [@dnsmichi](https://meta.discourse.org/u/dnsmichi)
#### Post date: [April 11, 2018, 6:51pm UTC](https://meta.discourse.org/t/rebuild-fails-due-to-missing-gem/85009/23 "2018-04-11T18:51:43Z")

</div>

I’d be interested in your app.yml, especially which plugins you are adding to your discourse site.

---

<div class="post-metadata">

### Author: ![Jay91](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jay91/32/135181_2.png) [@Jay91](https://meta.discourse.org/u/Jay91)
#### Post date: [April 11, 2018, 6:55pm UTC](https://meta.discourse.org/t/rebuild-fails-due-to-missing-gem/85009/24 "2018-04-11T18:55:33Z")

</div>

```
## Plugins go here
## 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/discourse/discourse-solved.git

          - git clone https://github.com/discourse/discourse-adplugin.git

          - git clone https://github.com/berlindiamonds/discourse-sync-base.git

          - git clone https://github.com/berlindiamonds/discourse-sync-to-googledrive.git

```

the plugins

---

<div class="post-metadata">

### Author: ![dnsmichi](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/dnsmichi/32/379505_2.png) [@dnsmichi](https://meta.discourse.org/u/dnsmichi)
#### Post date: [April 11, 2018, 7:00pm UTC](https://meta.discourse.org/t/rebuild-fails-due-to-missing-gem/85009/25 "2018-04-11T19:00:44Z")

</div>

What happens on a rebuild if you comment out/remove the plugins one by one until only docker\_manager is left?

---

<div class="post-metadata">

### Author: ![Jay91](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jay91/32/135181_2.png) [@Jay91](https://meta.discourse.org/u/Jay91)
#### Post date: [April 11, 2018, 7:02pm UTC](https://meta.discourse.org/t/rebuild-fails-due-to-missing-gem/85009/26 "2018-04-11T19:02:47Z")

</div>

Lets try that…

[Next page](https://meta.discourse.org/t/rebuild-fails-due-to-missing-gem/85009.md?page=2)
