Report this

What is the reason for this report?

Bundle install gets killed

Posted on September 30, 2016
Jan Werkhoven

By Jan Werkhoven

Software Engineer

Hello,

I have been following this tutorial on how to get started with Ruby on Rails:

https://www.digitalocean.com/community/tutorials/how-to-use-the-ruby-on-rails-one-click-application-on-digitalocean

But got stuck when running bundle install, the install gets killed halfway…

root@X:/home/rails/sample_tasks# bundle install
Don't run Bundler as root. Bundler can ask for sudo if it is needed, and installing your bundle as root will break this application for all non-root users on this machine.
Fetching gem metadata from https://rubygems.org/...........
Fetching version metadata from https://rubygems.org/...
Fetching dependency metadata from https://rubygems.org/..
Resolving dependencies...
Using rake 10.4.2
Using i18n 0.7.0
Using json 1.8.3
Using minitest 5.8.0
Using thread_safe 0.3.5
Using tzinfo 1.2.2
Using activesupport 4.2.1
Using builder 3.2.2
Using erubis 2.7.0
Using mini_portile 0.6.2
Killed

Any ideas on how to resolve?



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

It’s because you are running out of memory. Try adding more swap: https://www.digitalocean.com/community/articles/how-to-add-swap-on-ubuntu-12-04 Or bump up to a bigger droplet.

Great, bumping up to 1GB RAM resolved the issue. It was the gem nokogiri that broke the install. Thank you for your fast response!

Adding more swap was the correct answer! Thank you so much!

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.