[Archivesspace_Users_Group] Error when initializing plugins in ArchivesSpace 2.7.1 on CentOS 8

Matthew Baya mjb9 at williams.edu
Wed May 6 14:55:00 EDT 2020


Follow-up to my note yesterday, I just did a complete clean install on a
brand new centos 7 server. It is also failing there with this error;

[root at wp-cent-do archivesspace]# ./scripts/initialize-plugin.sh
aspace-import-excel
io/console on JRuby shells out to stty for most operations
Fetching: bundler-1.17.3.gem (100%)
NotImplementedError: flock unsupported or native support failed to load;
see http://wiki.jruby.org/Native-Libraries
                   flock at org/jruby/RubyFile.java:315
   block in write_binary at
uri:classloader:/META-INF/jruby.home/lib/ruby/stdlib/rubygems.rb:873
                    open at org/jruby/RubyIO.java:1171
                    open at org/jruby/RubyKernel.java:307
            write_binary at
uri:classloader:/META-INF/jruby.home/lib/ruby/stdlib/rubygems.rb:871
       cache_update_path at
uri:classloader:/META-INF/jruby.home/lib/ruby/stdlib/rubygems/remote_fetcher.rb:334
                download at
uri:classloader:/META-INF/jruby.home/lib/ruby/stdlib/rubygems/remote_fetcher.rb:188
                download at
uri:classloader:/META-INF/jruby.home/lib/ruby/stdlib/rubygems/source.rb:211
                 install at
uri:classloader:/META-INF/jruby.home/lib/ruby/stdlib/rubygems/resolver/specification.rb:91
        block in install at
uri:classloader:/META-INF/jruby.home/lib/ruby/stdlib/rubygems/request_set.rb:166
                    each at org/jruby/RubyArray.java:1735
                 install at
uri:classloader:/META-INF/jruby.home/lib/ruby/stdlib/rubygems/request_set.rb:156
             install_gem at
uri:classloader:/META-INF/jruby.home/lib/ruby/stdlib/rubygems/commands/install_command.rb:205
   block in install_gems at
uri:classloader:/META-INF/jruby.home/lib/ruby/stdlib/rubygems/commands/install_command.rb:255
                    each at org/jruby/RubyArray.java:1735
            install_gems at
uri:classloader:/META-INF/jruby.home/lib/ruby/stdlib/rubygems/commands/install_command.rb:251
                 execute at
uri:classloader:/META-INF/jruby.home/lib/ruby/stdlib/rubygems/commands/install_command.rb:158
  invoke_with_build_args at
uri:classloader:/META-INF/jruby.home/lib/ruby/stdlib/rubygems/command.rb:310
            process_args at
uri:classloader:/META-INF/jruby.home/lib/ruby/stdlib/rubygems/command_manager.rb:169
                     run at
uri:classloader:/META-INF/jruby.home/lib/ruby/stdlib/rubygems/command_manager.rb:139
                     run at
uri:classloader:/META-INF/jruby.home/lib/ruby/stdlib/rubygems/gem_runner.rb:55
                  <main> at uri:classloader:/META-INF/jruby.home/bin/jgem:21
                    load at org/jruby/RubyKernel.java:974
                  <main> at uri:classloader:/META-INF/jruby.home/bin/gem:4
Gem::GemNotFoundException: can't find gem bundler (>= 0.a)
  find_spec_for_exe at
uri:classloader:/META-INF/jruby.home/lib/ruby/stdlib/rubygems.rb:271
  activate_bin_path at
uri:classloader:/META-INF/jruby.home/lib/ruby/stdlib/rubygems.rb:299
             <main> at ../../gems/bin/bundle:23

but when I run this on an older server running CentOS 7 and ArchivesSpace
2.7.0 it works;

[root at archivesspace-dev archivesspace]# ./scripts/initialize-plugin.sh
aspace-import-excel
Fetching: bundler-1.16.1.gem (100%)
Successfully installed bundler-1.16.1
1 gem installed
Don't run Bundler as root. Bundler can ask for sudo if it is needed, and
installing your bundle as root will break this application for all non-root
users on this machine.
Fetching gem metadata from http://rubygems.org/..................
Resolving dependencies...
Using bundler 1.16.1
Fetching nokogiri 1.10.9 (java)
Installing nokogiri 1.10.9 (java)
Fetching rubyzip 1.3.0
Installing rubyzip 1.3.0
Fetching rubyXL 3.3.29
Installing rubyXL 3.3.29
Bundle complete! 1 Gemfile dependency, 4 gems now installed.
Use `bundle info [gemname]` to see where a bundled gem is installed.

It gives this same error for any plugin. Oh and I'm running java
version 1.8.0_252

Thanks

-Matt

*Matthew Baya*
Williams College OIT, Networks & Systems

413-597-3567



On Tue, May 5, 2020 at 4:55 PM Matthew Baya <mjb9 at williams.edu> wrote:

> We currently have ArchivesSpace running on CentOS 7 and I am setting up a
> new CentOS 8 server to replace it.
>
> However, on the new server when I get to the stage where I am initializing
> plugins it fails the same way regardless of the plugin;
>
> [root at archivesspace2 archivesspace]# ./scripts/initialize-plugin.sh nyudo
> io/console on JRuby shells out to stty for most operations
> ERROR:  Error installing bundler:
> invalid gem: package metadata is missing in gems/cache/bundler-1.17.3.gem
> Gem::GemNotFoundException: can't find gem bundler (>= 0.a)
>   find_spec_for_exe at
> uri:classloader:/META-INF/jruby.home/lib/ruby/stdlib/rubygems.rb:271
>   activate_bin_path at
> uri:classloader:/META-INF/jruby.home/lib/ruby/stdlib/rubygems.rb:299
>              <main> at ../../gems/bin/bundle:23
>
> Anyone have any suggestions on how to fix this?
>
> Thanks
>
> -Matt
> *Matthew Baya*
> Williams College OIT, Networks & Systems
>
> 413-597-3567
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lyralists.lyrasis.org/pipermail/archivesspace_users_group/attachments/20200506/ce9c9d49/attachment.html>


More information about the Archivesspace_Users_Group mailing list