<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;background-color:#FFFFFF;font-family:Calibri,Arial,Helvetica,sans-serif;">
<p><br>
</p>
<p>Hi Melissa,</p>
<p><br>
</p>
<p>It might be a little tricky for you all, since your Aspace has a lot of customizations and plugins installed that modify a lot of the core ( like top_containers and things having to do with barcodes). </p>
<p><br>
</p>
<p>But, to answer the question of configuration, yes the defaults are enabled by default. Your config.rb file can be empty, and the values found in
<a title="Cmd+Click or tap to follow the link" href="https://github.com/archivesspace/archivesspace/blob/master/common/config/config-defaults.rb">
config-defaults.r</a>b would be used. ASpace ships with a config.rb file that has the config-defaults.rb files commented out just to show what those defaults are. </p>
<p><br>
</p>
<p>I've seen the EOF error happen on some random cases where the indexer has nothing to index. What's happening is it's reading a indexer state file that is empty, which it is not expecting. I've found this to be usually be benign. But you can remove this pretty
 easily... </p>
<p><br>
</p>
<p>To check this, see if there are any empty files in the indexer_state directory:</p>
<p>$ find data/indexer_state/ -type f -empty<br>
</p>
<p><br>
</p>
<p>You can delete those: <br>
</p>
<p>$ find data/indexer_state/ -type f -empty -exec rm {} \;</p>
<p><br>
</p>
<p>When the indexer runs next, it will recreate that any files it needs to track the indexer state. If this keeps recurring, then we'll have to figure out why. </p>
<p><br>
</p>
<p>Also, EOF can in some situations be sent for a HTTP request.</p>
<p> First question is if you have the backend on a SSL connection, possibly with a self-signed cert?
</p>
<p>Also, do you have a proxy in front of the backend? <br>
</p>
<p><br>
</p>
<p>You can try and install this to you plugins/local/indexer directory, restart aspace, and see where the EOF error is happening. </p>
<p><br>
</p>
<p><br>
</p>
<p>b,chris <br>
</p>
<p><br>
</p>
<p><br>
</p>
<div id="Signature">
<div name="divtagdefaultwrapper" style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:; margin:0">
<div class="BodyFragment"><font size="2">
<div class="PlainText">Chris Fitzpatrick | <font size="2">Developer, ArchivesSpace</font><br>
Skype: chrisfitzpat  | Phone: 918.236.6048<br>
http://archivesspace.org/<br>
</div>
</font></div>
</div>
</div>
<br>
<br>
<div style="color: rgb(0, 0, 0);">
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="divRplyFwdMsg" dir="ltr"><font style="font-size:11pt" face="Calibri, sans-serif" color="#000000"><b>From:</b> archivesspace_users_group-bounces@lyralists.lyrasis.org <archivesspace_users_group-bounces@lyralists.lyrasis.org> on behalf of Wisner, Melissa
 <melissa.wisner@yale.edu><br>
<b>Sent:</b> Friday, August 7, 2015 4:48 PM<br>
<b>To:</b> archivesspace_users_group@lyralists.lyrasis.org<br>
<b>Subject:</b> [Archivesspace_Users_Group] indexing problem?</font>
<div> </div>
</div>
<div>
<div style="">
<p style="margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: "Calibri",sans-serif;">
Hello,</p>
<p style="margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: "Calibri",sans-serif;">
 </p>
<p style="margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: "Calibri",sans-serif;">
Our AS users have reported they were unable to search/retrieve data they just added to ArchivesSpace. We assume this is a problem with the index, if after even several hours a record cannot be retrieved by a barcode.
</p>
<p style="margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: "Calibri",sans-serif;">
 </p>
<p style="margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: "Calibri",sans-serif;">
<b>Scenario 1:</b> over 2 -3 days a newly added record could not be retrieved by barcode. When staff would try and create a new record with the same barcode, AS would tell them barcode already exists.  After the 3<sup>rd</sup> day it could be retrieved through
 a barcode search.</p>
<p style="margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: "Calibri",sans-serif;">
 </p>
<p style="margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: "Calibri",sans-serif;">
<b>Scenario 2:</b> same report came in Thursday morning. Newly added record could not be retrieved by barcode. Today it still can’t. But I can retrieve it by the top container number highlighted below in yellow.
</p>
<p style="margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: "Calibri",sans-serif;">
 </p>
