With latest quarterly packages and rubygem-json installed, openvox server won't start, with this appearing in the puppetserver.log file: Caused by: org.jruby.exceptions.NameError: (NameError) uninitialized constant JSON::Ext::ParserConfig Did you mean? JSON::ParserOptions at org.jruby.RubyModule.const_missing(org/jruby/RubyModule.java:4370) at RUBY.<module:Ext>(/usr/local/lib/ruby/gems/3.4/gems/json-2.20.0/lib/json/ext.rb:32) at RUBY.<module:JSON>(/usr/local/lib/ruby/gems/3.4/gems/json-2.20.0/lib/json/ext.rb:8) at RUBY.<main>(/usr/local/lib/ruby/gems/3.4/gems/json-2.20.0/lib/json/ext.rb:5) at org.jruby.RubyKernel.require(org/jruby/RubyKernel.java:1187) ... I note that there's a core json module installed by the base ruby 3.4.9 package. Removing the rubygem allows my puppetserver to start normally. However removing the rubygem then stops the r10k package from working! For some reason that package is unable to find the core json module :( /usr/local/lib/ruby/site_ruby/3.4/rubygems/specification.rb:1426:in 'block in Gem::Specification#activate_dependencies': Could not find 'json' (>= 0) among 46 total gem(s) (Gem::MissingSpecError) Checked in 'GEM_PATH=/root/.local/share/gem/ruby/3.4:/usr/local/lib/ruby/gems/3.4' at: /usr/local/lib/ruby/gems/3.4/specifications/faraday-2.14.3.gemspec, execute `gem env` for more information
If this is what I think, a workaround is displayed at install time: puppetserver gem install json See: https://cgit.freebsd.org/ports/tree/sysutils/openvox-server8/files/pkg-message.in?id=34d5ef46f95abca860d7aa79f2d887ebc17630e1 This should fix your issue.
Thanks - I missed that install note, but it does indeed seem to fix the issue. Ray
> it does indeed seem to fix the issue Nice! I will close this issue then. I still keep a place in my mind to find a better way to handle this to avoid the burden of the workaround. Thank you, Romain