Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
vietcgi opened this issue Jun 2, 2019 · 2 comments

Comments

@vietcgi
Copy link

vietcgi commented Jun 2, 2019

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

@freibuis
Copy link

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
Copy link

EpiqSty commented Jun 19, 2019

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants