Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on May 8th, 2012  |  syntax: None  |  size: 0.74 KB  |  hits: 12  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. Authlogic save causing 502 Bad Gateway error, Illegal Instruction in Rails console
  2. @user_session = UserSession.new(params[:user_session])
  3. if @user_session.save
  4. ...
  5.        
  6. >> Authlogic::Session::Base.controller = Authlogic::ControllerAdapters::RailsAdapter.new(self)
  7. >> @user_session = UserSession.new({"password"=>"password", "remember_me"=>"0", "login"=>"myuser"})
  8. >> @user_session.save
  9. Illegal instruction
  10.        
  11. stat("/opt/ruby-enterprise-1.8.7-2011.12/lib/ruby/1.8/digest.rb", {st_mode=S_IFREG|0644, st_size=1145, ...}) = 0
  12. open("/opt/ruby-enterprise-1.8.7-2011.12/lib/ruby/1.8/digest.rb", O_RDONLY) = 15
  13. fstat(15, {st_mode=S_IFREG|0644, st_size=1145, ...}) = 0
  14. close(15)                               = 0
  15. --- SIGILL (Illegal instruction) @ 0 (0) ---