Bug 297166 - sysutils/openvox-server8 broken by installation of rubygem-json dependency
Summary: sysutils/openvox-server8 broken by installation of rubygem-json dependency
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: FreeBSD Puppet Team (mail alias)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2026-07-30 11:48 UTC by Ray Bellis
Modified: 2026-07-30 18:40 UTC (History)
1 user (show)

See Also:
bugzilla: maintainer-feedback? (puppet)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ray Bellis 2026-07-30 11:48:01 UTC
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
Comment 1 Romain Tartière freebsd_committer freebsd_triage 2026-07-30 16:22:27 UTC
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.
Comment 2 Ray Bellis 2026-07-30 16:27:54 UTC
Thanks - I missed that install note, but it does indeed seem to fix the issue.

Ray
Comment 3 Romain Tartière freebsd_committer freebsd_triage 2026-07-30 18:40:25 UTC
> 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