My application was already running for some time without problems, I even set the environment in a virtual machine. I had to stop the server and when I went to start again I had this surprises.
Below image with generated error.
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:in
block 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:in
configure '
/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:in
block (2 levels) in '
...