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.drobushev...@gmail.com> wrote:
> 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
>
>
> On Wednesday, September 26, 2012 12:55:29 AM UTC+3, Josh Cooper wrote:
>>
>> Hi Pavel,
>>
>> On Tue, Sep 25, 2012 at 2:28 PM, Pavel Drobushevich
>> <p.drobu...@gmail.com> wrote:
>> > 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
>> >
>> > --
>> > 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
>
> --
> 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/-/3K8q52uLCdsJ.
>
> To post to this group, send email to puppet-users@googlegroups.com.
> To unsubscribe from this group, send email to
> puppet-users+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/puppet-users?hl=en.



-- 
Josh Cooper
Developer, Puppet Labs

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.

Reply via email to