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

no such file to load -- json #176

Closed
zimbatm opened this issue Sep 22, 2014 · 2 comments
Closed

no such file to load -- json #176

zimbatm opened this issue Sep 22, 2014 · 2 comments
Labels
bug Something isn't working
Milestone

Comments

@zimbatm
Copy link

zimbatm commented Sep 22, 2014

Symptom

Error loading fact /var/lib/puppet/lib/facter/jenkins.rb no such file to load -- json

Analysis

On Ubuntu 12.04, the puppet package depends on ruby (1.8.7) and json is not installed. json only started being included in later versions of ruby.

It's possible to work around the issue by installing the ruby-json package but since the issue is occurring in the facter plugin it will only start working after at least one run. If jenkins is not installed on that host the facter plugin would still run an ruby-json never be installed.

One solution would be to bundle okjson, a pure ruby implementation of the JSON format and require it as a fallback.

@jchristi
Copy link
Contributor

Duplicate of #166

@rtyler
Copy link

rtyler commented Sep 22, 2014

@zimbatm thank you for a very well written bug report!

I'll take a look at okjson fallback, that's a good suggestion

@rtyler rtyler modified the milestone: 1.2.0: Nestor Sep 22, 2014
@rtyler rtyler added the bug Something isn't working label Sep 22, 2014
@rtyler rtyler closed this as completed in 28c7fe8 Sep 22, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants