Puppet windows -

120 views
Skip to first unread message

Pavel Drobushevich

unread,
Sep 25, 2012, 5:28:52 PM9/25/12
to puppet...@googlegroups.com
Hi all,

We use puppet on many windows machines (Windows Server2008R2 x64). It works fine, but on one of them it was fail down and couldn't start work again. I try to reinstall, but it didn't help. May be you have any idea. Thanks in advance.

Error message from puppet
C:/puppet/puppet/lib/puppet/util/autoload.rb:85:in `load': Could not autoload co
mponent: 193: %1 is not a valid Win32 application.   - C:/puppet/sys/ruby/lib/ru
by/1.8/i386-mingw32/digest/sha1.so (Puppet::Error)
        from C:/puppet/puppet/lib/puppet/util/autoload.rb:73:in `each'
        from C:/puppet/puppet/lib/puppet/util/autoload.rb:73:in `load'
        from C:/puppet/puppet/lib/puppet/metatype/manager.rb:116:in `type'
        from C:/puppet/puppet/lib/puppet/type.rb:1966
        from C:/puppet/sys/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.r
b:36:in `gem_original_require'
        from C:/puppet/sys/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.r
b:36:in `require'
        from C:/puppet/puppet/lib/puppet.rb:121
        from C:/puppet/puppet/lib/puppet/application.rb:272:in `require'
        from C:/puppet/puppet/lib/puppet/application.rb:272:in `initialize'
        from C:/puppet/puppet/lib/puppet/util/command_line.rb:60:in `new'
        from C:/puppet/puppet/lib/puppet/util/command_line.rb:60:in `execute'
        from C:/puppet/puppet/bin/puppet:4

Josh Cooper

unread,
Sep 25, 2012, 5:55:14 PM9/25/12
to puppet...@googlegroups.com
Hi Pavel,
> --
> You received this message because you are subscribed to the Google Groups
> "Puppet Users" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/puppet-users/-/tszwlQxzKpYJ.
> To post to this group, send email to puppet...@googlegroups.com.
> To unsubscribe from this group, send email to
> puppet-users...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/puppet-users?hl=en.

Are you using a different ruby version than is included in the MSI? On
my local dev system with Puppet installed I don't see an i386-mingw32
directory:

c:/puppet/sys/ruby/lib/ruby/1.8/i386-mingw32

I do see the following however:

<installdir>/puppet/sys/ruby/lib/ruby/1.8/digest/sha2.rb

Also this link describes the same problem, may be a ruby 1.9.3-p0
issue on Windows: https://github.com/oneclick/rubyinstaller/issues/102

Or perhaps your system PATH and/or RUBYLIB is picking up a different
version than the one the MSI installed.

Josh

--
Josh Cooper
Developer, Puppet Labs

Pavel Drobushevich

unread,
Sep 26, 2012, 7:32:45 AM9/26/12
to puppet...@googlegroups.com
Hi Josh,

I've installed puppet from official msi puppet-enterprise-2.5.0.msi. There are no any other ruby installation on this machine. Ruby version returns following info:
1.8.7 (2011-12-28 patchlevel 357) [i386-mingw32]
It've been working about 2 months, but suddenly yesterday stopped.

Thanks, Pavel

Josh Cooper

unread,
Oct 1, 2012, 4:02:45 PM10/1/12
to puppet...@googlegroups.com
Hi Pavel,

Can you try the following:

ruby -e "require 'digest/sha1'; puts Digest::SHA1.hexdigest('foo')"

If that works, try:

ruby -e "require 'digest/sha1'; puts
Digest::SHA1.hexdigest('C:/puppet/sys/ruby/lib/ruby/1.8/i386-mingw32/digest/sha1.so')"

You should get:

7479672868457859e36fd0a0e35fc20dc066ebe1

Also, what is your PATH and RUBYLIB?

Did you recently update (Patch Tuesday)?

Josh

On Wed, Sep 26, 2012 at 4:32 AM, Pavel Drobushevich
<p.drobu...@gmail.com> wrote:
> Hi Josh,
> https://groups.google.com/d/msg/puppet-users/-/3K8q52uLCdsJ.
>
> To post to this group, send email to puppet...@googlegroups.com.
> To unsubscribe from this group, send email to
> puppet-users...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/puppet-users?hl=en.



Pavel Drobushevich

unread,
Oct 1, 2012, 4:27:02 PM10/1/12
to puppet...@googlegroups.com
Hi Josh,

Thanks that you remember my case. Unfortunately I couldn't wait and restart server on weekend and now puppet works fine. Before it I started 

ruby -e "require 'digest/sha1'

And It completed ok. I didn't change Path (and never add ruby to path, as I understand puppet use environment.bat) or install puppet updates/patches. I couldn't do any test now, because problem was fixed after restart. But if it happen again I may replay and I hope provide more information.


Best Regards,
Pavel Drobushevich
mailto: p.drobu...@gmail.com
skype: pavel_drabushevich
profile: http://www.google.com/profiles/p.drobushevich
Reply all
Reply to author
Forward
0 new messages