capistrano fails for rails application

  • Posted on December 30, 2014
  • navjeetcAsked by Navjeet

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 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/

Is it a lack of memory issue or something else?

My droplet is

Show comments

Submit an answer

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!

Sign In or Sign Up to Answer

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.

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.

This comment has been deleted