Ask Your Question
0

ENC doesn't take effect when issuing 'service puppetmasterd start' to startup puppet

asked 2013-06-26 02:22:56 -0500

Harlan gravatar image

updated 2013-06-26 02:26:46 -0500

ENC goes well when I startup puppet with 'puppet master start', but it doesn't work via 'service puppetmasterd start'.

The version of puppet server is puppet-server-2.6.18-3.el6.noarch

Client always prompts the error as below when it attemped to connect to server.

err: Could not retrieve catalog from remote server: Error 400 on SERVER: Could not find node 'node1.example.com'; cannot compile

It's very strange this issue. Does anyone help me?

Any response will be much appreciated.

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
0

answered 2013-06-26 20:59:44 -0500

Harlan gravatar image

The result is shown here:

[root@localhost puppet]# service puppetmaster start

Starting puppetmaster: [ OK ]

[root@localhost puppet]# ps auxww | grep master

root 1743 0.0 0.1 12524 1092 ? Ss Jun24 0:00 /usr/libexec/postfix/master

puppet 29118 0.1 3.5 52736 36444 ? Ssl 18:54 0:00 /usr/bin/ruby /usr/sbin/puppetmasterd

root 29124 0.0 0.0 4360 736 pts/0 S+ 18:54 0:00 grep master

Sorry for the typo, it's actually 'service puppetmaster start'.

edit flag offensive delete link more
0

answered 2013-06-26 09:46:08 -0500

GregLarkin gravatar image

updated 2013-06-27 16:14:07 -0500

Is puppetmaster running after you issue the "service puppetmasterd start" command? To confirm, please run:

ps uaxww | grep master

and post the results back here. Also, it appears that the rc.d script is named puppetmaster, not puppetmasterd, so please try this command to start the service:

service puppetmaster start

Depending on the OS you are using, please check if the init.d script uses a separate configuration file to pass parameters to the daemon. For instance, on CentOS/RHEL, you can find the daemon configuration file in /etc/sysconfig/puppetmaster.

It's possible that when you start puppetmaster by ... (more)

edit flag offensive delete link more

Comments

I checked that the init.d script didn't use any different configuration file, no any configuration in /etc/sysconfig/puppetmaster, it just pass /usr/sbin/puppetmasterd to the daemon ...(more)

Harlan gravatar imageHarlan ( 2013-06-28 00:43:46 -0500 )edit

What OS and what version of Puppet are you using?

GregLarkin gravatar imageGregLarkin ( 2013-06-28 10:07:19 -0500 )edit

I am using CentOS6.4 i386 and puppet-server-2.6.18-3.el6.noarch

Harlan gravatar imageHarlan ( 2013-06-29 03:21:16 -0500 )edit

Can you post your puppet.conf, site.pp, nodes.pp and the YAML data emitted by your ENC for the node in question? I have a test machine here with ...(more)

GregLarkin gravatar imageGregLarkin ( 2013-07-01 13:53:33 -0500 )edit

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-06-26 02:22:56 -0500

Seen: 63 times

Last updated: Jun 27 '13