Я только что перенес свой старый проект Rails из c9.io в AWS Cloud9, после миграции я запустил
bundle install
, и он работает нормально, но потом, когда я попытался запустить:
rake db:migrate
произошла эта ошибка:
/ home / ec2-user / .rvm / gems / ruby-2.6.0 / gems / activesupport-4.2.5 / lib / active_support / core_ext / numeric / conversions.rb: 131: в блоке block (2 levels) in <class:Numeric>'
/home/ec2-user/.rvm/gems/ruby-2.6.0/gems/activesupport-4.2.5/lib/active_support/core_ext/numeric/conversions.rb:131:in
(2 уровня) в '/home/ec2-user/.rvm/gems/ruby-2.6.0/gems/activesupport-4.2.5 / lib / active_support / core_ext / numeric / conversions.rb: 131: в блоке block (2 levels) in <class:Numeric>'
/home/ec2-user/.rvm/gems/ruby-2.6.0/gems/activesupport-4.2.5/lib/active_support/core_ext/numeric/conversions.rb:131:in
(2 уровня) в '/home/ec2-user/.rvm/gems/ruby-2.6.0/gems/activesupport-4.2.5/lib/active_support/core_ext/numeric/conversions.rb:131:in block (2 levels) in <class:Numeric>'
/home/ec2-user/.rvm/gems/ruby-2.6.0/gems/activesupport-4.2.5/lib/active_support/core_ext/numeric/conversions.rb:131:in
блок (2 уровня) в /home/ec2-user/.rvm/gems/ruby-2.6.0/gems / activesupport-4.2.5 / lib / active_support / core_ext / numeric / conversions.rb: 131: в блоке block (2 levels) in <class:Numeric>'
/home/ec2-user/.rvm/gems/ruby-2.6.0/gems/activesupport-4.2.5/lib/active_support/core_ext/numeric/conversions.rb:131:in
(2 уровня) в '/home/ec2-user/.rvm/gems/ruby-2.6.0/gems/activesupport-4.2.5/lib/active_support/core_ext/numeric/conversions.rb:131:in block (2 levels) in <class:Numeric>'
/home/ec2-user/.rvm/gems/ruby-2.6.0/gems/activesupport-4.2.5/lib/active_support/core_ext/numeric/conversions.rb:131:in
блок (2 уровня) в /home/ec2-user/.rvm/gems / ruby-2.6.0 / gems / activesupport-4.2.5 / lib / active_support / core_ext / numeric / conversions.rb: 131: в блоке block (2 levels) in <class:Numeric>'
/home/ec2-user/.rvm/gems/ruby-2.6.0/gems/activesupport-4.2.5/lib/active_support/core_ext/numeric/conversions.rb:131:in
(2 уровня) в '/home/ec2-user/.rvm/gems/ruby-2.6.0/gems/activesupport-4.2.5/lib/active_support/core_ext/numeric/conversions.rb:131:in block (2 levels) in <class:Numeric>'
/home/ec2-user/.rvm/gems/ruby-2.6.0/gems/activesupport-4.2.5/lib/active_support/core_ext/numeric/conversions.rb:131:in
блок (2 уровня) в '/ home / ec2-user /.rvm / gems / ruby-2.6.0 / gems / activesupport-4.2.5 / lib / active_support / core_ext / numeric / conversions.rb: 131: в блоке block (2 levels) in <class:Numeric>'
/home/ec2-user/.rvm/gems/ruby-2.6.0/gems/activesupport-4.2.5/lib/active_support/core_ext/numeric/conversions.rb:131:in
(2 уровня) в '/ home / ec2-user /.rvm / gems / ruby-2.6.0 / gems / activesupport-4.2.5 / lib / active_support / core_ext / numeric / conversions.rb: 131: в блоке block (2 levels) in <class:Numeric>'
/home/ec2-user/.rvm/gems/ruby-2.6.0/gems/activesupport-4.2.5/lib/active_support/core_ext/numeric/conversions.rb:131:in
(2 уровня) в '/ home / ec2-user/.rvm/gems/ruby-2.6.0/gems/activesupport-4.2.5/lib/active_support/core_ext/numeric/conversions.rb:131:in block (2 levels) in <class:Numeric>'
/home/ec2-user/.rvm/gems/ruby-2.6.0/gems/activesupport-4.2.5/lib/active_support/core_ext/numeric/conversions.rb:131:in
блок (2 уровня) в '/ home / ec2-пользователь / .rvm / gems / ruby-2.6.0 / gems / activesupport-4.2.5 / lib / active_support / core_ext / numeric / conversions.rb: 131: в блоке block (2 levels) in <class:Numeric>'
/home/ec2-user/.rvm/gems/ruby-2.6.0/gems/activesupport-4.2.5/lib/active_support/core_ext/numeric/conversions.rb:131:in
(2 уровня) в '/ home / ec2-user / .rvm / gems / ruby-2.6.0 / gems / activesupport-4.2.5 / lib / active_support / core_ext / numeric / conversions.rb: 131: в блоке block (2 levels) in <class:Numeric>'
/home/ec2-user/.rvm/gems/ruby-2.6.0/gems/activesupport-4.2.5/lib/active_support/core_ext/numeric/conversions.rb:131:in
(2 уровня) в '/home/ec2-user/.rvm/gems/ruby-2.6.0/gems/activesupport-4.2.5/lib/active_support/core_ext/numeric/conversions.rb:131:in block (2 levels) in <class:Numeric>'
/home/ec2-user/.rvm/gems/ruby-2.6.0/gems/activesupport-4.2.5/lib/active_support/core_ext/numeric/conversions.rb:131:in
блок (2уровни) в блоке '/home/ec2-user/.rvm/gems/ruby-2.6.0/gems/activesupport-4.2.5/lib/active_support/core_ext/numeric/conversions.rb:131:in block (2 levels) in <class:Numeric>'
/home/ec2-user/.rvm/gems/ruby-2.6.0/gems/activesupport-4.2.5/lib/active_support/core_ext/numeric/conversions.rb:131:in
(2 уровня) в блоке '/home/ec2-user/.rvm/gems/ruby-2.6.0/gems/activesupport-4.2.5/lib/active_support/core_ext/numeric/conversions.rb:131:in block (2 levels) in <class:Numeric>'
/home/ec2-user/.rvm/gems/ruby-2.6.0/gems/activesupport-4.2.5/lib/active_support/core_ext/numeric/conversions.rb:131:in
(2 уровня) в /home/ec2-user/.rvm/gems/ruby-2.6.0/gems/activesupport-4.2.5/lib/active_support/core_ext/numeric/conversions.rb:131:in block (2 levels) in <class:Numeric>'
/home/ec2-user/.rvm/gems/ruby-2.6.0/gems/activesupport-4.2.5/lib/active_support/core_ext/numeric/conversions.rb:131:in
блок (2 уровня) в /home/ec2-user/.rvm/gems/ruby-2.6.0/gems/activesupport-4.2.5/lib/active_support/core_ext/numeric/conversions.rb:131:in block (2 levels) in <class:Numeric>'
/home/ec2-user/.rvm/gems/ruby-2.6.0/gems/activesupport-4.2.5/lib/active_support/core_ext/numeric/conversions.rb:131:in
блок (2 уровня) в /home/ec2-user/.rvm/gems/ruby-2.6.0/gems/activesupport-4.2.5/lib/active_support/core_ext/numeric/conversions.rb:131:in block (2 levels) in <class:Numeric>'
/home/ec2-user/.rvm/gems/ruby-2.6.0/gems/activesupport-4.2.5/lib/active_support/core_ext/numeric/conversions.rb:131:in
блок (2 уровня) в /home/ec2-user/.rvm/gems/ruby-2.6.0/gems/activesupport-4.2.5/lib/active_support/core_ext/numeric/conversions.rb: 131: в блоке block (2 levels) in <class:Numeric>'
/home/ec2-user/.rvm/gems/ruby-2.6.0/gems/activesupport-4.2.5/lib/active_support/core_ext/numeric/conversions.rb:131:in
(2 уровня) в /home/ec2-user/.rvm/gems/ruby-2.6.0/gems/activesupport-4.2.5/lib/active_support/core_ext/numeric/conversions.rb: 131: в блоке block (2 levels) in <class:Numeric>'
/home/ec2-user/.rvm/gems/ruby-2.6.0/gems/activesupport-4.2.5/lib/active_support/core_ext/numeric/conversions.rb:131:in
(2 уровня) в /home/ec2-user/.rvm/gems/ruby-2.6.0/gems/activesupport-4.2.5/lib/active_support/core_ext/numeric/conversions.rb: 131: в блоке block (2 levels) in <class:Numeric>'
/home/ec2-user/.rvm/gems/ruby-2.6.0/gems/activesupport-4.2.5/lib/active_support/core_ext/numeric/conversions.rb:131:in
(2 уровня) в /home/ec2-user/.rvm/gems/ruby-2.6.0/gems/activesupport-4.2.5/lib/active_support/core_ext/numeric/conversions.rb: 131: в block (2 levels) in <class:Numeric>'
/home/ec2-user/.rvm/gems/ruby-2.6.0/gems/activesupport-4.2.5/lib/active_support/core_ext/numeric/conversions.rb:131:in
блоке (2 уровня) в /home/ec2-user/.rvm/gems/ruby-2.6.0/gems/activesupport-4.2.5/lib/active_support/core_ext/numeric/conversions.rb:131:in block (2 levels) in <class:Numeric>'
/home/ec2-user/.rvm/gems/ruby-2.6.0/gems/activesupport-4.2.5/lib/active_support/cache/strategy/local_cache.rb:138:in
local_cache_key '/home/ec2-user/.rvm/gems/ruby-2.6.0/gems/activesupport-4.2.5/lib/active_support/cache/strategy/local_cache.rb: 74: в middleware'
/home/ec2-user/.rvm/gems/ruby-2.6.0/gems/railties-4.2.5/lib/rails/application/bootstrap.rb:79:in
блоке в /home/ec2-user/.rvm/gems/ruby-2.6.0/gems/railties-4.2.5/lib/rails/initializable.rb:30:in instance_exec'
/home/ec2-user/.rvm/gems/ruby-2.6.0/gems/railties-4.2.5/lib/rails/initializable.rb:30:in
бежать'/home/ec2-user/.rvm/gems/ruby-2.6.0/gems/railties-4.2.5/lib/rails/initializable.rb:55:in
block in run_initializers'
/home/ec2-user/.rvm/gems/ruby-2.6.0/gems/railties-4.2.5/lib/rails/initializable.rb:54:in
run_initializers'
/home/ec2-user/.rvm/gems/ruby-2.6.0/gems/railties-4.2.5/lib/rails/application.rb:352:in
initialize!' /home/ec2-user/environment/config/environment.rb:5:in
/home/ec2-user/.rvm/gems/ruby-2.6.0/gems/activesupport-4.2.5/lib/active_support/dependencies.rb:274:in require'
/home/ec2-user/.rvm/gems/ruby-2.6.0/gems/activesupport-4.2.5/lib/active_support/dependencies.rb:274:in
блокировать по требованию '
/home/ec2-user/.rvm/gems/ruby-2.6.0/gems/activesupport-4.2.5/lib/active_support/dependencies.rb:240:in load_dependency'
/home/ec2-user/.rvm/gems/ruby-2.6.0/gems/activesupport-4.2.5/lib/active_support/dependencies.rb:274:in
require '
/home/ec2-user/.rvm/gems/ruby-2.6.0/gems/railties-4.2.5/lib/rails/application.rb:328:in
require_environment!'
/home/ec2-user/.rvm/gems/ruby-2.6.0/gems/railties-4.2.5/lib/rails/application.rb:457:in
блок в задачах run_tasks_blocks: TOP => db: migrate => окружение
(Смотрите полную трассировку, запустив задачу с --trace)
Кто-нибудь знает, как решить эту проблему?