<p style="margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: "Calibri",sans-serif;">
This behavior is very odd. The reported issue from Thursday morning is shown in this snippet from the log files. There appears to be an error message at the end of this regarding End of File/EOF. I do not know if that is the problem, or what that error means.</p>
<p style="margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: "Calibri",sans-serif;">
 </p>
<p style="margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: "Calibri",sans-serif;">
Additionally, the config file for our production AS does not include certain entries that are shown here as defaults:
<span style="font-size:10.5pt; color:black"><a style="color: rgb(5, 99, 193); text-decoration: underline;" href="https://github.com/archivesspace/archivesspace/blob/master/common/config/config-defaults.rb">https://github.com/archivesspace/archivesspace/blob/master/common/config/config-defaults.rb</a></span></p>
<p style="margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: "Calibri",sans-serif;">
<span style="font-size:10.5pt; color:black"> </span></p>
<p style="margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: "Calibri",sans-serif;">
<span style="color:black">Specifically-</span><span style="font-family: "Calibri",sans-serif; color: windowtext;"><span style="color:#0086B3">
</span></span><span style=""><span style="color:#0070C0">AppConfig</span></span><span style="color:#0070C0; background:white">[</span><span style=""><span style="color:#0070C0">:solr_indexing_frequency_seconds</span></span><span style="color:#0070C0; background:white">]
</span><span style=""><span style="color:#0070C0">=</span></span><span style="color:#0070C0; background:white">
</span><span style=""><span style="color:#0070C0">30 and  AppConfig<span style="background:white">[</span>:indexer_solr_timeout_seconds<span style="background:white">]
</span></span></span><span style=""><span style="color:#0070C0">=</span></span><span style=""><span style="color:#0070C0; background:white">
</span></span><span style=""><span style="color:#0070C0">300</span></span></p>
<p style="margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: "Calibri",sans-serif;">
<span style=""><span style="color:#0070C0"> </span></span></p>
<p style="margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: "Calibri",sans-serif;">
<span style="">If these are not defined, does the default still apply? A default of 30 seconds seems reasonable, and if it is a default even if not defined, why would we see such delays with our index?</span></p>
<p style="margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: "Calibri",sans-serif;">
<span style=""> </span></p>
<p style="margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: "Calibri",sans-serif;">
<span style="">This is a major problem, as staff cannot do their work when they can’t find the records they’ve been working on.
</span></p>
<p style="margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: "Calibri",sans-serif;">
 </p>
<p style="margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: "Calibri",sans-serif;">
 </p>
<p style="margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: "Calibri",sans-serif;">
<span style="font-size:10.0pt; font-family:"Lucida Console"">Started GET "/resolve/edit?uri=%2Frepositories%2F12%2Ftop_containers%2F<u><span style="color:black; background:yellow">224618</span></u>" for 130.132.143.66 at 2015-08-06 11:18:07 -0400<br>
Processing by ResolverController#resolve_edit as HTML<br>
  Parameters: {"uri"=>"/repositories/12/top_containers/<u><span style="color:black; background:yellow">224618</span></u>"}<br>
Redirected to <a style="color: rgb(5, 99, 193); text-decoration: underline;" href="http://aspace.library.yale.edu/plugins/top_containers/224618/edit">
http://aspace.library.yale.edu/plugins/top_containers/<span style="background:yellow">224618</span>/edit</a><br>
Completed 302 Found in 176.0ms<br>
Started GET "/plugins/top_containers/<u><span style="color:black; background:yellow">224618</span></u>/edit" for 130.132.143.66 at 2015-08-06 11:18:07 -0400<br>
Processing by TopContainersController#edit as HTML<br>
  Parameters: {"id"=>"<u><span style="color:black; background:yellow">224618</span></u>"}<br>
Started POST "/update_monitor/poll" for 130.132.143.66 at 2015-08-06 11:18:09 -0400<br>
Processing by UpdateMonitorController#poll as JSON<br>
  Parameters: {"lock_version"=>"0", "uri"=>"/repositories/12/archival_objects/2104298"}<br>
