Skip to content
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

Closed
Spone opened this issue Jul 18, 2017 · 13 comments
Closed

NoMemoryError during fae gem install #275

Spone opened this issue Jul 18, 2017 · 13 comments

Comments

@Spone
Copy link
Contributor

Spone commented Jul 18, 2017

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

$ bundle install -j $(nproc) --path vendor
Fetching gem metadata from https://rubygems.org/..........
Fetching version metadata from https://rubygems.org/..
Fetching dependency metadata from https://rubygems.org/.
Fetching rake 12.0.0
Installing rake 12.0.0
Fetching concurrent-ruby 1.0.5
Installing concurrent-ruby 1.0.5
Fetching i18n 0.8.6
Installing i18n 0.8.6
Fetching minitest 5.10.2
Installing minitest 5.10.2
Fetching thread_safe 0.3.6
Installing thread_safe 0.3.6
Fetching builder 3.2.3
Installing builder 3.2.3
Fetching erubi 1.6.1
Installing erubi 1.6.1
Fetching mini_portile2 2.2.0
Installing mini_portile2 2.2.0
Fetching rack 2.0.3
Installing rack 2.0.3
Fetching nio4r 2.1.0
Installing nio4r 2.1.0 with native extensions
Fetching websocket-extensions 0.1.2
Installing websocket-extensions 0.1.2
Fetching mime-types-data 3.2016.0521
Installing mime-types-data 3.2016.0521
Fetching arel 8.0.0
Installing arel 8.0.0
Fetching public_suffix 2.0.5
Installing public_suffix 2.0.5
Fetching bcrypt 3.1.11
Installing bcrypt 3.1.11 with native extensions
Fetching bindex 0.5.0
Installing bindex 0.5.0 with native extensions
Fetching browser 0.8.0
Installing browser 0.8.0
Using bundler 1.15.2
Fetching byebug 9.0.6
Installing byebug 9.0.6 with native extensions
Fetching json 2.1.0
Installing json 2.1.0 with native extensions
Fetching ffi 1.9.18
Installing ffi 1.9.18 with native extensions
Fetching orm_adapter 0.5.0
Installing orm_adapter 0.5.0
Fetching method_source 0.8.2
Installing method_source 0.8.2
Fetching thor 0.19.4
Installing thor 0.19.4
Fetching execjs 2.7.0
Installing execjs 2.7.0
Fetching remotipart 1.3.1
Installing remotipart 1.3.1
Fetching rmagick 2.13.4
Installing rmagick 2.13.4 with native extensions
Fetching rb-fsevent 0.10.2
Installing rb-fsevent 0.10.2
Fetching tilt 2.0.7
Installing tilt 2.0.7
Fetching temple 0.8.0
Installing temple 0.8.0
Fetching multi_json 1.12.1
Installing multi_json 1.12.1
Fetching ruby_dep 1.5.0
Installing ruby_dep 1.5.0
Fetching pg 0.21.0
Installing pg 0.21.0 with native extensions
Fetching puma 3.9.1
Installing puma 3.9.1 with native extensions
Fetching redcarpet 3.4.0
Installing redcarpet 3.4.0 with native extensions
Fetching rubyzip 1.2.1
Installing rubyzip 1.2.1
Fetching turbolinks-source 5.0.3
Installing turbolinks-source 5.0.3
Fetching tzinfo 1.2.3
Installing tzinfo 1.2.3
Fetching nokogiri 1.8.0
Installing nokogiri 1.8.0 with native extensions
Fetching rack-test 0.6.3
Installing rack-test 0.6.3
Fetching warden 1.2.7
Installing warden 1.2.7
Fetching sprockets 3.7.1
Installing sprockets 3.7.1
Fetching websocket-driver 0.6.5
Installing websocket-driver 0.6.5 with native extensions
Fetching mime-types 3.1
Installing mime-types 3.1
Fetching addressable 2.5.1
Installing addressable 2.5.1
Fetching childprocess 0.7.1
Installing childprocess 0.7.1
Fetching rb-inotify 0.9.10
Installing rb-inotify 0.9.10
Fetching uglifier 3.2.0
Installing uglifier 3.2.0
Fetching slim 3.0.8
Installing slim 3.0.8
Fetching turbolinks 5.0.1
Installing turbolinks 5.0.1
Fetching activesupport 5.1.2
Installing activesupport 5.1.2
Fetching loofah 2.0.3
Installing loofah 2.0.3
Fetching xpath 2.1.0
Installing xpath 2.1.0
Fetching mail 2.6.6
Installing mail 2.6.6
Fetching selenium-webdriver 3.4.4
Installing selenium-webdriver 3.4.4
Fetching sass-listen 4.0.0
Installing sass-listen 4.0.0
Fetching listen 3.1.5
Installing listen 3.1.5
Fetching rails-dom-testing 2.0.3
Installing rails-dom-testing 2.0.3
Fetching globalid 0.4.0
Installing globalid 0.4.0
Fetching activemodel 5.1.2
Installing activemodel 5.1.2
Fetching jbuilder 2.7.0
Installing jbuilder 2.7.0
Fetching spring 2.0.2
Installing spring 2.0.2
Fetching rails-html-sanitizer 1.0.3
Installing rails-html-sanitizer 1.0.3
Fetching capybara 2.14.4
Installing capybara 2.14.4
Fetching sass 3.5.1
Installing sass 3.5.1
Fetching activejob 5.1.2
Installing activejob 5.1.2
Fetching activerecord 5.1.2
Installing activerecord 5.1.2
Fetching carrierwave 0.10.0
Installing carrierwave 0.10.0
Fetching spring-watcher-listen 2.0.1
Installing spring-watcher-listen 2.0.1
Fetching actionview 5.1.2
Installing actionview 5.1.2
Fetching acts_as_list 0.9.7
Installing acts_as_list 0.9.7
Fetching actionpack 5.1.2
Installing actionpack 5.1.2
Fetching actioncable 5.1.2
Installing actioncable 5.1.2
Fetching actionmailer 5.1.2
Installing actionmailer 5.1.2
Fetching railties 5.1.2
Installing railties 5.1.2
Fetching sprockets-rails 3.2.0
Installing sprockets-rails 3.2.0
Fetching simple_form 3.5.0
Installing simple_form 3.5.0
Fetching kaminari 0.17.0
Installing kaminari 0.17.0
Fetching route_translator 5.4.1
Installing route_translator 5.4.1
Fetching responders 2.4.0
Installing responders 2.4.0
Fetching jquery-rails 4.3.1
Installing jquery-rails 4.3.1
Fetching jquery-ui-rails 4.2.1
Installing jquery-ui-rails 4.2.1
Fetching slim-rails 3.1.2
Installing slim-rails 3.1.2
Fetching web-console 3.5.1
Installing web-console 3.5.1
Fetching webpacker 2.0
Installing webpacker 2.0
Fetching rails 5.1.2
Installing rails 5.1.2
Fetching sass-rails 5.0.6
Installing sass-rails 5.0.6
Fetching devise 4.3.0
Installing devise 4.3.0
Fetching judge 2.1.1
Installing judge 2.1.1
Fetching mountain_view 0.11.0
Installing mountain_view 0.11.0
Fetching judge-simple_form 1.0.0
Installing judge-simple_form 1.0.0
Fetching fae-rails 1.5.1
Installing fae-rails 1.5.1

Backtrace

NoMemoryError: failed to allocate memory
  /usr/local/lib/ruby/site_ruby/2.4.0/rubygems/package/tar_reader/entry.rb:134:in `read'
  /usr/local/lib/ruby/site_ruby/2.4.0/rubygems/package/tar_reader/entry.rb:134:in `read'
  /usr/local/lib/ruby/site_ruby/2.4.0/rubygems/package.rb:384:in `block (3 levels) in extract_tar_gz'
  /usr/local/lib/ruby/site_ruby/2.4.0/rubygems/package.rb:383:in `open'
  /usr/local/lib/ruby/site_ruby/2.4.0/rubygems/package.rb:383:in `block (2 levels) in extract_tar_gz'
  /usr/local/lib/ruby/site_ruby/2.4.0/rubygems/package/tar_reader.rb:65:in `each'
  /usr/local/lib/ruby/site_ruby/2.4.0/rubygems/package.rb:365:in `block in extract_tar_gz'
  /usr/local/lib/ruby/site_ruby/2.4.0/rubygems/package.rb:459:in `block in open_tar_gz'
  /usr/local/lib/ruby/site_ruby/2.4.0/rubygems/package.rb:456:in `wrap'
  /usr/local/lib/ruby/site_ruby/2.4.0/rubygems/package.rb:456:in `open_tar_gz'
  /usr/local/lib/ruby/site_ruby/2.4.0/rubygems/package.rb:364:in `extract_tar_gz'
  /usr/local/lib/ruby/site_ruby/2.4.0/rubygems/package.rb:345:in `block (2 levels) in extract_files'
  /usr/local/lib/ruby/site_ruby/2.4.0/rubygems/package/tar_reader.rb:65:in `each'
  /usr/local/lib/ruby/site_ruby/2.4.0/rubygems/package.rb:342:in `block in extract_files'
  /usr/local/lib/ruby/site_ruby/2.4.0/rubygems/package/file_source.rb:30:in `open'
  /usr/local/lib/ruby/site_ruby/2.4.0/rubygems/package/file_source.rb:30:in `with_read_io'
  /usr/local/lib/ruby/site_ruby/2.4.0/rubygems/package.rb:339:in `extract_files'
  /usr/local/lib/ruby/site_ruby/2.4.0/rubygems/installer.rb:779:in `extract_files'
  /usr/local/lib/ruby/site_ruby/2.4.0/rubygems/installer.rb:302:in `install'
  /usr/local/bundle/gems/bundler-1.15.2/lib/bundler/source/rubygems.rb:145:in `block in install'
  /usr/local/bundle/gems/bundler-1.15.2/lib/bundler/rubygems_integration.rb:195:in `preserve_paths'
  /usr/local/bundle/gems/bundler-1.15.2/lib/bundler/source/rubygems.rb:135:in `install'
  /usr/local/bundle/gems/bundler-1.15.2/lib/bundler/installer/gem_installer.rb:55:in `install'
  /usr/local/bundle/gems/bundler-1.15.2/lib/bundler/installer/gem_installer.rb:15:in `install_from_spec'
  /usr/local/bundle/gems/bundler-1.15.2/lib/bundler/installer/parallel_installer.rb:115:in `block in worker_pool'
  /usr/local/bundle/gems/bundler-1.15.2/lib/bundler/worker.rb:63:in `apply_func'
  /usr/local/bundle/gems/bundler-1.15.2/lib/bundler/worker.rb:58:in `block in process_queue'
  /usr/local/bundle/gems/bundler-1.15.2/lib/bundler/worker.rb:55:in `loop'
  /usr/local/bundle/gems/bundler-1.15.2/lib/bundler/worker.rb:55:in `process_queue'
  /usr/local/bundle/gems/bundler-1.15.2/lib/bundler/worker.rb:89:in `block (2 levels) in create_threads'

