voxpupuli / puppet-telegraf

A Puppet module for installing and configuring InfluxData's Telegraf
https://forge.puppet.com/puppet/telegraf
GNU General Public License v3.0
24 stars 98 forks source link

org.jruby.exceptions.RaiseException: (LoadError) no such file to load -- toml-rb #124

Open vietcgi opened 5 years ago

vietcgi commented 5 years ago

Affected Puppet, Ruby, OS and module versions/distributions

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

freibuis commented 5 years ago

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' }
    )
EpiqSty commented 5 years ago

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.