<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:#0563C1;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:#954F72;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
span.EmailStyle18
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="#0563C1" vlink="#954F72">
<div class="WordSection1">
<p class="MsoNormal"><span style="color:#1F497D">I notice a repeating error and stacktrace in the log about an unhandled exception.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">E, [2017-09-15T09:45:13.168412 #10788] ERROR -- : Thread-5342: Unhandled exception!<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">E, [2017-09-15T09:45:13.168722 #10788] ERROR -- :<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">key not found: :<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">org/jruby/RubyHash.java:1189:in `fetch'<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">/usr/local/archivesspace-v2.1.2/data/tmp/jetty-0.0.0.0-8089-backend.war-_-any-/webapp/WEB-INF/app/model/ancestor_listing.rb:63:in `root_record'<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">/usr/local/archivesspace-v2.1.2/data/tmp/jetty-0.0.0.0-8089-backend.war-_-any-/webapp/WEB-INF/app/model/ancestor_listing.rb:22:in `block in add_ancestors'<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">org/jruby/RubyArray.java:1734:in `each'<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">/usr/local/archivesspace-v2.1.2/data/tmp/jetty-0.0.0.0-8089-backend.war-_-any-/webapp/WEB-INF/app/model/ancestor_listing.rb:12:in `add_ancestors'<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">/usr/local/archivesspace-v2.1.2/data/tmp/jetty-0.0.0.0-8089-backend.war-_-any-/webapp/WEB-INF/app/model/archival_object.rb:69:in `sequel_to_jsonmodel'<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">/usr/local/archivesspace-v2.1.2/data/tmp/jetty-0.0.0.0-8089-backend.war-_-any-/webapp/WEB-INF/app/lib/crud_helpers.rb:105:in `listing_response'<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">/usr/local/archivesspace-v2.1.2/data/tmp/jetty-0.0.0.0-8089-backend.war-_-any-/webapp/WEB-INF/app/lib/crud_helpers.rb:68:in `handle_listing'<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">/usr/local/archivesspace-v2.1.2/data/tmp/jetty-0.0.0.0-8089-backend.war-_-any-/webapp/WEB-INF/app/controllers/archival_object.rb:95:in `block in ArchivesSpaceService'<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">org/jruby/RubyBasicObject.java:1687:in `instance_eval'<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">/usr/local/archivesspace-v2.1.2/data/tmp/jetty-0.0.0.0-8089-backend.war-_-any-/webapp/WEB-INF/app/lib/rest.rb:280:in `block in returns'<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">/usr/local/archivesspace-v2.1.2/data/tmp/jetty-0.0.0.0-8089-backend.war-_-any-/webapp/WEB-INF/app/model/db.rb:111:in `block in open'<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">/usr/local/archivesspace-v2.1.2/data/tmp/jetty-0.0.0.0-8089-backend.war-_-any-/webapp/WEB-INF/app/model/db.rb:75:in `block in transaction'<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">/usr/local/archivesspace/gems/gems/sequel-4.20.0/lib/sequel/database/transactions.rb:134:in `_transaction'<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">/usr/local/archivesspace/gems/gems/sequel-4.20.0/lib/sequel/database/transactions.rb:108:in `block in transaction'<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">/usr/local/archivesspace/gems/gems/sequel-4.20.0/lib/sequel/connection_pool/threaded.rb:98:in `hold'<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">/usr/local/archivesspace/gems/gems/sequel-4.20.0/lib/sequel/database/connecting.rb:255:in `synchronize'<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">/usr/local/archivesspace/gems/gems/sequel-4.20.0/lib/sequel/database/transactions.rb:97:in `transaction'<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">/usr/local/archivesspace-v2.1.2/data/tmp/jetty-0.0.0.0-8089-backend.war-_-any-/webapp/WEB-INF/app/model/db.rb:74:in `transaction'<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">/usr/local/archivesspace-v2.1.2/data/tmp/jetty-0.0.0.0-8089-backend.war-_-any-/webapp/WEB-INF/app/model/db.rb:110:in `block in open'<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">org/jruby/RubyFixnum.java:305:in `times'<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">/usr/local/archivesspace-v2.1.2/data/tmp/jetty-0.0.0.0-8089-backend.war-_-any-/webapp/WEB-INF/app/model/db.rb:107:in `open'<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">/usr/local/archivesspace-v2.1.2/data/tmp/jetty-0.0.0.0-8089-backend.war-_-any-/webapp/WEB-INF/app/model/db.rb:432:in `block in DB'<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">/usr/local/archivesspace-v2.1.2/data/tmp/jetty-0.0.0.0-8089-backend.war-_-any-/webapp/WEB-INF/app/lib/rest.rb:262:in `block in returns'<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">/usr/local/archivesspace-v2.1.2/data/tmp/jetty-0.0.0.0-8089-backend.war-_-any-/webapp/WEB-INF/app/lib/request_context.rb:24:in `open'<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">/usr/local/archivesspace-v2.1.2/data/tmp/jetty-0.0.0.0-8089-backend.war-_-any-/webapp/WEB-INF/app/lib/rest.rb:230:in `block in returns'<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">org/jruby/RubyMethod.java:111:in `call'<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">/usr/local/archivesspace/gems/gems/sinatra-1.4.7/lib/sinatra/base.rb:1611:in `block in compile!'<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">/usr/local/archivesspace/gems/gems/sinatra-1.4.7/lib/sinatra/base.rb:975:in `block in route!'<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">/usr/local/archivesspace/gems/gems/sinatra-1.4.7/lib/sinatra/base.rb:994:in `route_eval'<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">/usr/local/archivesspace/gems/gems/sinatra-1.4.7/lib/sinatra/base.rb:975:in `block in route!'<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">/usr/local/archivesspace/gems/gems/sinatra-1.4.7/lib/sinatra/base.rb:1015:in `block in process_route'<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">org/jruby/RubyKernel.java:1120:in `catch'<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">/usr/local/archivesspace/gems/gems/sinatra-1.4.7/lib/sinatra/base.rb:1013:in `process_route'<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">/usr/local/archivesspace/gems/gems/sinatra-1.4.7/lib/sinatra/base.rb:973:in `block in route!'<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">org/jruby/RubyArray.java:1734:in `each'<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">/usr/local/archivesspace/gems/gems/sinatra-1.4.7/lib/sinatra/base.rb:972:in `route!'<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">/usr/local/archivesspace/gems/gems/sinatra-1.4.7/lib/sinatra/base.rb:1085:in `block in dispatch!'<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">/usr/local/archivesspace/gems/gems/sinatra-1.4.7/lib/sinatra/base.rb:1067:in `block in invoke'<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">org/jruby/RubyKernel.java:1120:in `catch'<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">/usr/local/archivesspace/gems/gems/sinatra-1.4.7/lib/sinatra/base.rb:1067:in `invoke'<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">/usr/local/archivesspace/gems/gems/sinatra-1.4.7/lib/sinatra/base.rb:1082:in `dispatch!'<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">/usr/local/archivesspace/gems/gems/sinatra-1.4.7/lib/sinatra/base.rb:907:in `block in call!'<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">/usr/local/archivesspace/gems/gems/sinatra-1.4.7/lib/sinatra/base.rb:1067:in `block in invoke'<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">org/jruby/RubyKernel.java:1120:in `catch'<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">/usr/local/archivesspace/gems/gems/sinatra-1.4.7/lib/sinatra/base.rb:1067:in `invoke'<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">/usr/local/archivesspace/gems/gems/sinatra-1.4.7/lib/sinatra/base.rb:907:in `call!'<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">/usr/local/archivesspace/gems/gems/sinatra-1.4.7/lib/sinatra/base.rb:895:in `call'<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">/usr/local/archivesspace-v2.1.2/data/tmp/jetty-0.0.0.0-8089-backend.war-_-any-/webapp/WEB-INF/app/main.rb:291:in `call'<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">/usr/local/archivesspace/gems/gems/rack-protection-1.5.3/lib/rack/protection/xss_header.rb:18:in `call'<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">/usr/local/archivesspace/gems/gems/rack-protection-1.5.3/lib/rack/protection/path_traversal.rb:16:in `call'<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">/usr/local/archivesspace/gems/gems/rack-protection-1.5.3/lib/rack/protection/json_csrf.rb:18:in `call'<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">/usr/local/archivesspace/gems/gems/rack-protection-1.5.3/lib/rack/protection/base.rb:49:in `call'<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">/usr/local/archivesspace/gems/gems/rack-protection-1.5.3/lib/rack/protection/base.rb:49:in `call'<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">/usr/local/archivesspace/gems/gems/rack-protection-1.5.3/lib/rack/protection/frame_options.rb:31:in `call'<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">uri:classloader:/vendor/rack-1.5.5/rack/nulllogger.rb:9:in `call'<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">uri:classloader:/vendor/rack-1.5.5/rack/head.rb:11:in `call'<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">/usr/local/archivesspace/gems/gems/sinatra-1.4.7/lib/sinatra/base.rb:182:in `call'<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">/usr/local/archivesspace/gems/gems/sinatra-1.4.7/lib/sinatra/base.rb:2013:in `call'<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">/usr/local/archivesspace/gems/gems/sinatra-1.4.7/lib/sinatra/base.rb:1487:in `block in call'<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">/usr/local/archivesspace/gems/gems/sinatra-1.4.7/lib/sinatra/base.rb:1787:in `synchronize'<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">/usr/local/archivesspace/gems/gems/sinatra-1.4.7/lib/sinatra/base.rb:1487:in `call'<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">uri:classloader:/vendor/rack-1.5.5/rack/builder.rb:138:in `call'<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">uri:classloader:/vendor/rack-1.5.5/rack/urlmap.rb:65:in `block in call'<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">org/jruby/RubyArray.java:1734:in `each'<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">uri:classloader:/vendor/rack-1.5.5/rack/urlmap.rb:50:in `call'<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">uri:classloader:/rack/handler/servlet.rb:22:in `call'<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">D, [2017-09-15T09:45:13.169154 #10788] DEBUG -- : Thread-5342: Responded with [500, {"Content-Type"=>"application/json", "Cache-Control"=>"private, must-revalidate, max-age=0", "Content-Length"=>"29"}, ["{\"error\":\"key
 not found: :\"}\n"]]... in 247ms<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b>From:</b> archivesspace_users_group-bounces@lyralists.lyrasis.org [mailto:archivesspace_users_group-bounces@lyralists.lyrasis.org]
