Daniel
2012-Feb-29 15:36 UTC
[Puppet Users] Windows Puppet 2.7.12rc1-7-g281901e hands at end of run
I just installed the latest rc 1.7 to solve another issue I had. It
solved the issue, but I''m getting a different issue.
I''m running it interactively from an administrator command prompt. It
connects to the master puppet server, processes the configuration
items then gives an error. The interesting thing is that it never
returns to the command prompt. It just hangs. I have to do a control-
C. It then asks "Terminate batch job (Y/N)?"
The log file is empty until I terminate the process as described then
it has a complete log.
Also, the configuration specified is not completed.
My windows machine is named: WN7X64-6MYJ5Q1
It has a share called: \\WN7X64-6MYJ5Q1\source
Puppet command: puppet agent --verbose --server
master.puppet.xxxxxxx.com --logdest c:\junk\puppetinfo_832.txt
Log File Contents:
Wed Feb 29 09:30:42 -0600 2012 Puppet (notice): Starting Puppet client
version 2.7.12
Wed Feb 29 09:30:55 -0600 2012 Puppet (info): Caching catalog for
wn7x64-6myj5q1
Wed Feb 29 09:30:55 -0600 2012 Puppet (err): Failed to apply catalog:
Parameter source failed: Cannot use relative URLs ''\\\\WN7X64-6MYJ5QA\
\source\\win_test_file.txt'' at /etc/puppet/manifests/nodes.pp:6
Wed Feb 29 09:32:16 -0600 2012 Puppet (notice): Caught INT; calling
stop
Trace Info:
notice: Starting Puppet client version 2.7.12
info: Caching catalog for wn7x64-6myj5q1
C:/Dev/tools/Ruby187/lib/ruby/site_ruby/1.8/puppet/parameter.rb:165:in
`fail''
C:/Dev/tools/Ruby187/lib/ruby/site_ruby/1.8/puppet/type/file/source.rb:
65:in `un
safe_validate''
C:/Dev/tools/Ruby187/lib/ruby/site_ruby/1.8/puppet/type/file/source.rb:
56:in `ea
ch''
C:/Dev/tools/Ruby187/lib/ruby/site_ruby/1.8/puppet/type/file/source.rb:
56:in `un
safe_validate''
C:/Dev/tools/Ruby187/lib/ruby/site_ruby/1.8/puppet/parameter.rb:249:in
`validate
''
C:/Dev/tools/Ruby187/lib/ruby/site_ruby/1.8/puppet/parameter.rb:271:in
`value=''
C:/Dev/tools/Ruby187/lib/ruby/site_ruby/1.8/puppet/type.rb:442:in
`[]=''
C:/Dev/tools/Ruby187/lib/ruby/site_ruby/1.8/puppet/type.rb:1821:in
`set_paramete
rs''
C:/Dev/tools/Ruby187/lib/ruby/site_ruby/1.8/puppet/type.rb:1815:in
`each''
C:/Dev/tools/Ruby187/lib/ruby/site_ruby/1.8/puppet/type.rb:1815:in
`set_paramete
rs''
C:/Dev/tools/Ruby187/lib/ruby/site_ruby/1.8/puppet/type.rb:1797:in
`initialize''
C:/Dev/tools/Ruby187/lib/ruby/site_ruby/1.8/puppet/type/file.rb:426:in
`initiali
ze''
C:/Dev/tools/Ruby187/lib/ruby/site_ruby/1.8/puppet/resource.rb:282:in
`new''
C:/Dev/tools/Ruby187/lib/ruby/site_ruby/1.8/puppet/resource.rb:282:in
`to_ral''
C:/Dev/tools/Ruby187/lib/ruby/site_ruby/1.8/puppet/resource/catalog.rb:
618:in `s
end''
C:/Dev/tools/Ruby187/lib/ruby/site_ruby/1.8/puppet/resource/catalog.rb:
618:in `t
o_catalog''
C:/Dev/tools/Ruby187/lib/ruby/site_ruby/1.8/puppet/resource/catalog.rb:
596:in `e
ach''
C:/Dev/tools/Ruby187/lib/ruby/site_ruby/1.8/puppet/resource/catalog.rb:
596:in `t
o_catalog''
C:/Dev/tools/Ruby187/lib/ruby/site_ruby/1.8/puppet/resource/catalog.rb:
521:in `t
o_ral''
C:/Dev/tools/Ruby187/lib/ruby/site_ruby/1.8/puppet/configurer.rb:
101:in `convert
_catalog''
C:/Dev/tools/Ruby187/lib/ruby/site_ruby/1.8/puppet/configurer.rb:96:in
`retrieve
_catalog''
C:/Dev/tools/Ruby187/lib/ruby/site_ruby/1.8/puppet/configurer.rb:
112:in `retriev
e_and_apply_catalog''
C:/Dev/tools/Ruby187/lib/ruby/site_ruby/1.8/puppet/configurer.rb:
152:in `run''
C:/Dev/tools/Ruby187/lib/ruby/site_ruby/1.8/puppet/agent.rb:46:in
`run''
C:/Dev/tools/Ruby187/lib/ruby/site_ruby/1.8/puppet/agent/locker.rb:
11:in `lock''
C:/Dev/tools/Ruby187/lib/ruby/site_ruby/1.8/puppet/agent.rb:46:in
`run''
C:/Dev/tools/Ruby187/lib/ruby/1.8/sync.rb:230:in `synchronize''
C:/Dev/tools/Ruby187/lib/ruby/site_ruby/1.8/puppet/agent.rb:46:in
`run''
C:/Dev/tools/Ruby187/lib/ruby/site_ruby/1.8/puppet/agent.rb:110:in
`with_client''
C:/Dev/tools/Ruby187/lib/ruby/site_ruby/1.8/puppet/agent.rb:44:in
`run''
C:/Dev/tools/Ruby187/lib/ruby/site_ruby/1.8/puppet/application.rb:
172:in `call''
C:/Dev/tools/Ruby187/lib/ruby/site_ruby/1.8/puppet/application.rb:
172:in `contro
lled_run''
C:/Dev/tools/Ruby187/lib/ruby/site_ruby/1.8/puppet/agent.rb:42:in
`run''
C:/Dev/tools/Ruby187/lib/ruby/site_ruby/1.8/puppet/agent.rb:85:in
`start''
C:/Dev/tools/Ruby187/lib/ruby/site_ruby/1.8/puppet/external/event-loop/
signal-sy
stem.rb:95:in `call''
C:/Dev/tools/Ruby187/lib/ruby/site_ruby/1.8/puppet/external/event-loop/
signal-sy
stem.rb:95:in `__signal__''
C:/Dev/tools/Ruby187/lib/ruby/site_ruby/1.8/puppet/external/event-loop/
signal-sy
stem.rb:95:in `each''
C:/Dev/tools/Ruby187/lib/ruby/site_ruby/1.8/puppet/external/event-loop/
signal-sy
stem.rb:95:in `__signal__''
(eval):2:in `signal''
C:/Dev/tools/Ruby187/lib/ruby/site_ruby/1.8/puppet/external/event-loop/
event-loo
p.rb:317:in `sound_alarm''
C:/Dev/tools/Ruby187/lib/ruby/site_ruby/1.8/puppet/agent.rb:89:in
`start''
C:/Dev/tools/Ruby187/lib/ruby/site_ruby/1.8/puppet/daemon.rb:124:in
`start''
C:/Dev/tools/Ruby187/lib/ruby/site_ruby/1.8/puppet/application/
agent.rb:365:in `
main''
C:/Dev/tools/Ruby187/lib/ruby/site_ruby/1.8/puppet/application/
agent.rb:320:in `
run_command''
C:/Dev/tools/Ruby187/lib/ruby/site_ruby/1.8/puppet/application.rb:
309:in `run''
C:/Dev/tools/Ruby187/lib/ruby/site_ruby/1.8/puppet/application.rb:
416:in `hook''
C:/Dev/tools/Ruby187/lib/ruby/site_ruby/1.8/puppet/application.rb:
309:in `run''
C:/Dev/tools/Ruby187/lib/ruby/site_ruby/1.8/puppet/application.rb:
407:in `exit_o
n_fail''
C:/Dev/tools/Ruby187/lib/ruby/site_ruby/1.8/puppet/application.rb:
309:in `run''
C:/Dev/tools/Ruby187/lib/ruby/site_ruby/1.8/puppet/util/
command_line.rb:69:in `e
xecute''
C:/Dev/tools/Ruby187/bin/puppet:4
err: Failed to apply catalog: Parameter source failed: Cannot use
relative URLs
''\\\\WN7X64-6MYJ5QA\\source\\win_test_file.txt'' at
/etc/puppet/
manifests/nodes.p
p:6
notice: Caught INT; calling stop
Terminate batch job (Y/N)? y
Nodes.pp on server only has the following:
node wn7x64-6myj5q1 {
file { "c:/test/puppet/target/win_test_file.txt":
ensure => ''file'',
owner => ''Administrator'',
source =>
''\\\\WN7X64-6MYJ5QA\\source\\win_test_file.txt'',
}
}
--
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+unsubscribe@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/puppet-users?hl=en.
Josh Cooper
2012-Feb-29 16:37 UTC
Re: [Puppet Users] Windows Puppet 2.7.12rc1-7-g281901e hands at end of run
Hi Daniel, On Wed, Feb 29, 2012 at 7:36 AM, Daniel <wildahunden@gmail.com> wrote:> I just installed the latest rc 1.7 to solve another issue I had. It > solved the issue, but I''m getting a different issue. > > I''m running it interactively from an administrator command prompt. It > connects to the master puppet server, processes the configuration > items then gives an error. The interesting thing is that it never > returns to the command prompt. It just hangs. I have to do a control- > C. It then asks "Terminate batch job (Y/N)?"If this issue persists after reviewing my comments below, please let me know. The log file is empty until I terminate the process as described then it has a complete log.>This is a general puppet issue, when using a log file destination, messages are not flushed after writing each log message. See http://projects.puppetlabs.com/issues/9595. This can be worked around by specify http://docs.puppetlabs.com/references/stable/configuration.html#autoflush Also, the configuration specified is not completed.> > > My windows machine is named: WN7X64-6MYJ5Q1 > It has a share called: \\WN7X64-6MYJ5Q1\source >Puppet does not currently support UNC paths ( http://projects.puppetlabs.com/issues/8657). However, you can map the share, e.g. net use z: \\WN7X64-6MYJ5Q1\source, and then specify the file source relative to that drive. The same is true for the source of msi packages. Puppet command: puppet agent --verbose --server> master.puppet.xxxxxxx.com --logdest c:\junk\puppetinfo_832.txt > > Log File Contents: > Wed Feb 29 09:30:42 -0600 2012 Puppet (notice): Starting Puppet client > version 2.7.12 > Wed Feb 29 09:30:55 -0600 2012 Puppet (info): Caching catalog for > wn7x64-6myj5q1 > Wed Feb 29 09:30:55 -0600 2012 Puppet (err): Failed to apply catalog: > Parameter source failed: Cannot use relative URLs ''\\\\WN7X64-6MYJ5QA\ > \source\\win_test_file.txt'' at /etc/puppet/manifests/nodes.pp:6 > Wed Feb 29 09:32:16 -0600 2012 Puppet (notice): Caught INT; calling > stop > > Trace Info: > notice: Starting Puppet client version 2.7.12 > info: Caching catalog for wn7x64-6myj5q1 > C:/Dev/tools/Ruby187/lib/ruby/site_ruby/1.8/puppet/parameter.rb:165:in > `fail'' > C:/Dev/tools/Ruby187/lib/ruby/site_ruby/1.8/puppet/type/file/source.rb: > 65:in `un > safe_validate'' > C:/Dev/tools/Ruby187/lib/ruby/site_ruby/1.8/puppet/type/file/source.rb: > 56:in `ea > ch'' > C:/Dev/tools/Ruby187/lib/ruby/site_ruby/1.8/puppet/type/file/source.rb: > 56:in `un > safe_validate'' > C:/Dev/tools/Ruby187/lib/ruby/site_ruby/1.8/puppet/parameter.rb:249:in > `validate > '' > C:/Dev/tools/Ruby187/lib/ruby/site_ruby/1.8/puppet/parameter.rb:271:in > `value='' > C:/Dev/tools/Ruby187/lib/ruby/site_ruby/1.8/puppet/type.rb:442:in > `[]='' > C:/Dev/tools/Ruby187/lib/ruby/site_ruby/1.8/puppet/type.rb:1821:in > `set_paramete > rs'' > C:/Dev/tools/Ruby187/lib/ruby/site_ruby/1.8/puppet/type.rb:1815:in > `each'' > C:/Dev/tools/Ruby187/lib/ruby/site_ruby/1.8/puppet/type.rb:1815:in > `set_paramete > rs'' > C:/Dev/tools/Ruby187/lib/ruby/site_ruby/1.8/puppet/type.rb:1797:in > `initialize'' > C:/Dev/tools/Ruby187/lib/ruby/site_ruby/1.8/puppet/type/file.rb:426:in > `initiali > ze'' > C:/Dev/tools/Ruby187/lib/ruby/site_ruby/1.8/puppet/resource.rb:282:in > `new'' > C:/Dev/tools/Ruby187/lib/ruby/site_ruby/1.8/puppet/resource.rb:282:in > `to_ral'' > C:/Dev/tools/Ruby187/lib/ruby/site_ruby/1.8/puppet/resource/catalog.rb: > 618:in `s > end'' > C:/Dev/tools/Ruby187/lib/ruby/site_ruby/1.8/puppet/resource/catalog.rb: > 618:in `t > o_catalog'' > C:/Dev/tools/Ruby187/lib/ruby/site_ruby/1.8/puppet/resource/catalog.rb: > 596:in `e > ach'' > C:/Dev/tools/Ruby187/lib/ruby/site_ruby/1.8/puppet/resource/catalog.rb: > 596:in `t > o_catalog'' > C:/Dev/tools/Ruby187/lib/ruby/site_ruby/1.8/puppet/resource/catalog.rb: > 521:in `t > o_ral'' > C:/Dev/tools/Ruby187/lib/ruby/site_ruby/1.8/puppet/configurer.rb: > 101:in `convert > _catalog'' > C:/Dev/tools/Ruby187/lib/ruby/site_ruby/1.8/puppet/configurer.rb:96:in > `retrieve > _catalog'' > C:/Dev/tools/Ruby187/lib/ruby/site_ruby/1.8/puppet/configurer.rb: > 112:in `retriev > e_and_apply_catalog'' > C:/Dev/tools/Ruby187/lib/ruby/site_ruby/1.8/puppet/configurer.rb: > 152:in `run'' > C:/Dev/tools/Ruby187/lib/ruby/site_ruby/1.8/puppet/agent.rb:46:in > `run'' > C:/Dev/tools/Ruby187/lib/ruby/site_ruby/1.8/puppet/agent/locker.rb: > 11:in `lock'' > C:/Dev/tools/Ruby187/lib/ruby/site_ruby/1.8/puppet/agent.rb:46:in > `run'' > C:/Dev/tools/Ruby187/lib/ruby/1.8/sync.rb:230:in `synchronize'' > C:/Dev/tools/Ruby187/lib/ruby/site_ruby/1.8/puppet/agent.rb:46:in > `run'' > C:/Dev/tools/Ruby187/lib/ruby/site_ruby/1.8/puppet/agent.rb:110:in > `with_client'' > > C:/Dev/tools/Ruby187/lib/ruby/site_ruby/1.8/puppet/agent.rb:44:in > `run'' > C:/Dev/tools/Ruby187/lib/ruby/site_ruby/1.8/puppet/application.rb: > 172:in `call'' > C:/Dev/tools/Ruby187/lib/ruby/site_ruby/1.8/puppet/application.rb: > 172:in `contro > lled_run'' > C:/Dev/tools/Ruby187/lib/ruby/site_ruby/1.8/puppet/agent.rb:42:in > `run'' > C:/Dev/tools/Ruby187/lib/ruby/site_ruby/1.8/puppet/agent.rb:85:in > `start'' > C:/Dev/tools/Ruby187/lib/ruby/site_ruby/1.8/puppet/external/event-loop/ > signal-sy > stem.rb:95:in `call'' > C:/Dev/tools/Ruby187/lib/ruby/site_ruby/1.8/puppet/external/event-loop/ > signal-sy > stem.rb:95:in `__signal__'' > C:/Dev/tools/Ruby187/lib/ruby/site_ruby/1.8/puppet/external/event-loop/ > signal-sy > stem.rb:95:in `each'' > C:/Dev/tools/Ruby187/lib/ruby/site_ruby/1.8/puppet/external/event-loop/ > signal-sy > stem.rb:95:in `__signal__'' > (eval):2:in `signal'' > C:/Dev/tools/Ruby187/lib/ruby/site_ruby/1.8/puppet/external/event-loop/ > event-loo > p.rb:317:in `sound_alarm'' > C:/Dev/tools/Ruby187/lib/ruby/site_ruby/1.8/puppet/agent.rb:89:in > `start'' > C:/Dev/tools/Ruby187/lib/ruby/site_ruby/1.8/puppet/daemon.rb:124:in > `start'' > C:/Dev/tools/Ruby187/lib/ruby/site_ruby/1.8/puppet/application/ > agent.rb:365:in ` > main'' > C:/Dev/tools/Ruby187/lib/ruby/site_ruby/1.8/puppet/application/ > agent.rb:320:in ` > run_command'' > C:/Dev/tools/Ruby187/lib/ruby/site_ruby/1.8/puppet/application.rb: > 309:in `run'' > C:/Dev/tools/Ruby187/lib/ruby/site_ruby/1.8/puppet/application.rb: > 416:in `hook'' > C:/Dev/tools/Ruby187/lib/ruby/site_ruby/1.8/puppet/application.rb: > 309:in `run'' > C:/Dev/tools/Ruby187/lib/ruby/site_ruby/1.8/puppet/application.rb: > 407:in `exit_o > n_fail'' > C:/Dev/tools/Ruby187/lib/ruby/site_ruby/1.8/puppet/application.rb: > 309:in `run'' > C:/Dev/tools/Ruby187/lib/ruby/site_ruby/1.8/puppet/util/ > command_line.rb:69:in `e > xecute'' > C:/Dev/tools/Ruby187/bin/puppet:4 > err: Failed to apply catalog: Parameter source failed: Cannot use > relative URLs > ''\\\\WN7X64-6MYJ5QA\\source\\win_test_file.txt'' at /etc/puppet/ > manifests/nodes.p > p:6 > notice: Caught INT; calling stop > Terminate batch job (Y/N)? y > > > Nodes.pp on server only has the following: > > node wn7x64-6myj5q1 { > file { "c:/test/puppet/target/win_test_file.txt": > ensure => ''file'', > owner => ''Administrator'', > source => ''\\\\WN7X64-6MYJ5QA\\source\\win_test_file.txt'', > } > } > > -- > 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+unsubscribe@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+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Daniel
2012-Feb-29 22:33 UTC
[Puppet Users] Re: Windows Puppet 2.7.12rc1-7-g281901e hands at end of run
Those items corrected the issues except that it hangs. It copies the
file as specified and sets all the permissions then just hangs.
puppet agent --verbose --server master.puppet.marketvine.com --
logdest c:\junk\puppetinfo_430.txt
notice: Starting Puppet client version 2.7.12
info: Caching catalog for wn7x64-6myj5q1
info: Applying configuration version ''1330554637''
info: FileBucket adding {md5}f4e04d7bdf2a9da08bf419b6358bb774
info: /Stage[main]//Node[wn7x64-6myj5q1]/File[c:/test/puppet/target/
win_test_file.txt]: Filebucketed c:/test/puppet/target/
win_test_file.txt to puppet with sumf4e04d7bdf2a9da08bf419b6358bb774
notice: /Stage[main]//Node[wn7x64-6myj5q1]/File[c:/test/puppet/target/
win_test_file.txt]/content: content changed ''{md5}
f4e04d7bdf2a9da08bf419b6358bb774'' to ''{md5}
6dd90ee1f9641d34b48636156c012a90''
notice: /Stage[main]//Node[wn7x64-6myj5q1]/File[c:/test/puppet/target/
win_test_file.txt]/owner: owner changed ''Administrators'' to
''S-1-5-21-1802859667-647903414-1863928812-1828668''
notice: /Stage[main]//Node[wn7x64-6myj5q1]/File[c:/test/puppet/target/
win_test_file.txt]/mode: mode changed ''2000700'' to
''0755''
notice: Finished catalog run in 8.24 seconds
It just sits at this point w/o a command prompt until I hit control-C
On Feb 29, 10:37 am, Josh Cooper <j...@puppetlabs.com>
wrote:> Hi Daniel,
>
> On Wed, Feb 29, 2012 at 7:36 AM, Daniel <wildahun...@gmail.com>
wrote:
> > I just installed the latest rc 1.7 to solve another issue I had. It
> > solved the issue, but I''m getting a different issue.
>
> > I''m running it interactively from an administrator command
prompt. It
> > connects to the master puppet server, processes the configuration
> > items then gives an error. The interesting thing is that it never
> > returns to the command prompt. It just hangs. I have to do a
control-
> > C. It then asks "Terminate batch job (Y/N)?"
>
> If this issue persists after reviewing my comments below, please let me
> know.
>
> The log file is empty until I terminate the process as described then
>
> it has a complete log.
>
>
>
> This is a general puppet issue, when using a log file destination, messages
> are not flushed after writing each log message.
Seehttp://projects.puppetlabs.com/issues/9595.
>
> This can be worked around by
specifyhttp://docs.puppetlabs.com/references/stable/configuration.html#autof...
>
> Also, the configuration specified is not completed.
>
>
>
> > My windows machine is named: WN7X64-6MYJ5Q1
> > It has a share called: \\WN7X64-6MYJ5Q1\source
>
> Puppet does not currently support UNC paths
(http://projects.puppetlabs.com/issues/8657). However, you can map the
> share, e.g. net use z: \\WN7X64-6MYJ5Q1\source, and then specify the file
> source relative to that drive. The same is true for the source of msi
> packages.
>
> Puppet command: puppet agent --verbose --server
>
>
>
>
>
>
>
> > master.puppet.xxxxxxx.com --logdest c:\junk\puppetinfo_832.txt
>
> > Log File Contents:
> > Wed Feb 29 09:30:42 -0600 2012 Puppet (notice): Starting Puppet client
> > version 2.7.12
> > Wed Feb 29 09:30:55 -0600 2012 Puppet (info): Caching catalog for
> > wn7x64-6myj5q1
> > Wed Feb 29 09:30:55 -0600 2012 Puppet (err): Failed to apply catalog:
> > Parameter source failed: Cannot use relative URLs
''\\\\WN7X64-6MYJ5QA\
> > \source\\win_test_file.txt'' at
/etc/puppet/manifests/nodes.pp:6
> > Wed Feb 29 09:32:16 -0600 2012 Puppet (notice): Caught INT; calling
> > stop
>
> > Trace Info:
> > notice: Starting Puppet client version 2.7.12
> > info: Caching catalog for wn7x64-6myj5q1
> > C:/Dev/tools/Ruby187/lib/ruby/site_ruby/1.8/puppet/parameter.rb:165:in
> > `fail''
> >
C:/Dev/tools/Ruby187/lib/ruby/site_ruby/1.8/puppet/type/file/source.rb:
> > 65:in `un
> > safe_validate''
> >
C:/Dev/tools/Ruby187/lib/ruby/site_ruby/1.8/puppet/type/file/source.rb:
> > 56:in `ea
> > ch''
> >
C:/Dev/tools/Ruby187/lib/ruby/site_ruby/1.8/puppet/type/file/source.rb:
> > 56:in `un
> > safe_validate''
> > C:/Dev/tools/Ruby187/lib/ruby/site_ruby/1.8/puppet/parameter.rb:249:in
> > `validate
> > ''
> > C:/Dev/tools/Ruby187/lib/ruby/site_ruby/1.8/puppet/parameter.rb:271:in
> > `value=''
> > C:/Dev/tools/Ruby187/lib/ruby/site_ruby/1.8/puppet/type.rb:442:in
> > `[]=''
> > C:/Dev/tools/Ruby187/lib/ruby/site_ruby/1.8/puppet/type.rb:1821:in
> > `set_paramete
> > rs''
> > C:/Dev/tools/Ruby187/lib/ruby/site_ruby/1.8/puppet/type.rb:1815:in
> > `each''
> > C:/Dev/tools/Ruby187/lib/ruby/site_ruby/1.8/puppet/type.rb:1815:in
> > `set_paramete
> > rs''
> > C:/Dev/tools/Ruby187/lib/ruby/site_ruby/1.8/puppet/type.rb:1797:in
> > `initialize''
> > C:/Dev/tools/Ruby187/lib/ruby/site_ruby/1.8/puppet/type/file.rb:426:in
> > `initiali
> > ze''
> > C:/Dev/tools/Ruby187/lib/ruby/site_ruby/1.8/puppet/resource.rb:282:in
> > `new''
> > C:/Dev/tools/Ruby187/lib/ruby/site_ruby/1.8/puppet/resource.rb:282:in
> > `to_ral''
> >
C:/Dev/tools/Ruby187/lib/ruby/site_ruby/1.8/puppet/resource/catalog.rb:
> > 618:in `s
> > end''
> >
C:/Dev/tools/Ruby187/lib/ruby/site_ruby/1.8/puppet/resource/catalog.rb:
> > 618:in `t
> > o_catalog''
> >
C:/Dev/tools/Ruby187/lib/ruby/site_ruby/1.8/puppet/resource/catalog.rb:
> > 596:in `e
> > ach''
> >
C:/Dev/tools/Ruby187/lib/ruby/site_ruby/1.8/puppet/resource/catalog.rb:
> > 596:in `t
> > o_catalog''
> >
C:/Dev/tools/Ruby187/lib/ruby/site_ruby/1.8/puppet/resource/catalog.rb:
> > 521:in `t
> > o_ral''
> > C:/Dev/tools/Ruby187/lib/ruby/site_ruby/1.8/puppet/configurer.rb:
> > 101:in `convert
> > _catalog''
> > C:/Dev/tools/Ruby187/lib/ruby/site_ruby/1.8/puppet/configurer.rb:96:in
> > `retrieve
> > _catalog''
> > C:/Dev/tools/Ruby187/lib/ruby/site_ruby/1.8/puppet/configurer.rb:
> > 112:in `retriev
> > e_and_apply_catalog''
> > C:/Dev/tools/Ruby187/lib/ruby/site_ruby/1.8/puppet/configurer.rb:
> > 152:in `run''
> > C:/Dev/tools/Ruby187/lib/ruby/site_ruby/1.8/puppet/agent.rb:46:in
> > `run''
> > C:/Dev/tools/Ruby187/lib/ruby/site_ruby/1.8/puppet/agent/locker.rb:
> > 11:in `lock''
> > C:/Dev/tools/Ruby187/lib/ruby/site_ruby/1.8/puppet/agent.rb:46:in
> > `run''
> > C:/Dev/tools/Ruby187/lib/ruby/1.8/sync.rb:230:in
`synchronize''
> > C:/Dev/tools/Ruby187/lib/ruby/site_ruby/1.8/puppet/agent.rb:46:in
> > `run''
> > C:/Dev/tools/Ruby187/lib/ruby/site_ruby/1.8/puppet/agent.rb:110:in
> > `with_client''
>
> > C:/Dev/tools/Ruby187/lib/ruby/site_ruby/1.8/puppet/agent.rb:44:in
> > `run''
> > C:/Dev/tools/Ruby187/lib/ruby/site_ruby/1.8/puppet/application.rb:
> > 172:in `call''
> > C:/Dev/tools/Ruby187/lib/ruby/site_ruby/1.8/puppet/application.rb:
> > 172:in `contro
> > lled_run''
> > C:/Dev/tools/Ruby187/lib/ruby/site_ruby/1.8/puppet/agent.rb:42:in
> > `run''
> > C:/Dev/tools/Ruby187/lib/ruby/site_ruby/1.8/puppet/agent.rb:85:in
> > `start''
> >
C:/Dev/tools/Ruby187/lib/ruby/site_ruby/1.8/puppet/external/event-loop/
> > signal-sy
> > stem.rb:95:in `call''
> >
C:/Dev/tools/Ruby187/lib/ruby/site_ruby/1.8/puppet/external/event-loop/
> > signal-sy
> > stem.rb:95:in `__signal__''
> >
C:/Dev/tools/Ruby187/lib/ruby/site_ruby/1.8/puppet/external/event-loop/
> > signal-sy
> > stem.rb:95:in `each''
> >
C:/Dev/tools/Ruby187/lib/ruby/site_ruby/1.8/puppet/external/event-loop/
> > signal-sy
> > stem.rb:95:in `__signal__''
> > (eval):2:in `signal''
> >
C:/Dev/tools/Ruby187/lib/ruby/site_ruby/1.8/puppet/external/event-loop/
> > event-loo
> > p.rb:317:in `sound_alarm''
> > C:/Dev/tools/Ruby187/lib/ruby/site_ruby/1.8/puppet/agent.rb:89:in
> > `start''
> > C:/Dev/tools/Ruby187/lib/ruby/site_ruby/1.8/puppet/daemon.rb:124:in
> > `start''
> > C:/Dev/tools/Ruby187/lib/ruby/site_ruby/1.8/puppet/application/
> > agent.rb:365:in `
> > main''
> > C:/Dev/tools/Ruby187/lib/ruby/site_ruby/1.8/puppet/application/
> > agent.rb:320:in `
> > run_command''
> > C:/Dev/tools/Ruby187/lib/ruby/site_ruby/1.8/puppet/application.rb:
> > 309:in `run''
> > C:/Dev/tools/Ruby187/lib/ruby/site_ruby/1.8/puppet/application.rb:
> > 416:in `hook''
> > C:/Dev/tools/Ruby187/lib/ruby/site_ruby/1.8/puppet/application.rb:
> > 309:in `run''
> > C:/Dev/tools/Ruby187/lib/ruby/site_ruby/1.8/puppet/application.rb:
> > 407:in `exit_o
> > n_fail''
> > C:/Dev/tools/Ruby187/lib/ruby/site_ruby/1.8/puppet/application.rb:
> > 309:in `run''
> > C:/Dev/tools/Ruby187/lib/ruby/site_ruby/1.8/puppet/util/
> > command_line.rb:69:in `e
> > xecute''
> > C:/Dev/tools/Ruby187/bin/puppet:4
> > err: Failed to apply catalog: Parameter source failed: Cannot use
> > relative URLs
> > ''\\\\WN7X64-6MYJ5QA\\source\\win_test_file.txt'' at
/etc/puppet/
> > manifests/nodes.p
> > p:6
> > notice: Caught INT; calling stop
> > Terminate batch job (Y/N)? y
>
> > Nodes.pp on server only has the following:
>
> > node wn7x64-6myj5q1 {
> > file { "c:/test/puppet/target/win_test_file.txt":
> > ensure => ''file'',
> > owner => ''Administrator'',
> > source =>
''\\\\WN7X64-6MYJ5QA\\source\\win_test_file.txt'',
> > }
> > }
>
> > --
> > 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+unsubscribe@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+unsubscribe@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/puppet-users?hl=en.
Josh Cooper
2012-Mar-01 00:59 UTC
Re: [Puppet Users] Re: Windows Puppet 2.7.12rc1-7-g281901e hands at end of run
Hi Daniel, On Wed, Feb 29, 2012 at 2:33 PM, Daniel <wildahunden@gmail.com> wrote:> Those items corrected the issues except that it hangs. It copies the > file as specified and sets all the permissions then just hangs. > > puppet agent --verbose --server master.puppet.marketvine.com -- > logdest c:\junk\puppetinfo_430.txt > > notice: Starting Puppet client version 2.7.12 > info: Caching catalog for wn7x64-6myj5q1 > info: Applying configuration version ''1330554637'' > info: FileBucket adding {md5}f4e04d7bdf2a9da08bf419b6358bb774 > info: /Stage[main]//Node[wn7x64-6myj5q1]/File[c:/test/puppet/target/ > win_test_file.txt]: Filebucketed c:/test/puppet/target/ > win_test_file.txt to puppet with sumf4e04d7bdf2a9da08bf419b6358bb774 > notice: /Stage[main]//Node[wn7x64-6myj5q1]/File[c:/test/puppet/target/ > win_test_file.txt]/content: content changed ''{md5} > f4e04d7bdf2a9da08bf419b6358bb774'' to ''{md5} > 6dd90ee1f9641d34b48636156c012a90'' > notice: /Stage[main]//Node[wn7x64-6myj5q1]/File[c:/test/puppet/target/ > win_test_file.txt]/owner: owner changed ''Administrators'' to > ''S-1-5-21-1802859667-647903414-1863928812-1828668'' > notice: /Stage[main]//Node[wn7x64-6myj5q1]/File[c:/test/puppet/target/ > win_test_file.txt]/mode: mode changed ''2000700'' to ''0755'' > notice: Finished catalog run in 8.24 seconds > > It just sits at this point w/o a command prompt until I hit control-COn Windows, `puppet agent` will sit in a loop, periodically applying catalogs based on the runinterval property. You will need to specify --onetime to have the agent perform a single run. This option is also enabled when using --test. One difference between Windows and Unix when running `puppet agent` is that on Unix we daemonize by default -- the current process does a fork/exec, and the daemonized child does setsid, closes stdin/out/err fds, etc. On Windows, we do not support daemonizing, so the puppet run (and subsequent event loop) occur in the current process until interrupted. HTH, Josh -- 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+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Daniel
2012-Mar-01 20:15 UTC
[Puppet Users] Re: Windows Puppet 2.7.12rc1-7-g281901e hands at end of run
Thank you. On Feb 29, 6:59 pm, Josh Cooper <j...@puppetlabs.com> wrote:> Hi Daniel, > > > > > > > > > > On Wed, Feb 29, 2012 at 2:33 PM, Daniel <wildahun...@gmail.com> wrote: > > Those items corrected the issues except that it hangs. It copies the > > file as specified and sets all the permissions then just hangs. > > > puppet agent --verbose --server master.puppet.marketvine.com -- > > logdest c:\junk\puppetinfo_430.txt > > > notice: Starting Puppet client version 2.7.12 > > info: Caching catalog for wn7x64-6myj5q1 > > info: Applying configuration version ''1330554637'' > > info: FileBucket adding {md5}f4e04d7bdf2a9da08bf419b6358bb774 > > info: /Stage[main]//Node[wn7x64-6myj5q1]/File[c:/test/puppet/target/ > > win_test_file.txt]: Filebucketed c:/test/puppet/target/ > > win_test_file.txt to puppet with sumf4e04d7bdf2a9da08bf419b6358bb774 > > notice: /Stage[main]//Node[wn7x64-6myj5q1]/File[c:/test/puppet/target/ > > win_test_file.txt]/content: content changed ''{md5} > > f4e04d7bdf2a9da08bf419b6358bb774'' to ''{md5} > > 6dd90ee1f9641d34b48636156c012a90'' > > notice: /Stage[main]//Node[wn7x64-6myj5q1]/File[c:/test/puppet/target/ > > win_test_file.txt]/owner: owner changed ''Administrators'' to > > ''S-1-5-21-1802859667-647903414-1863928812-1828668'' > > notice: /Stage[main]//Node[wn7x64-6myj5q1]/File[c:/test/puppet/target/ > > win_test_file.txt]/mode: mode changed ''2000700'' to ''0755'' > > notice: Finished catalog run in 8.24 seconds > > > It just sits at this point w/o a command prompt until I hit control-C > > On Windows, `puppet agent` will sit in a loop, periodically applying > catalogs based on the runinterval property. You will need to specify > --onetime to have the agent perform a single run. This option is also > enabled when using --test. > > One difference between Windows and Unix when running `puppet agent` is that > on Unix we daemonize by default -- the current process does a fork/exec, > and the daemonized child does setsid, closes stdin/out/err fds, etc. On > Windows, we do not support daemonizing, so the puppet run (and subsequent > event loop) occur in the current process until interrupted. > > HTH, > Josh > > -- > 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+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Possibly Parallel Threads
- Puppet on windows: File resource problem
- uninitialized constant ActionView::Helpers::TagHelper::ERB (NameError)
- script/server vs mongrel_rails start issue
- Having trouble testing :( "superclass mismatch" and can't load "test_helper"
- How to connect Ruby with MySQL (XAMPP)?