Jump to content
wanderson Luan

maquina virtual, com problema.

Recommended Posts

olá pessoal, estou com um problema, na minha maquina virtual, pois quando levanto a aplicação, não sobe para a web, com o localhost:3000.

 

e ele está criando um erro gigantesco, e saindo quando dou o comando rails s -b 0.0.0.0 no meu terminal. nesse caso estou usando o "foreman start".

vagrant@precise32:/vagrant/escamboapp$ foreman start
18:11:26 web.1  | started with pid 7947
18:11:57 web.1  | /home/vagrant/.rvm/gems/ruby-2.3.4/gems/activerecord-4.2.5/lib/active_record/dynamic_matchers.rb:26:in `method_missing': undefined method `devise' for Install (call 'Install.connection' to establish a connection):Class (NoMethodError)
18:11:57 web.1  |       from /vagrant/escamboapp/app/models/install.rb:4:in `<class:Install>'
18:11:57 web.1  |       from /vagrant/escamboapp/app/models/install.rb:1:in `<top (required)>'
18:11:57 web.1  |       from /home/vagrant/.rvm/gems/ruby-2.3.4/gems/activesupport-4.2.5/lib/active_support/dependencies.rb:457:in `load'
18:11:57 web.1  |       from /home/vagrant/.rvm/gems/ruby-2.3.4/gems/activesupport-4.2.5/lib/active_support/dependencies.rb:457:in `block in load_file'
18:11:57 web.1  |       from /home/vagrant/.rvm/gems/ruby-2.3.4/gems/activesupport-4.2.5/lib/active_support/dependencies.rb:647:in `new_constants_in'
18:11:57 web.1  |       from /home/vagrant/.rvm/gems/ruby-2.3.4/gems/activesupport-4.2.5/lib/active_support/dependencies.rb:456:in `load_file'
18:11:57 web.1  |       from /home/vagrant/.rvm/gems/ruby-2.3.4/gems/activesupport-4.2.5/lib/active_support/dependencies.rb:354:in `require_or_load'
18:11:57 web.1  |       from /home/vagrant/.rvm/gems/ruby-2.3.4/gems/activesupport-4.2.5/lib/active_support/dependencies.rb:494:in `load_missing_constant'
18:11:57 web.1  |       from /home/vagrant/.rvm/gems/ruby-2.3.4/gems/activesupport-4.2.5/lib/active_support/dependencies.rb:184:in `const_missing'
18:11:57 web.1  |       from /home/vagrant/.rvm/gems/ruby-2.3.4/gems/activesupport-4.2.5/lib/active_support/inflector/methods.rb:261:in `const_get'
18:11:57 web.1  |       from /home/vagrant/.rvm/gems/ruby-2.3.4/gems/activesupport-4.2.5/lib/active_support/inflector/methods.rb:261:in `block in constantize'
18:11:57 web.1  |       from /home/vagrant/.rvm/gems/ruby-2.3.4/gems/activesupport-4.2.5/lib/active_support/inflector/methods.rb:259:in `each'
18:11:57 web.1  |       from /home/vagrant/.rvm/gems/ruby-2.3.4/gems/activesupport-4.2.5/lib/active_support/inflector/methods.rb:259:in `inject'
18:11:57 web.1  |       from /home/vagrant/.rvm/gems/ruby-2.3.4/gems/activesupport-4.2.5/lib/active_support/inflector/methods.rb:259:in `constantize'
18:11:57 web.1  |       from /home/vagrant/.rvm/gems/ruby-2.3.4/gems/activesupport-4.2.5/lib/active_support/dependencies.rb:566:in `get'
18:11:57 web.1  |       from /home/vagrant/.rvm/gems/ruby-2.3.4/gems/activesupport-4.2.5/lib/active_support/dependencies.rb:597:in `constantize'
18:11:57 web.1  |       from /home/vagrant/.rvm/gems/ruby-2.3.4/gems/devise-4.3.0/lib/devise.rb:313:in `get'
18:11:57 web.1  |       from /home/vagrant/.rvm/gems/ruby-2.3.4/gems/devise-4.3.0/lib/devise/mapping.rb:81:in `to'
18:11:57 web.1  |       from /home/vagrant/.rvm/gems/ruby-2.3.4/gems/devise-4.3.0/lib/devise/mapping.rb:76:in `modules'
18:11:57 web.1  |       from /home/vagrant/.rvm/gems/ruby-2.3.4/gems/devise-4.3.0/lib/devise/mapping.rb:93:in `routes'
18:11:57 web.1  |       from /home/vagrant/.rvm/gems/ruby-2.3.4/gems/devise-4.3.0/lib/devise/mapping.rb:160:in `default_used_route'
18:11:57 web.1  |       from /home/vagrant/.rvm/gems/ruby-2.3.4/gems/devise-4.3.0/lib/devise/mapping.rb:70:in `initialize'
18:11:57 web.1  |       from /home/vagrant/.rvm/gems/ruby-2.3.4/gems/devise-4.3.0/lib/devise.rb:343:in `new'
18:11:57 web.1  |       from /home/vagrant/.rvm/gems/ruby-2.3.4/gems/devise-4.3.0/lib/devise.rb:343:in `add_mapping'
18:11:57 web.1  |       from /home/vagrant/.rvm/gems/ruby-2.3.4/gems/devise-4.3.0/lib/devise/rails/routes.rb:241:in `block in devise_for'
18:11:57 web.1  |       from /home/vagrant/.rvm/gems/ruby-2.3.4/gems/devise-4.3.0/lib/devise/rails/routes.rb:240:in `each'
18:11:57 web.1  |       from /home/vagrant/.rvm/gems/ruby-2.3.4/gems/devise-4.3.0/lib/devise/rails/routes.rb:240:in `devise_for'
18:11:57 web.1  |       from /vagrant/escamboapp/config/routes.rb:2:in `block in <top (required)>'
18:11:57 web.1  |       from /home/vagrant/.rvm/gems/ruby-2.3.4/gems/actionpack-4.2.5/lib/action_dispatch/routing/route_set.rb:434:in `instance_exec'
18:11:57 web.1  |       from /home/vagrant/.rvm/gems/ruby-2.3.4/gems/actionpack-4.2.5/lib/action_dispatch/routing/route_set.rb:434:in `eval_block'
18:11:57 web.1  |       from /home/vagrant/.rvm/gems/ruby-2.3.4/gems/actionpack-4.2.5/lib/action_dispatch/routing/route_set.rb:412:in `draw'
18:11:57 web.1  |       from /vagrant/escamboapp/config/routes.rb:1:in `<top (required)>'
18:11:57 web.1  |       from /home/vagrant/.rvm/gems/ruby-2.3.4/gems/activesupport-4.2.5/lib/active_support/dependencies.rb:268:in `load'
18:11:57 web.1  |       from /home/vagrant/.rvm/gems/ruby-2.3.4/gems/activesupport-4.2.5/lib/active_support/dependencies.rb:268:in `block in load'
18:11:57 web.1  |       from /home/vagrant/.rvm/gems/ruby-2.3.4/gems/activesupport-4.2.5/lib/active_support/dependencies.rb:240:in `load_dependency'
18:11:57 web.1  |       from /home/vagrant/.rvm/gems/ruby-2.3.4/gems/activesupport-4.2.5/lib/active_support/dependencies.rb:268:in `load'
18:11:57 web.1  |       from /home/vagrant/.rvm/gems/ruby-2.3.4/gems/railties-4.2.5/lib/rails/application/routes_reloader.rb:40:in `block in load_paths'
18:11:57 web.1  |       from /home/vagrant/.rvm/gems/ruby-2.3.4/gems/railties-4.2.5/lib/rails/application/routes_reloader.rb:40:in `each'
18:11:57 web.1  |       from /home/vagrant/.rvm/gems/ruby-2.3.4/gems/railties-4.2.5/lib/rails/application/routes_reloader.rb:40:in `load_paths'
18:11:57 web.1  |       from /home/vagrant/.rvm/gems/ruby-2.3.4/gems/railties-4.2.5/lib/rails/application/routes_reloader.rb:16:in `reload!'
18:11:57 web.1  |       from /home/vagrant/.rvm/gems/ruby-2.3.4/gems/railties-4.2.5/lib/rails/application/routes_reloader.rb:26:in `block in updater'
18:11:57 web.1  |       from /home/vagrant/.rvm/gems/ruby-2.3.4/gems/activesupport-4.2.5/lib/active_support/file_update_checker.rb:75:in `execute'
18:11:57 web.1  |       from /home/vagrant/.rvm/gems/ruby-2.3.4/gems/railties-4.2.5/lib/rails/application/routes_reloader.rb:27:in `updater'
18:11:57 web.1  |       from /home/vagrant/.rvm/gems/ruby-2.3.4/gems/railties-4.2.5/lib/rails/application/routes_reloader.rb:7:in `execute_if_updated'
18:11:57 web.1  |       from /home/vagrant/.rvm/gems/ruby-2.3.4/gems/railties-4.2.5/lib/rails/application/finisher.rb:69:in `block in <module:Finisher>'
18:11:57 web.1  |       from /home/vagrant/.rvm/gems/ruby-2.3.4/gems/railties-4.2.5/lib/rails/initializable.rb:30:in `instance_exec'
18:11:57 web.1  |       from /home/vagrant/.rvm/gems/ruby-2.3.4/gems/railties-4.2.5/lib/rails/initializable.rb:30:in `run'
18:11:57 web.1  |       from /home/vagrant/.rvm/gems/ruby-2.3.4/gems/railties-4.2.5/lib/rails/initializable.rb:55:in `block in run_initializers'
18:11:57 web.1  |       from /usr/share/ruby-rvm/rubies/ruby-2.3.4/lib/ruby/2.3.0/tsort.rb:228:in `block in tsort_each'
18:11:57 web.1  |       from /usr/share/ruby-rvm/rubies/ruby-2.3.4/lib/ruby/2.3.0/tsort.rb:350:in `block (2 levels) in each_strongly_connected_component'
18:11:57 web.1  |       from /usr/share/ruby-rvm/rubies/ruby-2.3.4/lib/ruby/2.3.0/tsort.rb:431:in `each_strongly_connected_component_from'
18:11:57 web.1  |       from /usr/share/ruby-rvm/rubies/ruby-2.3.4/lib/ruby/2.3.0/tsort.rb:349:in `block in each_strongly_connected_component'
18:11:57 web.1  |       from /usr/share/ruby-rvm/rubies/ruby-2.3.4/lib/ruby/2.3.0/tsort.rb:347:in `each'
18:11:57 web.1  |       from /usr/share/ruby-rvm/rubies/ruby-2.3.4/lib/ruby/2.3.0/tsort.rb:347:in `call'
18:11:57 web.1  |       from /usr/share/ruby-rvm/rubies/ruby-2.3.4/lib/ruby/2.3.0/tsort.rb:347:in `each_strongly_connected_component'
18:11:57 web.1  |       from /usr/share/ruby-rvm/rubies/ruby-2.3.4/lib/ruby/2.3.0/tsort.rb:226:in `tsort_each'
18:11:57 web.1  |       from /usr/share/ruby-rvm/rubies/ruby-2.3.4/lib/ruby/2.3.0/tsort.rb:205:in `tsort_each'
18:11:57 web.1  |       from /home/vagrant/.rvm/gems/ruby-2.3.4/gems/railties-4.2.5/lib/rails/initializable.rb:54:in `run_initializers'
18:11:57 web.1  |       from /home/vagrant/.rvm/gems/ruby-2.3.4/gems/railties-4.2.5/lib/rails/application.rb:352:in `initialize!'
18:11:57 web.1  |       from /vagrant/escamboapp/config/environment.rb:5:in `<top (required)>'
18:11:57 web.1  |       from /home/vagrant/.rvm/gems/ruby-2.3.4/gems/activesupport-4.2.5/lib/active_support/dependencies.rb:274:in `require'
18:11:57 web.1  |       from /home/vagrant/.rvm/gems/ruby-2.3.4/gems/activesupport-4.2.5/lib/active_support/dependencies.rb:274:in `block in require'
18:11:57 web.1  |       from /home/vagrant/.rvm/gems/ruby-2.3.4/gems/activesupport-4.2.5/lib/active_support/dependencies.rb:240:in `load_dependency'
18:11:57 web.1  |       from /home/vagrant/.rvm/gems/ruby-2.3.4/gems/activesupport-4.2.5/lib/active_support/dependencies.rb:274:in `require'
18:11:57 web.1  |       from /vagrant/escamboapp/config.ru:3:in `block in <main>'
18:11:57 web.1  |       from /home/vagrant/.rvm/gems/ruby-2.3.4/gems/rack-1.6.8/lib/rack/builder.rb:55:in `instance_eval'
18:11:57 web.1  |       from /home/vagrant/.rvm/gems/ruby-2.3.4/gems/rack-1.6.8/lib/rack/builder.rb:55:in `initialize'
18:11:57 web.1  |       from /vagrant/escamboapp/config.ru:in `new'
18:11:57 web.1  |       from /vagrant/escamboapp/config.ru:in `<main>'
18:11:57 web.1  |       from /home/vagrant/.rvm/gems/ruby-2.3.4/gems/rack-1.6.8/lib/rack/builder.rb:49:in `eval'
18:11:57 web.1  |       from /home/vagrant/.rvm/gems/ruby-2.3.4/gems/rack-1.6.8/lib/rack/builder.rb:49:in `new_from_string'
18:11:57 web.1  |       from /home/vagrant/.rvm/gems/ruby-2.3.4/gems/rack-1.6.8/lib/rack/builder.rb:40:in `parse_file'
18:11:57 web.1  |       from /home/vagrant/.rvm/gems/ruby-2.3.4/gems/rack-1.6.8/lib/rack/server.rb:300:in `build_app_and_options_from_config'
18:11:57 web.1  |       from /home/vagrant/.rvm/gems/ruby-2.3.4/gems/rack-1.6.8/lib/rack/server.rb:209:in `app'
18:11:57 web.1  |       from /home/vagrant/.rvm/gems/ruby-2.3.4/gems/railties-4.2.5/lib/rails/commands/server.rb:61:in `app'
18:11:57 web.1  |       from /home/vagrant/.rvm/gems/ruby-2.3.4/gems/rack-1.6.8/lib/rack/server.rb:337:in `wrapped_app'
18:11:57 web.1  |       from /home/vagrant/.rvm/gems/ruby-2.3.4/gems/railties-4.2.5/lib/rails/commands/server.rb:139:in `log_to_stdout'
18:11:57 web.1  |       from /home/vagrant/.rvm/gems/ruby-2.3.4/gems/railties-4.2.5/lib/rails/commands/server.rb:78:in `start'
18:11:57 web.1  |       from /home/vagrant/.rvm/gems/ruby-2.3.4/gems/railties-4.2.5/lib/rails/commands/commands_tasks.rb:80:in `block in server'
18:11:57 web.1  |       from /home/vagrant/.rvm/gems/ruby-2.3.4/gems/railties-4.2.5/lib/rails/commands/commands_tasks.rb:75:in `tap'
18:11:57 web.1  |       from /home/vagrant/.rvm/gems/ruby-2.3.4/gems/railties-4.2.5/lib/rails/commands/commands_tasks.rb:75:in `server'
18:11:57 web.1  |       from /home/vagrant/.rvm/gems/ruby-2.3.4/gems/railties-4.2.5/lib/rails/commands/commands_tasks.rb:39:in `run_command!'
18:11:57 web.1  |       from /home/vagrant/.rvm/gems/ruby-2.3.4/gems/railties-4.2.5/lib/rails/commands.rb:17:in `<top (required)>'
18:11:57 web.1  |       from bin/rails:4:in `require'
18:11:57 web.1  |       from bin/rails:4:in `<main>'
18:11:57 web.1  | => Booting WEBrick
18:11:57 web.1  | => Rails 4.2.5 application starting in development on http://0.0.0.0:3000
18:11:57 web.1  | => Run `rails server -h` for more startup options
18:11:57 web.1  | => Ctrl-C to shutdown server
18:11:57 web.1  | Exiting
18:11:57 web.1  | exited with code 1
18:11:57 system | sending SIGTERM to all processes

 

 

Agradeço desde já!

 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×

Important Information

Ao usar o fórum, você concorda com nossos Terms of Use.