Issue #4142 has been updated by Brandon Turner.
Rudy,
This may be a different issue, but check your metadata.json file for "trailing
commas":
{"cacti": {
"source": "git://www.example42.com/example42modules",
"author": "Alessandro Franceschi",
"version": "0.2",
"license": "GPL3",
"puppetversion": "0.24",
"summary": "Standard Apache module",
"description": "This module can be used for basic Apache management",
"project_page": "http://www.example42.com" // <--- There should be no
comma here!!!
}}
I was getting errors similar to what you describe on clients. The puppet
master said:
err: expected next name, value pair in object at '}
'!
but gave no indication of what file the error occurred in.
----------------------------------------
Bug #4142: puppet fails when metadata.json exists in module
http://projects.puppetlabs.com/issues/4142
Author: Dan Bode
Status: Re-opened
Priority: High
Assignee:
Category:
Target version:
Affected version: 2.6alpha1
Keywords:
Branch:
when I tried to run the developerbootstrap module, I ran into the following
error:
<pre>
puppet tests/init.pp
uninitialized constant Puppet::Module::JSON at
/usr/local/dev/puppet-dev/puppetlabs-developerbootstrap-0.0.5/tests/init.pp:1
on node puppet2.localdomain
[r...@puppet2 tests]# puppet init.pp --trace
/usr/lib/ruby/site_ruby/1.8/puppet/module.rb:112:in `load_metadata'
/usr/lib/ruby/site_ruby/1.8/puppet/module.rb:59:in `initialize'
/usr/lib/ruby/site_ruby/1.8/puppet/node/environment.rb:81:in `new'
/usr/lib/ruby/site_ruby/1.8/puppet/node/environment.rb:81:in `module'
/usr/lib/ruby/site_ruby/1.8/puppet/module.rb:34:in `find'
/usr/lib/ruby/site_ruby/1.8/puppet/parser/files.rb:20:in `find_manifests'
/usr/lib/ruby/site_ruby/1.8/puppet/parser/type_loader.rb:45:in `import'
/usr/lib/ruby/site_ruby/1.8/puppet/parser/type_loader.rb:82:in `load_until'
/usr/lib/ruby/site_ruby/1.8/puppet/parser/type_loader.rb:140:in
`import_if_possible'
/usr/lib/ruby/site_ruby/1.8/puppet/parser/type_loader.rb:81:in `load_until'
/usr/lib/ruby/site_ruby/1.8/puppet/parser/type_loader.rb:79:in `each'
/usr/lib/ruby/site_ruby/1.8/puppet/parser/type_loader.rb:79:in `load_until'
/usr/lib/ruby/site_ruby/1.8/puppet/resource/type_collection.rb:134:in
`find_or_load'
/usr/lib/ruby/site_ruby/1.8/puppet/resource/type_collection.rb:142:in
`find_hostclass'
/usr/lib/ruby/site_ruby/1.8/puppet/parser/scope.rb:119:in `find_hostclass'
/usr/lib/ruby/site_ruby/1.8/puppet/parser/compiler.rb:150:in `evaluate_classes'
/usr/lib/ruby/site_ruby/1.8/puppet/parser/compiler.rb:148:in `each'
/usr/lib/ruby/site_ruby/1.8/puppet/parser/compiler.rb:148:in `evaluate_classes'
/usr/lib/ruby/site_ruby/1.8/puppet/parser/functions/include.rb:6:in
`function_include'
/usr/lib/ruby/site_ruby/1.8/puppet/parser/ast/function.rb:40:in `send'
/usr/lib/ruby/site_ruby/1.8/puppet/parser/ast/function.rb:40:in `evaluate'
/usr/lib/ruby/site_ruby/1.8/puppet/parser/ast.rb:72:in `safeevaluate'
/usr/lib/ruby/site_ruby/1.8/puppet/parser/ast/astarray.rb:35:in `evaluate'
/usr/lib/ruby/site_ruby/1.8/puppet/parser/ast/astarray.rb:34:in `collect'
/usr/lib/ruby/site_ruby/1.8/puppet/parser/ast/astarray.rb:34:in `evaluate'
/usr/lib/ruby/site_ruby/1.8/puppet/parser/ast.rb:72:in `safeevaluate'
/usr/lib/ruby/site_ruby/1.8/puppet/resource/type.rb:76:in `evaluate_code'
/usr/lib/ruby/site_ruby/1.8/puppet/parser/resource.rb:74:in `evaluate'
/usr/lib/ruby/site_ruby/1.8/puppet/parser/compiler.rb:311:in `evaluate_main'
/usr/lib/ruby/site_ruby/1.8/puppet/parser/compiler.rb:101:in `compile'
/usr/lib/ruby/site_ruby/1.8/puppet/parser/compiler.rb:18:in `compile'
/usr/lib/ruby/site_ruby/1.8/puppet/indirector/catalog/compiler.rb:79:in
`compile'
/usr/lib/ruby/site_ruby/1.8/puppet/util.rb:184:in `benchmark'
/usr/lib/ruby/site_ruby/1.8/puppet/indirector/catalog/compiler.rb:77:in
`compile'
/usr/lib/ruby/site_ruby/1.8/puppet/indirector/catalog/compiler.rb:34:in `find'
/usr/lib/ruby/site_ruby/1.8/puppet/indirector/indirection.rb:202:in `find'
/usr/lib/ruby/site_ruby/1.8/puppet/indirector.rb:51:in `find'
/usr/lib/ruby/site_ruby/1.8/puppet/application/apply.rb:114:in `main'
/usr/lib/ruby/site_ruby/1.8/puppet/application/apply.rb:35:in `run_command'
/usr/lib/ruby/site_ruby/1.8/puppet/application.rb:305:in `run'
/usr/lib/ruby/site_ruby/1.8/puppet/application.rb:403:in `exit_on_fail'
/usr/lib/ruby/site_ruby/1.8/puppet/application.rb:305:in `run'
/usr/lib/ruby/site_ruby/1.8/puppet/util/command_line.rb:52:in `execute'
/usr/bin/puppet:73
/usr/lib/ruby/site_ruby/1.8/puppet/parser/compiler.rb:21:in `compile'
/usr/lib/ruby/site_ruby/1.8/puppet/indirector/catalog/compiler.rb:79:in
`compile'
/usr/lib/ruby/site_ruby/1.8/puppet/util.rb:184:in `benchmark'
/usr/lib/ruby/site_ruby/1.8/puppet/indirector/catalog/compiler.rb:77:in
`compile'
/usr/lib/ruby/site_ruby/1.8/puppet/indirector/catalog/compiler.rb:34:in `find'
/usr/lib/ruby/site_ruby/1.8/puppet/indirector/indirection.rb:202:in `find'
/usr/lib/ruby/site_ruby/1.8/puppet/indirector.rb:51:in `find'
/usr/lib/ruby/site_ruby/1.8/puppet/application/apply.rb:114:in `main'
/usr/lib/ruby/site_ruby/1.8/puppet/application/apply.rb:35:in `run_command'
/usr/lib/ruby/site_ruby/1.8/puppet/application.rb:305:in `run'
/usr/lib/ruby/site_ruby/1.8/puppet/application.rb:403:in `exit_on_fail'
/usr/lib/ruby/site_ruby/1.8/puppet/application.rb:305:in `run'
/usr/lib/ruby/site_ruby/1.8/puppet/util/command_line.rb:52:in `execute'
/usr/bin/puppet:73
uninitialized constant Puppet::Module::JSON at
/usr/local/dev/puppet-dev/puppetlabs-developerbootstrap-0.0.5/tests/init.pp:1
on node puppet2.localdomain
</pre>
I can get around the error by removing the metadata.json file.
I verified the issue also occurs with other modules.
--
You have received this notification because you have either subscribed to it,
or are involved in it.
To change your notification preferences, please click here:
http://projects.puppetlabs.com/my/account
--
You received this message because you are subscribed to the Google Groups
"Puppet Bugs" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/puppet-bugs?hl=en.