[Archivesspace_Users_Group] The best way to implement Solr - confused by documentation
Gadsby, Eric T.
egadsby at towson.edu
Tue May 2 11:07:28 EDT 2023
Thanks! That was a big help. I got Solr working and created a core, now for next steps. It’s worth noting that in order to get Solr to start at start-up I had to disable SELinux. That’s fine because our production systems don’t use SELinux anyway. Thanks!
[Towson University logo]<http://www.towson.edu/>
Eric T. Gadsby
Pronouns: he/him/his
IT Operations Specialist | Albert S. Cook Library
—
P: 410-704-3340
egadsby at towson.edu<mailto:egadsby at towson.edu> | libraries.towson.edu<http://www.towson.edu/https:/libraries.towson.edu>
—
Confidentiality Notice: This message may contain information that is confidential, privileged, proprietary, or otherwise legally exempt from disclosure. If you are not the intended recipient, you are notified that you are not authorized to read, print, copy or disseminate this message, any part of it, or any attachments. If this message has been sent to you in error, please notify the sender by replying to this transmission, or by calling Albert S. Cook Library at 410-704-3340 .
From: archivesspace_users_group-bounces at lyralists.lyrasis.org <archivesspace_users_group-bounces at lyralists.lyrasis.org> on behalf of Jesse Martinez <jesse.martinez at bc.edu>
Date: Monday, May 1, 2023 at 12:02 PM
To: Archivesspace Users Group <archivesspace_users_group at lyralists.lyrasis.org>
Subject: Re: [Archivesspace_Users_Group] The best way to implement Solr - confused by documentation
[ CAUTION: This email is from outside of TU. Use caution before clicking links or opening attachments. If suspicious, report to phishing at towson.edu. ]
Hi,
I wrote up my Solr installation step in this gist. Maybe it would be useful for others. (The manual installation instructions may be incomplete, though.)
https://gist.github.com/jessemartinez/f6bd547dfbe0ce935dda9e3132025473
Jesse
On Mon, May 1, 2023 at 11:25 AM Brian Hoffman <brian.hoffman at lyrasis.org<mailto:brian.hoffman at lyrasis.org>> wrote:
Hi Eric,
As of now, ArchivesSpace targets Solr 8.x.
Brian
From: archivesspace_users_group-bounces at lyralists.lyrasis.org<mailto:archivesspace_users_group-bounces at lyralists.lyrasis.org> <archivesspace_users_group-bounces at lyralists.lyrasis.org<mailto:archivesspace_users_group-bounces at lyralists.lyrasis.org>> on behalf of Gadsby, Eric T. <egadsby at towson.edu<mailto:egadsby at towson.edu>>
Date: Monday, May 1, 2023 at 11:03 AM
To: Archivesspace Users Group <archivesspace_users_group at lyralists.lyrasis.org<mailto:archivesspace_users_group at lyralists.lyrasis.org>>
Subject: Re: [Archivesspace_Users_Group] The best way to implement Solr - confused by documentation
So I tried doing this from my home directory – aka not running the installer script and this is what I’ve got now:
/home/theadmin/solr-9.2.0/bin/solr create_core -c archivesspace -d solr
ERROR: Error CREATEing SolrCore 'archivesspace': Unable to create core [archivesspace] Caused by: solr.ICUCollationField
Please correct me if I’m wrong but it seems to be reading the config but triping on a value therein. Ideas? Thanks!
[Towson University logo]<http://www.towson.edu/>
Eric T. Gadsby
Pronouns: he/him/his
IT Operations Specialist | Albert S. Cook Library
—
P: 410-704-3340
egadsby at towson.edu<mailto:egadsby at towson.edu> | libraries.towson.edu<http://www.towson.edu/https:/libraries.towson.edu>
—
Confidentiality Notice: This message may contain information that is confidential, privileged, proprietary, or otherwise legally exempt from disclosure. If you are not the intended recipient, you are notified that you are not authorized to read, print, copy or disseminate this message, any part of it, or any attachments. If this message has been sent to you in error, please notify the sender by replying to this transmission, or by calling Albert S. Cook Library at 410-704-3340 .
From: archivesspace_users_group-bounces at lyralists.lyrasis.org<mailto:archivesspace_users_group-bounces at lyralists.lyrasis.org> <archivesspace_users_group-bounces at lyralists.lyrasis.org<mailto:archivesspace_users_group-bounces at lyralists.lyrasis.org>> on behalf of Gadsby, Eric T. <egadsby at towson.edu<mailto:egadsby at towson.edu>>
Date: Monday, May 1, 2023 at 9:54 AM
To: Archivesspace Users Group <archivesspace_users_group at lyralists.lyrasis.org<mailto:archivesspace_users_group at lyralists.lyrasis.org>>
Subject: Re: [Archivesspace_Users_Group] The best way to implement Solr - confused by documentation
[ CAUTION: This email is from outside of TU. Use caution before clicking links or opening attachments. If suspicious, report to phishing at towson.edu<mailto:phishing at towson.edu>. ]
Hi,
I tried this from my fresh install of Solr. It didn’t work.
"[theadmin at aspace3-test-localdomain archivesspace]$ /opt/solr/bin/solr create_core -c archivesspace -d /opt/archivesspace//solr
ERROR: Failed to create new core instance directory: /var/solr/data/archivesspace"
I wondered about the path so I tried this:
"[theadmin at aspace3-test-localdomain archivesspace]$ /opt/solr/bin/solr create_core -c archivesspace -d /opt/archivesspace//solr
ERROR: Failed to create new core instance directory: /var/solr/data/archivesspace"
This is Solr installed as laid out at https://solr.apache.org/guide/solr/latest/deployment-guide/taking-solr-to-production.html and I have moved the ArchivesSpace files in to the A solr/server/solr/configsets/archivesspace/conf/. Any help would be appreciated. Thanks!
[Towson University logo]<http://www.towson.edu/>
Eric T. Gadsby
Pronouns: he/him/his
IT Operations Specialist | Albert S. Cook Library
—
P: 410-704-3340
egadsby at towson.edu<mailto:egadsby at towson.edu> | libraries.towson.edu<http://www.towson.edu/https:/libraries.towson.edu>
—
Confidentiality Notice: This message may contain information that is confidential, privileged, proprietary, or otherwise legally exempt from disclosure. If you are not the intended recipient, you are notified that you are not authorized to read, print, copy or disseminate this message, any part of it, or any attachments. If this message has been sent to you in error, please notify the sender by replying to this transmission, or by calling Albert S. Cook Library at 410-704-3340 .
From: archivesspace_users_group-bounces at lyralists.lyrasis.org<mailto:archivesspace_users_group-bounces at lyralists.lyrasis.org> <archivesspace_users_group-bounces at lyralists.lyrasis.org<mailto:archivesspace_users_group-bounces at lyralists.lyrasis.org>> on behalf of Brian Hoffman <brian.hoffman at lyrasis.org<mailto:brian.hoffman at lyrasis.org>>
Date: Monday, May 1, 2023 at 4:14 AM
To: Archivesspace Users Group <archivesspace_users_group at lyralists.lyrasis.org<mailto:archivesspace_users_group at lyralists.lyrasis.org>>
Subject: Re: [Archivesspace_Users_Group] The best way to implement Solr - confused by documentation
[ CAUTION: This email is from outside of TU. Use caution before clicking links or opening attachments. If suspicious, report to phishing at towson.edu<mailto:phishing at towson.edu>. ]
Hi Eric,
There are different ways to do it, but this is what I recommend with a standard Solr install:
1. Start Solr:
solr start -p 8983
1. Cd to where you installed archivesspace:
cd /opt/archivesspace
1. Create a new Solr core:
/opt/solr/bin/solr create_core -c archivesspace -d solr
1. Navigate to http://yourserver:8983/solr and confirm that the collection ‘archivesspace’ exists in the dropdown on the left side.
Brian
From: archivesspace_users_group-bounces at lyralists.lyrasis.org<mailto:archivesspace_users_group-bounces at lyralists.lyrasis.org> <archivesspace_users_group-bounces at lyralists.lyrasis.org<mailto:archivesspace_users_group-bounces at lyralists.lyrasis.org>> on behalf of Gadsby, Eric T. <egadsby at towson.edu<mailto:egadsby at towson.edu>>
Date: Friday, April 28, 2023 at 5:32 PM
To: Archivesspace Users Group <archivesspace_users_group at lyralists.lyrasis.org<mailto:archivesspace_users_group at lyralists.lyrasis.org>>
Subject: Re: [Archivesspace_Users_Group] The best way to implement Solr - confused by documentation
Brian,
Thanks! Let me make sure I understand…
1. Download ArchivesSpace, stick it someplace… let’s say /opt
2. Download Solr , stick it someplace… let’s say /opt
3. mkdir -p /$path/$to/$solr/server/solr/configsets/archivesspace/conf
4. Copy the configutrtion files from ArchivesSpace to /$path/$to/$solr/server/solr/configsets/archivesspace/conf
5. solr start -p 8983
6. solr create_core -c archivesspace -d solr
Then I would need to define the Solr path in the ArchivesSpace config file and start it. What would be your suggestion on how to make Solr survive a reboot?
Thanks again!
[Towson University logo]<http://www.towson.edu/>
Eric T. Gadsby
Pronouns: he/him/his
IT Operations Specialist | Albert S. Cook Library
—
P: 410-704-3340
egadsby at towson.edu<mailto:egadsby at towson.edu> | libraries.towson.edu<http://www.towson.edu/https:/libraries.towson.edu>
—
Confidentiality Notice: This message may contain information that is confidential, privileged, proprietary, or otherwise legally exempt from disclosure. If you are not the intended recipient, you are notified that you are not authorized to read, print, copy or disseminate this message, any part of it, or any attachments. If this message has been sent to you in error, please notify the sender by replying to this transmission, or by calling Albert S. Cook Library at 410-704-3340 .
From: archivesspace_users_group-bounces at lyralists.lyrasis.org<mailto:archivesspace_users_group-bounces at lyralists.lyrasis.org> <archivesspace_users_group-bounces at lyralists.lyrasis.org<mailto:archivesspace_users_group-bounces at lyralists.lyrasis.org>> on behalf of Brian Hoffman <brian.hoffman at lyrasis.org<mailto:brian.hoffman at lyrasis.org>>
Date: Friday, April 28, 2023 at 4:34 PM
To: Archivesspace Users Group <archivesspace_users_group at lyralists.lyrasis.org<mailto:archivesspace_users_group at lyralists.lyrasis.org>>
Subject: Re: [Archivesspace_Users_Group] The best way to implement Solr - confused by documentation
[ CAUTION: This email is from outside of TU. Use caution before clicking links or opening attachments. If suspicious, report to phishing at towson.edu<mailto:phishing at towson.edu>. ]
Hi Eric,
I recommend trying a simpler approach:
First, start solr. For example:
solr start -p 8983
Then cd to where you installed archivesspace and:
solr create_core -c archivesspace -d solr
Once you do that, you should be able to navigate to http://host:8983 and see the ‘archivesspace’ core in the collection dropdown.
Brian
From: archivesspace_users_group-bounces at lyralists.lyrasis.org<mailto:archivesspace_users_group-bounces at lyralists.lyrasis.org> <archivesspace_users_group-bounces at lyralists.lyrasis.org<mailto:archivesspace_users_group-bounces at lyralists.lyrasis.org>> on behalf of Gadsby, Eric T. <egadsby at towson.edu<mailto:egadsby at towson.edu>>
Date: Friday, April 28, 2023 at 3:31 PM
To: Archivesspace Users Group <archivesspace_users_group at lyralists.lyrasis.org<mailto:archivesspace_users_group at lyralists.lyrasis.org>>
Subject: [Archivesspace_Users_Group] The best way to implement Solr - confused by documentation
Dear Friends,
In relationship to my previous message about moving our ArchivesSpace to a new server I am in the process of setting up Solr in our test environment and having troubles.
I set up Solr as outlined at https://solr.apache.org/guide/solr/latest/deployment-guide/taking-solr-to-production.html; specifically running the install script that places all files in the correct places, makes a solr user, and sets the start-up process. Solr installed fine but I could not make the ArchivesSpace core using the process laid out at https://archivesspace.github.io/tech-docs/provisioning/solr.html; I got an error.
Now here is where I have found a contradiction. The ArchivesSpace documentation instructs you to follow the Solr documentation. The Solr documentation says to run the script but that starts Solr while the ArchivesSpace documentation goes onto says to not run Solr before importing the ArchivesSpace configuration files. Which is accurate?
I have rolled my testing environment back and am trying again. In trying to get a better understanding I looked at Blake’s video at https://www.youtube.com/watch?v=1KbD0M_XfqI. In the video he says to simply move solr to /opt and you’re done, no need to run the script. Is that the case? Perhaps I am over thinking this but don’t you need to script to set up all the things Solr need like it’s own user and init file. The Solr document says you can start the software from anywhere (ie your home directory) but they call it a “toy” install and cautions you not to overtax it suggesting you should test that way but run a full install.
As I roll up my sleaves to try again any guidance would be most helpful. Thanks in advance for your help!
[Towson University logo]<http://www.towson.edu/>
Eric T. Gadsby
Pronouns: he/him/his
IT Operations Specialist | Albert S. Cook Library
—
P: 410-704-3340
egadsby at towson.edu<mailto:egadsby at towson.edu> | libraries.towson.edu<http://www.towson.edu/https:/libraries.towson.edu>
—
Confidentiality Notice: This message may contain information that is confidential, privileged, proprietary, or otherwise legally exempt from disclosure. If you are not the intended recipient, you are notified that you are not authorized to read, print, copy or disseminate this message, any part of it, or any attachments. If this message has been sent to you in error, please notify the sender by replying to this transmission, or by calling Albert S. Cook Library at 410-704-3340 .
_______________________________________________
Archivesspace_Users_Group mailing list
Archivesspace_Users_Group at lyralists.lyrasis.org<mailto:Archivesspace_Users_Group at lyralists.lyrasis.org>
http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group
--
Jesse Martinez
Senior Library Applications Developer
O'Neill Library, Boston College
jesse.martinez at bc.edu<mailto: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/20230502/a37783fd/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.jpg
Type: image/jpeg
Size: 1826 bytes
Desc: image001.jpg
URL: <http://lyralists.lyrasis.org/pipermail/archivesspace_users_group/attachments/20230502/a37783fd/attachment-0002.jpg>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.jpg
Type: image/jpeg
Size: 1826 bytes
Desc: image001.jpg
URL: <http://lyralists.lyrasis.org/pipermail/archivesspace_users_group/attachments/20230502/a37783fd/attachment-0003.jpg>
More information about the Archivesspace_Users_Group
mailing list