Solucionado (ver solução)
Solucionado
(ver solução)
2
respostas

Erro ao executar Rails Server

Olá,

Estou recebendo o seguinte erro quando tento executar o comando Rails Server:

=> Booting WEBrick
=> Rails 4.2.1 application starting in development on http://localhost:3000
=> Run `rails server -h` for more startup options
=> Ctrl-C to shutdown server
/home/joao/.rvm/gems/ruby-2.4.1/gems/activesupport-4.2.1/lib/active_support/core_ext/numeric/conversions.rb:121: warning: constant ::Fixnum is deprecated
/home/joao/.rvm/gems/ruby-2.4.1/gems/activesupport-4.2.1/lib/active_support/core_ext/numeric/conversions.rb:121: warning: constant ::Bignum is deprecated
Exiting
/home/joao/.rvm/gems/ruby-2.4.1/gems/activesupport-4.2.1/lib/active_support/core_ext/numeric/conversions.rb:124:in `block (2 levels) in <class:Numeric>': stack level too deep (SystemStackError)
    from /home/joao/.rvm/gems/ruby-2.4.1/gems/activesupport-4.2.1/lib/active_support/core_ext/numeric/conversions.rb:131:in `block (2 levels) in <class:Numeric>'
    from /home/joao/.rvm/gems/ruby-2.4.1/gems/activesupport-4.2.1/lib/active_support/core_ext/numeric/conversions.rb:131:in `block (2 levels) in <class:Numeric>'
    from /home/joao/.rvm/gems/ruby-2.4.1/gems/activesupport-4.2.1/lib/active_support/core_ext/numeric/conversions.rb:131:in `block (2 levels) in <class:Numeric>'
    from /home/joao/.rvm/gems/ruby-2.4.1/gems/activesupport-4.2.1/lib/active_support/core_ext/numeric/conversions.rb:131:in `block (2 levels) in <class:Numeric>'
    from /home/joao/.rvm/gems/ruby-2.4.1/gems/activesupport-4.2.1/lib/active_support/core_ext/numeric/conversions.rb:131:in `block (2 levels) in <class:Numeric>'
    from /home/joao/.rvm/gems/ruby-2.4.1/gems/activesupport-4.2.1/lib/active_support/core_ext/numeric/conversions.rb:131:in `block (2 levels) in <class:Numeric>'
    from /home/joao/.rvm/gems/ruby-2.4.1/gems/activesupport-4.2.1/lib/active_support/core_ext/numeric/conversions.rb:131:in `block (2 levels) in <class:Numeric>'
    from /home/joao/.rvm/gems/ruby-2.4.1/gems/activesupport-4.2.1/lib/active_support/core_ext/numeric/conversions.rb:131:in `block (2 levels) in <class:Numeric>'
     ... 4044 levels...
    from /home/joao/.rvm/gems/ruby-2.4.1/gems/railties-4.2.1/lib/rails/commands/commands_tasks.rb:39:in `run_command!'
    from /home/joao/.rvm/gems/ruby-2.4.1/gems/railties-4.2.1/lib/rails/commands.rb:17:in `<top (required)>'
    from bin/rails:4:in `require'
    from bin/rails:4:in `<main>'

Executei estou utilizando uma distro do linux construida sobre o Ubuntu 16.04.3 LTS

2 respostas
solução!

Consegui subir o rails server substituindo o gem 'rails', '4.2.1' para gem 'rails', '4.2.8' e rodando o comando bundle update rails.

Obrigada, João! Tive o mesmo problema e sua solução foi o que me salvou! :)