RAM
2013-Mar-21 21:17 UTC
[Puppet Users] Windows agent got a ''puppet:///'' file source error
Hi, I''m trying to run puppet agent from Windows Server 2008 R2, puppet version is 3.0.2. The puppet master is running on RHEL 5.8, version is 3.1.1 I''m running a simple task: downloading a file, TableauServer.exe, from the master. The manifest, /etc/puppet/modules/tableau/manifests/init.pp, is as follows: class tableau::install { file {''c:/temp.install'': ensure => ''directory'', } file { ''c:/temp.install/TableauServer.exe'': ensure => ''present'', require => File[''c:/temp.install''], source => ''puppet:///modules/tableau/TableauServer.exe'', } } class tableau { notify {''Module: tableau'':} include tableau::install } At the agent site, I got the error: C:\Windows\system32>puppet agent --test --trace Info: Retrieving plugin Info: Loading facts in C:/ProgramData/PuppetLabs/puppet/var/lib/facter/facter_dot_d.rb Info: Loading facts in C:/ProgramData/PuppetLabs/puppet/var/lib/facter/puppet_vardir.rb Info: Loading facts in C:/ProgramData/PuppetLabs/puppet/var/lib/facter/root_home.rb Info: Caching catalog for mnappmktxwin2 Info: Applying configuration version ''1363898070'' Notice: Module: tableau Notice: /Stage[main]/Tableau/Notify[Module: tableau]/message: defined ''message'' as ''Module: tableau'' Error: /Stage[main]/Tableau::Install/File[c:/temp.install/TableauServer.exe]: Could not evaluate: Co uld not retrieve information from environment production source(s) puppet:///modules/tableau/Tableau Server.exe C:/Program Files (x86)/Puppet Labs/Puppet/puppet/lib/puppet/util/errors.rb:60:in `fail'' C:/Program Files (x86)/Puppet Labs/Puppet/puppet/lib/puppet/type/file/source.rb:166:in `metadata'' C:/Program Files (x86)/Puppet Labs/Puppet/puppet/lib/puppet/type/file/source.rb:112:in `copy_source_ values'' C:/Program Files (x86)/Puppet Labs/Puppet/puppet/lib/puppet/type/file.rb:632:in `retrieve'' C:/Program Files (x86)/Puppet Labs/Puppet/puppet/lib/puppet/type.rb:693:in `retrieve_resource'' C:/Program Files (x86)/Puppet Labs/Puppet/puppet/lib/puppet/transaction/resource_harness.rb:32:in `p erform_changes'' C:/Program Files (x86)/Puppet Labs/Puppet/puppet/lib/puppet/transaction/resource_harness.rb:133:in ` evaluate'' C:/Program Files (x86)/Puppet Labs/Puppet/puppet/lib/puppet/transaction.rb:49:in `apply'' C:/Program Files (x86)/Puppet Labs/Puppet/puppet/lib/puppet/transaction.rb:84:in `eval_resource'' C:/Program Files (x86)/Puppet Labs/Puppet/puppet/lib/puppet/transaction.rb:104:in `evaluate'' C:/Program Files (x86)/Puppet Labs/Puppet/puppet/lib/puppet/util.rb:344:in `thinmark'' C:/Program Files (x86)/Puppet Labs/Puppet/sys/ruby/lib/ruby/1.8/benchmark.rb:308:in `realtime'' C:/Program Files (x86)/Puppet Labs/Puppet/puppet/lib/puppet/util.rb:343:in `thinmark'' C:/Program Files (x86)/Puppet Labs/Puppet/puppet/lib/puppet/transaction.rb:104:in `evaluate'' C:/Program Files (x86)/Puppet Labs/Puppet/puppet/lib/puppet/transaction.rb:383:in `traverse'' C:/Program Files (x86)/Puppet Labs/Puppet/puppet/lib/puppet/transaction.rb:99:in `evaluate'' C:/Program Files (x86)/Puppet Labs/Puppet/puppet/lib/puppet/resource/catalog.rb:144:in `apply'' C:/Program Files (x86)/Puppet Labs/Puppet/puppet/lib/puppet/configurer.rb:122:in `apply_catalog'' C:/Program Files (x86)/Puppet Labs/Puppet/puppet/lib/puppet/util.rb:179:in `benchmark'' C:/Program Files (x86)/Puppet Labs/Puppet/sys/ruby/lib/ruby/1.8/benchmark.rb:308:in `realtime'' C:/Program Files (x86)/Puppet Labs/Puppet/puppet/lib/puppet/util.rb:178:in `benchmark'' C:/Program Files (x86)/Puppet Labs/Puppet/puppet/lib/puppet/configurer.rb:121:in `apply_catalog'' C:/Program Files (x86)/Puppet Labs/Puppet/puppet/lib/puppet/configurer.rb:179:in `run'' C:/Program Files (x86)/Puppet Labs/Puppet/puppet/lib/puppet/agent.rb:45:in `run'' C:/Program Files (x86)/Puppet Labs/Puppet/puppet/lib/puppet/agent/locker.rb:20:in `lock'' C:/Program Files (x86)/Puppet Labs/Puppet/puppet/lib/puppet/agent.rb:45:in `run'' C:/Program Files (x86)/Puppet Labs/Puppet/sys/ruby/lib/ruby/1.8/sync.rb:230:in `synchronize'' C:/Program Files (x86)/Puppet Labs/Puppet/puppet/lib/puppet/agent.rb:45:in `run'' C:/Program Files (x86)/Puppet Labs/Puppet/puppet/lib/puppet/agent.rb:119:in `with_client'' C:/Program Files (x86)/Puppet Labs/Puppet/puppet/lib/puppet/agent.rb:42:in `run'' C:/Program Files (x86)/Puppet Labs/Puppet/puppet/lib/puppet/agent.rb:84:in `run_in_fork'' C:/Program Files (x86)/Puppet Labs/Puppet/puppet/lib/puppet/agent.rb:41:in `run'' C:/Program Files (x86)/Puppet Labs/Puppet/puppet/lib/puppet/application.rb:175:in `call'' C:/Program Files (x86)/Puppet Labs/Puppet/puppet/lib/puppet/application.rb:175:in `controlled_run'' C:/Program Files (x86)/Puppet Labs/Puppet/puppet/lib/puppet/agent.rb:39:in `run'' C:/Program Files (x86)/Puppet Labs/Puppet/puppet/lib/puppet/application/agent.rb:338:in `onetime'' C:/Program Files (x86)/Puppet Labs/Puppet/puppet/lib/puppet/application/agent.rb:312:in `run_command '' C:/Program Files (x86)/Puppet Labs/Puppet/puppet/lib/puppet/application.rb:346:in `run'' C:/Program Files (x86)/Puppet Labs/Puppet/puppet/lib/puppet/application.rb:438:in `plugin_hook'' C:/Program Files (x86)/Puppet Labs/Puppet/puppet/lib/puppet/application.rb:346:in `run'' C:/Program Files (x86)/Puppet Labs/Puppet/puppet/lib/puppet/util.rb:496:in `exit_on_fail'' C:/Program Files (x86)/Puppet Labs/Puppet/puppet/lib/puppet/application.rb:346:in `run'' C:/Program Files (x86)/Puppet Labs/Puppet/puppet/lib/puppet/util/command_line.rb:87:in `execute'' C:/Program Files (x86)/Puppet Labs/Puppet/puppet/bin/puppet:4 Notice: Finished catalog run in 0.36 seconds The file path at the master is: /etc/puppet/modules/tableau/files/TableauServer.exe I can''t see what''s wrong here; why puppet complains about "puppet:///..."? Your input is greatly appreciated, -- 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+unsubscribe@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?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Ellison Marks
2013-Mar-21 23:20 UTC
[Puppet Users] Re: Windows agent got a ''puppet:///'' file source error
Are the permissions ok on that file? That is, is it readable by the master? On Thursday, March 21, 2013 2:17:19 PM UTC-7, RAM wrote:> > Hi, > I''m trying to run puppet agent from Windows Server 2008 R2, puppet version > is 3.0.2. > The puppet master is running on RHEL 5.8, version is 3.1.1 > > I''m running a simple task: downloading a file, TableauServer.exe, from the > master. The manifest, /etc/puppet/modules/tableau/manifests/init.pp, is as > follows: > > class tableau::install { > file {''c:/temp.install'': > ensure => ''directory'', > } > > file { ''c:/temp.install/TableauServer.exe'': > ensure => ''present'', > require => File[''c:/temp.install''], > source => ''puppet:///modules/tableau/TableauServer.exe'', > } > } > > class tableau { > notify {''Module: tableau'':} > include tableau::install > } > > At the agent site, I got the error: > > C:\Windows\system32>puppet agent --test --trace > Info: Retrieving plugin > Info: Loading facts in > C:/ProgramData/PuppetLabs/puppet/var/lib/facter/facter_dot_d.rb > Info: Loading facts in > C:/ProgramData/PuppetLabs/puppet/var/lib/facter/puppet_vardir.rb > Info: Loading facts in > C:/ProgramData/PuppetLabs/puppet/var/lib/facter/root_home.rb > Info: Caching catalog for mnappmktxwin2 > Info: Applying configuration version ''1363898070'' > Notice: Module: tableau > Notice: /Stage[main]/Tableau/Notify[Module: tableau]/message: defined > ''message'' as ''Module: tableau'' > > Error: > /Stage[main]/Tableau::Install/File[c:/temp.install/TableauServer.exe]: > Could not evaluate: Co > uld not retrieve information from environment production source(s) > puppet:///modules/tableau/Tableau > Server.exe > C:/Program Files (x86)/Puppet > Labs/Puppet/puppet/lib/puppet/util/errors.rb:60:in `fail'' > C:/Program Files (x86)/Puppet > Labs/Puppet/puppet/lib/puppet/type/file/source.rb:166:in `metadata'' > C:/Program Files (x86)/Puppet > Labs/Puppet/puppet/lib/puppet/type/file/source.rb:112:in `copy_source_ > values'' > C:/Program Files (x86)/Puppet > Labs/Puppet/puppet/lib/puppet/type/file.rb:632:in `retrieve'' > C:/Program Files (x86)/Puppet Labs/Puppet/puppet/lib/puppet/type.rb:693:in > `retrieve_resource'' > C:/Program Files (x86)/Puppet > Labs/Puppet/puppet/lib/puppet/transaction/resource_harness.rb:32:in `p > erform_changes'' > C:/Program Files (x86)/Puppet > Labs/Puppet/puppet/lib/puppet/transaction/resource_harness.rb:133:in ` > evaluate'' > C:/Program Files (x86)/Puppet > Labs/Puppet/puppet/lib/puppet/transaction.rb:49:in `apply'' > C:/Program Files (x86)/Puppet > Labs/Puppet/puppet/lib/puppet/transaction.rb:84:in `eval_resource'' > C:/Program Files (x86)/Puppet > Labs/Puppet/puppet/lib/puppet/transaction.rb:104:in `evaluate'' > C:/Program Files (x86)/Puppet Labs/Puppet/puppet/lib/puppet/util.rb:344:in > `thinmark'' > C:/Program Files (x86)/Puppet > Labs/Puppet/sys/ruby/lib/ruby/1.8/benchmark.rb:308:in `realtime'' > C:/Program Files (x86)/Puppet Labs/Puppet/puppet/lib/puppet/util.rb:343:in > `thinmark'' > C:/Program Files (x86)/Puppet > Labs/Puppet/puppet/lib/puppet/transaction.rb:104:in `evaluate'' > C:/Program Files (x86)/Puppet > Labs/Puppet/puppet/lib/puppet/transaction.rb:383:in `traverse'' > C:/Program Files (x86)/Puppet > Labs/Puppet/puppet/lib/puppet/transaction.rb:99:in `evaluate'' > C:/Program Files (x86)/Puppet > Labs/Puppet/puppet/lib/puppet/resource/catalog.rb:144:in `apply'' > C:/Program Files (x86)/Puppet > Labs/Puppet/puppet/lib/puppet/configurer.rb:122:in `apply_catalog'' > C:/Program Files (x86)/Puppet Labs/Puppet/puppet/lib/puppet/util.rb:179:in > `benchmark'' > C:/Program Files (x86)/Puppet > Labs/Puppet/sys/ruby/lib/ruby/1.8/benchmark.rb:308:in `realtime'' > C:/Program Files (x86)/Puppet Labs/Puppet/puppet/lib/puppet/util.rb:178:in > `benchmark'' > C:/Program Files (x86)/Puppet > Labs/Puppet/puppet/lib/puppet/configurer.rb:121:in `apply_catalog'' > C:/Program Files (x86)/Puppet > Labs/Puppet/puppet/lib/puppet/configurer.rb:179:in `run'' > C:/Program Files (x86)/Puppet Labs/Puppet/puppet/lib/puppet/agent.rb:45:in > `run'' > C:/Program Files (x86)/Puppet > Labs/Puppet/puppet/lib/puppet/agent/locker.rb:20:in `lock'' > C:/Program Files (x86)/Puppet Labs/Puppet/puppet/lib/puppet/agent.rb:45:in > `run'' > C:/Program Files (x86)/Puppet > Labs/Puppet/sys/ruby/lib/ruby/1.8/sync.rb:230:in `synchronize'' > C:/Program Files (x86)/Puppet Labs/Puppet/puppet/lib/puppet/agent.rb:45:in > `run'' > C:/Program Files (x86)/Puppet > Labs/Puppet/puppet/lib/puppet/agent.rb:119:in `with_client'' > C:/Program Files (x86)/Puppet Labs/Puppet/puppet/lib/puppet/agent.rb:42:in > `run'' > C:/Program Files (x86)/Puppet Labs/Puppet/puppet/lib/puppet/agent.rb:84:in > `run_in_fork'' > C:/Program Files (x86)/Puppet Labs/Puppet/puppet/lib/puppet/agent.rb:41:in > `run'' > C:/Program Files (x86)/Puppet > Labs/Puppet/puppet/lib/puppet/application.rb:175:in `call'' > C:/Program Files (x86)/Puppet > Labs/Puppet/puppet/lib/puppet/application.rb:175:in `controlled_run'' > C:/Program Files (x86)/Puppet Labs/Puppet/puppet/lib/puppet/agent.rb:39:in > `run'' > C:/Program Files (x86)/Puppet > Labs/Puppet/puppet/lib/puppet/application/agent.rb:338:in `onetime'' > C:/Program Files (x86)/Puppet > Labs/Puppet/puppet/lib/puppet/application/agent.rb:312:in `run_command > '' > C:/Program Files (x86)/Puppet > Labs/Puppet/puppet/lib/puppet/application.rb:346:in `run'' > C:/Program Files (x86)/Puppet > Labs/Puppet/puppet/lib/puppet/application.rb:438:in `plugin_hook'' > C:/Program Files (x86)/Puppet > Labs/Puppet/puppet/lib/puppet/application.rb:346:in `run'' > C:/Program Files (x86)/Puppet Labs/Puppet/puppet/lib/puppet/util.rb:496:in > `exit_on_fail'' > C:/Program Files (x86)/Puppet > Labs/Puppet/puppet/lib/puppet/application.rb:346:in `run'' > C:/Program Files (x86)/Puppet > Labs/Puppet/puppet/lib/puppet/util/command_line.rb:87:in `execute'' > C:/Program Files (x86)/Puppet Labs/Puppet/puppet/bin/puppet:4 > Notice: Finished catalog run in 0.36 seconds > > The file path at the master is: > > /etc/puppet/modules/tableau/files/TableauServer.exe > > I can''t see what''s wrong here; why puppet complains about "puppet:///..."? > > Your input is greatly appreciated, >-- 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+unsubscribe@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?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Josh Cooper
2013-Mar-21 23:38 UTC
Re: [Puppet Users] Re: Windows agent got a ''puppet:///'' file source error
On Thu, Mar 21, 2013 at 4:20 PM, Ellison Marks <gtyaoi@gmail.com> wrote:> Are the permissions ok on that file? That is, is it readable by the master? > > > On Thursday, March 21, 2013 2:17:19 PM UTC-7, RAM wrote: >> >> Hi, >> I''m trying to run puppet agent from Windows Server 2008 R2, puppet >> version is 3.0.2. >> The puppet master is running on RHEL 5.8, version is 3.1.1 >> >> I''m running a simple task: downloading a file, TableauServer.exe, from >> the master. The manifest, /etc/puppet/modules/tableau/**manifests/init.pp, >> is as follows: >> >> class tableau::install { >> file {''c:/temp.install'': >> ensure => ''directory'', >> } >> >> file { ''c:/temp.install/**TableauServer.exe'': >> ensure => ''present'', >> require => File[''c:/temp.install''], >> source => ''puppet:///modules/tableau/**TableauServer.exe'', >> } >> } >> >> class tableau { >> notify {''Module: tableau'':} >> include tableau::install >> } >> >> At the agent site, I got the error: >> >> C:\Windows\system32>puppet agent --test --trace >> Info: Retrieving plugin >> Info: Loading facts in C:/ProgramData/PuppetLabs/** >> puppet/var/lib/facter/facter_**dot_d.rb >> Info: Loading facts in C:/ProgramData/PuppetLabs/** >> puppet/var/lib/facter/puppet_**vardir.rb >> Info: Loading facts in C:/ProgramData/PuppetLabs/** >> puppet/var/lib/facter/root_**home.rb >> Info: Caching catalog for mnappmktxwin2 >> Info: Applying configuration version ''1363898070'' >> Notice: Module: tableau >> Notice: /Stage[main]/Tableau/Notify[**Module: tableau]/message: defined >> ''message'' as ''Module: tableau'' >> >> Error: /Stage[main]/Tableau::Install/**File[c:/temp.install/**TableauServer.exe]: >> Could not evaluate: Co >> uld not retrieve information from environment production source(s) >> puppet:///modules/tableau/**Tableau >> Server.exe >> C:/Program Files (x86)/Puppet Labs/Puppet/puppet/lib/puppet/**util/errors.rb:60:in >> `fail'' >> C:/Program Files (x86)/Puppet Labs/Puppet/puppet/lib/puppet/**type/file/source.rb:166:in >> `metadata'' >> C:/Program Files (x86)/Puppet Labs/Puppet/puppet/lib/puppet/**type/file/source.rb:112:in >> `copy_source_ >> values'' >> C:/Program Files (x86)/Puppet Labs/Puppet/puppet/lib/puppet/**type/file.rb:632:in >> `retrieve'' >> C:/Program Files (x86)/Puppet Labs/Puppet/puppet/lib/puppet/**type.rb:693:in >> `retrieve_resource'' >> C:/Program Files (x86)/Puppet Labs/Puppet/puppet/lib/puppet/** >> transaction/resource_harness.**rb:32:in `p >> erform_changes'' >> C:/Program Files (x86)/Puppet Labs/Puppet/puppet/lib/puppet/** >> transaction/resource_harness.**rb:133:in ` >> evaluate'' >> C:/Program Files (x86)/Puppet Labs/Puppet/puppet/lib/puppet/**transaction.rb:49:in >> `apply'' >> C:/Program Files (x86)/Puppet Labs/Puppet/puppet/lib/puppet/**transaction.rb:84:in >> `eval_resource'' >> C:/Program Files (x86)/Puppet Labs/Puppet/puppet/lib/puppet/**transaction.rb:104:in >> `evaluate'' >> C:/Program Files (x86)/Puppet Labs/Puppet/puppet/lib/puppet/**util.rb:344:in >> `thinmark'' >> C:/Program Files (x86)/Puppet Labs/Puppet/sys/ruby/lib/ruby/**1.8/benchmark.rb:308:in >> `realtime'' >> C:/Program Files (x86)/Puppet Labs/Puppet/puppet/lib/puppet/**util.rb:343:in >> `thinmark'' >> C:/Program Files (x86)/Puppet Labs/Puppet/puppet/lib/puppet/**transaction.rb:104:in >> `evaluate'' >> C:/Program Files (x86)/Puppet Labs/Puppet/puppet/lib/puppet/**transaction.rb:383:in >> `traverse'' >> C:/Program Files (x86)/Puppet Labs/Puppet/puppet/lib/puppet/**transaction.rb:99:in >> `evaluate'' >> C:/Program Files (x86)/Puppet Labs/Puppet/puppet/lib/puppet/**resource/catalog.rb:144:in >> `apply'' >> C:/Program Files (x86)/Puppet Labs/Puppet/puppet/lib/puppet/**configurer.rb:122:in >> `apply_catalog'' >> C:/Program Files (x86)/Puppet Labs/Puppet/puppet/lib/puppet/**util.rb:179:in >> `benchmark'' >> C:/Program Files (x86)/Puppet Labs/Puppet/sys/ruby/lib/ruby/**1.8/benchmark.rb:308:in >> `realtime'' >> C:/Program Files (x86)/Puppet Labs/Puppet/puppet/lib/puppet/**util.rb:178:in >> `benchmark'' >> C:/Program Files (x86)/Puppet Labs/Puppet/puppet/lib/puppet/**configurer.rb:121:in >> `apply_catalog'' >> C:/Program Files (x86)/Puppet Labs/Puppet/puppet/lib/puppet/**configurer.rb:179:in >> `run'' >> C:/Program Files (x86)/Puppet Labs/Puppet/puppet/lib/puppet/**agent.rb:45:in >> `run'' >> C:/Program Files (x86)/Puppet Labs/Puppet/puppet/lib/puppet/**agent/locker.rb:20:in >> `lock'' >> C:/Program Files (x86)/Puppet Labs/Puppet/puppet/lib/puppet/**agent.rb:45:in >> `run'' >> C:/Program Files (x86)/Puppet Labs/Puppet/sys/ruby/lib/ruby/**1.8/sync.rb:230:in >> `synchronize'' >> C:/Program Files (x86)/Puppet Labs/Puppet/puppet/lib/puppet/**agent.rb:45:in >> `run'' >> C:/Program Files (x86)/Puppet Labs/Puppet/puppet/lib/puppet/**agent.rb:119:in >> `with_client'' >> C:/Program Files (x86)/Puppet Labs/Puppet/puppet/lib/puppet/**agent.rb:42:in >> `run'' >> C:/Program Files (x86)/Puppet Labs/Puppet/puppet/lib/puppet/**agent.rb:84:in >> `run_in_fork'' >> C:/Program Files (x86)/Puppet Labs/Puppet/puppet/lib/puppet/**agent.rb:41:in >> `run'' >> C:/Program Files (x86)/Puppet Labs/Puppet/puppet/lib/puppet/**application.rb:175:in >> `call'' >> C:/Program Files (x86)/Puppet Labs/Puppet/puppet/lib/puppet/**application.rb:175:in >> `controlled_run'' >> C:/Program Files (x86)/Puppet Labs/Puppet/puppet/lib/puppet/**agent.rb:39:in >> `run'' >> C:/Program Files (x86)/Puppet Labs/Puppet/puppet/lib/puppet/**application/agent.rb:338:in >> `onetime'' >> C:/Program Files (x86)/Puppet Labs/Puppet/puppet/lib/puppet/**application/agent.rb:312:in >> `run_command >> '' >> C:/Program Files (x86)/Puppet Labs/Puppet/puppet/lib/puppet/**application.rb:346:in >> `run'' >> C:/Program Files (x86)/Puppet Labs/Puppet/puppet/lib/puppet/**application.rb:438:in >> `plugin_hook'' >> C:/Program Files (x86)/Puppet Labs/Puppet/puppet/lib/puppet/**application.rb:346:in >> `run'' >> C:/Program Files (x86)/Puppet Labs/Puppet/puppet/lib/puppet/**util.rb:496:in >> `exit_on_fail'' >> C:/Program Files (x86)/Puppet Labs/Puppet/puppet/lib/puppet/**application.rb:346:in >> `run'' >> C:/Program Files (x86)/Puppet Labs/Puppet/puppet/lib/puppet/**util/command_line.rb:87:in >> `execute'' >> C:/Program Files (x86)/Puppet Labs/Puppet/puppet/bin/puppet:**4 >> Notice: Finished catalog run in 0.36 seconds >> >> The file path at the master is: >> >> /etc/puppet/modules/tableau/**files/TableauServer.exe >> >> I can''t see what''s wrong here; why puppet complains about "puppet:///..."? >> >> Your input is greatly appreciated, >> > -- > 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+unsubscribe@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?hl=en. > For more options, visit https://groups.google.com/groups/opt_out. > > >In particular, make sure that the ''puppet'' user has read & execute permissions on all directory components in /etc/puppet/modules/tableau/files Josh -- Josh Cooper Developer, Puppet Labs -- 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+unsubscribe@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?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
RAM
2013-Mar-22 13:56 UTC
[Puppet Users] Re: Windows agent got a ''puppet:///'' file source error
Yes: [root@LUXMKTaimvm2 files]# pwd;ls -l /etc/puppet/modules/tableau/files total 568648 -rwxr-xr-x 1 root root 0 Mar 21 13:30 TableauServer.exe On Thursday, March 21, 2013 6:20:27 PM UTC-5, Ellison Marks wrote:> > Are the permissions ok on that file? That is, is it readable by the master? > > On Thursday, March 21, 2013 2:17:19 PM UTC-7, RAM wrote: >> >> Hi, >> I''m trying to run puppet agent from Windows Server 2008 R2, puppet >> version is 3.0.2. >> The puppet master is running on RHEL 5.8, version is 3.1.1 >> >> I''m running a simple task: downloading a file, TableauServer.exe, from >> the master. The manifest, /etc/puppet/modules/tableau/manifests/init.pp, is >> as follows: >> >> class tableau::install { >> file {''c:/temp.install'': >> ensure => ''directory'', >> } >> >> file { ''c:/temp.install/TableauServer.exe'': >> ensure => ''present'', >> require => File[''c:/temp.install''], >> source => ''puppet:///modules/tableau/TableauServer.exe'', >> } >> } >> >> class tableau { >> notify {''Module: tableau'':} >> include tableau::install >> } >> >> At the agent site, I got the error: >> >> C:\Windows\system32>puppet agent --test --trace >> Info: Retrieving plugin >> Info: Loading facts in >> C:/ProgramData/PuppetLabs/puppet/var/lib/facter/facter_dot_d.rb >> Info: Loading facts in >> C:/ProgramData/PuppetLabs/puppet/var/lib/facter/puppet_vardir.rb >> Info: Loading facts in >> C:/ProgramData/PuppetLabs/puppet/var/lib/facter/root_home.rb >> Info: Caching catalog for mnappmktxwin2 >> Info: Applying configuration version ''1363898070'' >> Notice: Module: tableau >> Notice: /Stage[main]/Tableau/Notify[Module: tableau]/message: defined >> ''message'' as ''Module: tableau'' >> >> Error: >> /Stage[main]/Tableau::Install/File[c:/temp.install/TableauServer.exe]: >> Could not evaluate: Co >> uld not retrieve information from environment production source(s) >> puppet:///modules/tableau/Tableau >> Server.exe >> C:/Program Files (x86)/Puppet >> Labs/Puppet/puppet/lib/puppet/util/errors.rb:60:in `fail'' >> C:/Program Files (x86)/Puppet >> Labs/Puppet/puppet/lib/puppet/type/file/source.rb:166:in `metadata'' >> C:/Program Files (x86)/Puppet >> Labs/Puppet/puppet/lib/puppet/type/file/source.rb:112:in `copy_source_ >> values'' >> C:/Program Files (x86)/Puppet >> Labs/Puppet/puppet/lib/puppet/type/file.rb:632:in `retrieve'' >> C:/Program Files (x86)/Puppet >> Labs/Puppet/puppet/lib/puppet/type.rb:693:in `retrieve_resource'' >> C:/Program Files (x86)/Puppet >> Labs/Puppet/puppet/lib/puppet/transaction/resource_harness.rb:32:in `p >> erform_changes'' >> C:/Program Files (x86)/Puppet >> Labs/Puppet/puppet/lib/puppet/transaction/resource_harness.rb:133:in ` >> evaluate'' >> C:/Program Files (x86)/Puppet >> Labs/Puppet/puppet/lib/puppet/transaction.rb:49:in `apply'' >> C:/Program Files (x86)/Puppet >> Labs/Puppet/puppet/lib/puppet/transaction.rb:84:in `eval_resource'' >> C:/Program Files (x86)/Puppet >> Labs/Puppet/puppet/lib/puppet/transaction.rb:104:in `evaluate'' >> C:/Program Files (x86)/Puppet >> Labs/Puppet/puppet/lib/puppet/util.rb:344:in `thinmark'' >> C:/Program Files (x86)/Puppet >> Labs/Puppet/sys/ruby/lib/ruby/1.8/benchmark.rb:308:in `realtime'' >> C:/Program Files (x86)/Puppet >> Labs/Puppet/puppet/lib/puppet/util.rb:343:in `thinmark'' >> C:/Program Files (x86)/Puppet >> Labs/Puppet/puppet/lib/puppet/transaction.rb:104:in `evaluate'' >> C:/Program Files (x86)/Puppet >> Labs/Puppet/puppet/lib/puppet/transaction.rb:383:in `traverse'' >> C:/Program Files (x86)/Puppet >> Labs/Puppet/puppet/lib/puppet/transaction.rb:99:in `evaluate'' >> C:/Program Files (x86)/Puppet >> Labs/Puppet/puppet/lib/puppet/resource/catalog.rb:144:in `apply'' >> C:/Program Files (x86)/Puppet >> Labs/Puppet/puppet/lib/puppet/configurer.rb:122:in `apply_catalog'' >> C:/Program Files (x86)/Puppet >> Labs/Puppet/puppet/lib/puppet/util.rb:179:in `benchmark'' >> C:/Program Files (x86)/Puppet >> Labs/Puppet/sys/ruby/lib/ruby/1.8/benchmark.rb:308:in `realtime'' >> C:/Program Files (x86)/Puppet >> Labs/Puppet/puppet/lib/puppet/util.rb:178:in `benchmark'' >> C:/Program Files (x86)/Puppet >> Labs/Puppet/puppet/lib/puppet/configurer.rb:121:in `apply_catalog'' >> C:/Program Files (x86)/Puppet >> Labs/Puppet/puppet/lib/puppet/configurer.rb:179:in `run'' >> C:/Program Files (x86)/Puppet >> Labs/Puppet/puppet/lib/puppet/agent.rb:45:in `run'' >> C:/Program Files (x86)/Puppet >> Labs/Puppet/puppet/lib/puppet/agent/locker.rb:20:in `lock'' >> C:/Program Files (x86)/Puppet >> Labs/Puppet/puppet/lib/puppet/agent.rb:45:in `run'' >> C:/Program Files (x86)/Puppet >> Labs/Puppet/sys/ruby/lib/ruby/1.8/sync.rb:230:in `synchronize'' >> C:/Program Files (x86)/Puppet >> Labs/Puppet/puppet/lib/puppet/agent.rb:45:in `run'' >> C:/Program Files (x86)/Puppet >> Labs/Puppet/puppet/lib/puppet/agent.rb:119:in `with_client'' >> C:/Program Files (x86)/Puppet >> Labs/Puppet/puppet/lib/puppet/agent.rb:42:in `run'' >> C:/Program Files (x86)/Puppet >> Labs/Puppet/puppet/lib/puppet/agent.rb:84:in `run_in_fork'' >> C:/Program Files (x86)/Puppet >> Labs/Puppet/puppet/lib/puppet/agent.rb:41:in `run'' >> C:/Program Files (x86)/Puppet >> Labs/Puppet/puppet/lib/puppet/application.rb:175:in `call'' >> C:/Program Files (x86)/Puppet >> Labs/Puppet/puppet/lib/puppet/application.rb:175:in `controlled_run'' >> C:/Program Files (x86)/Puppet >> Labs/Puppet/puppet/lib/puppet/agent.rb:39:in `run'' >> C:/Program Files (x86)/Puppet >> Labs/Puppet/puppet/lib/puppet/application/agent.rb:338:in `onetime'' >> C:/Program Files (x86)/Puppet >> Labs/Puppet/puppet/lib/puppet/application/agent.rb:312:in `run_command >> '' >> C:/Program Files (x86)/Puppet >> Labs/Puppet/puppet/lib/puppet/application.rb:346:in `run'' >> C:/Program Files (x86)/Puppet >> Labs/Puppet/puppet/lib/puppet/application.rb:438:in `plugin_hook'' >> C:/Program Files (x86)/Puppet >> Labs/Puppet/puppet/lib/puppet/application.rb:346:in `run'' >> C:/Program Files (x86)/Puppet >> Labs/Puppet/puppet/lib/puppet/util.rb:496:in `exit_on_fail'' >> C:/Program Files (x86)/Puppet >> Labs/Puppet/puppet/lib/puppet/application.rb:346:in `run'' >> C:/Program Files (x86)/Puppet >> Labs/Puppet/puppet/lib/puppet/util/command_line.rb:87:in `execute'' >> C:/Program Files (x86)/Puppet Labs/Puppet/puppet/bin/puppet:4 >> Notice: Finished catalog run in 0.36 seconds >> >> The file path at the master is: >> >> /etc/puppet/modules/tableau/files/TableauServer.exe >> >> I can''t see what''s wrong here; why puppet complains about "puppet:///..."? >> >> Your input is greatly appreciated, >> >-- 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+unsubscribe@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?hl=en. For more options, visit https://groups.google.com/groups/opt_out.