Environment

Bundler   1.15.2
Rubygems  2.6.12
Ruby      2.4.1p111 (2017-03-22 revision 58053) [x86_64-linux]
GEM_HOME  /builds/eleuthera/eleutheratahiti.com/vendor/ruby/2.4.0
GEM_PATH  
Git       2.1.4
Platform  x86_64-linux
OpenSSL   OpenSSL 1.0.1t  3 May 2016

Bundler settings

path
  Set for your local app (/usr/local/bundle/config): "vendor"
  Set via BUNDLE_PATH: "/usr/local/bundle"
jobs
  Set for your local app (/usr/local/bundle/config): 2
disable_shared_gems
  Set for your local app (/usr/local/bundle/config): true
silence_root_warning
  Set via BUNDLE_SILENCE_ROOT_WARNING: true
app_config
  Set via BUNDLE_APP_CONFIG: "/usr/local/bundle"
bin
  Set via BUNDLE_BIN: "/usr/local/bundle/bin"

Gemfile

Gemfile

source 'https://rubygems.org'

git_source(:github) do |repo_name|
  repo_name = "#{repo_name}/#{repo_name}" unless repo_name.include?("/")
  "https://github.com/#{repo_name}.git"
end


# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
gem 'rails', '~> 5.1.1'
# Use postgresql as the database for Active Record
gem 'pg', '~> 0.18'
# Use Puma as the app server
gem 'puma', '~> 3.7'
# Use SCSS for stylesheets
gem 'sass-rails', '~> 5.0'
# Use Uglifier as compressor for JavaScript assets
gem 'uglifier', '>= 1.3.0'
# Transpile app-like JavaScript. Read more: https://github.com/rails/webpacker
gem 'webpacker'
# See https://github.com/rails/execjs#readme for more supported runtimes
# gem 'therubyracer', platforms: :ruby

