ActiveRecord::StatementInvalid in Algorithms#hero

Showing /srv/www/sintel/releases/20170824150807/app/views/algorithms/_hero_view.html.erb where line #58 raised:

SQLite3::BusyException: database is locked: SELECT  "algorithms".* FROM "algorithms"  WHERE "algorithms"."id" = 1900 LIMIT 1

Extracted source (around line #58):

55:         <% references = Array.new %>
56:         <% if !@algorithm_versions.empty? %>
57:             <% @algorithm_versions.each do |algv| %>
58: 							<% if algv.algorithm.public == 0 or algv.algorithm.public == 1 or ( logged_in? and algv.algorithm.public == 2 and algv.algorithm.user_id == current_user.id) %>
59:                     <li <%= ( algv.id == @method) ? "class = 'active'" : "class = " %>>
60:                         <%= link_to algv.algorithm.name, hero_path(:method_id => algv.id, 
61:                                                         :selected_pass => @pass, 

Trace of template inclusion: app/views/algorithms/hero.html.erb

Rails.root: /srv/www/sintel/releases/20170824150807

Application Trace | Framework Trace | Full Trace
app/views/algorithms/_hero_view.html.erb:58:in `block in _app_views_algorithms__hero_view_html_erb___3368044941459996389_30745700'
app/views/algorithms/_hero_view.html.erb:57:in `each'
app/views/algorithms/_hero_view.html.erb:57:in `_app_views_algorithms__hero_view_html_erb___3368044941459996389_30745700'
app/views/algorithms/hero.html.erb:1:in `_app_views_algorithms_hero_html_erb__1450078708577860796_29577680'

Request

Parameters:

{"alt"=>"155",
 "flow_type"=>"Flow",
 "method_id"=>"2303",
 "metric_id"=>"1",
 "selected_pass"=>"1"}

Show session dump

Show env dump

Response

Headers:

None