[Puppet Users] Re: Debugging confusion !?

2017-01-16 Thread Peter Faller
It looks like the installation of redis is failing because the user 'redis' already exists; and the directory /home/username/myapp-new/config does not exist or is not writeable ... On Friday, 13 January 2017 20:10:00 UTC+2, Steve Button wrote: > > Error: Execution of '/usr/bin/apt-get -q -y -o

[Puppet Users] Re: Debugging Puppet catalog compilation issues

2015-03-24 Thread Frederic Conrotte
Thanks for your answer Nick, I will surely try this when 3.7.5 is out Le mardi 24 mars 2015 13:10:25 UTC+1, Frederic Conrotte a écrit : > > Hello > > I'm using Puppet Master 3.7 thru Apache/Passenger and I am facing this > compilation issue: > > > [1;31mError: Could not retrieve catalog from re

[Puppet Users] Re: Debugging Puppet catalog compilation issues

2015-03-24 Thread Nick Howes
On Tuesday, 24 March 2015 12:10:25 UTC, Frederic Conrotte wrote: > > Hello > > I'm using Puppet Master 3.7 thru Apache/Passenger and I am facing this > compilation issue: > > > [1;31mError: Could not retrieve catalog from remote server: Error 400 on > SERVER: assert_type(): Expected type Stri

[Puppet Users] Re: Debugging which provider and which command it is using

2014-10-28 Thread jcbollinger
On Monday, October 27, 2014 1:28:25 PM UTC-5, huhm4n wrote: > > When I'm installing some package using puppet, let's say > > > package { "xxx": > ensure => present, > } > > How do I include if it is running yum install, or apt-get when I'm pushing > this module on os level? >

[Puppet Users] Re: Debugging which provider and which command it is using

2014-10-27 Thread Sam Coffland
I'm not sure exactly what your trying to achieve by getting the provider but I give it a shot at it anyway. In order to get debugging info from puppet you would use a notice. http://www.puppetcookbook.com/posts/simple-debug-messages.html So if you wanted to have your EL systems tell you they i

[Puppet Users] Re: Debugging execution error with vcsrepo

2014-05-30 Thread Bas van Meurs
I've just encountered and fixed the exact same error message. The repo (and the .git directory in it) contained files not owned by the user specfied in the vcsrepo command. Ensure the ownership of the directory before vcsrepo-ing it: file { "/home/myuser/myrepo": ensure => directory,

Re: [Puppet Users] Re: debugging puppet/hiera-eyaml decryption problems?

2014-02-27 Thread Christopher Wood
Following up to my own post... Without changing my manifest data, I managed to get this to work by changing my rpm packages around, from this, which didn't work: hiera-eyaml 2.0 trollop 2.0 highline 1.6.19 To this, which did: hiera-eyaml 1.3.4 trollop 1.16 highline 1.6.20 This didn't work eit

Re: [Puppet Users] Re: debugging puppet/hiera-eyaml decryption problems?

2014-02-27 Thread Christopher Wood
Here's a sample value. Apart from the length it looks much like yours. (But your encrypted value appears on a separate line, but possibly word wrap.) testing::cwood::param: ENC[PKCS7,MIIBiQYJKoZIhvcNAQcDoIIBejCCAXYCAQAxggEhMIIBHQIBADAFMAACAQAwDQYJKoZIhvcNAQEBBQAEggEARs4upyGGGEl1Q3HJdh1Rov+IkQO07

[Puppet Users] Re: debugging puppet/hiera-eyaml decryption problems?

2014-02-26 Thread William Leese
What does the actual yaml containing the encrypted value look like? I've had some trouble simply copy & pasting eyaml output into yaml files. I found using something like this works best: mysql::server::root_password: ENC[PKCS7,MxxZIhvcNAQcDoIIBejCCAXYCAQAxggEhMIIBHQIBAD

[Puppet Users] Re: Debugging a Node form site.pp?

2014-02-13 Thread jcbollinger
On Wednesday, February 12, 2014 4:36:31 PM UTC-6, Joaquin Menchaca wrote: > > Alright, I found the source of my problem, at least I think. The > puppetmaster includes path to modules based on an environment (staging, > production, qa) and a global path shared by all environments. The > deplo

[Puppet Users] Re: Debugging a Node form site.pp?

2014-02-12 Thread Joaquin Menchaca
Alright, I found the source of my problem, at least I think. The puppetmaster includes path to modules based on an environment (staging, production, qa) and a global path shared by all environments. The deployenv was in both locations, global and the environmental ones. The module shared by

[Puppet Users] Re: Debugging a Node form site.pp?

2014-02-12 Thread Joaquin Menchaca
Is there a way to blow away the cache and refresh? We don't use ENC in this environment, just a simple site.pp, which references nodes.pp. Segue, what I like about ENC is that you can call your homegrown script, get a yaml of params, classes for that node. I wish I could get something simil

[Puppet Users] Re: Debugging a Node form site.pp?

2014-02-12 Thread jcbollinger
On Tuesday, February 11, 2014 6:05:54 PM UTC-6, Joaquin Menchaca wrote: > > I was wondering is there is a way to see what puppet things a node > resource is, such as classes it includes. Somehow in our environment it is > picking up a class that we did not specify. > I could believe that you

Re: [Puppet Users] Re: Debugging execution error with vcsrepo

2014-01-02 Thread jcbollinger
On Wednesday, December 25, 2013 9:47:39 AM UTC-6, Felix.Frank wrote: > > Hi, > > for what it's worth - the error seems to indicate that su considers > "/usr/local/bin/git config remote.origin.url" to be the name of an > executable file that contains a space. > I agree that it looks like the

Re: [Puppet Users] Re: Debugging execution error with vcsrepo

2013-12-25 Thread Felix Frank
Hi, for what it's worth - the error seems to indicate that su considers "/usr/local/bin/git config remote.origin.url" to be the name of an executable file that contains a space. I cannot fathom why this is inflicting you now, though. On 12/23/2013 09:12 PM, Patrick Gibson wrote: > Error: /Stage[

[Puppet Users] Re: Debugging execution error with vcsrepo

2013-12-24 Thread Patrick Gibson
Does anyone have any advice on simulating the environment and conditions under which processes are run by Puppet? I'd really like to get the bottom of this, as other commands I'm running via other classes are working fine. Thanks, Patrick On Monday, 23 December 2013 12:12:40 UTC-8, Patrick Gi

[Puppet Users] Re: Debugging execution error with vcsrepo

2013-12-23 Thread Patrick Gibson
If I manually clone the repo, I get a similarly puzzling error: Error: /Stage[main]/myuser/Vcsrepo[/home/myuser/myrepo]: Could not evaluate: Execution of '/usr/bin/su myuser -c "/usr/local/bin/git config remote.origin.url"' returned 127: -su: /usr/local/bin/git config remote.origin.url: No such

[Puppet Users] Re: Debugging execution error with vcsrepo

2013-12-21 Thread Patrick Gibson
(I should mention this is on FreeBSD 9.2.) On Saturday, 21 December 2013 18:33:45 UTC-8, Patrick Gibson wrote: > > I'm using the vcsrepo module to clone a git repo as a particular user, and > I'm getting a puzzling error: > > Debug: Executing '/usr/bin/su myuser -c "/usr/local/bin/git clone > g.

[Puppet Users] Re: Debugging a facter problem

2013-02-04 Thread jcbollinger
On Friday, February 1, 2013 8:16:12 AM UTC-6, Bernhard Schmidt wrote: > > --- > require 'facter' > require 'facter/util/ip' > > if not FileTest.exists?("/usr/sbin/lldpctl") > nil > end > That last bit probably doesn't do what you want. That is to say, it evaluates to nil in every case