<b>On Behalf Of </b>Stanonik, Ronald<br>
<b>Sent:</b> Friday, September 15, 2017 9:48 AM<br>
<b>To:</b> archivesspace_users_group@lyralists.lyrasis.org<br>
<b>Subject:</b> [Archivesspace_Users_Group] 2.1.2 re-indexing loop<o:p></o:p></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I recently upgraded to 2.1.2 and it seems to be in an indexing loop.<br>
<br>
I restarted the application.<br>
<br>
I removed the solr index and restarted the application.<br>
<br>
In the log I see it counting up<br>
<br>
Staff Indexer [2017-09-15 07:42:21 -0700] ~~~ Indexed 185825 of 212959 archival_object records in repository SC&A<br>
...<br>
Staff Indexer [2017-09-15 03:50:30 -0700] ~~~ Indexed 201525 of 212959 archival_object records in repository SC&A<br>
<br>
But then<br>
<br>
Staff Indexer [2017-09-15 04:09:49 -0700] ~~~ Indexed 25 of 212959 archival_object records in repository SC&A<br>
<br>
Since yesterday it has re-indexed ten times.<br>
<br>
The resulting constant re-indexing causes a high load average and slow performance for users.<br>
<br>
Any suggestions?<br>
<br>
Thanks,<br>
<br>
Ron<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">ps.  I also posted this question to <a href="https://groups.google.com/forum/#!forum/archivesspace">
https://groups.google.com/forum/#!forum/archivesspace</a>.  Sorry if that is redundant.<o:p></o:p></p>
</div>
</body>
</html>