Update to 4.1.1 failing

98 views
Skip to first unread message

Johnnie Adams

unread,
Aug 12, 2025, 2:28:54 PMAug 12
to Archivesspace_Users_Group
Hi, folks,

     I'm getting this error:

Aug 12, 2025 1:27:21 PM org.eclipse.jetty.server.handler.ContextHandler$Context log

INFO: An exception happened during JRuby-Rack startup

uninitialized constant Kernel::ASOauth

--- System

jruby 9.4.8.0 (3.1.4) 2024-07-02 4d41e55a67 OpenJDK 64-Bit Server VM 11.0.25+9-LTS on 11.0.25+9-LTS +jit [x86_64-linux]

Time: 2025-08-12 13:27:21 -0500

Server: jetty/10.0.22

jruby.home: uri:classloader://META-INF/jruby.home


     Any thoughts?


Thanks,


     John A

Blake Carver

unread,
Aug 12, 2025, 2:41:29 PMAug 12
to Archivesspace_Users_Group
I think you're missing  the settings or the actual plugin files (or both) for the ArchivesSpace OAuth Plugin

From: archivesspac...@lyrasislists.org <archivesspac...@lyrasislists.org> on behalf of Johnnie Adams <jxa...@ualr.edu>
Sent: Tuesday, August 12, 2025 2:28 PM
To: Archivesspace_Users_Group <archivesspac...@lyrasislists.org>
Subject: [ArchivesSpace Users Group] Update to 4.1.1 failing
 
--
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 visit https://groups.google.com/a/lyrasislists.org/d/msgid/Archivesspace_Users_Group/f9c9820e-b1c0-4cf9-b479-bbc6bb274d41n%40lyrasislists.org.

Johnnie Adams

unread,
Aug 12, 2025, 2:46:05 PMAug 12
to Archivesspace_Users_Group, Blake Carver
The plugin was missing, which surprised me. Now it's there, and I've found a new error:

INFO: An exception happened during JRuby-Rack startup


[!] There was an error parsing `Gemfile`: You cannot specify the same gem twice with different version requirements.

You specified: rexml (>= 0) and rexml (= 3.2.4). Bundler cannot continue.


 #  from /u01/app/svc_archivesspace/archivesspace-v4.1.1/data/tmp/jetty-0_0_0_0-8089-backend_war-_-any-8714820376123944017/webapp/WEB-INF/Gemfile:60

 #  -------------------------------------------

 #  require 'asutils'

 >  ASUtils.load_plugin_gems(self)



Joshua D. Shaw

unread,
Aug 12, 2025, 3:24:41 PMAug 12
to Archivesspace_Users_Group
You'll need to see if there's a release version of the plugin with the correct gem dependencies for the AS version you are running. In the plugins I release I will usually note what version of AS the release is compatible with. For 4.1.1, I'd try the 4.0 release of the plugin if there's nothing newer.

jds


Sent: Tuesday, August 12, 2025 2:46 PM
To: Archivesspace_Users_Group <archivesspac...@lyrasislists.org>
Cc: Blake Carver <blake....@lyrasis.org>
Subject: Re: [ArchivesSpace Users Group] Update to 4.1.1 failing
 

Joshua D. Shaw

unread,
Aug 12, 2025, 3:25:34 PMAug 12
to Archivesspace_Users_Group
PS. You'll want to check for new releases of all the plugins you are running to ensure they are compatible with the 4.1.1 release of AS.

jds


From: archivesspac...@lyrasislists.org <archivesspac...@lyrasislists.org> on behalf of Joshua D. Shaw <Joshua...@dartmouth.edu>
Sent: Tuesday, August 12, 2025 3:24 PM
To: Archivesspace_Users_Group <archivesspac...@lyrasislists.org>

Johnnie Adams

unread,
Aug 12, 2025, 4:41:24 PMAug 12
to Archivesspace_Users_Group, Joshua D. Shaw
I decided to go at this the relatively easy (or so I thought) way of disabling all the plugins and bringing the system back up. The result:

INFO: An exception happened during JRuby-Rack startup