Re: [Puppet Users] Re: Debugging external node scripts

2012-09-28 Thread Virgil
Hi Curt, I realize this is 3 year s later, but do you have any idea how one debugs such an issue in 2012? Cheers, Virgil On Friday, July 3, 2009 2:13:14 PM UTC-7, Curt Micol wrote: > > On Fri, Jul 3, 2009 at 12:05 PM, Martin > Wheldon> > wrote: > > > > Hi Curt, > > > > Did you manage to resolv

[Puppet Users] Re: debugging ldap enc

2012-01-06 Thread Darin Perusich
I just added "node default {}" to the site.pp and LDAP ENC has "magically" started working. This is not mentioned nowhere in Pulling strings, I can't comment on Pro Puppet since I don't have it, and based on my reading of the LDAP_Nodes wiki page I took the "default nodes" section to mean this was

[Puppet Users] Re: Debugging external node scripts

2009-07-03 Thread Curt Micol
On Fri, Jul 3, 2009 at 12:05 PM, Martin Wheldon wrote: > > Hi Curt, > > Did you manage to resolve this issue? If not I think it may be the > format of your yaml output. > >>--- >>classes: >>- custom >>- monitoring::base > > Should be this > > --- > classes: >   - custom >   - monitoring::base > >

[Puppet Users] Re: Debugging external node scripts

2009-07-03 Thread Martin Wheldon
Hi Curt, Did you manage to resolve this issue? If not I think it may be the format of your yaml output. >--- >classes: >- custom >- monitoring::base Should be this --- classes: - custom - monitoring::base Note the indentation. Having said that I have been unable to persuade the python y

[Puppet Users] Re: Debugging external node scripts

2009-06-29 Thread Curt Micol
2009/6/29 Nicolas Szalay : > Le lundi 29 juin 2009 à 01:09 -0700, Curt Micol a écrit : > Did you try running it as the "puppet" user ? permissions on NODEFILE & > LOGFILE could be source of errors. Yes, sorry, I get the same results with running as the puppet user. Just tested once more to verify

[Puppet Users] Re: Debugging external node scripts

2009-06-29 Thread Nicolas Szalay
Le lundi 29 juin 2009 à 01:09 -0700, Curt Micol a écrit : > When I run the script directly: > [r...@vpsadmins ~]# python /etc/puppet/tools/external_nodes.py dc2- > vps1-400b.example.com > --- > classes: > - custom > - monitoring::base > - ntpd > - puppetd > - rpms > - sshd > - yum > - crontab > -

[Puppet Users] Re: debugging external node scripts

2009-06-24 Thread Dan Bode
This is not my original error, I have fixed that. My original error did not output to stderr (from the script execution) because it was a permissions issue with the puppet user. I created this error as an example to show that error outputs from script execution are being suppressed at trace level.

[Puppet Users] Re: debugging external node scripts

2009-06-24 Thread Nicolas Szalay
Le mercredi 24 juin 2009 à 10:28 +0200, Dan Bode a écrit : > # /etc/puppet/conf/node_classifier HOST.com > /etc/puppet/conf/node_classifier:26:in `initialize': No such file or > directory - /etc/puppet/conf/inventory.csv (Errno::ENOENT) > from /etc/puppet/conf/node_classifier:26:in `new' >

[Puppet Users] Re: debugging external node scripts

2009-06-24 Thread Dan Bode
I just had to solve it the old fashion way. Write statements to a log file, and find the broken line. The issue was that a file did not have proper read permissions for the puppet user. trace is not very helpful here is the server on trace: #puppetmasterd --no-daemonize --verbose --debug --trace

[Puppet Users] Re: debugging external node scripts

2009-06-24 Thread Nicolas Szalay
Le mercredi 24 juin 2009 à 10:02 +0200, Dan Bode a écrit : > Hi all, > > How can I debug external node script errors? I cant seem to figure out > what is wrong with my script. It appears to work from the command > line, but not from puppet. Run your master with --debug --trace --~--~-

