I mostly copied the pson encoding stuff from a newer version of json_pure. Perhaps a fix can be found there as well. On 8 Oct 2013 20:13, "Andy Parker" <[email protected]> wrote:
> On Tue, Oct 8, 2013 at 9:29 AM, Gavin Williams <[email protected]> wrote: > >> Afternoon all, >> >> I'm wondering if someone from PL may be able to assist with Issue >> #22804<http://projects.puppetlabs.com/issues/22804>. >> I've built a sand-box env this morning using Puppet 3.3.1, however have >> noticed that my NetApp <https://github.com/fatmcgav/fatmcgav-netapp>Network >> Device module is now failing. >> >> > Hi Gavin, > > I took a look at this and it does look to be the same root issue as the > bug that #22804 is linked to. Namely, the REXML module is creating an > Encoding constant that then causes PSON to mistakenly try to manage > encodings of the string on ruby 1.8.7, which does not support encodings. > I'm working on a patch right now. > > >> I did have a quick google, which picked up #21512, however not sure how >> that would apply to my case. >> I'm using Centos 6.4 x64, with Ruby 1.8.7 with Puppet Open Source. >> >> Puppet agent on the host works fine, however Puppet device fails with >> lots of 'Could not intern...' errors... >> >> puppet device --deviceconfig device/ontap.local.dev.conf -v >>> Info: starting applying configuration to ontap.local.dev at >>> https://root:[email protected] >>> Warning: Unable to fetch my node definition, but the agent run will >>> continue: >>> Warning: Could not intern from text/pson: undefined method `encoding' >>> for #<String:0x7f7bbfa82db0> >>> Info: Retrieving plugin >>> Error: /File[/var/lib/puppet/devices/ontap.local.dev/lib]: Failed to >>> generate additional resources using 'eval_generate': Could not >>> intern_multiple from text/pson: undefined method `encoding' for >>> #<String:0x7f7bbf92a710> >>> Error: /File[/var/lib/puppet/devices/ontap.local.dev/lib]: Could not >>> evaluate: Could not intern from text/pson: undefined method `encoding' for >>> #<String:0x7f7bbf920698> Could not retrieve file metadata for >>> puppet://puppetmaster.local.dev/plugins: Could not intern from text/pson: >>> undefined method `encoding' for #<String:0x7f7bbf920698> >>> Error: Could not retrieve catalog from remote server: Could not intern >>> from text/pson: undefined method `encoding' for #<String:0x7f7bbf8a7248> >>> Error: Cached catalog for ontap.local.dev failed: Could not parse JSON >>> data for catalog ontap.local.dev: Could not intern from pson: undefined >>> method `encoding' for #<String:0x7f7bbf89a9d0> >>> Notice: Using cached catalog >>> Error: Could not retrieve catalog; skipping run >>> Error: Could not send report: undefined method `encoding' for >>> "[\"foreman\"]":String >>> >>> >> Have rolled back my version of Puppet through various versions, and the >> last working version was 3.1.1... >> >> Comments welcome... >> >> Cheers >> Gavin >> >> -- >> You received this message because you are subscribed to the Google Groups >> "Puppet Developers" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected]. >> To post to this group, send email to [email protected]. >> Visit this group at http://groups.google.com/group/puppet-dev. >> For more options, visit https://groups.google.com/groups/opt_out. >> > > > > -- > Andrew Parker > [email protected] > Freenode: zaphod42 > Twitter: @aparker42 > Software Developer > > *Join us at PuppetConf 2014, September 23-24 in San Francisco* > > -- > You received this message because you are subscribed to the Google Groups > "Puppet Developers" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at http://groups.google.com/group/puppet-dev. > For more options, visit https://groups.google.com/groups/opt_out. > -- You received this message because you are subscribed to the Google Groups "Puppet Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/puppet-dev. For more options, visit https://groups.google.com/groups/opt_out.
