'Completed 401 Unauthorized' after successful sign in, then redirect -- staging only

1,665 views
Skip to first unread message

99miles

unread,
Aug 29, 2012, 2:36:16 PM8/29/12
to plataforma...@googlegroups.com
Locally, (development environment), I can log in just fine. However, on the staging server, you can see that I get logged in successfully, but 'before_filter :authenticate_user!' fails.

This app was previously working fine on the server, but I've made lots of app changes since the last deployment. I'm running ruby 1.9.2-p194 on both.

I saw some mentions from Jose about setting 'config.http_authenticatable = false' but that didn't help in my case.

Any thoughts?



Started GET "/app/users/sign_in" for 75.148.94.141 at 2012-08-29 16:17:32 +0000
Processing by Devise::Users::SessionsController#new as HTML
  Rendered devise/users/shared/_links.html.haml (0.9ms)
  Rendered devise/users/sessions/new.html.haml within layouts/users (8.9ms)
Completed 200 OK in 12ms (Views: 10.8ms | ActiveRecord: 0.0ms)
Cache read: /app/admin/calendar?


Started GET "/app/admin/calendar" for 75.148.94.141 at 2012-08-29 16:17:36 +0000
Processing by Admin::CalendarsController#show as HTML
Completed 401 Unauthorized in 1ms
Cache read: /app/users/sign_in?


Started GET "/app/users/sign_in" for 75.148.94.141 at 2012-08-29 16:17:36 +0000
Processing by Devise::Users::SessionsController#new as HTML
  Rendered devise/users/shared/_links.html.haml (0.9ms)
  Rendered devise/users/sessions/new.html.haml within layouts/users (63.4ms)
Completed 200 OK in 67ms (Views: 65.6ms | ActiveRecord: 0.0ms)

99miles

unread,
Aug 30, 2012, 11:53:10 AM8/30/12
to plataforma...@googlegroups.com

Not sure exactly what caused this, but I deleted my cookies and all is well.
Reply all
Reply to author
Forward
0 new messages