Re: [Puppet Users] Re: chocolatey, windows, powershell and fault bucket
Hi all, I have similar problem. When I start puppet interactive console and run 'puppet agent -t' it complete successfully. But when I start puppet service under same (or any other use) it fail with powershell crash *Fault bucket , type 0* *Event Name: PowerShell* *Response: Not available* *Cab Id: 0* * * *Problem signature:* *P1: powershell.exe* *P2: 6.1.7601.17514* *P3: System.ComponentModel.Win32Exception* *P4: System.Management.Automation.Host.Host* *P5: erShell.ConsoleControl.GetActiveScreenBufferHandle* *P6: erShell.ConsoleControl.GetActiveScreenBufferHandle* *P7: Consol.. main thread* *P8: * *P9: * *P10* We use windows server 2008R2, powershell v2 and .net 4.0. ExecutionPolicy is RemoteSigned. Could you please provide more information how to fix it? Thanks in advance, Pavel On Tuesday, July 23, 2013 6:35:11 PM UTC+3, Rob Reynolds wrote: It's likely the powershell execution policy that you were seeing errors due to. -- Rob Reynolds Developer, Puppet Labs *Join us at PuppetConf 2013, August 22-23 in San Francisco - * http://bit.ly/pupconf13* **Register now and take advantage of the Final Countdown discount - save 15%!* On Tue, Jul 23, 2013 at 5:14 AM, Francesco Sacchi dep...@gmail.comjavascript: wrote: I configured it to use my account and it started working without errors.. probably I did not try this one before... what kind of configuration could the other account miss? maybe the .net framework? anyway thank you for your systematic debugging :D Il giorno lunedì 22 luglio 2013 16:51:35 UTC+2, Francesco Sacchi ha scritto: Hi, I configured puppet open source with the chocolatey module and one windows client. When the puppet agent run as a service (not the interactive version) I can see in the windows event log some errors like Fault bucket 1734820220, type 5 Event name: PowerShell Fault bucket , type 0 Event name: PowerShell I tried to google it but I did not find anything relevant apart from some discussions about running powershell in a thread or something similar.. Any hint on how to fix this? Thanks f. -- 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 javascript:. To post to this group, send email to puppet...@googlegroups.comjavascript: . Visit this group at http://groups.google.com/group/puppet-users. For more options, visit https://groups.google.com/groups/opt_out. -- 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+unsubscr...@googlegroups.com. To post to this group, send email to puppet-users@googlegroups.com. Visit this group at http://groups.google.com/group/puppet-users. For more options, visit https://groups.google.com/groups/opt_out.
Re: [Puppet Users] Puppet windows -
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.drobushev...@gmail.com* **skype*: pavel_drabushevich *profile:* http://www.google.com/profiles/p.drobushevich On Mon, Oct 1, 2012 at 11:02 PM, Josh Cooper j...@puppetlabs.com wrote: 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
Re: [Puppet Users] Puppet windows -
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 javascript: 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.comjavascript:. To unsubscribe from this group, send email to puppet-users...@googlegroups.com javascript:. 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.
[Puppet Users] Puppet windows -
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-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.
[Puppet Users] rubycas-server login fail
Hi all, I've installed Puppet Enterprise 2.5 on Ubuntu 10.04.4 (minimal version on our new hosting provider, previous on amazon ec2 all works fine). So couldn't login to puppet dashboard - internal server error. I found problem in rubycas-server. It fails when try to hash password: (/opt/puppet/share/rubycas-server/lib/casserver/authenticators/sql_encrypted.rb) def validate(credentials) encrypt_function = @options[:encrypt_function] || 'user.encrypted_password == Digest::SHA256.hexdigest(#{user.encryption_salt}::#{@password})' ... return eval(encrypt_function) # FAIL But in simple ruby script function *Digest::SHA256.hexdigest* works fine. I changed to *OpenSSL::Digest::SHA256.hexdigest* in rubycas-server and it works... Maybe you can advice how to solve this problem without source change? Thanks in advance. -- 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/-/EuLrHRjTs-4J. 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.
[Puppet Users] Why or who disabled client?
Hi all, Sometimes one of agent prints message Skipping run of Puppet configuration client; administratively disabled; use 'puppet Puppet configuration client --enable' to re-enable. and stops working. No one disables it. Any reason why it happens? Thanks in advance. -- 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/-/wNPuTpeGgLcJ. 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.