Ask Your Question
0

How can I run puppet master in debug when the dashboard doesn't start?

asked 2013-08-09 10:52:52 -0500

mscottjr99 gravatar image

updated 2013-09-17 09:57:54 -0500

golja gravatar image

I stop the puppet service on my redhat box.

$ service pe-httpd stop

then I run:

$ puppet master --no-daemonize --debug

The dashboard doesn't start with the master so I can't debug my issue. Am I missing something simple?

edit retag flag offensive close merge delete

Comments

What issue are you trying to debug? If you stop the pe-httpd service, you cannot access the PE Console, since it runs on port 443 (https).

GregLarkin gravatar imageGregLarkin ( 2013-08-12 14:04:25 -0500 )edit

2 Answers

Sort by ยป oldest newest most voted
2

answered 2013-09-03 10:28:25 -0500

llowder gravatar image

updated 2013-09-03 10:28:37 -0500

If you want to run PE in debug mode without having to stop pe-httpd fully, you can edit the config.ru and uncomment the # ARGV << --debug line, which in a default file is line 10, and for Puppet Enterprise can be found at /opt/puppet/share/puppet/ext/rack/files/config.ru

This won't have it log to console, but will let you tail the logfiles and get the debug info you seek.

Alternately, you can edit the vhosts to disable the puppet master process, then restart pe-httpd and call the master using --no-daemonize --debug etc - but you'll ... (more)

edit flag offensive delete link more

Comments

For 3.x version, the file can be found here: /etc/puppet/rack/config.ru

Cristian Falcas gravatar imageCristian Falcas ( 2015-12-07 14:23:53 -0500 )edit
0

answered 2015-12-07 14:39:31 -0500

Cristian Falcas gravatar image

Other method to debug the puppet master:

Add in /etc/puppet/rack/config.ru the following lines:

ARGV << "--debug"
ARGV << "--trace"
ARGV << "--profile"
ARGV << "--logdest" << "/var/log/puppetmaster.log"

And restart httpd.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2013-08-09 10:52:52 -0500

Seen: 6,816 times

Last updated: Dec 07 '15