uninitialized constant Kernel::ASOauth


So I installed just the newest version of aspace-oauth, and got this:


Aug 12, 2025 3:39:39 PM org.eclipse.jetty.server.handler.ContextHandler$Context log

WARNING: initialization failed

org.jruby.rack.RackInitializationException: Could not find gem 'omniauth (~> 1.7, >= 1.7.1)' in locally installed gems.


I brute-forced the machine to show me where omniauth might live, and found it all over the 3.5.1 install but nowhere in 4.1.1

Blake Carver

unread,
Aug 12, 2025, 4:43:39 PMAug 12
to Archivesspace_Users_Group
I think you have something in your config.rb file that references the OAuth Plugin stuff

Sent: Tuesday, August 12, 2025 4:41 PM
To: Archivesspace_Users_Group <archivesspac...@lyrasislists.org>
Cc: Joshua D. Shaw <Joshua...@dartmouth.edu>

Joshua D. Shaw

unread,
Aug 12, 2025, 4:46:08 PMAug 12
to Archivesspace_Users_Group
For any and every plugin that has a gemfile in it, you need to run the plugin initialize script when you first install it or with any update to the plugin or AS core code. Assuming a *nix system of some sort:

./scripts/initialize-plugin.sh {PLUGIN NAME}

Example: ./scripts/initialize-plugin.sh aspace-oauth

jds



From: Johnnie Adams <jxa...@ualr.edu>
Sent: Tuesday, August 12, 2025 4:41 PM
To: Archivesspace_Users_Group <archivesspac...@lyrasislists.org>
Cc: Joshua D. Shaw <Joshua...@dartmouth.edu>

From: Johnnie Adams <jxa...@ualr.edu>
Sent: Tuesday, August 12, 2025 4:41 PM
To: Archivesspace_Users_Group <archivesspac...@lyrasislists.org>
Cc: Joshua D. Shaw <Joshua...@dartmouth.edu>

Joshua D. Shaw

unread,
Aug 12, 2025, 4:49:48 PMAug 12
to Archivesspace_Users_Group
What Blake said. Comment out or remove the config related to OAuth if you want to run W/O that plugin. See the config section of the plugin readme - i.e. remove all the lines related to AppConfig[:authentication_sources] in config.rb (or wherever you are storing custom config info)

jds


From: 'Blake Carver' via Archivesspace_Users_Group <Archivesspac...@lyrasislists.org>
Sent: Tuesday, August 12, 2025 4:43 PM
To: Archivesspace_Users_Group <archivesspac...@lyrasislists.org>
Subject: Re: [ArchivesSpace Users Group] Update to 4.1.1 failing
 


From: 'Blake Carver' via Archivesspace_Users_Group <Archivesspac...@lyrasislists.org>
Sent: Tuesday, August 12, 2025 4:43 PM
To: Archivesspace_Users_Group <archivesspac...@lyrasislists.org>
Subject: Re: [ArchivesSpace Users Group] Update to 4.1.1 failing
 

Blake Carver

unread,
Aug 12, 2025, 5:03:58 PMAug 12
to Archivesspace_Users_Group
What Joshua said... and it wouldn't be a terrible idea to just start over with the default 4.1.1 config.rb file and just uncomment the stuff you need to get started.

From: archivesspac...@lyrasislists.org <archivesspac...@lyrasislists.org> on behalf of Joshua D. Shaw <Joshua...@dartmouth.edu>
Sent: Tuesday, August 12, 2025 4:49 PM
To: Archivesspace_Users_Group <Archivesspac...@lyrasislists.org>

Johnnie Adams

unread,
Aug 12, 2025, 8:19:22 PMAug 12
to Archivesspace_Users_Group, Blake Carver
I have a question which has a seemingly obvious answer: Are the only plugins I have to worry about the ones enumerated in config.rb, and can the other plugins in the plugin directory be safely ignored?

Joshua D. Shaw

unread,
Aug 13, 2025, 6:30:58 AMAug 13
to Archivesspace_Users_Group
Reply all
Reply to author
Forward
0 new messages