<div dir="ltr">Greg, <div><br></div><div>One easy way to rebuild the index is to install the Lyrasis reindexer plugin: <a href="https://github.com/lyrasis/aspace-reindexer">https://github.com/lyrasis/aspace-reindexer</a>. Once installed, you can either have it rebuild the index via the startup config or by the endpoint that the plugin adds to the API. We recently migrated from 3.0.2 to 3.2.0 and everything went smoothly for us. Once the new version of Aspace was running we hit the endpoint and the database rebuilt. </div><div><br></div><div>Don</div><div><br clear="all"><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><font face="verdana, sans-serif">Donald R. Mennerich, </font><span style="font-family:verdana,sans-serif">digital archivist</span><div><font face="verdana, sans-serif">New York University Libraries</font></div><div><font face="verdana, sans-serif"><a href="mailto:don.mennerich@nyu.edu" target="_blank">don.mennerich@nyu.edu</a> (212) 992-6264<br></font><div><font face="verdana, sans-serif"><br></font></div></div></div></div></div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Aug 9, 2022 at 2:31 PM Jerry Boggio <<a href="mailto:gboggio@mitre.org">gboggio@mitre.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div lang="EN-US" style="overflow-wrap: break-word;">
<div class="gmail-m_-4865670686515533666WordSection1">
<p class="MsoNormal">Hello ASpace Users;<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">We just upgraded from ArchivesSpace version 2.7.1 to version 3.2.0 and now have “phantom” records in Resources and Subjects. By phantom I mean records show up in ASpace, but are not in the database and when trying to view the record returns:<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal"><img width="768" height="265" style="width: 8in; height: 2.7604in;" id="gmail-m_-4865670686515533666Picture_x0020_1" src="cid:182843804764cff311"><u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">As part of this upgrade on our Test machine we:<u></u><u></u></p>
<ul style="margin-top:0in" type="disc">
<li class="gmail-m_-4865670686515533666MsoListParagraph" style="margin-left:0in">Started using External Solr as opposed to Internal<u></u><u></u></li><li class="gmail-m_-4865670686515533666MsoListParagraph" style="margin-left:0in">Purged the contents of the following directories, but did not delete the directories:<u></u><u></u></li><ul style="margin-top:0in" type="circle">
<li class="gmail-m_-4865670686515533666MsoListParagraph" style="margin-left:0in">/apps/archivesspace/data/indexer_pui_state
<u></u><u></u></li><li class="gmail-m_-4865670686515533666MsoListParagraph" style="margin-left:0in">/apps/archivesspace/data/indexer_state
<u></u><u></u></li><li class="gmail-m_-4865670686515533666MsoListParagraph" style="margin-left:0in">/apps/archivesspace/data/tmp<u></u><u></u></li></ul>
<li class="gmail-m_-4865670686515533666MsoListParagraph" style="margin-left:0in">Kept, but moved /apps/archivesspace/data/solr_backups to /apps/archivesspace/data/old_solr_backups; and created a new /apps/archivesspace/data/solr_backups directory<u></u><u></u></li><li class="gmail-m_-4865670686515533666MsoListParagraph" style="margin-left:0in">Refreshed our Test MySQL database from our v2.7.1 Prod version and ran the setup-database.sh script to convert to v3.2.0. We are running MySQL version 8.<u></u><u></u></li></ul>
<p class="MsoNormal" style="margin-left:0.25in"><u></u> <u></u></p>
<p class="MsoNormal">This left the following directory structure under the data directory:<br>
<br>
<span style="font-family:"Courier New"">/apps/archivesspace/data>ll<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"">total 36<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"">drwxr-xr-x 5 archspc users 147 Oct 16 2019 archivesspace_demo_db<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"">drwxr-xr-x 9 archspc users 4096 Oct 18 2019 demo_db_backups<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"">-rw-r--r-- 1 archspc users 32 Oct 8 2019 frontend_cookie_secret_cookie_secret.dat<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"">-rw-r--r-- 1 archspc users 32 May 14 2020 frontend_cookie_secret.dat<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"">drwxr-xr-x 2 archspc users 4096 Aug 9 13:59 indexer_pui_state<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"">drwxr-xr-x 2 archspc users 4096 Aug 9 13:59 indexer_state<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"">drwxr-xr-x 13 archspc users 4096 Aug 9 00:00 old_solr_backups<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"">-rw-r--r-- 1 archspc users 32 Oct 8 2019 public_cookie_secret_cookie_secret.dat<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"">-rw-r--r-- 1 archspc users 32 May 14 2020 public_cookie_secret.dat<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"">drwxr-xr-x 3 archspc users 22 Oct 28 2019 shared<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"">drwxr-xr-x 2 archspc users 6 Aug 9 10:33 solr_backups<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"">drwxr-xr-x 13 archspc users 4096 Aug 9 13:59 tmp<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"">/apps/archivesspace/data><u></u><u></u></span></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">External Solr was installed on the same Linux server as ArchivesSpace. We installed solr-8.10.0, but see that a newer version solr-8.11.2 is available. Should we be using the newer version? How can we clear the External Solr index in order
to rebuild it?<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">What needs to be done to eliminate these phantom records? We are assuming it is something left over from the prior version.<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">Please advise or let us know if you need more information.<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">Thank you.<u></u><u></u></p>
<p class="MsoNormal"><b><span style="color:rgb(47,84,150)">Gerard (Jerry) Boggio</span></b> |
<b>MITRE Corporation</b> | R124 - <span style="color:rgb(17,17,19)">Collaboration & Info Management</span><span style="font-size:18.5pt;font-family:Arial,sans-serif;color:rgb(17,17,19)">
</span>| 781-271-2719<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
</div>
_______________________________________________<br>
Archivesspace_Users_Group mailing list<br>
<a href="mailto:Archivesspace_Users_Group@lyralists.lyrasis.org" target="_blank">Archivesspace_Users_Group@lyralists.lyrasis.org</a><br>
<a href="https://urldefense.com/v3/__http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group__;!!BhJSzQqDqA!Qs-NxBhzce8gwDrB1UySKPtJ8x2TEvwxkmhinor9K7Ksy-DrkniV7fE27FCHkZaOoeKlfypJiCrVfoPdee0$" rel="noreferrer" target="_blank">https://urldefense.com/v3/__http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group__;!!BhJSzQqDqA!Qs-NxBhzce8gwDrB1UySKPtJ8x2TEvwxkmhinor9K7Ksy-DrkniV7fE27FCHkZaOoeKlfypJiCrVfoPdee0$</a> <br>
</blockquote></div>