Snorby / snorby

Ruby On Rails Application For Network Security Monitoring
Other
1k stars 226 forks source link

I can't login... (the request failed to complete successfully) #348

Open jic5760 opened 10 years ago

jic5760 commented 10 years ago

log/production.log

Started GET "/" for 10.0.0.1at 2014-06-06 13:00:13 +0900 Processing by PageController#dashboard as HTML Redirected to http://10.0.0.1:3001/users/login Completed 302 Found in 15ms

Started GET "/users/login" for 10.0.0.1at 2014-06-06 13:00:13 +0900 Processing by SessionsController#new as HTML Rendered users/sessions/new.html.erb within layouts/login (13.4ms) Rendered layouts/_version.html.erb (37.6ms) Completed 200 OK in 62ms (Views: 60.1ms | Models: 0.645ms)

Started POST "/users/login" for 10.0.0.1at 2014-06-06 13:00:33 +0900 Processing by SessionsController#create as / Parameters: {"utf8"=>"??, "authenticity_token"=>"+tt8jBG2z3BEh4a+0bSgPgD6Cq39fSpkOeSv3I6h+V4=", "user"=>{"email"=>"snorby@snorby.org", "password"=>"[FILTERED]", "remember_me"=>"1"}} Completed 200 OK in 119ms (Views: 1.0ms | Models: 4.080ms)

Started GET "/" for 10.0.0.1at 2014-06-06 13:00:33 +0900 Processing by PageController#dashboard as / Completed 500 Internal Server Error in 34ms

NameError (uninitialized constant Mime::PDF): app/controllers/page_controller.rb:59:in block in dashboard' app/controllers/page_controller.rb:56:indashboard'

[datamapper] Setting up the "production" environment: [datamapper] Setting up :default repository: 'snorby' on mysql

How I can fix it?

anonrig commented 10 years ago

You should add mime type PDF to your current http server (Apache or Nginx).

For Apache: http://askubuntu.com/questions/258780/how-to-add-mime-type-for-the-apache-webserver For Nginx: http://stackoverflow.com/questions/16789494/extending-default-nginx-mime-types-file