Completed 200 OK in 204.0ms (Views: 2.0ms)<br>
  Rendered shared/_breadcrumb.html.erb (26.0ms)<br>
  Rendered shared/_sidebar.html.erb (3.0ms)<br>
  Rendered /archivesspace/plugins/container_management/frontend/views/top_containers/_sidebar.html.erb (6.0ms)<br>
  Rendered /archivesspace/plugins/container_management/frontend/views/top_containers/_toolbar.html.erb (29.0ms)<br>
  Rendered shared/_flash_messages.html.erb (0.0ms)<br>
  Rendered shared/_form_messages.html.erb (4.0ms)<br>
  Rendered /archivesspace/plugins/container_management/frontend/views/container_profiles/_linker.html.erb (11.0ms)<br>
  Rendered container_locations/_template.html.erb (0.0ms)<br>
  Rendered shared/_subrecord_form.html.erb (15.0ms)<br>
  Rendered /archivesspace/plugins/container_management/frontend/views/top_containers/_form.html.erb (57.0ms)<br>
  Rendered shared/_sidebar.html.erb (5.0ms)<br>
  Rendered /archivesspace/plugins/container_management/frontend/views/top_containers/_sidebar.html.erb (13.0ms)<br>
  Rendered /archivesspace/plugins/container_management/frontend/views/top_containers/_toolbar.html.erb (42.0ms)<br>
  Rendered shared/_flash_messages.html.erb (0.0ms)<br>
  Rendered shared/_form_messages.html.erb (7.0ms)<br>
  Rendered /archivesspace/plugins/container_management/frontend/views/container_profiles/_linker.html.erb (23.0ms)<br>
  Rendered container_locations/_template.html.erb (1.0ms)<br>
  Rendered shared/_subrecord_form.html.erb (16.0ms)<br>
  Rendered /archivesspace/plugins/container_management/frontend/views/top_containers/_form.html.erb (101.0ms)<br>
  Rendered /archivesspace/plugins/container_management/frontend/views/container_profiles/_linker.html.erb (25.0ms)<br>
  Rendered container_locations/_template.html.erb (1.0ms)<br>
  Rendered shared/_subrecord_form.html.erb (14.0ms)<br>
  Rendered locations/_linker.html.erb (12.0ms)<br>
  Rendered /archivesspace/plugins/container_management/frontend/views/top_containers/edit.html.erb within layouts/application (523.0ms)<br>
  Rendered /archivesspace/plugins/container_management/frontend/views/layout_head.html.erb (7.0ms)<br>
  Rendered /archivesspace/plugins/oclc/frontend/views/layout_head.html.erb (1.0ms)<br>
  Rendered /archivesspace/plugins/yale_accessions/frontend/views/layout_head.html.erb (4.0ms)<br>
  Rendered shared/_browser_support.html.erb (0.0ms)<br>
  Rendered shared/_header_user.html.erb (71.0ms)<br>
  Rendered shared/_header_global.html.erb (87.0ms)<br>
  Rendered site/_branding.html.erb (2.0ms)<br>
  Rendered shared/_advanced_search.html.erb (404.0ms)<br>
  Rendered shared/_header_repository.html.erb (497.0ms)<br>
  Rendered site/_footer.html.erb (0.0ms)<br>
  Rendered shared/_templates.html.erb (17.0ms)<br>
<span style="background:red">Completed 200 OK in 3774.0ms (Views: 1299.0ms)<br>
Aug 06, 2015 11:18:14 AM org.apache.solr.core.SolrCore execute<br>
INFO: [collection1] webapp= path=/select params={facet=true&pf=four_part_<span style="color:black">id</span>^4&sort=&start=0&q=ms+*&qf=four_part_id^3+title^2+finding_aid_filing_title^2+fullrecord&facet.field=primary_type&facet.field=creators&facet.field=subjects&wt=json&fq=repository:"/repositories/12"+OR+repository:global&fq=types:("resource")&fq=-exclude_by_default:true&rows=10&defType=edismax}
 hits=3381 status=0 QTime=41654 <br>
Completed 200 OK in 44280.0ms (Views: 370.0ms)<br>
2015-08-06 11:18:17 -0400: Running index round<br>
#<EOFError: End of file reached></span></span></p>
<p style="margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: "Calibri",sans-serif;">
 </p>
<p style="margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: "Calibri",sans-serif;">
Melissa Wisner</p>
<p style="margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: "Calibri",sans-serif;">
Yale Library IT</p>
</div>
</div>
</div>
</div>
</body>
</html>