Capistrano - "Unable to allocate memory - git" on deployment

I am deploying new code with Capistrano and I got this error message:

Cannot allocate memory - git
 ** [out :: IP] (
 ** [out :: IP] Errno::ENOMEM
 ** [out :: IP] )
 ** [out :: IP]

      

I tried to uninstall old versions but it didn't help. What caused this error and how can I get rid of it?

Thanks for your time in advance.

+3


source to share


2 answers


It looks like your server is running out of memory. Check your free memory with any use (I prefer top

). You may not be able to stop your ruby ​​processes after redeploying



+1


source


In the end, it turned out that I needed to increase the amount of RAM on my server. I used to use the swap file, now it didn't work for me.



I also tried deleting some files from the application which I no longer need (CSV files are around 50-200 MB), but that didn't help either.

-1


source







All Articles