Puppetserver fails with a load error of "concurrent"

670 views
Skip to first unread message

Sander de Boer

unread,
Oct 11, 2019, 11:55:47 AM10/11/19
to Puppet Users
After a crash of the server (Ubuntu 18.04) our puppetserver (6.2.1) process refuses to start with the message it can not find the file/directory "concurrent".
It looks like this is a JRuby/Java problem.

...
Oct  9 09:18:12 foreman puppetserver[32556]: LoadError: no such file to load -- concurrent
Oct  9 09:18:12 foreman puppetserver[32556]:           require at org/jruby/RubyKernel.java:970
Oct  9 09:18:12 foreman puppetserver[32556]:           require at uri:classloader:/META-INF/jruby.home/lib/ruby/stdlib/rubygems/core_ext/kernel_require.rb:59
Oct  9 09:18:12 foreman puppetserver[32556]:            <main> at /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/thread_local.rb:1
Oct  9 09:18:12 foreman puppetserver[32556]:           require at org/jruby/RubyKernel.java:970
Oct  9 09:18:12 foreman puppetserver[32556]:           require at uri:classloader:/META-INF/jruby.home/lib/ruby/stdlib/rubygems/core_ext/kernel_require.rb:59
Oct  9 09:18:12 foreman puppetserver[32556]:            <main> at /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/context.rb:1
Oct  9 09:18:12 foreman puppetserver[32556]:           require at org/jruby/RubyKernel.java:970
Oct  9 09:18:12 foreman puppetserver[32556]:           require at uri:classloader:/META-INF/jruby.home/lib/ruby/stdlib/rubygems/core_ext/kernel_require.rb:59
Oct  9 09:18:12 foreman puppetserver[32556]:   <module:(root)> at /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/context.rb:1
Oct  9 09:18:12 foreman puppetserver[32556]:            <main> at /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet.rb:1
Oct  9 09:18:12 foreman puppetserver[32556]:           require at org/jruby/RubyKernel.java:970
Oct  9 09:18:12 foreman puppetserver[32556]:            Puppet at /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet.rb:41
Oct  9 09:18:12 foreman puppetserver[32556]:            <main> at /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet.rb:38
Oct  9 09:18:12 foreman puppetserver[32556]:           require at org/jruby/RubyKernel.java:970
Oct  9 09:18:12 foreman puppetserver[32556]:            (root) at uri:classloader:/META-INF/jruby.home/lib/ruby/stdlib/rubygems/core_ext/kernel_require.rb:1
Oct  9 09:18:12 foreman puppetserver[32556]:            <main> at uri:classloader:/META-INF/jruby.home/lib/ruby/stdlib/rubygems/core_ext/kernel_require.rb:59
Oct  9 09:18:12 foreman puppetserver[32556]:           require at org/jruby/RubyKernel.java:970
Oct  9 09:18:12 foreman puppetserver[32556]:            (root) at uri:classloader:/puppetserver-lib/puppet/server.rb:1
Oct  9 09:18:12 foreman puppetserver[32556]:            <main> at uri:classloader:/META-INF/jruby.home/lib/ruby/stdlib/rubygems/core_ext/kernel_require.rb:1
Oct  9 09:18:12 foreman puppetserver[32556]: Exception in thread "main" java.lang.IllegalStateException: There was a problem adding a JRubyInstance to the pool.
...

Anyone any experience with this?

Thanks in advance!

Sander

log-puppetserver.txt

Justin Stoller

unread,
Oct 11, 2019, 5:08:22 PM10/11/19
to puppet...@googlegroups.com
The Puppet Server and Puppet Agent brought in a dependency on the concurrent gem in versions 6.7.0 & 6.9.0 respectively (the server and agent are unfortunately versioned slightly differently).

On the master, the Agent and the Server also share Ruby code. So if you have a Server >= 6.7 with an Agent < 6.9 or vice versa, you may see the error for that reason.

The Server should work with many versions of the Agent over the wire, however it requires a similar versioned agent to itself colocated on the same host. I would see what Agent version you're running and either downgrade the Agent or upgrade the Server.

--
You received this message because you are subscribed to the Google Groups "Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/3677619a-8bac-4ca0-811a-0a0ce73d2828%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages