org.jruby.exceptions.RaiseException: (LoadError) no such file to load -- toml-rb
vietcgi opened this issue · 2 comments
Affected Puppet, Ruby, OS and module versions/distributions
- Puppet: puppet-agent-5.5.14-1.el7.x86_64, puppetserver-5.3.8-1.el7.noarch
- Ruby: ruby 2.4.5p335 (2018-10-18 revision 65137) [x86_64-linux]
- Distribution: x86_64
- Module version: 2.1.0
How to reproduce (e.g Puppet code you use)
include telegraf
What are you seeing
Error: Could not retrieve catalog from remote server: Error 500 on SERVER: Internal Server Error: org.jruby.exceptions.RaiseException: (LoadError) no such file to load -- toml-rb
What behaviour did you expect instead
it should install telegraf
Output log
Error: Could not retrieve catalog from remote server: Error 500 on SERVER: Internal Server Error: org.jruby.exceptions.RaiseException: (LoadError) no such file to load -- toml-rb
Any additional information you'd like to impart
toml-rb (1.1.2) was installed
for puppet server 6 + run this on the server
/opt/puppetlabs/server/bin/puppetserver gem install toml-rb
systemctl restart puppetserver.service
dont forget to restart the puppetserver service
you can do it via the puppetserver_gem package provider
puppet module install puppetlabs-puppetserver_gem
control repo
mod 'puppetlabs-puppetserver_gem', '1.1.0'
then on your puppet server manifest
ensure_packages(
['toml-rb'],
{ensure => 'present', provider => 'puppetserver_gem' }
)
Came here with the same issue. Solved by
systemctl restart puppetserver.service
So, could you please update project README.md, looks like it's the necessary step.