# Turbolinks makes navigating your web application faster. Read more: https://github.com/turbolinks/turbolinks
gem 'turbolinks', '~> 5'
# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder
gem 'jbuilder', '~> 2.5'
# Use Redis adapter to run Action Cable in production
# gem 'redis', '~> 3.0'
# Use ActiveModel has_secure_password
# gem 'bcrypt', '~> 3.1.7'

# Use Capistrano for deployment
# gem 'capistrano-rails', group: :development

group :development, :test do
  # Call 'byebug' anywhere in the code to stop execution and get a debugger console
  gem 'byebug', platforms: [:mri, :mingw, :x64_mingw]
  # Adds support for Capybara system testing and selenium driver
  gem 'capybara', '~> 2.13'
  gem 'selenium-webdriver'
end

group :development do
  # Access an IRB console on exception pages or by using <%= console %> anywhere in the code.
  gem 'web-console', '>= 3.3.0'
  gem 'listen', '>= 3.0.5', '< 3.2'
  # Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring
  gem 'spring'
  gem 'spring-watcher-listen', '~> 2.0.0'
end

# Windows does not include zoneinfo files, so bundle the tzinfo-data gem
gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby]

# CMS
gem 'fae-rails'

# Slim and Markdown support
gem 'slim-rails'
gem 'redcarpet'

# I18n
gem 'route_translator'

# Styleguide
gem 'mountain_view'

Gemfile.lock

GEM
  remote: https://rubygems.org/
  specs:
    actioncable (5.1.2)
      actionpack (= 5.1.2)
      nio4r (~> 2.0)
      websocket-driver (~> 0.6.1)
    actionmailer (5.1.2)
      actionpack (= 5.1.2)
      actionview (= 5.1.2)
      activejob (= 5.1.2)
      mail (~> 2.5, >= 2.5.4)
      rails-dom-testing (~> 2.0)
    actionpack (5.1.2)
      actionview (= 5.1.2)
      activesupport (= 5.1.2)
      rack (~> 2.0)
      rack-test (~> 0.6.3)
      rails-dom-testing (~> 2.0)
      rails-html-sanitizer (~> 1.0, >= 1.0.2)
    actionview (5.1.2)
      activesupport (= 5.1.2)
      builder (~> 3.1)
      erubi (~> 1.4)
      rails-dom-testing (~> 2.0)
      rails-html-sanitizer (~> 1.0, >= 1.0.3)
    activejob (5.1.2)
      activesupport (= 5.1.2)
      globalid (>= 0.3.6)
    activemodel (5.1.2)
      activesupport (= 5.1.2)
    activerecord (5.1.2)
      activemodel (= 5.1.2)
      activesupport (= 5.1.2)
      arel (~> 8.0)
    activesupport (5.1.2)
      concurrent-ruby (~> 1.0, >= 1.0.2)
      i18n (~> 0.7)
      minitest (~> 5.1)
      tzinfo (~> 1.1)
    acts_as_list (0.9.7)
      activerecord (>= 3.0)
    addressable (2.5.1)
      public_suffix (~> 2.0, >= 2.0.2)
    arel (8.0.0)
    bcrypt (3.1.11)
    bindex (0.5.0)
    browser (0.8.0)
    builder (3.2.3)
    byebug (9.0.6)
    capybara (2.14.4)
      addressable
      mime-types (>= 1.16)
      nokogiri (>= 1.3.3)
      rack (>= 1.0.0)
      rack-test (>= 0.5.4)
      xpath (~> 2.0)
    carrierwave (0.10.0)
      activemodel (>= 3.2.0)
      activesupport (>= 3.2.0)
      json (>= 1.7)
      mime-types (>= 1.16)
    childprocess (0.7.1)
      ffi (~> 1.0, >= 1.0.11)
    concurrent-ruby (1.0.5)
    devise (4.3.0)
      bcrypt (~> 3.0)
      orm_adapter (~> 0.1)
      railties (>= 4.1.0, < 5.2)
      responders
      warden (~> 1.2.3)
    erubi (1.6.1)
    execjs (2.7.0)
    fae-rails (1.5.1)
      acts_as_list (~> 0.9.0)
      browser (~> 0.8.0)
      carrierwave (~> 0.10.0)
      devise (>= 3.4.1)
      jquery-rails (>= 3.1.1)
      jquery-ui-rails (~> 4.2.1)
      judge (~> 2.1.1)
      judge-simple_form (~> 1.0.0)
      kaminari (~> 0.17.0)
      rails (>= 4.1)
      remotipart (~> 1.3.1)
      rmagick (~> 2.13.3)
      sass (>= 3.4.0)
      sass-rails (>= 5.0.3)
      simple_form (>= 3.1.0)
      slim
      uglifier
    ffi (1.9.18)
    globalid (0.4.0)
      activesupport (>= 4.2.0)
    i18n (0.8.6)
    jbuilder (2.7.0)
      activesupport (>= 4.2.0)
      multi_json (>= 1.2)
    jquery-rails (4.3.1)
      rails-dom-testing (>= 1, < 3)
      railties (>= 4.2.0)
      thor (>= 0.14, < 2.0)
    jquery-ui-rails (4.2.1)
      railties (>= 3.2.16)
    json (2.1.0)
    judge (2.1.1)
      rails (>= 3.1)
    judge-simple_form (1.0.0)
      judge (~> 2.0)
      simple_form (>= 2.0)
    kaminari (0.17.0)
      actionpack (>= 3.0.0)
      activesupport (>= 3.0.0)
    listen (3.1.5)
      rb-fsevent (~> 0.9, >= 0.9.4)
      rb-inotify (~> 0.9, >= 0.9.7)
      ruby_dep (~> 1.2)
    loofah (2.0.3)
      nokogiri (>= 1.5.9)
    mail (2.6.6)
      mime-types (>= 1.16, < 4)
    method_source (0.8.2)
    mime-types (3.1)
      mime-types-data (~> 3.2015)
    mime-types-data (3.2016.0521)
    mini_portile2 (2.2.0)
    minitest (5.10.2)
    mountain_view (0.11.0)
      rails (>= 3.2.0)
    multi_json (1.12.1)
    nio4r (2.1.0)
    nokogiri (1.8.0)
      mini_portile2 (~> 2.2.0)
    orm_adapter (0.5.0)
    pg (0.21.0)
    public_suffix (2.0.5)
    puma (3.9.1)
    rack (2.0.3)
    rack-test (0.6.3)
      rack (>= 1.0)
    rails (5.1.2)
      actioncable (= 5.1.2)
      actionmailer (= 5.1.2)
      actionpack (= 5.1.2)
      actionview (= 5.1.2)
      activejob (= 5.1.2)
      activemodel (= 5.1.2)
      activerecord (= 5.1.2)
      activesupport (= 5.1.2)
      bundler (>= 1.3.0, < 2.0)
      railties (= 5.1.2)
      sprockets-rails (>= 2.0.0)
    rails-dom-testing (2.0.3)
      activesupport (>= 4.2.0)
      nokogiri (>= 1.6)
    rails-html-sanitizer (1.0.3)
      loofah (~> 2.0)
    railties (5.1.2)
      actionpack (= 5.1.2)
      activesupport (= 5.1.2)
      method_source
      rake (>= 0.8.7)
      thor (>= 0.18.1, < 2.0)
    rake (12.0.0)
    rb-fsevent (0.10.2)
    rb-inotify (0.9.10)
      ffi (>= 0.5.0, < 2)
    redcarpet (3.4.0)
    remotipart (1.3.1)
    responders (2.4.0)
      actionpack (>= 4.2.0, < 5.3)
      railties (>= 4.2.0, < 5.3)
    rmagick (2.13.4)
    route_translator (5.4.1)
      actionpack (>= 5.0.0.1, < 5.2)
      activesupport (>= 5.0.0.1, < 5.2)
    ruby_dep (1.5.0)
    rubyzip (1.2.1)
    sass (3.5.1)
      sass-listen (~> 4.0.0)
    sass-listen (4.0.0)
      rb-fsevent (~> 0.9, >= 0.9.4)
      rb-inotify (~> 0.9, >= 0.9.7)
    sass-rails (5.0.6)
      railties (>= 4.0.0, < 6)
      sass (~> 3.1)
      sprockets (>= 2.8, < 4.0)
      sprockets-rails (>= 2.0, < 4.0)
      tilt (>= 1.1, < 3)
    selenium-webdriver (3.4.4)
      childprocess (~> 0.5)
      rubyzip (~> 1.0)
    simple_form (3.5.0)
      actionpack (> 4, < 5.2)
      activemodel (> 4, < 5.2)
    slim (3.0.8)
      temple (>= 0.7.6, < 0.9)
      tilt (>= 1.3.3, < 2.1)
    slim-rails (3.1.2)
      actionpack (>= 3.1)
      railties (>= 3.1)
      slim (~> 3.0)
    spring (2.0.2)
      activesupport (>= 4.2)
    spring-watcher-listen (2.0.1)
      listen (>= 2.7, < 4.0)
      spring (>= 1.2, < 3.0)
    sprockets (3.7.1)
      concurrent-ruby (~> 1.0)
      rack (> 1, < 3)
    sprockets-rails (3.2.0)
      actionpack (>= 4.0)
      activesupport (>= 4.0)
      sprockets (>= 3.0.0)
    temple (0.8.0)
    thor (0.19.4)
    thread_safe (0.3.6)
    tilt (2.0.7)
    turbolinks (5.0.1)
      turbolinks-source (~> 5)
    turbolinks-source (5.0.3)
    tzinfo (1.2.3)
      thread_safe (~> 0.1)
    uglifier (3.2.0)
      execjs (>= 0.3.0, < 3)
    warden (1.2.7)
      rack (>= 1.0)
    web-console (3.5.1)
      actionview (>= 5.0)
      activemodel (>= 5.0)
      bindex (>= 0.4.0)
      railties (>= 5.0)
    webpacker (2.0)
      activesupport (>= 4.2)
      multi_json (~> 1.2)
      railties (>= 4.2)
    websocket-driver (0.6.5)
      websocket-extensions (>= 0.1.0)
    websocket-extensions (0.1.2)
    xpath (2.1.0)
      nokogiri (~> 1.3)

