Error creating archivesspace core

667 views
Skip to first unread message

Johnnie W Adams

unread,
Jun 10, 2024, 2:59:47 PM6/10/24
to Archivesspace_Users_Group
Hi, folks,

     I've been following these instructions and am frustrated. When I get to this step:

Now create the core:
bin/solr create -c archivesspace -d archivesspace

     I consistently fail with this error:

ERROR: Error CREATEing SolrCore 'archivesspace': Unable to create core [archivesspace] Caused by: solr.ICUCollationField

     I consistently succeed by leaving off the -d archivesspace, but that seems like cheating.

     Any thoughts?

Thanks,

     John A

Johnnie W Adams

unread,
Jun 10, 2024, 3:03:17 PM6/10/24
to Archivesspace_Users_Group, Johnnie W Adams

Oh, d'oh--I'm using solr 8.11.3

Blake Carver

unread,
Jun 10, 2024, 3:05:33 PM6/10/24
to Archivesspace_Users_Group
8.11.3 should be fine. That error probably comes from configs that are messed up or just in some way. Can you make sure you only have the 4 files in your config sets and they are from the 3.5 release version only? 

From: archivesspac...@lyrasislists.org <archivesspac...@lyrasislists.org> on behalf of Johnnie W Adams <jxa...@ualr.edu>
Sent: Monday, June 10, 2024 3:03 PM
To: Archivesspace_Users_Group <archivesspac...@lyrasislists.org>
Cc: Johnnie W Adams <jxa...@ualr.edu>
Subject: [ArchivesSpace Users Group] Re: Error creating archivesspace core
 
--
You received this message because you are subscribed to the Google Groups "Archivesspace_Users_Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to Archivesspace_User...@lyrasislists.org.
To view this discussion on the web visit https://groups.google.com/a/lyrasislists.org/d/msgid/Archivesspace_Users_Group/9278730b-0cd8-4fbd-9270-8ddef209d6d1n%40lyrasislists.org.

Johnnie W Adams

unread,
Jun 10, 2024, 3:09:36 PM6/10/24
to Archivesspace_Users_Group, Blake Carver
Hi, Blake,

     I have exactly four files in the server/solr/configset/archivesspace/conf directory and they are all taken directly from the current git repo.

Thanks,

     John A

Scott Kushner

unread,
Jun 10, 2024, 3:18:25 PM6/10/24
to Johnnie W Adams, Archivesspace_Users_Group, Blake Carver
I had that error...

I can't remember exactly what it was, but it had something to do with the pathing of your solr core...

This is the error that I had..
"msg": "Status 404 when trying to verify http://localhost:8983/solr/archivesspaceServer response:\n{\n \"responseHeader\":{\n \"status\":404,\n \"QTime\":2},\n \"error\":{\n \"metadata\":[\n \"error-class\",\"org.apache.solr.common.SolrException\",\n \"root-error-class\",\"org.apache.solr.common.SolrException\"],\n \"msg\":\"Can not find: schema.xml [/opt/solr-8.11.1/server/solr/archivesspace/conf/schema.xml]\",\n \"code\":404}}\n",
Look in the archivesspace.out log...

Sorry that I can't be more specific.

Good luck.



--
Scott Kushner
Systems and Emerging Technologies Librarian

Saint Peter's University

The Jesuit University of New Jersey

Theresa & Edward O'Toole Library
99 Glenwood Ave.
Jersey City, New Jersey 07306

p: (201) 761-6456
f:  (201) 761-6451

Steele, Henry

unread,
Jun 10, 2024, 3:19:40 PM6/10/24
to Johnnie W Adams, Archivesspace_Users_Group, Blake Carver
I can tell you what our problem was on a local ArchivesSpace instance.   I thing the solrconfig.xml that’s included in the 3.5 release is really , or partially meant for Solr 9 , which ArcvivesSpace documentation says isn’t supported.     

I got around this issue by using the schema.xml in 3.5 in GitHub , but the solrconfig.xml from 3.4.  , which is consistent with 8.x versions of Solr 

I had this exact same error message and also found this very frustrating with a local install

Thus I am not using the configset exactly as it is in this release 

Sent: Monday, June 10, 2024 3:09:36 PM
To: Archivesspace_Users_Group <archivesspac...@lyrasislists.org>
Cc: Blake Carver <blake....@lyrasis.org>
Subject: [External] Re: [ArchivesSpace Users Group] Re: Error creating archivesspace core
 