[Puppet Users] Re: debugging puppetrun + HTTP 503 error

2009-04-03 Thread Rolfs
chris wrote: > Sorry, I was wrong -- namespaceauth.conf on the client only had a > [puppetrunner] entry. With the complete list below it works like a > charm. No problem man. I'm just happy to hear it worked out. Regards Rolf --~--~-~--~~~---~--~~ You received t

[Puppet Users] Re: debugging puppetrun + HTTP 503 error

2009-04-03 Thread chris
Sorry, I was wrong -- namespaceauth.conf on the client only had a [puppetrunner] entry. With the complete list below it works like a charm. Thanks! Chris On Apr 3, 11:15 am, chris wrote: > Jason -- I'm not using passenger, this happens when we run our server > with webbrick or with mongrel. >

[Puppet Users] Re: debugging puppetrun + HTTP 503 error

2009-04-03 Thread chris
Jason -- I'm not using passenger, this happens when we run our server with webbrick or with mongrel. Rolf -- namespaceauth.conf on both the client and the server have [fileserver] allow *.local [puppetmaster] allow *.local [pelementserver] allow *.local [puppetrunner] allow serv3

[Puppet Users] Re: debugging puppetrun + HTTP 503 error

2009-04-02 Thread Rolfs
chris wrote: > puppetd -d -v --no-daemonize gives: Have you tried to run puppetmaster in front ( -d -v --no-daemonize ) for debugging? How does your /etc/puppet/namespaceauth.conf file look on the client and on the server? Regards Rolf --~--~-~--~~~---~--~~ You

[Puppet Users] Re: debugging puppetrun + HTTP 503 error

2009-04-01 Thread Jason Rojas
I think I get this as well when I use puppetrun. Are you by change using passenger at all? -Jason On Apr 1, 2009, at 12:03 PM, chris wrote: > > > Puppet's been super for our installation of ~800 hosts, but I'm trying > to figure out why puppetrun isn't working for our us. Nodes work fine > as

[Puppet Users] Re: debugging

2009-01-22 Thread Thomas Bellman
kevin wrote: > I'd like to run puppet and see exactly what it would do, or what it > tried to do. > > Do i need to run puppet or puppetd to get that to happen? I've been > trying the --verbose --parseonly options, but they have not been > working as I would expect... You probably want to use t

[Puppet Users] Re: Debugging Puppet/Puppetmasterd

2008-09-09 Thread Nigel Kersten
Somewhat related when trying to improve performance is doing debugging of how long operations take. Puppet already makes some use of this, but it's worth noting that for a given section of code, you can use the existing Benchmark code to do this. ie you can surround a code block with something li

[Puppet Users] Re: Debugging Puppet/Puppetmasterd

2008-09-08 Thread David Lutterkort
On Mon, 2008-09-08 at 10:39 -0600, Andrew Shafer wrote: > > I've been using a combination of GDB, DTrace, puts caller and puts > 'WTF' > > GDB can be like staring into the abyss. > > DTrace seems the most powerful and promising, but a bit of a learning > curve. > > puts is primitive, but it wo

[Puppet Users] Re: Debugging Puppet/Puppetmasterd

2008-09-08 Thread Mark Foster
Nigel Kersten wrote: > so I've found myself with a few reasons to need to debug > puppetd/puppetmasterd lately since we upgraded to 0.24.5 > > I've been doing this by basically throwing Puppet.notice/warning > statements into the code, which feels rather primitive... > > How are people doing deb

[Puppet Users] Re: Debugging Puppet/Puppetmasterd

2008-09-08 Thread Andrew Shafer
I've been using a combination of GDB, DTrace, puts caller and puts 'WTF' GDB can be like staring into the abyss. DTrace seems the most powerful and promising, but a bit of a learning curve. puts is primitive, but it works. Would love to swap tips and tricks with anyone debugging Ruby in general