Report this

What is the reason for this report?

capistrano fails for rails application

Posted on December 30, 2014

Capistrano deploy tasks keep failing giving the following error:

Tasks: TOP => deploy:assets:precompile (See full trace by running task with --trace) The deploy has failed with an error: Exception while executing as rails@demo.anakhsoft.com: rake exit status: 1 rake stdout: Nothing written rake stderr: rake aborted! Errno::ENOMEM: Cannot allocate memory - nodejs (in /home/rails/releases/20141230062531/app/assets/javascripts/active_admin.js.coffee)

Is it a lack of memory issue or something else?

My droplet is 104.236.118.121



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.

This comment has been deleted

Thanks for clarifying the error message.

Glad to hear you got it working! The error:

Errno::ENOMEM: Cannot allocate memory

indeed means that you ran out of memory. Precompiling assets can take a lot of memory. Adding a swap file is a great way to allow yourself a little extra room without needing to scale up the whole server.

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.