PLATFORMS
  ruby

DEPENDENCIES
  byebug
  capybara (~> 2.13)
  fae-rails
  jbuilder (~> 2.5)
  listen (>= 3.0.5, < 3.2)
  mountain_view
  pg (~> 0.18)
  puma (~> 3.7)
  rails (~> 5.1.1)
  redcarpet
  route_translator
  sass-rails (~> 5.0)
  selenium-webdriver
  slim-rails
  spring
  spring-watcher-listen (~> 2.0.0)
  turbolinks (~> 5)
  tzinfo-data
  uglifier (>= 1.3.0)
  web-console (>= 3.3.0)
  webpacker

BUNDLED WITH
   1.15.1
@jamesmk
Copy link
Member

jamesmk commented Jul 22, 2017

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

@Spone
Copy link
Contributor Author

Spone commented Jul 22, 2017

Thanks for your reply, I'll investigate.

@rilla
Copy link

rilla commented Jul 22, 2017

I encountered this too and solved it by adding swap space to my system.

@cpitkin
Copy link
Contributor

cpitkin commented Jul 23, 2017

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: sudo install htop
RHEL/CentOS: yum install htop (if you have the rpm forge source installed)

@cpitkin cpitkin mentioned this issue Aug 7, 2017
@bondibox
Copy link

bondibox commented Aug 7, 2017

I have the same problem, same error, installing fae-rails 1.5.1 on a brand new install of Debian 9.
Rubygems 2.6.11
Ruby 2.4.1p111 (2017-03-22 revision 58053) [x86_64-linux]
Platform x86_64-linux

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

          total        used        free   

Mem: 1013064 87392 859060
Swap: 262140 67680 194460

@cpitkin
Copy link
Contributor

cpitkin commented Aug 7, 2017

@bondibox what command gave that memory and swap output? I want to make sure I'm converting it correctly.

@bondibox
Copy link

bondibox commented Aug 8, 2017

'free'

@cpitkin
Copy link
Contributor

cpitkin commented Aug 8, 2017

@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 free -h.

Conversion from DuckDuckGo

@bondibox
Copy link

bondibox commented Aug 9, 2017

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'.

@jamesmk
Copy link
Member

jamesmk commented Aug 9, 2017

@bondibox Is this happening on bundle install? Can you install the gem via:

gem install fae-rails -v 1.5.1

@jamesmk
Copy link
Member

jamesmk commented Aug 12, 2017

Since this is happening during bundle install I don't think there's anyway we can effect it within this gem. The command is downloading and extracting the gem locally, no Fae code or tasks are being run.

This is a commonly reported issue with bundler and other gems and the most common solution is to "add more swap".

thanks

@jamesmk jamesmk closed this as completed Aug 12, 2017
@Spone
Copy link
Contributor Author

Spone commented Aug 12, 2017

Adding 4GB of swap fixed the issue on my VPS. Sorry for bothering you with this 🤦‍♂️

@bondibox
Copy link

I am not using bundler. I am installing the gem directly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants