Snorby/snorby — Issue #150: Can't view events
Author: jsevilleja
Created: 2011-10-23 11:33:24+00:00
State: open

I've done a fresh snorby install on a gentoo system. Everything is going OK, but I can't view any event. Searching through the logs, I found this:

Started GET "/events" for 10.8.0.2 at Sun Oct 23 13:28:00 +0200 2011
Processing by EventsController#index as HTML
Rendered layouts/_notify.html.erb (0.1ms)
Rendered events/_menu.html.erb (9.5ms)
Rendered events/_menu.html.erb (2.0ms)
Rendered events/_event.html.erb (28.5ms)
Rendered events/_events.html.erb (43.4ms)
Rendered events/index.html.erb within layouts/application (63.3ms)
Completed in 73ms

ActionView::Template::Error (can't convert File into String):
21:

22: <% if Setting.geoip? && event.ip.present? %>
23:
24: <% geoip_src = event.ip.geoip[:source] %>
25:
26: <%= geoip_src[:country_code2] %>
27:
lib/snorby/geoip.rb:34:in `new'
lib/snorby/geoip.rb:34:in `lookup'
app/models/ip.rb:60:in `geoip'
app/views/events/_event.html.erb:24:in `_app_views_events__event_html_erb___748092906_70150472091320_1213868'
app/views/events/_events.html.erb:45:in `_app_views_events__events_html_erb___108469733_70150473213460_2977630'
app/views/events/_events.html.erb:3:in `_app_views_events__events_html_erb___108469733_70150473213460_2977630'
app/views/events/index.html.erb:50:in `_app_views_events_index_html_erb__1948077535_70150471897740_0'