Hello i am fairly new to rails and i have a rails app which use to run normally before, recently when i am trying to to command rails s on my machine it throws me method_missing': undefined method web_console' error. I am totally lost. here is the log
rails s
=> Booting Puma
=> Rails 5.0.7 application starting in development on http://localhost:3000
=> Run `rails server -h` for more startup options
Exiting
/Users/mohammedsayerwala/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/railties-5.0.7/lib/rails/railtie/configuration.rb:95:in `method_missing': undefined method `web_console' for #<Rails::Application::Configuration:0x007fa04bb518f8> (NoMethodError)
Did you mean? console
from /Users/mohammedsayerwala/Documents/Aqua/config/environments/development.rb:24:in `block in <top (required)>'
from /Users/mohammedsayerwala/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/railties-5.0.7/lib/rails/railtie.rb:209:in `instance_eval'
from /Users/mohammedsayerwala/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/railties-5.0.7/lib/rails/railtie.rb:209:in `configure'
from /Users/mohammedsayerwala/Documents/Aqua/config/environments/development.rb:1:in `<top (required)>'
from /Users/mohammedsayerwala/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/activesupport-5.0.7/lib/active_support/dependencies.rb:293:in `require'
from /Users/mohammedsayerwala/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/activesupport-5.0.7/lib/active_support/dependencies.rb:293:in `block in require'
from /Users/mohammedsayerwala/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/activesupport-5.0.7/lib/active_support/dependencies.rb:259:in `load_dependency'
from /Users/mohammedsayerwala/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/activesupport-5.0.7/lib/active_support/dependencies.rb:293:in `require'
from /Users/mohammedsayerwala/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/railties-5.0.7/lib/rails/engine.rb:600:in `block (2 levels) in <class:Engine>'
from /Users/mohammedsayerwala/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/railties-5.0.7/lib/rails/engine.rb:599:in `each'
from /Users/mohammedsayerwala/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/railties-5.0.7/lib/rails/engine.rb:599:in `block in <class:Engine>'
from /Users/mohammedsayerwala/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/railties-5.0.7/lib/rails/initializable.rb:30:in `instance_exec'
from /Users/mohammedsayerwala/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/railties-5.0.7/lib/rails/initializable.rb:30:in `run'
from /Users/mohammedsayerwala/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/railties-5.0.7/lib/rails/initializable.rb:55:in `block in run_initializers'
from /Users/mohammedsayerwala/.rbenv/versions/2.4.0/lib/ruby/2.4.0/tsort.rb:228:in `block in tsort_each'
from /Users/mohammedsayerwala/.rbenv/versions/2.4.0/lib/ruby/2.4.0/tsort.rb:350:in `block (2 levels) in each_strongly_connected_component'
from /Users/mohammedsayerwala/.rbenv/versions/2.4.0/lib/ruby/2.4.0/tsort.rb:422:in `block (2 levels) in each_strongly_connected_component_from'
from /Users/mohammedsayerwala/.rbenv/versions/2.4.0/lib/ruby/2.4.0/tsort.rb:431:in `each_strongly_connected_component_from'
from /Users/mohammedsayerwala/.rbenv/versions/2.4.0/lib/ruby/2.4.0/tsort.rb:421:in `block in each_strongly_connected_component_from'
from /Users/mohammedsayerwala/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/railties-5.0.7/lib/rails/initializable.rb:44:in `each'
from /Users/mohammedsayerwala/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/railties-5.0.7/lib/rails/initializable.rb:44:in `tsort_each_child'
from /Users/mohammedsayerwala/.rbenv/versions/2.4.0/lib/ruby/2.4.0/tsort.rb:415:in `call'
from /Users/mohammedsayerwala/.rbenv/versions/2.4.0/lib/ruby/2.4.0/tsort.rb:415:in `each_strongly_connected_component_from'
from /Users/mohammedsayerwala/.rbenv/versions/2.4.0/lib/ruby/2.4.0/tsort.rb:349:in `block in each_strongly_connected_component'
from /Users/mohammedsayerwala/.rbenv/versions/2.4.0/lib/ruby/2.4.0/tsort.rb:347:in `each'
from /Users/mohammedsayerwala/.rbenv/versions/2.4.0/lib/ruby/2.4.0/tsort.rb:347:in `call'
from /Users/mohammedsayerwala/.rbenv/versions/2.4.0/lib/ruby/2.4.0/tsort.rb:347:in `each_strongly_connected_component'
from /Users/mohammedsayerwala/.rbenv/versions/2.4.0/lib/ruby/2.4.0/tsort.rb:226:in `tsort_each'
from /Users/mohammedsayerwala/.rbenv/versions/2.4.0/lib/ruby/2.4.0/tsort.rb:205:in `tsort_each'
from /Users/mohammedsayerwala/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/railties-5.0.7/lib/rails/initializable.rb:54:in `run_initializers'
from /Users/mohammedsayerwala/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/railties-5.0.7/lib/rails/application.rb:352:in `initialize!'
from /Users/mohammedsayerwala/Documents/Aqua/config/environment.rb:5:in `<top (required)>'
from /Users/mohammedsayerwala/Documents/Aqua/config.ru:3:in `require_relative'
from /Users/mohammedsayerwala/Documents/Aqua/config.ru:3:in `block in <main>'
from /Users/mohammedsayerwala/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/rack-2.0.5/lib/rack/builder.rb:55:in `instance_eval'
from /Users/mohammedsayerwala/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/rack-2.0.5/lib/rack/builder.rb:55:in `initialize'
from /Users/mohammedsayerwala/Documents/Aqua/config.ru:in `new'
from /Users/mohammedsayerwala/Documents/Aqua/config.ru:in `<main>'
from /Users/mohammedsayerwala/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/rack-2.0.5/lib/rack/builder.rb:49:in `eval'
from /Users/mohammedsayerwala/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/rack-2.0.5/lib/rack/builder.rb:49:in `new_from_string'
from /Users/mohammedsayerwala/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/rack-2.0.5/lib/rack/builder.rb:40:in `parse_file'
from /Users/mohammedsayerwala/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/rack-2.0.5/lib/rack/server.rb:319:in `build_app_and_options_from_config'
from /Users/mohammedsayerwala/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/rack-2.0.5/lib/rack/server.rb:219:in `app'
from /Users/mohammedsayerwala/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/railties-5.0.7/lib/rails/commands/server.rb:84:in `app'
from /Users/mohammedsayerwala/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/rack-2.0.5/lib/rack/server.rb:354:in `wrapped_app'
from /Users/mohammedsayerwala/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/railties-5.0.7/lib/rails/commands/server.rb:148:in `log_to_stdout'
from /Users/mohammedsayerwala/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/railties-5.0.7/lib/rails/commands/server.rb:102:in `start'
from /Users/mohammedsayerwala/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/railties-5.0.7/lib/rails/commands/commands_tasks.rb:90:in `block in server'
from /Users/mohammedsayerwala/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/railties-5.0.7/lib/rails/commands/commands_tasks.rb:85:in `tap'
from /Users/mohammedsayerwala/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/railties-5.0.7/lib/rails/commands/commands_tasks.rb:85:in `server'
from /Users/mohammedsayerwala/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/railties-5.0.7/lib/rails/commands/commands_tasks.rb:49:in `run_command!'
from /Users/mohammedsayerwala/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/railties-5.0.7/lib/rails/commands.rb:18:in `<top (required)>'
from /Users/mohammedsayerwala/Documents/Aqua/bin/rails:9:in `require'
from /Users/mohammedsayerwala/Documents/Aqua/bin/rails:9:in `<top (required)>'
from /Users/mohammedsayerwala/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/spring-2.0.2/lib/spring/client/rails.rb:28:in `load'
from /Users/mohammedsayerwala/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/spring-2.0.2/lib/spring/client/rails.rb:28:in `call'
from /Users/mohammedsayerwala/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/spring-2.0.2/lib/spring/client/command.rb:7:in `call'
from /Users/mohammedsayerwala/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/spring-2.0.2/lib/spring/client.rb:30:in `run'
from /Users/mohammedsayerwala/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/spring-2.0.2/bin/spring:49:in `<top (required)>'
from /Users/mohammedsayerwala/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/spring-2.0.2/lib/spring/binstub.rb:31:in `load'
from /Users/mohammedsayerwala/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/spring-2.0.2/lib/spring/binstub.rb:31:in `<top (required)>'
from /Users/mohammedsayerwala/.rbenv/versions/2.4.0/lib/ruby/2.4.0/rubygems/core_ext/kernel_require.rb:68:in `require'
from /Users/mohammedsayerwala/.rbenv/versions/2.4.0/lib/ruby/2.4.0/rubygems/core_ext/kernel_require.rb:68:in `require'
from /Users/mohammedsayerwala/Documents/Aqua/bin/spring:14:in `<top (required)>'
from bin/rails:3:in `load'
from bin/rails:3:in `<main>'
I am using rails 5.0.7 version and ruby 2.4.0
i tried doing spring stop and even commenting the spring gem inside the gemfile but nothing worked.
Thanks for the help in advance
I have solved the issue, though i was using the new backup directory i had the rsa key in ssh-add because of capistrano previous deployment try's once i removed that and tried to run it things ran normally
I am facing a little problem... I was about to start some Kata exercices on Exercism.io
and when I run the tests i have a Gem:ConflictError
/Users/john/.rbenv/versions/2.4.1/lib/ruby/site_ruby/2.4.0/rubygems/specification.rb:2325:in `raise_if_conflicts': Unable to activate railties-5.1.4, because activesupport-5.1.5 conflicts with activesupport (= 5.1.4) (Gem::ConflictError)
from /Users/john/.rbenv/versions/2.4.1/lib/ruby/site_ruby/2.4.0/rubygems/specification.rb:1438:in `activate'
from /Users/john/.rbenv/versions/2.4.1/lib/ruby/site_ruby/2.4.0/rubygems.rb:224:in `rescue in try_activate'
from /Users/john/.rbenv/versions/2.4.1/lib/ruby/site_ruby/2.4.0/rubygems.rb:217:in `try_activate'
from /Users/john/.rbenv/versions/2.4.1/lib/ruby/site_ruby/2.4.0/rubygems/core_ext/kernel_require.rb:128:in `rescue in require'
from /Users/john/.rbenv/versions/2.4.1/lib/ruby/site_ruby/2.4.0/rubygems/core_ext/kernel_require.rb:40:in `require'
from /Users/john/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/railties-5.1.4/lib/minitest/rails_plugin.rb:2:in `<top (required)>'
from /Users/john/.rbenv/versions/2.4.1/lib/ruby/site_ruby/2.4.0/rubygems/core_ext/kernel_require.rb:59:in `require'
from /Users/john/.rbenv/versions/2.4.1/lib/ruby/site_ruby/2.4.0/rubygems/core_ext/kernel_require.rb:59:in `require'
from /Users/john/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.11.3/lib/minitest.rb:98:in `block in load_plugins'
from /Users/john/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.11.3/lib/minitest.rb:92:in `each'
from /Users/john/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.11.3/lib/minitest.rb:92:in `load_plugins'
from /Users/john/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.11.3/lib/minitest.rb:121:in `run'
from /Users/john/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.11.3/lib/minitest.rb:63:in `block in autorun'
I am not sure what to do...
gem update railties fixed this for me
Am installing fedena on windows 10. My ruby version is 1.9.3 and gem version is 1.8.29 and rails version 2.3.5. When I run the command it gives out the following output. Am new to Ruby any suggestions as to how I can solve this?
C:\fedena>rake db:create
rake aborted!
Could not find test-unit (= 1.2.3) amongst [actionmailer-2.3.5, actionpack-2.3.5, activerecord-2.3.5, activeresource-2.3
.5, activesupport-2.3.5, bigdecimal-1.1.0, i18n-0.4.0, io-console-0.3, json-1.5.5, minitest-2.5.1, mysql-2.9.1-x86-mingw
32, prawn-0.6.3, prawn-core-0.6.3, prawn-format-0.2.3, prawn-layout-0.3.2, prawn-security-0.1.1, rack-1.0.1, rails-2.3.5
, rake-0.9.2.2, rdoc-4.2.2, rdoc-3.9.5, rubytest-0.8.1, test-1.0.0]
(See full trace by running task with --trace)
C:\fedena>rake db:create --trace
rake aborted!
Could not find test-unit (= 1.2.3) amongst [actionmailer-2.3.5, actionpack-2.3.5, activerecord-2.3.5, activeresource-2.3
.5, activesupport-2.3.5, bigdecimal-1.1.0, i18n-0.4.0, io-console-0.3, json-1.5.5, minitest-2.5.1, mysql-2.9.1-x86-mingw
32, prawn-0.6.3, prawn-core-0.6.3, prawn-format-0.2.3, prawn-layout-0.3.2, prawn-security-0.1.1, rack-1.0.1, rails-2.3.5
, rake-0.9.2.2, rdoc-4.2.2, rdoc-3.9.5]
C:/Ruby193/lib/ruby/site_ruby/1.9.1/rubygems/dependency.rb:247:in `to_specs'
C:/Ruby193/lib/ruby/site_ruby/1.9.1/rubygems/dependency.rb:256:in `to_spec'
C:/Ruby193/lib/ruby/site_ruby/1.9.1/rubygems.rb:1231:in `gem'
C:/fedena/lib/tasks/rspec.rake:1:in `<top (required)>'
C:/Ruby193/lib/ruby/gems/1.9.1/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:145:in `load'
C:/Ruby193/lib/ruby/gems/1.9.1/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:145:in `block in load_with_ne
w_constant_marking'
C:/Ruby193/lib/ruby/gems/1.9.1/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:521:in `new_constants_in'
C:/Ruby193/lib/ruby/gems/1.9.1/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:145:in `load_with_new_constan
t_marking'
C:/Ruby193/lib/ruby/gems/1.9.1/gems/rails-2.3.5/lib/tasks/rails.rb:9:in `block in <top (required)>'
C:/Ruby193/lib/ruby/gems/1.9.1/gems/rails-2.3.5/lib/tasks/rails.rb:9:in `each'
C:/Ruby193/lib/ruby/gems/1.9.1/gems/rails-2.3.5/lib/tasks/rails.rb:9:in `<top (required)>'
C:/Ruby193/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:60:in `require'
C:/Ruby193/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:60:in `rescue in require'
C:/Ruby193/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:35:in `require'
C:/fedena/Rakefile:10:in `<top (required)>'
C:/Ruby193/lib/ruby/1.9.1/rake/rake_module.rb:25:in `load'
C:/Ruby193/lib/ruby/1.9.1/rake/rake_module.rb:25:in `load_rakefile'
C:/Ruby193/lib/ruby/1.9.1/rake/application.rb:501:in `raw_load_rakefile'
C:/Ruby193/lib/ruby/1.9.1/rake/application.rb:82:in `block in load_rakefile'
C:/Ruby193/lib/ruby/1.9.1/rake/application.rb:133:in `standard_exception_handling'
C:/Ruby193/lib/ruby/1.9.1/rake/application.rb:81:in `load_rakefile'
C:/Ruby193/lib/ruby/1.9.1/rake/application.rb:65:in `block in run'
C:/Ruby193/lib/ruby/1.9.1/rake/application.rb:133:in `standard_exception_handling'
C:/Ruby193/lib/ruby/1.9.1/rake/application.rb:63:in `run'
C:/Ruby193/bin/rake:32:in `<main>'
The application you are trying install is written in ruby 1.8.7 and you are trying to run on ruby 1.9
Use this guide for installing fedena
I have problem with mysql2 gem after upgrading my Gitlab to version 7.0 here is my error log what can i do to fix it?
I, [2014-06-24T06:49:07.574760 #18301] INFO -- : Refreshing Gem list
/home/git/gitlab/vendor/bundle/ruby/2.0.0/gems/activerecord-4.1.1/lib/active_record/connection_adapters/connection_specification.rb:190:in `rescue in spec': Specified 'mysql2' for database adapter, but the gem is not loaded. Add `gem 'mysql2'` to your Gemfile (and ensure its version is at the minimum required by ActiveRecord). (Gem::LoadError)
from /home/git/gitlab/vendor/bundle/ruby/2.0.0/gems/activerecord-4.1.1/lib/active_record/connection_adapters/connection_specification.rb:187:in `spec'
from /home/git/gitlab/vendor/bundle/ruby/2.0.0/gems/activerecord-4.1.1/lib/active_record/connection_handling.rb:50:in `establish_connection'
from /home/git/gitlab/vendor/bundle/ruby/2.0.0/gems/activerecord-4.1.1/lib/active_record/railtie.rb:129:in `block (2 levels) in <class:Railtie>'
from /home/git/gitlab/vendor/bundle/ruby/2.0.0/gems/activesupport-4.1.1/lib/active_support/lazy_load_hooks.rb:38:in `instance_eval'
from /home/git/gitlab/vendor/bundle/ruby/2.0.0/gems/activesupport-4.1.1/lib/active_support/lazy_load_hooks.rb:38:in `execute_hook'
from /home/git/gitlab/vendor/bundle/ruby/2.0.0/gems/activesupport-4.1.1/lib/active_support/lazy_load_hooks.rb:28:in `block in on_load'
from /home/git/gitlab/vendor/bundle/ruby/2.0.0/gems/activesupport-4.1.1/lib/active_support/lazy_load_hooks.rb:27:in `each'
from /home/git/gitlab/vendor/bundle/ruby/2.0.0/gems/activesupport-4.1.1/lib/active_support/lazy_load_hooks.rb:27:in `on_load'
from /home/git/gitlab/vendor/bundle/ruby/2.0.0/gems/activerecord-4.1.1/lib/active_record/railtie.rb:118:in `block in <class:Railtie>'
from /home/git/gitlab/vendor/bundle/ruby/2.0.0/gems/railties-4.1.1/lib/rails/initializable.rb:30:in `instance_exec'
from /home/git/gitlab/vendor/bundle/ruby/2.0.0/gems/railties-4.1.1/lib/rails/initializable.rb:30:in `run'
from /home/git/gitlab/vendor/bundle/ruby/2.0.0/gems/railties-4.1.1/lib/rails/initializable.rb:55:in `block in run_initializers'
from /usr/local/lib/ruby/2.0.0/tsort.rb:150:in `block in tsort_each'
from /usr/local/lib/ruby/2.0.0/tsort.rb:183:in `block (2 levels) in each_strongly_connected_component'
from /usr/local/lib/ruby/2.0.0/tsort.rb:219:in `each_strongly_connected_component_from'
from /usr/local/lib/ruby/2.0.0/tsort.rb:182:in `block in each_strongly_connected_component'
from /usr/local/lib/ruby/2.0.0/tsort.rb:180:in `each'
from /usr/local/lib/ruby/2.0.0/tsort.rb:180:in `each_strongly_connected_component'
from /usr/local/lib/ruby/2.0.0/tsort.rb:148:in `tsort_each'
from /home/git/gitlab/vendor/bundle/ruby/2.0.0/gems/railties-4.1.1/lib/rails/initializable.rb:54:in `run_initializers'
from /home/git/gitlab/vendor/bundle/ruby/2.0.0/gems/railties-4.1.1/lib/rails/application.rb:288:in `initialize!'
from /home/git/gitlab/vendor/bundle/ruby/2.0.0/gems/railties-4.1.1/lib/rails/railtie.rb:194:in `public_send'
from /home/git/gitlab/vendor/bundle/ruby/2.0.0/gems/railties-4.1.1/lib/rails/railtie.rb:194:in `method_missing'
from /home/git/gitlab/config/environment.rb:5:in `<top (required)>'
from config.ru:13:in `require'
from config.ru:13:in `block in <main>'
from /home/git/gitlab/vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/builder.rb:55:in `instance_eval'
from /home/git/gitlab/vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/builder.rb:55:in `initialize'
from config.ru:1:in `new'
from config.ru:1:in `<main>'
from /home/git/gitlab/vendor/bundle/ruby/2.0.0/gems/unicorn-4.6.3/lib/unicorn.rb:48:in `eval'
from /home/git/gitlab/vendor/bundle/ruby/2.0.0/gems/unicorn-4.6.3/lib/unicorn.rb:48:in `block in builder'
from /home/git/gitlab/vendor/bundle/ruby/2.0.0/gems/unicorn-4.6.3/bin/unicorn_rails:139:in `call'
from /home/git/gitlab/vendor/bundle/ruby/2.0.0/gems/unicorn-4.6.3/bin/unicorn_rails:139:in `block in rails_builder'
from /home/git/gitlab/vendor/bundle/ruby/2.0.0/gems/unicorn-4.6.3/lib/unicorn/http_server.rb:722:in `call'
from /home/git/gitlab/vendor/bundle/ruby/2.0.0/gems/unicorn-4.6.3/lib/unicorn/http_server.rb:722:in `build_app!'
from /home/git/gitlab/vendor/bundle/ruby/2.0.0/gems/unicorn-4.6.3/lib/unicorn/http_server.rb:140:in `start'
from /home/git/gitlab/vendor/bundle/ruby/2.0.0/gems/unicorn-4.6.3/bin/unicorn_rails:209:in `<top (required)>'
from /home/git/gitlab/vendor/bundle/ruby/2.0.0/bin/unicorn_rails:23:in `load'
from /home/git/gitlab/vendor/bundle/ruby/2.0.0/bin/unicorn_rails:23:in `<main>'
You'll have to bundle install your updated dependencies.
bundle install --deployment --without development test postgres aws
This will install the mysql2 gem and others. Have a look at their awesome documentation: https://gitlab.com/gitlab-org/gitlab-ce/blob/master/doc/install/installation.md
I'm using MongoMapper with Padrino, and I'm having trouble with executing any padrino tasks. I get this error for nearly every tasks.
ethan#tardis:/var/www/sakura$ padrino rake -T
=> Executing Rake -T ...
/home/ethan/.rvm/gems/ruby-1.9.2-head/gems/mongo_mapper-0.8.6/lib/mongo_mapper/plugins/modifiers.rb:19:in `set': undefined method `each' for "StandardFormBuilder":String (NoMethodError)
from /home/ethan/.rvm/gems/ruby-1.9.2-head/gems/padrino-helpers-0.9.29/lib/padrino-helpers.rb:33:in `registered'
from /home/ethan/.rvm/gems/ruby-1.9.2-head/gems/sinatra-1.2.6/lib/sinatra/base.rb:1200:in `block in register'
from /home/ethan/.rvm/gems/ruby-1.9.2-head/gems/sinatra-1.2.6/lib/sinatra/base.rb:1198:in `each'
from /home/ethan/.rvm/gems/ruby-1.9.2-head/gems/sinatra-1.2.6/lib/sinatra/base.rb:1198:in `register'
from /var/www/sakura/app/app.rb:3:in `<class:Sakura>'
from /var/www/sakura/app/app.rb:1:in `<top (required)>'
from /home/ethan/.rvm/gems/ruby-1.9.2-head/gems/padrino-core-0.9.29/lib/padrino-core/reloader.rb:128:in `require'
from /home/ethan/.rvm/gems/ruby-1.9.2-head/gems/padrino-core-0.9.29/lib/padrino-core/reloader.rb:128:in `safe_load'
from /home/ethan/.rvm/gems/ruby-1.9.2-head/gems/padrino-core-0.9.29/lib/padrino-core/loader.rb:140:in `block in require_dependencies'
from /home/ethan/.rvm/gems/ruby-1.9.2-head/gems/padrino-core-0.9.29/lib/padrino-core/loader.rb:138:in `each'
from /home/ethan/.rvm/gems/ruby-1.9.2-head/gems/padrino-core-0.9.29/lib/padrino-core/loader.rb:138:in `require_dependencies'
from /home/ethan/.rvm/gems/ruby-1.9.2-head/gems/padrino-core-0.9.29/lib/padrino-core/mounter.rb:125:in `locate_app_object'
from /home/ethan/.rvm/gems/ruby-1.9.2-head/gems/padrino-core-0.9.29/lib/padrino-core/mounter.rb:21:in `initialize'
from /home/ethan/.rvm/gems/ruby-1.9.2-head/gems/padrino-core-0.9.29/lib/padrino-core/mounter.rb:189:in `new'
from /home/ethan/.rvm/gems/ruby-1.9.2-head/gems/padrino-core-0.9.29/lib/padrino-core/mounter.rb:189:in `mount'
from /var/www/sakura/config/apps.rb:34:in `<top (required)>'
from /home/ethan/.rvm/gems/ruby-1.9.2-head/gems/padrino-core-0.9.29/lib/padrino-core/reloader.rb:128:in `require'
from /home/ethan/.rvm/gems/ruby-1.9.2-head/gems/padrino-core-0.9.29/lib/padrino-core/reloader.rb:128:in `safe_load'
from /home/ethan/.rvm/gems/ruby-1.9.2-head/gems/padrino-core-0.9.29/lib/padrino-core/loader.rb:140:in `block in require_dependencies'
from /home/ethan/.rvm/gems/ruby-1.9.2-head/gems/padrino-core-0.9.29/lib/padrino-core/loader.rb:138:in `each'
from /home/ethan/.rvm/gems/ruby-1.9.2-head/gems/padrino-core-0.9.29/lib/padrino-core/loader.rb:138:in `require_dependencies'
from /home/ethan/.rvm/gems/ruby-1.9.2-head/gems/padrino-core-0.9.29/lib/padrino-core/loader.rb:56:in `block in load!'
from /home/ethan/.rvm/gems/ruby-1.9.2-head/gems/padrino-core-0.9.29/lib/padrino-core/loader.rb:56:in `each'
from /home/ethan/.rvm/gems/ruby-1.9.2-head/gems/padrino-core-0.9.29/lib/padrino-core/loader.rb:56:in `load!'
from /var/www/sakura/config/boot.rb:29:in `<top (required)>'
from /home/ethan/.rvm/rubies/ruby-1.9.2-head/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:55:in `require'
from /home/ethan/.rvm/rubies/ruby-1.9.2-head/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:55:in `require'
from /home/ethan/.rvm/gems/ruby-1.9.2-head/gems/padrino-core-0.9.29/lib/padrino-core/cli/base.rb:51:in `block in rake'
from /home/ethan/.rvm/gems/ruby-1.9.2-head/gems/padrino-core-0.9.29/lib/padrino-core/cli/base.rb:130:in `capture'
from /home/ethan/.rvm/gems/ruby-1.9.2-head/gems/padrino-core-0.9.29/lib/padrino-core/cli/base.rb:51:in `rake'
from /home/ethan/.rvm/gems/ruby-1.9.2-head/gems/thor-0.14.6/lib/thor/task.rb:22:in `run'
from /home/ethan/.rvm/gems/ruby-1.9.2-head/gems/thor-0.14.6/lib/thor/invocation.rb:118:in `invoke_task'
from /home/ethan/.rvm/gems/ruby-1.9.2-head/gems/thor-0.14.6/lib/thor.rb:263:in `dispatch'
from /home/ethan/.rvm/gems/ruby-1.9.2-head/gems/thor-0.14.6/lib/thor/base.rb:389:in `start'
from /home/ethan/.rvm/gems/ruby-1.9.2-head/gems/padrino-core-0.9.29/bin/padrino:8:in `<top (required)>'
from /home/ethan/.rvm/gems/ruby-1.9.2-head/bin/padrino:19:in `load'
from /home/ethan/.rvm/gems/ruby-1.9.2-head/bin/padrino:19:in `<main>'
I tried this with multiple Ruby versions, with similar results. Is this an error with Sinatra, MongoMapper, or what?
Seems a problem with ActiveSupport.
In your gemfile add:
gem "mongo_mapper", "~> 0.9.1"