Registry module not working

82 views
Skip to first unread message

SUDISH MADATHIL

unread,
Feb 25, 2019, 2:22:41 PM2/25/19
to Puppet Users
Error: /Stage[main]/Firewallon/Registry_value[hklm\Software\Pluralsight1\PuppetO
nWindows]: Could not evaluate: undefined method `RegQueryValueExW' for Puppet::U
til::Windows::Registry:Module

Issue when trying to use registry module specific to updating values in registry. Can you help with this message?

Puppet master version : - 4.10.12
Puppet client/agent version :- 3.8.7

Trace logs: -

>>

C:/ProgramData/PuppetLabs/puppet/var/lib/puppet/provider/registry_value/registry
.rb:38:in `block (2 levels) in exists?'
C:/Program Files/Puppet Labs/Puppet/puppet/lib/puppet/util/windows/api_types.rb:
30:in `block in from_string_to_wide_string'
C:/Program Files/Puppet Labs/Puppet/puppet/lib/puppet/util/windows/api_types.rb:
26:in `initialize'
C:/Program Files/Puppet Labs/Puppet/puppet/lib/puppet/util/windows/api_types.rb:
26:in `new'
C:/Program Files/Puppet Labs/Puppet/puppet/lib/puppet/util/windows/api_types.rb:
26:in `from_string_to_wide_string'
C:/ProgramData/PuppetLabs/puppet/var/lib/puppet/provider/registry_value/registry
.rb:37:in `block in exists?'
C:/Program Files/Puppet Labs/Puppet/sys/ruby/lib/ruby/2.0.0/win32/registry.rb:38
9:in `open'
C:/Program Files/Puppet Labs/Puppet/sys/ruby/lib/ruby/2.0.0/win32/registry.rb:49
6:in `open'

Thanks. 

Ben Ford

unread,
Feb 26, 2019, 1:16:08 PM2/26/19
to puppet...@googlegroups.com
Can you include the actual error message along with this snippet of the stack trace?

Also Puppet 3.x went EOL 787 days ago on December 31, 2016. You should REALLY consider upgrading, especially since your master has already been upgraded. It's generally recommended to run the same versions of master & client.

--
You received this message because you are subscribed to the Google Groups "Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/bb2a3fcc-6762-4194-bfb0-7b67e3a398ae%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

John Warburton

unread,
Feb 26, 2019, 5:15:39 PM2/26/19
to puppet...@googlegroups.com
Puppet 3 and registry simply do not work

I had to upgrade all my clients to puppet 5 to get it to work correctly

John


For more options, visit https://groups.google.com/d/optout.


--
John Warburton
Ph: 0417 299 600
Email: jwarb...@gmail.com

SUDISH MADATHIL

unread,
Apr 11, 2019, 1:41:20 PM4/11/19
to puppet...@googlegroups.com
I'm trying to load 'wsus_client' module class from different module to hide consolidate in one location i tried several options like moving classes, which is not working well.

Any ideas?. Thanks in advance

Reply all
Reply to author
Forward
0 new messages