Snorby/snorby — Issue #174: Error "We're sorry, but something went wrong. " when clicking on sensor
Author: tbaror
Created: 2012-01-04 17:34:06+00:00
State: open

Hi,

i have Snorby with 3 sensor's , one of them (VIWIFISN) when i click to view events gettings error "We're sorry, but something went wrong.

We've been notified about this issue and we'll take a look at it shortly."

the code from console as follows
Thanks
***********************console************************************************

Rendered collection (0.0ms)
Rendered page/_events.html.erb (2.8ms)
Rendered events/_hotkeys.html.erb (0.1ms)
Rendered page/results.html.erb within layouts/application (8.6ms)
Rendered layouts/_version.html.erb (0.0ms)
Rendered layouts/_header.html.erb (13.9ms)
Rendered layouts/_content.html.erb (0.0ms)
Rendered layouts/_footer.html.erb (0.1ms)
Completed 200 OK in 31ms (Views: 25.1ms | Models: 0.694ms)
cache: [GET /results?search%5Bsid%5D=2&title=VIWIFISN] miss

Started GET "/results?search%5Bsid%5D=2&title=VIWIFISN" for 212.143.237.19 at 2012-01-04 19:28:40 +0200
Processing by PageController#results as HTML
Parameters: {"search"=>{"sid"=>"2"}, "title"=>"VIWIFISN"}
Rendered events/_menu.html.erb (5.7ms)
Rendered events/_menu.html.erb (1.6ms)
Rendered events/_event.html.erb (148.2ms)
Rendered page/_events.html.erb (154.2ms)
Rendered page/results.html.erb within layouts/application (165.1ms)
Completed 500 Internal Server Error in 171ms

ActionView::Template::Error (undefined method `&' for "":String):
21:

22: <% if 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 `lookup'
app/models/ip.rb:61:in `geoip'
app/views/events/_event.html.erb:24:in `_app_views_events__event_html_erb__204864203_101990000'
app/views/page/_events.html.erb:48:in `block in _app_views_page__events_html_erb__106845755_102346330'
app/views/page/_events.html.erb:3:in `_app_views_page__events_html_erb__106845755_102346330'
app/views/page/results.html.erb:17:in `_app_views_page_results_html_erb___276091795_103217590'

cache: [GET /results?search%5Bseverity%5D=1&search%5Btime_end%5D=1325698100&search%5Btime_start%5D=1325611700&title=High+Severity+Events] miss

Started GET "/results?search%5Bseverity%5D=1&search%5Btime_end%5D=1325698100&search%5Btime_start%5D=1325611700&title=High+Severity+Events" for 212.1 43.237.19 at 2012-01-04 19:28:45 +0200
Processing by PageController#results as HTML
Parameters: {"search"=>{"severity"=>"1", "time_end"=>"1325698100", "time_start"=>"1325611700"}, "title"=>"High Severity Events"}
Rendered events/_menu.html.erb (2.8ms)
Rendered events/_menu.html.erb (0.7ms)
Rendered events/_event.html.erb (107.0ms)
Rendered page/_events.html.erb (113.9ms)
Rendered events/_hotkeys.html.erb (0.1ms)
Rendered page/results.html.erb within layouts/application (118.8ms)
Rendered layouts/_version.html.erb (0.0ms)
Rendered layouts/_header.html.erb (13.6ms)
Rendered layouts/_content.html.erb (0.1ms)
Rendered layouts/_footer.html.erb (0.1ms)
Completed 200 OK in 142ms (Views: 131.6ms | Models: 9.700ms)
cache: [GET /images/icons/star.png?1308968925] miss
cache: [GET /events/show/2/31] miss

Started GET "/events/show/2/31" for 212.143.237.19 at 2012-01-04 19:28:51 +0200
Processing by EventsController#show as JS
Parameters: {"sid"=>"2", "cid"=>"31"}
Rendered events/_ip.html.erb (3.7ms)
Rendered events/_signature.html.erb (7.1ms)
Rendered events/_udp.html.erb (1.9ms)
Rendered events/_notes.html.erb (0.7ms)
Rendered events/_show.html.erb (22.9ms)
Rendered events/show.js.erb (23.8ms)
Completed 200 OK in 29ms (Views: 23.8ms | Models: 0.985ms)
cache: [GET /dashboard] miss

Started GET "/dashboard" for 212.143.237.19 at 2012-01-04 19:30:24 +0200
Processing by PageController#dashboard as HTML
Rendered page/_severity_dashboard.html.erb (0.7ms)
Rendered page/_graph_event.html.erb (1.3ms)
Rendered page/_graph_severity.html.erb (0.1ms)
Rendered page/_graph_protocol.html.erb (0.1ms)
Rendered page/_graph_signature.html.erb (0.1ms)
Rendered page/_graph_source_ips.html.erb (0.1ms)
Rendered page/_graph_destination_ips.html.erb (0.2ms)
Rendered page/_graph_dashboard.html.erb (2.3ms)
Rendered page/dashboard.html.erb within layouts/application (33.0ms)
Rendered layouts/_version.html.erb (0.0ms)
Rendered layouts/_header.html.erb (14.2ms)
Rendered layouts/_content.html.erb (0.1ms)
Rendered layouts/_footer.html.erb (0.2ms)
Completed 200 OK in 414ms (Views: 49.8ms | Models: 10.954ms)
cache: [GET /system/avatars/2/small/TalB.jpg?1325433777] miss
cache: [GET /images/dashboard/box-bg.png?1308968925] miss
cache: [GET /results?search%5Bsid%5D=2&title=VIWIFISN] miss

Started GET "/results?search%5Bsid%5D=2&title=VIWIFISN" for 212.143.237.19 at 2012-01-04 19:30:28 +0200
Processing by PageController#results as HTML
Parameters: {"search"=>{"sid"=>"2"}, "title"=>"VIWIFISN"}
Rendered events/_menu.html.erb (2.9ms)
Rendered events/_menu.html.erb (0.8ms)
Rendered events/_event.html.erb (145.4ms)
Rendered page/_events.html.erb (150.6ms)
Rendered page/results.html.erb within layouts/application (156.1ms)
Completed 500 Internal Server Error in 161ms

ActionView::Template::Error (undefined method `&' for "":String):
21:

22: <% if 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 `lookup'
app/models/ip.rb:61:in `geoip'
app/views/events/_event.html.erb:24:in `_app_views_events__event_html_erb__204864203_101990000'
app/views/page/_events.html.erb:48:in `block in _app_views_page__events_html_erb__106845755_102346330'
app/views/page/_events.html.erb:3:in `_app_views_page__events_html_erb__106845755_102346330'
app/views/page/results.html.erb:17:in `_app_views_page_results_html_erb___276091795_103217590'