Issue #11563 has been updated by Feifei Jia. Status changed from Needs More Information to Needs Decision Assignee changed from Feifei Jia to Josh Cooper
Thanks for your feedback. I changed the path as you said, run the agent in cmd. It seemed Puppet agent cannot executing scripts successfully every time, this is a successful one: <pre> debug: Using cached certificate for ca debug: Using cached certificate for ip-xxxxxxxx.ec2.internal debug: Finishing transaction 36193044 debug: Loaded state in 0.00 seconds debug: catalog supports formats: b64_zlib_yaml dot marshal pson raw yaml; using pson debug: Using cached certificate for ca debug: Using cached certificate for ip-xxxxxxxx.ec2.internal debug: Using cached certificate_revocation_list for ca info: Caching catalog for ip-xxxxxxxx.ec2.internal debug: Puppet::Type::Exec::ProviderPosix: feature posix is missing debug: Puppet::Type::Exec::ProviderShell: feature posix is missing debug: Creating default schedules debug: Loaded state in 0.00 seconds info: Applying configuration version '1325666899' debug: /Stage[main]//Node[ip-xxxxxxxx.ec2.internal]/Mca::Set_role[for firefox]/File[c:\dir\startup.bat]/require: requires File[c:\dir] debug: /Stage[main]//Node[ip-xxxxxxxx.ec2.internal]/Mca::Set_role[for firefox]/File[c:\dir\config.ini]/require: requires File[c:\dir] debug: /Stage[main]//Node[ip-xxxxxxxx.ec2.internal]/Mca::Set_role[for firefox]/File[c:\dir\jmxremote.access]/require: requires File[c:\dir] debug: /Stage[main]//Node[ip-xxxxxxxx.ec2.internal]/Mca::Set_role[for firefox]/File[c:\dir\jmxremote.password]/require: requires File[c:\dir] debug: /Stage[main]//Node[ip-xxxxxxxx.ec2.internal]/Mca::Set_role[for firefox]/Exec[setup_env.bat]/require: requires File[c:\download\setup_env.bat] debug: /Schedule[daily]: Skipping device resources because running on a host debug: /Schedule[monthly]: Skipping device resources because running on a host debug: /Schedule[hourly]: Skipping device resources because running on a host debug: /Schedule[never]: Skipping device resources because running on a host debug: /Schedule[weekly]: Skipping device resources because running on a host debug: /Schedule[puppet]: Skipping device resources because running on a host debug: file_metadata supports formats: b64_zlib_yaml marshal pson raw yaml; using pson C:/Ruby187/lib/ruby/site_ruby/1.8/puppet/util/windows/security.rb:577:in `pack' C:/Ruby187/lib/ruby/site_ruby/1.8/puppet/util/windows/security.rb:577:in `string_to_sid_ptr' C:/Ruby187/lib/ruby/site_ruby/1.8/puppet/provider/file/windows.rb:40:in `name2uid' C:/Ruby187/lib/ruby/site_ruby/1.8/puppet/type/file/owner.rb:13:in `insync?' C:/Ruby187/lib/ruby/site_ruby/1.8/puppet/type/file/owner.rb:12:in `map!' C:/Ruby187/lib/ruby/site_ruby/1.8/puppet/type/file/owner.rb:12:in `insync?' C:/Ruby187/lib/ruby/site_ruby/1.8/puppet/property.rb:162:in `safe_insync?' C:/Ruby187/lib/ruby/site_ruby/1.8/puppet/transaction/resource_harness.rb:61:in `perform_changes' C:/Ruby187/lib/ruby/site_ruby/1.8/puppet/transaction/resource_harness.rb:60:in `each' C:/Ruby187/lib/ruby/site_ruby/1.8/puppet/transaction/resource_harness.rb:60:in `perform_changes' C:/Ruby187/lib/ruby/site_ruby/1.8/puppet/transaction/resource_harness.rb:133:in `evaluate' C:/Ruby187/lib/ruby/site_ruby/1.8/puppet/transaction.rb:49:in `apply' C:/Ruby187/lib/ruby/site_ruby/1.8/puppet/transaction.rb:84:in `eval_resource' C:/Ruby187/lib/ruby/site_ruby/1.8/puppet/transaction.rb:103:in `evaluate' C:/Ruby187/lib/ruby/site_ruby/1.8/puppet/util.rb:476:in `thinmark' C:/Ruby187/lib/ruby/1.8/benchmark.rb:308:in `realtime' C:/Ruby187/lib/ruby/site_ruby/1.8/puppet/util.rb:475:in `thinmark' C:/Ruby187/lib/ruby/site_ruby/1.8/puppet/transaction.rb:103:in `evaluate' C:/Ruby187/lib/ruby/site_ruby/1.8/puppet/transaction.rb:380:in `traverse' C:/Ruby187/lib/ruby/site_ruby/1.8/puppet/transaction.rb:99:in `evaluate' C:/Ruby187/lib/ruby/site_ruby/1.8/puppet/resource/catalog.rb:141:in `apply' C:/Ruby187/lib/ruby/site_ruby/1.8/puppet/configurer.rb:121:in `retrieve_and_apply_catalog' C:/Ruby187/lib/ruby/site_ruby/1.8/puppet/util.rb:180:in `benchmark' C:/Ruby187/lib/ruby/1.8/benchmark.rb:308:in `realtime' C:/Ruby187/lib/ruby/site_ruby/1.8/puppet/util.rb:179:in `benchmark' C:/Ruby187/lib/ruby/site_ruby/1.8/puppet/configurer.rb:120:in `retrieve_and_apply_catalog' C:/Ruby187/lib/ruby/site_ruby/1.8/puppet/configurer.rb:151:in `run' C:/Ruby187/lib/ruby/site_ruby/1.8/puppet/agent.rb:39:in `run' C:/Ruby187/lib/ruby/site_ruby/1.8/puppet/agent/locker.rb:21:in `lock' C:/Ruby187/lib/ruby/site_ruby/1.8/puppet/agent.rb:39:in `run' C:/Ruby187/lib/ruby/1.8/sync.rb:230:in `synchronize' C:/Ruby187/lib/ruby/site_ruby/1.8/puppet/agent.rb:39:in `run' C:/Ruby187/lib/ruby/site_ruby/1.8/puppet/agent.rb:103:in `with_client' C:/Ruby187/lib/ruby/site_ruby/1.8/puppet/agent.rb:37:in `run' C:/Ruby187/lib/ruby/site_ruby/1.8/puppet/application.rb:172:in `call' C:/Ruby187/lib/ruby/site_ruby/1.8/puppet/application.rb:172:in `controlled_run' C:/Ruby187/lib/ruby/site_ruby/1.8/puppet/agent.rb:35:in `run' C:/Ruby187/lib/ruby/site_ruby/1.8/puppet/application/agent.rb:336:in `onetime' C:/Ruby187/lib/ruby/site_ruby/1.8/puppet/application/agent.rb:310:in `run_command' C:/Ruby187/lib/ruby/site_ruby/1.8/puppet/application.rb:306:in `run' C:/Ruby187/lib/ruby/site_ruby/1.8/puppet/application.rb:410:in `hook' C:/Ruby187/lib/ruby/site_ruby/1.8/puppet/application.rb:306:in `run' C:/Ruby187/lib/ruby/site_ruby/1.8/puppet/application.rb:401:in `exit_on_fail' C:/Ruby187/lib/ruby/site_ruby/1.8/puppet/application.rb:306:in `run' C:/Ruby187/lib/ruby/site_ruby/1.8/puppet/util/command_line.rb:69:in `execute' C:/Ruby187/bin/puppet:4 err: /Stage[main]//Node[ip-xxxxxxxx.ec2.internal]/Mca::Set_role[for firefox]/File[c:\dir\jmxremote.password]: Could not evaluate: can't convert Fixnum into String debug: file_metadata supports formats: b64_zlib_yaml marshal pson raw yaml; using pson C:/Ruby187/lib/ruby/site_ruby/1.8/puppet/util/windows/security.rb:577:in `pack' C:/Ruby187/lib/ruby/site_ruby/1.8/puppet/util/windows/security.rb:577:in `string_to_sid_ptr' C:/Ruby187/lib/ruby/site_ruby/1.8/puppet/provider/file/windows.rb:40:in `name2uid' C:/Ruby187/lib/ruby/site_ruby/1.8/puppet/type/file/owner.rb:13:in `insync?' C:/Ruby187/lib/ruby/site_ruby/1.8/puppet/type/file/owner.rb:12:in `map!' C:/Ruby187/lib/ruby/site_ruby/1.8/puppet/type/file/owner.rb:12:in `insync?' C:/Ruby187/lib/ruby/site_ruby/1.8/puppet/property.rb:162:in `safe_insync?' C:/Ruby187/lib/ruby/site_ruby/1.8/puppet/transaction/resource_harness.rb:61:in `perform_changes' C:/Ruby187/lib/ruby/site_ruby/1.8/puppet/transaction/resource_harness.rb:60:in `each' C:/Ruby187/lib/ruby/site_ruby/1.8/puppet/transaction/resource_harness.rb:60:in `perform_changes' C:/Ruby187/lib/ruby/site_ruby/1.8/puppet/transaction/resource_harness.rb:133:in `evaluate' C:/Ruby187/lib/ruby/site_ruby/1.8/puppet/transaction.rb:49:in `apply' C:/Ruby187/lib/ruby/site_ruby/1.8/puppet/transaction.rb:84:in `eval_resource' C:/Ruby187/lib/ruby/site_ruby/1.8/puppet/transaction.rb:103:in `evaluate' C:/Ruby187/lib/ruby/site_ruby/1.8/puppet/util.rb:476:in `thinmark' C:/Ruby187/lib/ruby/1.8/benchmark.rb:308:in `realtime' C:/Ruby187/lib/ruby/site_ruby/1.8/puppet/util.rb:475:in `thinmark' C:/Ruby187/lib/ruby/site_ruby/1.8/puppet/transaction.rb:103:in `evaluate' C:/Ruby187/lib/ruby/site_ruby/1.8/puppet/transaction.rb:380:in `traverse' C:/Ruby187/lib/ruby/site_ruby/1.8/puppet/transaction.rb:99:in `evaluate' C:/Ruby187/lib/ruby/site_ruby/1.8/puppet/resource/catalog.rb:141:in `apply' C:/Ruby187/lib/ruby/site_ruby/1.8/puppet/configurer.rb:121:in `retrieve_and_apply_catalog' C:/Ruby187/lib/ruby/site_ruby/1.8/puppet/util.rb:180:in `benchmark' C:/Ruby187/lib/ruby/1.8/benchmark.rb:308:in `realtime' C:/Ruby187/lib/ruby/site_ruby/1.8/puppet/util.rb:179:in `benchmark' C:/Ruby187/lib/ruby/site_ruby/1.8/puppet/configurer.rb:120:in `retrieve_and_apply_catalog' C:/Ruby187/lib/ruby/site_ruby/1.8/puppet/configurer.rb:151:in `run' C:/Ruby187/lib/ruby/site_ruby/1.8/puppet/agent.rb:39:in `run' C:/Ruby187/lib/ruby/site_ruby/1.8/puppet/agent/locker.rb:21:in `lock' C:/Ruby187/lib/ruby/site_ruby/1.8/puppet/agent.rb:39:in `run' C:/Ruby187/lib/ruby/1.8/sync.rb:230:in `synchronize' C:/Ruby187/lib/ruby/site_ruby/1.8/puppet/agent.rb:39:in `run' C:/Ruby187/lib/ruby/site_ruby/1.8/puppet/agent.rb:103:in `with_client' C:/Ruby187/lib/ruby/site_ruby/1.8/puppet/agent.rb:37:in `run' C:/Ruby187/lib/ruby/site_ruby/1.8/puppet/application.rb:172:in `call' C:/Ruby187/lib/ruby/site_ruby/1.8/puppet/application.rb:172:in `controlled_run' C:/Ruby187/lib/ruby/site_ruby/1.8/puppet/agent.rb:35:in `run' C:/Ruby187/lib/ruby/site_ruby/1.8/puppet/application/agent.rb:336:in `onetime' C:/Ruby187/lib/ruby/site_ruby/1.8/puppet/application/agent.rb:310:in `run_command' C:/Ruby187/lib/ruby/site_ruby/1.8/puppet/application.rb:306:in `run' C:/Ruby187/lib/ruby/site_ruby/1.8/puppet/application.rb:410:in `hook' C:/Ruby187/lib/ruby/site_ruby/1.8/puppet/application.rb:306:in `run' C:/Ruby187/lib/ruby/site_ruby/1.8/puppet/application.rb:401:in `exit_on_fail' C:/Ruby187/lib/ruby/site_ruby/1.8/puppet/application.rb:306:in `run' C:/Ruby187/lib/ruby/site_ruby/1.8/puppet/util/command_line.rb:69:in `execute' C:/Ruby187/bin/puppet:4 err: /Stage[main]//Node[ip-xxxxxxxx.ec2.internal]/Mca::Set_role[for firefox]/File[c:\dir\jmxremote.access]: Could not evaluate: can't convert Fixnum into String debug: Exec[setup_env.bat](provider=windows): Executing 'setup_env.bat' debug: Executing 'setup_env.bat' notice: /Stage[main]//Node[ip-xxxxxxxx.ec2.internal]/Mca::Set_role[for firefox]/Exec[setup_env.bat]/returns: executed successfully debug: /Stage[main]//Node[ip-xxxxxxxx.ec2.internal]/Mca::Set_role[for firefox]/Exec[setup_env.bat]: The container Mca::Set_role[for firefox] will propagate my refresh event debug: Mca::Set_role[for firefox]: The container Node[ip-xxxxxxxx.ec2.internal] will propagate my refresh event debug: Node[ip-xxxxxxxx.ec2.internal]: The container Class[Main] will propagate my refresh event debug: Class[Main]: The container Stage[main] will propagate my refresh event debug: Finishing transaction 36336792 debug: Storing state debug: Stored state in 0.02 seconds notice: Finished catalog run in 3.80 seconds debug: Value of 'preferred_serialization_format' (pson) is invalid for report, using default (yaml) debug: report supports formats: b64_zlib_yaml marshal raw yaml; using yaml </pre> This is a failed one, I removed some duplicate outputs: <pre> C:/Ruby187/lib/ruby/site_ruby/1.8/puppet/transaction/resource_harness.rb:60:in ` perform_changes' C:/Ruby187/lib/ruby/site_ruby/1.8/puppet/transaction/resource_harness.rb:133:in `evaluate' C:/Ruby187/lib/ruby/site_ruby/1.8/puppet/transaction.rb:49:in `apply' C:/Ruby187/lib/ruby/site_ruby/1.8/puppet/transaction.rb:84:in `eval_resource' C:/Ruby187/lib/ruby/site_ruby/1.8/puppet/transaction.rb:103:in `evaluate' C:/Ruby187/lib/ruby/site_ruby/1.8/puppet/util.rb:476:in `thinmark' C:/Ruby187/lib/ruby/1.8/benchmark.rb:308:in `realtime' C:/Ruby187/lib/ruby/site_ruby/1.8/puppet/util.rb:475:in `thinmark' C:/Ruby187/lib/ruby/site_ruby/1.8/puppet/transaction.rb:103:in `evaluate' C:/Ruby187/lib/ruby/site_ruby/1.8/puppet/transaction.rb:380:in `traverse' C:/Ruby187/lib/ruby/site_ruby/1.8/puppet/transaction.rb:99:in `evaluate' C:/Ruby187/lib/ruby/site_ruby/1.8/puppet/resource/catalog.rb:141:in `apply' C:/Ruby187/lib/ruby/site_ruby/1.8/puppet/configurer.rb:121:in `retrieve_and_appl y_catalog' C:/Ruby187/lib/ruby/site_ruby/1.8/puppet/util.rb:180:in `benchmark' C:/Ruby187/lib/ruby/1.8/benchmark.rb:308:in `realtime' C:/Ruby187/lib/ruby/site_ruby/1.8/puppet/util.rb:179:in `benchmark' C:/Ruby187/lib/ruby/site_ruby/1.8/puppet/configurer.rb:120:in `retrieve_and_appl y_catalog' C:/Ruby187/lib/ruby/site_ruby/1.8/puppet/configurer.rb:151:in `run' C:/Ruby187/lib/ruby/site_ruby/1.8/puppet/agent.rb:39:in `run' C:/Ruby187/lib/ruby/site_ruby/1.8/puppet/agent/locker.rb:21:in `lock' C:/Ruby187/lib/ruby/site_ruby/1.8/puppet/agent.rb:39:in `run' C:/Ruby187/lib/ruby/1.8/sync.rb:230:in `synchronize' C:/Ruby187/lib/ruby/site_ruby/1.8/puppet/agent.rb:39:in `run' C:/Ruby187/lib/ruby/site_ruby/1.8/puppet/agent.rb:103:in `with_client' C:/Ruby187/lib/ruby/site_ruby/1.8/puppet/agent.rb:37:in `run' C:/Ruby187/lib/ruby/site_ruby/1.8/puppet/application.rb:172:in `call' C:/Ruby187/lib/ruby/site_ruby/1.8/puppet/application.rb:172:in `controlled_run' C:/Ruby187/lib/ruby/site_ruby/1.8/puppet/agent.rb:35:in `run' C:/Ruby187/lib/ruby/site_ruby/1.8/puppet/application/agent.rb:336:in `onetime' C:/Ruby187/lib/ruby/site_ruby/1.8/puppet/application/agent.rb:310:in `run_comman d' C:/Ruby187/lib/ruby/site_ruby/1.8/puppet/application.rb:306:in `run' C:/Ruby187/lib/ruby/site_ruby/1.8/puppet/application.rb:410:in `hook' C:/Ruby187/lib/ruby/site_ruby/1.8/puppet/application.rb:306:in `run' C:/Ruby187/lib/ruby/site_ruby/1.8/puppet/application.rb:401:in `exit_on_fail' C:/Ruby187/lib/ruby/site_ruby/1.8/puppet/application.rb:306:in `run' C:/Ruby187/lib/ruby/site_ruby/1.8/puppet/util/command_line.rb:69:in `execute' C:/Ruby187/bin/puppet:4 err: /Stage[main]//Node[ip-0ac23734.ec2.internal]/Mca::Set_role[for firefox]/Exe c[setup_env.bat]/returns: change from notrun to 0 failed: Permission denied - C: /Users/ADMINI~1/AppData/Local/Temp/puppet20120104-3968-1idw0d-0 debug: Mca::Set_role[for firefox]: The container Node[ip-0ac23734.ec2.internal] will propagate my refresh event debug: Node[ip-0ac23734.ec2.internal]: The container Class[Main] will propagate my refresh event debug: Class[Main]: The container Stage[main] will propagate my refresh event debug: Finishing transaction 36874488 debug: Storing state info: Creating state file C:/ProgramData/PuppetLabs/puppet/var/state/state.yaml debug: Stored state in 0.27 seconds notice: Finished catalog run in 9.35 seconds debug: Value of 'preferred_serialization_format' (pson) is invalid for report, u sing default (yaml) debug: report supports formats: b64_zlib_yaml marshal raw yaml; using yaml </pre> ---------------------------------------- Bug #11563: Can not create file in Windows 2008 https://projects.puppetlabs.com/issues/11563 Author: Feifei Jia Status: Needs Decision Priority: Normal Assignee: Josh Cooper Category: windows Target version: 2.7.x Affected Puppet version: 2.7.9 Keywords: Branch: I've tested Puppet client in Windows 2008 recently, on EC2 instance. One problem I found is that, after I a first time successfully run, I encountered "CreateProcess() failed" error: <pre> info: Caching catalog for ip-xxxxxxxx.ec2.internal info: Applying configuration version '1324881415' err: /Stage[main]//Node[ip-xxxxxxxx.ec2.internal]/Foo::Set_role[chrome]/File [c:\download\setup_env.bat]: Could not evaluate: CreateProcess() failed: The system cannot find the file specified. notice: /Stage[main]//Node[ip-xxxxxxxx.ec2.internal]/Foo::Set_role[chrome]/E xec[setup_env.bat]: Dependency File[c:\download\setup_env.bat] has failures: tru e warning: /Stage[main]//Node[ip-xxxxxxxx.ec2.internal]/Foo::Set_role[chrome]/ Exec[setup_env.bat]: Skipping because of failed dependencies </pre> Related manifests: <pre> class foo { define set_role ($role) { file { 'c:\download\setup_env.bat': ensure => file, provider => windows, content => template("foo/setup_env.bat.erb"), } exec { 'setup_env.bat': cwd => 'c:\download', path => 'c:\download;%PATH%', provider => windows, require => File['c:\download\setup_env.bat'], } } } </pre> When I remove c:\download\setup_env.bat file, I can retrieve this file from Puppet master, and execute well. Puppet 2.7.9 Facter 1.6.4 Windows 2008 Datacenter SP2 Any hints? -- You have received this notification because you have either subscribed to it, or are involved in it. To change your notification preferences, please click here: http://projects.puppetlabs.com/my/account -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/puppet-bugs?hl=en.