To view this discussion on the web visit https://groups.google.com/a/lyrasislists.org/d/msgid/Archivesspace_Users_Group/1bc1f548-e0bf-43da-abba-abf96a38c14fn%40lyrasislists.org.

Caution: This message originated from outside of the Tufts University organization. Please exercise caution when clicking links or opening attachments. When in doubt, email the TTS Service Desk at i...@tufts.edu or call them directly at 617-627-3376.

Johnnie W Adams

unread,
Jun 10, 2024, 3:27:59 PM6/10/24
to Archivesspace_Users_Group, Steele, Henry, Blake Carver, Johnnie W Adams
Hi, Henry,

     Going back to the 3.4.x branch and getting that file seems to have fixed me up--thanks!

All the best,

     John A

Christine Di Bella

unread,
Jun 10, 2024, 3:52:23 PM6/10/24
to Johnnie W Adams, Archivesspace_Users_Group, Steele, Henry, Blake Carver

Hi everyone,

 

This is strange, because we’ve confirmed that the solrconfig included with the 3.5.0 release is correct and there are many successful ArchivesSpace installs out there in the wild to prove it.

 

John – though it sounds like you have something that’s working now, this probably isn’t the best way forward. I’ll put a technical support ticket in for you to diagnose further what may be going on. You’ll see another message to you separately about that.

 

Christine

 

Christine Di Bella

ArchivesSpace Senior Program Manager

christin...@lyrasis.org

 

 

 

 


Sent: Monday, June 10, 2024 3:28 PM
To: Archivesspace_Users_Group <archivesspac...@lyrasislists.org>

--

You received this message because you are subscribed to the Google Groups "Archivesspace_Users_Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to Archivesspace_User...@lyrasislists.org.

Johnnie W Adams

unread,
Nov 6, 2024, 2:27:09 PM11/6/24
to Archivesspace_Users_Group, Christine Di Bella
Hi, folks,

     After a little time away, I've gotten back to this. I'm now using ArchivesSpace 3.5.1 and Solr 9.4.1 and am back to getting the error I got originally:

[root@aspace3 svc_archivesspace]# sudo -u svc_archivesspace solr/bin/solr create -c archivesspace -d archivesspace


ERROR: Error from server at http://localhost:8983/solr/admin/cores?action=CREATE&name=archivesspace&instanceDir=archivesspace&wt=javabin&version=2: Error CREATEing SolrCore 'archivesspace': Unable to create core [archivesspace] Caused by: solr.ICUCollationField


     Your thoughts are welcome!

Thanks,

     John A

Clair, Kevin

unread,
Nov 6, 2024, 3:06:15 PM11/6/24
to Archivesspace_Users_Group
Hi John,

Replying to the list in case other people encounter this error as they upgrade: I was able to fix this by adding this line to my solrconfig.xml file:

<lib dir="${solr.install.dir}/modules/analysis-extras/lib/" regex=".*\.jar" />

Note that this is, as far as I can tell, a Solr 9 requirement only; v3.5.1 runs fine on Solr 8 so I didn't need to do this until we upgraded to ArchivesSpace 4.0.0.  -k

Sent: Wednesday, November 6, 2024 2:27 PM
To: Archivesspace_Users_Group <archivesspac...@lyrasislists.org>
Cc: Christine Di Bella <christin...@lyrasis.org>

Subject: Re: [External] Re: [ArchivesSpace Users Group] Re: Error creating archivesspace core
--
You received this message because you are subscribed to the Google Groups "Archivesspace_Users_Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to Archivesspace_User...@lyrasislists.org.

Johnnie W Adams

unread,
Nov 6, 2024, 3:15:17 PM11/6/24
to Clair, Kevin, Archivesspace_Users_Group
Thanks, Kevin--that's working!



--
John Adams
Senior Linux/Middleware Administrator  | Information Technology Services
+1-501-916-3010 | jxa...@ualr.edu | http://ualr.edu/itservices
UA Little Rock

Reminder:  IT Services will never ask for your password over the phone or in an email. Always be suspicious of requests for personal information that come via email, even from known contacts.  For more information or to report suspicious email, visit IT Security.

Tommy Keswick

unread,
Nov 26, 2024, 9:06:53 PM11/26/24
to Archivesspace_Users_Group
Yes, thank you Kevin for that snippet!

I spent today working on getting the v4.0.0-RC1 version running locally. This was a key piece in getting it to work.

Does this mean that the solrconfig.xml file needs to be updated before the final release of 4.0.0? I tried looking for JIRA issues and GitHub issues referencing that file but found nothing.

—Tommy

Thimios Dimopulos

unread,
Dec 2, 2024, 12:38:36 PM12/2/24
to Tommy Keswick, Archivesspace_Users_Group
Hi all,

indeed enabling the "analysis-extras" is a requirement to run archivesspace with Solr 9.

The currently recommended way is by using an environment variable as documented here: https://docs.archivesspace.org/provisioning/solr/#setup-the-environment

I have created a jira task: https://archivesspace.atlassian.net/browse/ANW-2220 to work on better documenting (or maybe making it easier to have this module enabled) to avoid this confusion in the future. 

Thanks for reporting this and sorry for the trouble! 

Thimios

From: archivesspac...@lyrasislists.org <archivesspac...@lyrasislists.org> on behalf of Tommy Keswick <tkes...@library.caltech.edu>
Sent: Wednesday, November 27, 2024 4:06 AM
To: Archivesspace_Users_Group <archivesspac...@lyrasislists.org>
--
You received this message because you are subscribed to the Google Groups "Archivesspace_Users_Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to Archivesspace_User...@lyrasislists.org.

Josh Conrad

unread,
Jan 30, 2025, 2:12:26 PM1/30/25
to Archivesspace_Users_Group, Thimios Dimopulos, Tommy Keswick
"<lib/> directives have been made into an "opt-in" feature in Solr 9.8 and must be explicitly enabled if desired (using a system property or environment variable like -Dsolr.config.lib.enabled=true) If not explicitly enabled, Solr will log a warning but otherwise quietly ignore any <lib/> tags in configsets."

So, I needed to start Solr 9.8.0 using:
solr-9.8.0/bin/solr start -Dsolr.config.lib.enabled=true

Derrick Xu

unread,
Feb 4, 2025, 10:35:38 PM2/4/25
to Archivesspace_Users_Group, Josh Conrad, Thimios Dimopulos, Tommy Keswick
Thanks Josh, I can confirm that fix works with Solr 9.8.0. The snippet that Kevin provided was already in the solrconfig.xml file.

Thimios Dimopulos

unread,
Feb 5, 2025, 5:13:40 AM2/5/25
to Josh Conrad, Archivesspace_Users_Group, Tommy Keswick
Thanks for the update. It seems that lib directives are going to be entirely deprecated in solr 10, so we have to revert back to using an environment variable to enable the analysis-extras module:





From: archivesspac...@lyrasislists.org <archivesspac...@lyrasislists.org> on behalf of Josh Conrad <j.co...@austin.utexas.edu>
Sent: Thursday, January 30, 2025 9:12 PM
To: Archivesspace_Users_Group <archivesspac...@lyrasislists.org>
Cc: Thimios Dimopulos <Thimios....@lyrasis.org>; Tommy Keswick <tkes...@library.caltech.edu>

Clair, Kevin

unread,
Feb 5, 2025, 8:47:13 AM2/5/25
to Archivesspace_Users_Group, Thimios Dimopulos
Apologies if this is documented somewhere and I just overlooked it, but is that environment variable SOLR_MODULES=analysis-extras ?

thanks!  -k

From: 'Thimios Dimopulos' via Archivesspace_Users_Group <Archivesspac...@lyrasislists.org>
Sent: Wednesday, February 5, 2025 5:13 AM
To: Josh Conrad <j.co...@austin.utexas.edu>; Archivesspace_Users_Group <archivesspac...@lyrasislists.org>
Cc: Tommy Keswick <tkes...@library.caltech.edu>

Thimios Dimopulos

unread,
Feb 5, 2025, 11:08:39 AM2/5/25
to Clair, Kevin, Archivesspace_Users_Group
that's right!

From: Clair, Kevin <km...@psu.edu>
Sent: Wednesday, February 5, 2025 3:47 PM
To: Archivesspace_Users_Group <archivesspac...@lyrasislists.org>; Thimios Dimopulos <Thimios....@lyrasis.org>
Reply all
Reply to author
Forward
0 new messages