-
Notifications
You must be signed in to change notification settings - Fork 140
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
NoMemoryError during fae gem install #275
Comments
At first glance this seems like a system issue. Nothing get's executed from Fae on bundle so it should only be installing the source and linking the dependencies, so i can't see what would make Fae differ from other gems in this regard. Other people have reported similar issues on the Bundler and RubyGems projects, are both up to date? Is there anything else running on the server that is eating up memory? thanks |
Thanks for your reply, I'll investigate. |
I encountered this too and solved it by adding swap space to my system. |
If you have to add swap to the machine to get dependencies installed that means you have a memory issue. Try logging into the machine on two terminals and running htop/top to see how much memory is being used. This will tell you if you're running out of memory and what process is using it. Debian/Ubuntu: |
I have the same problem, same error, installing fae-rails 1.5.1 on a brand new install of Debian 9. Like I said it's a band new Debian 9 install, I upgraded the system and installed build libraries, imagemagick and magicwand, then built ruby and installed gems rails yarn webpacker bundler cancancan:2.0.0 psych
Mem: 1013064 87392 859060 |
@bondibox what command gave that memory and swap output? I want to make sure I'm converting it correctly. |
'free' |
@bondibox doing the conversion it shows you only have 1.01GB of RAM. After taking out the amount needed for basic OS functionality you're left with little for the compile steps to use. I would recommend doing installs and compiling on nothing less than 2GB of RAM. You can always bump it down later. If you want a human-friendly version of free use |
Basic OS functionality uses less than 10% of my 1GB RAM. That's 850+ MB physical and 190+ swap available for the install. I was able to compile Ruby, and install the rails and nokogiri gems with that memory. By all accounts FAE is supposed to be lightweight. If you look at the trace it never even makes it to the compile, this 3MB gem runs out of memory during 'extract'. |
@bondibox Is this happening on
|
Since this is happening during This is a commonly reported issue with bundler and other gems and the most common solution is to "add more swap". thanks |
Adding 4GB of swap fixed the issue on my VPS. Sorry for bothering you with this 🤦♂️ |
I am not using bundler. I am installing the gem directly. |
I tried to install fae on a server with 2 GB memory, and every time I get the following.
Can it be related to Fae itself? I never had any issue installing gems when I have 2 GB of RAM...
Backtrace
Environment
Bundler settings
Gemfile
Gemfile
Gemfile.lock
The text was updated successfully, but these errors were encountered: