he hecho un “freeze” para actualizar mi aplicación a la versión de Rails
2.0.2. Todo fue correctamente. Arranco el servidor (todo bien) y, al
empezar a navegar, cualquiera de las páginas me devuelve un 500 Internal
Server Error.
he hecho un “freeze” para actualizar mi aplicación a la versión de Rails
2.0.2. Todo fue correctamente. Arranco el servidor (todo bien) y, al
empezar a navegar, cualquiera de las páginas me devuelve un 500 Internal
Server Error.
Sabéis a qué puede ser debido?
Mi versión de Ruby es la 1.8.6, y la versión de Gem es 1.0.1.
Gracias.
Algun log para compartir? Si usas exception notifier (te lo
recomiendo) cual es el backtrace?
Status: 500 Internal Server Error
A secret is required to generate an integrity hash for cookie session
data. Use config.action_controller.session = { :session_key =>
“_myapp_session”, :secret => “some secret phrase of at least 30
characters” } in config/environment.rb
C:/Documents and Settings/Damaris/Mis
documentos/Proyectos/SemNet/semnet/vendor/rails/actionpack/lib/action_controller/session/cookie_store.rb:91:in ensure_secret_secure' C:/Documents and Settings/Damaris/Mis documentos/Proyectos/SemNet/semnet/vendor/rails/actionpack/lib/action_controller/session/cookie_store.rb:60:ininitialize’
C:/ruby/lib/ruby/1.8/cgi/session.rb:273:in new' C:/ruby/lib/ruby/1.8/cgi/session.rb:273:ininitialize_without_cgi_reader’
C:/Documents and Settings/Damaris/Mis
documentos/Proyectos/SemNet/semnet/vendor/rails/actionpack/lib/action_controller/cgi_ext/session.rb:39:in initialize' C:/Documents and Settings/Damaris/Mis documentos/Proyectos/SemNet/semnet/vendor/rails/actionpack/lib/action_controller/cgi_process.rb:130:innew’
C:/Documents and Settings/Damaris/Mis
documentos/Proyectos/SemNet/semnet/vendor/rails/actionpack/lib/action_controller/cgi_process.rb:130:in session' C:/Documents and Settings/Damaris/Mis documentos/Proyectos/SemNet/semnet/vendor/rails/actionpack/lib/action_controller/cgi_process.rb:166:instale_session_check!’
C:/Documents and Settings/Damaris/Mis
documentos/Proyectos/SemNet/semnet/vendor/rails/actionpack/lib/action_controller/cgi_process.rb:114:in session' C:/Documents and Settings/Damaris/Mis documentos/Proyectos/SemNet/semnet/vendor/rails/actionpack/lib/action_controller/base.rb:1131:inassign_shortcuts_without_flash’
C:/Documents and Settings/Damaris/Mis
documentos/Proyectos/SemNet/semnet/vendor/rails/actionpack/lib/action_controller/flash.rb:167:in assign_shortcuts' C:/Documents and Settings/Damaris/Mis documentos/Proyectos/SemNet/semnet/vendor/rails/actionpack/lib/action_controller/base.rb:518:inprocess_without_filters’
C:/Documents and Settings/Damaris/Mis
documentos/Proyectos/SemNet/semnet/vendor/rails/actionpack/lib/action_controller/filters.rb:685:in process_without_session_management_support' C:/Documents and Settings/Damaris/Mis documentos/Proyectos/SemNet/semnet/vendor/rails/actionpack/lib/action_controller/session_management.rb:123:inprocess’
C:/Documents and Settings/Damaris/Mis
documentos/Proyectos/SemNet/semnet/vendor/rails/actionpack/lib/action_controller/base.rb:388:in process' C:/Documents and Settings/Damaris/Mis documentos/Proyectos/SemNet/semnet/vendor/rails/actionpack/lib/action_controller/dispatcher.rb:171:inhandle_request’
C:/Documents and Settings/Damaris/Mis
documentos/Proyectos/SemNet/semnet/vendor/rails/actionpack/lib/action_controller/dispatcher.rb:115:in dispatch' C:/Documents and Settings/Damaris/Mis documentos/Proyectos/SemNet/semnet/vendor/rails/actionpack/lib/action_controller/dispatcher.rb:126:indispatch_cgi’
C:/Documents and Settings/Damaris/Mis
documentos/Proyectos/SemNet/semnet/vendor/rails/actionpack/lib/action_controller/dispatcher.rb:9:in dispatch' C:/Documents and Settings/Damaris/Mis documentos/Proyectos/SemNet/semnet/vendor/rails/railties/lib/webrick_server.rb:112:inhandle_dispatch’
C:/Documents and Settings/Damaris/Mis
documentos/Proyectos/SemNet/semnet/vendor/rails/railties/lib/webrick_server.rb:78:in service' C:/ruby/lib/ruby/1.8/webrick/httpserver.rb:104:inservice’
C:/ruby/lib/ruby/1.8/webrick/httpserver.rb:65:in run' C:/ruby/lib/ruby/1.8/webrick/server.rb:173:instart_thread’
C:/ruby/lib/ruby/1.8/webrick/server.rb:162:in start' C:/ruby/lib/ruby/1.8/webrick/server.rb:162:instart_thread’
C:/ruby/lib/ruby/1.8/webrick/server.rb:95:in start' C:/ruby/lib/ruby/1.8/webrick/server.rb:92:ineach’
C:/ruby/lib/ruby/1.8/webrick/server.rb:92:in start' C:/ruby/lib/ruby/1.8/webrick/server.rb:23:instart’
C:/ruby/lib/ruby/1.8/webrick/server.rb:82:in start' C:/Documents and Settings/Damaris/Mis documentos/Proyectos/SemNet/semnet/vendor/rails/railties/lib/webrick_server.rb:62:indispatch’
C:/Documents and Settings/Damaris/Mis
documentos/Proyectos/SemNet/semnet/vendor/rails/railties/lib/commands/servers/webrick.rb:66
C:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in gem_original_require' C:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:inrequire’
C:/Documents and Settings/Damaris/Mis
documentos/Proyectos/SemNet/semnet/vendor/rails/activesupport/lib/active_support/dependencies.rb:496:in require' C:/Documents and Settings/Damaris/Mis documentos/Proyectos/SemNet/semnet/vendor/rails/activesupport/lib/active_support/dependencies.rb:342:innew_constants_in’
C:/Documents and Settings/Damaris/Mis
documentos/Proyectos/SemNet/semnet/vendor/rails/activesupport/lib/active_support/dependencies.rb:496:in require' C:/Documents and Settings/Damaris/Mis documentos/Proyectos/SemNet/semnet/vendor/rails/railties/lib/commands/server.rb:39 C:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:ingem_original_require’
C:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in require' ./script/server:3 -e:4:inload’
-e:4
A secret is required to generate an integrity hash for cookie session
data. Use config.action_controller.session = { :session_key =>
“_myapp_session”, :secret => “some secret phrase of at least 30
characters” } in config/environment.rb