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

Could not autoload puppet/provider/httpauth/httpauth: cannot load such file -- webrick #13

Open
jerome2710 opened this issue Sep 10, 2024 · 3 comments

Comments

@jerome2710
Copy link

Command: /opt/puppetlabs/bin/puppet generate types --environment production --environmentpath /etc/puppetlabs/code/environments --config /etc/puppetlabs/puppet/puppet.conf
Stdout:
Notice: Generating Puppet resource types.
Stderr:
Error: Could not autoload puppet/provider/httpauth/httpauth: cannot load such file -- webrick
Error: Failed to load custom type 'httpauth' from '/etc/puppetlabs/code/environments/production/modules/httpauth/lib/puppet/type/httpauth.rb': Could not autoload puppet/provider/httpauth/httpauth: cannot load such file -- webrick
Exit code: 1
ERROR: Job failed: exit code 1

I see the readme states Requirements: webrick. What is it and how do I configure it? There are no references.

@jamtur01
Copy link
Owner

gem install webrick

However, I have no idea if the module still works. It's been some years.

@jerome2710
Copy link
Author

@jamtur01 Thanks for replying. I ran both gem install webrick and puppetserver gem install webrick on my Puppetserver but still get the same error.

@jamtur01
Copy link
Owner

There's a good chance it might not work in modern Puppet - I think all of this was written with Ruby 2.x.

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

No branches or pull requests

2 participants