Error while initializing my application on Rails

Asked

Viewed 160 times

0

My application was already running for some time without problems, I myself configured the environment in a virtual machine. I had to stop the server and when I went startar again I had this little surprise.

Below picture with the error generated.

uninitialized Constant Rails::Application::YAML (Nameerror) /home/Rails/. rvm/Gems/ruby-2.2.0/Gems/railties-4.2.0/lib/Rails/application.Rb:377:in secrets' /var/www/nginx/bday.advance.local/config/environments/production.rb:72:inblock in ' /home/Rails/. rvm/Gems/ruby-2.2.0/Gems/railties-4.2.0/lib/Rails/railtie.Rb:210:in instance_eval' /home/rails/.rvm/gems/ruby-2.2.0/gems/railties-4.2.0/lib/rails/railtie.rb:210:inconfigure' /var/www/Nginx/bday.advance.local/config/Environments/Production.Rb:1:in <top (required)>' /home/rails/.rvm/gems/ruby-2.2.0/gems/railties-4.2.0/lib/rails/engine.rb:598:inblock (2 levels) in ' ...

inserir a descrição da imagem aqui

  • Marconi, this error is returned by the server, it is active. Vlw

  • Yes I understand, I’m using Nginx with Passenger. You know?

  • Look if it can help you. http://answall.com/questions/58179/web-application-could-not-be-started-because

  • What version of Rails and ruby?

    • ruby 2.2.0p0 (2014-12-25 Revision 49005) [x86_64-linux]
  • Is rvm? Rbenv or the machine ruby itself?

  • Yes it is rvm. A companion of a group suggested that I install safe_yaml and ran. What I found strange was that the app was already running without it. Suddenly came the surprise.

  • 1

    Face put the code to yours application.rb. The problem is in this safe_yaml that you installed, check if you gave a require 'yaml' for example in your application.rb.

  • It really seems that the error is in application.rb. Remove this safe_yaml at least to test. Redo the reverse steps.

Show 4 more comments
No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.