[Archivesspace_Users_Group] Staging upgrade using Vagrant/Virtualbox, data in MySQL tables, Solr core present, reindexed, yet no data displayed in ASpace application

Jesse Martinez jesse.martinez at bc.edu
Wed Jul 12 10:36:16 EDT 2023


I've experienced this same error before, so I can share what I did to
remedy this. (You can see the basic steps in this gist
<https://gist.github.com/jessemartinez/f6bd547dfbe0ce935dda9e3132025473#copy-over-aspace-solr-conf-files>
.)

First, you'll need to delete the existing archivesspace core from your solr
instance: solr delete -c archivesspace
Next, create the following conf directory: mkdir -p
/opt/solr/server/solr/configsets/archivesspace/conf
Copy over the ASpace solr conf files to this new directory.
This next step is crucial. Create a new archivesspace core with the
following command: solr create -c archivesspace -d archivesspace
Lastly, restart solr and kick off a new reindex.

The -d archivesspace flag in the solr create command will tell solr to use
the configuration files in the archivesspace configset. Without that flag
you'll get an archivesspace core that doesn't know how to process ASpace
records.

Hope this helps!

Jesse

On Wed, Jul 12, 2023 at 10:19 AM Mark Cyzyk <mcyzyk at gmail.com> wrote:

> Darn:
>
> {
>   "responseHeader":{
>     "status":0,
>     "QTime":187,
>     "params":{
>       "q":"*:*",
>       "indent":"true",
>       "q.op":"OR",
>       "_":"1689171084647"}},
>   "response":{"numFound":0,"start":0,"numFoundExact":true,"docs":[]
>   }}
>
>
> I will look more carefully at my Solr Aspace config (and yet the steps in
> my Vagrant file for setting this up are the same as last summer when I did
> this!).
>
> Mark
>
> <><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>
> Mark Cyzyk, M.A., M.L.S.
> Library Applications Group
> The Sheridan Libraries
> The Johns Hopkins Universitymcyzyk at jhu.edu
>
> Verba volant, scripta manent.
>
> On 7/12/23 10:09, Jesse Martinez wrote:
>
> Thanks for sharing that, Mark!
>
> I have another quick follow up question.
>
> What do you see when you run a solr search like this one:
>
> http://localhost:8983/solr/#/archivesspace/query?q=*:*&q.op=OR&indent=true
>
> You should see all your indexed records. But if you don't see any results
> then it may indicate that your archivesspace configuration directory is not
> correct.
>
> Jesse
>
> On Wed, Jul 12, 2023 at 10:05 AM Mark Cyzyk <mcyzyk at gmail.com> wrote:
>
>>
>> Thanks, Jesse,
>>
>> Here is the output of those commands:
>>
>> ps aux | grep solr | grep -v grep
>> solr         898  0.0  0.1  19096  9812 ?        Ss   Jul11   0:00
>> /lib/systemd/systemd --user
>> solr         910  0.0  0.0 169492  3368 ?        S    Jul11   0:00
>> (sd-pam)
>> solr        1223  0.5 12.5 4018692 742508 ?      Sl   Jul11   7:41 java
>> -server -Xms512m -Xmx512m -XX:+UseG1GC -XX:+PerfDisableSharedMem
>> -XX:+ParallelRefProcEnabled -XX:MaxGCPauseMillis=250 -XX:+UseLargePages
>> -XX:+AlwaysPreTouch -XX:+ExplicitGCInvokesConcurrent -verbose:gc
>> -XX:+PrintHeapAtGC -XX:+PrintGCDetails -XX:+PrintGCDateStamps
>> -XX:+PrintGCTimeStamps -XX:+PrintTenuringDistribution
>> -XX:+PrintGCApplicationStoppedTime -Xloggc:/var/solr/logs/solr_gc.log
>> -XX:+UseGCLogFileRotation -XX:NumberOfGCLogFiles=9 -XX:GCLogFileSize=20M
>> -Dsolr.jetty.inetaccess.includes= -Dsolr.jetty.inetaccess.excludes=
>> -Dsolr.log.dir=/var/solr/logs -Djetty.port=8983 -DSTOP.PORT=7983
>> -DSTOP.KEY=solrrocks -Duser.timezone=UTC -XX:-OmitStackTraceInFastThrow
>> -XX:OnOutOfMemoryError=/opt/solr/bin/oom_solr.sh 8983 /var/solr/logs
>> -Djetty.home=/opt/solr/server -Dsolr.solr.home=/var/solr/data
>> -Dsolr.data.home= -Dsolr.install.dir=/opt/solr
>> -Dsolr.default.confdir=/opt/solr/server/solr/configsets/_default/conf
>> -Dlog4j.configurationFile=/var/solr/log4j2.xml -Xss256k
>> -Dsolr.log.muteconsole -jar start.jar --module=http --module=gzip
>>
>> Puzzling!
>>
>> Mark
>>
>> <><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>
>> Mark Cyzyk, M.A., M.L.S.
>> Library Applications Group
>> The Sheridan Libraries
>> The Johns Hopkins Universitymcyzyk at jhu.edu
>>
>> Verba volant, scripta manent.
>>
>> On 7/12/23 09:52, Jesse Martinez wrote:
>>
>> ps aux | grep solr | grep -v grep
>>
>>
>>
>
> --
> Jesse Martinez
> Senior Library Applications Developer
> O'Neill Library, Boston College
> jesse.martinez at bc.edu
> 617-552-2509
> he/him/his
>
>
>

-- 
Jesse Martinez
Senior Library Applications Developer
O'Neill Library, Boston College
jesse.martinez at bc.edu
617-552-2509
he/him/his
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lyralists.lyrasis.org/pipermail/archivesspace_users_group/attachments/20230712/2471a49f/attachment.html>


More information about the Archivesspace_Users_Group mailing list