Ask Your Question
0

Fresh install of puppetserver not starting properly

asked 2017-06-01 11:04:13 -0600

Aseem gravatar image

I have just started to learn puppet. I installed the latest package of puppetserver and have not been able to get it to start properly. I tried it on an Ubuntu 12 box, a CentOS box from puppetlabs and also fresh CentOS 7 copy.

I am running virtualbox and using vagrant to create the VM. I have allocated 6GB of RAM to the puppet and this is the vm config

config.vm.define :puppet do |puppet_config|
  puppet_config.vm.box = "centos/7"
  puppet_config.vm.hostname = "puppet.localdomain"
  puppet_config.vm.network :private_network, ip: "10.0.15.210"
  puppet_config.vm.synced_folder ".", "/vagrant", disabled: true
  puppet_config.vm.provider "virtualbox" do |vb|
    vb.memory = "6048"
  end
end

After executing the command systemctl start puppetserver, I get a failure message and ps -ef shows a puppet process. Unable to figure out what is going wrong.

Job for puppetserver.service failed because the control process exited with error code. See "systemctl status puppetserver.service" and "journalctl -xe" for details.

I don't see any useful message in the log files even after I set the log mode to trace. This is the message I have in puppetserver.log

2017-06-01 15:38:46,370 DEBUG [main] [p.t.bootstrap] Loading bootstrap configs: /etc/puppetlabs/puppetserver/services.d/ca.cfg /opt/puppetlabs/server/apps/puppetserver/config/services.d/bootstrap.cfg

This is from journalctl -xe

-- Unit puppetserver.service has begun starting up. Jun 01 15:45:02 puppet.localdomain puppetserver[7032]: OpenJDK 64-Bit Server VM warning: ignoring option MaxPermSize=256m; support was removed in 8Jun 01 15 :50:01 puppet.localdomain systemd[1]: puppetserver.service start operation timed out. Terminating. Jun 01 15:50:02 puppet.localdomain puppetserver[7032]: Startup script was terminated before completion Jun 01 15:50:03 puppet.localdomain systemd[1]: puppetserver.service: control process exited, code=exited status=1 Jun 01 15:50:03 puppet.localdomain systemd[1]: Failed to start puppetserver Service. -- Subject: Unit puppetserver.service has failed -- Defined-By: systemd

-- Support: http://lists.freedesktop.org/mailman/...

-- Unit puppetserver.service has failed.

-- The result is failed. Jun 01 15:50:03 puppet.localdomain systemd[1]: Unit puppetserver.service entered failed state. Jun 01 15:50:03 puppet.localdomain systemd[1]: puppetserver.service failed. Jun 01 15:50:03 puppet.localdomain polkitd[545]: Unregistered Authentication Agent for unix-process:7026:244832 (system bus name :1.69, object pathJun 01 15:50:03 puppet.localdomain systemd[1]: puppetserver.service holdoff time over, scheduling restart. Jun 01 15:50:03 puppet.localdomain systemd[1]: Starting puppetserver Service... -- Subject: Unit puppetserver.service has begun start-up -- Defined-By: systemd

-- Support: http://lists.freedesktop.org/mailman/...

-- Unit puppetserver.service has begun starting up. Jun 01 15:50:03 puppet.localdomain puppetserver[7615]: OpenJDK 64-Bit Server VM warning: ignoring option MaxPermSize=256m; support was removed in 8lines 254

I don't have a DNS server but have configured hosts file to have fqdn of the system.

Hosts file:

127.0.0.1   puppet.localdomain puppet localhost localhost.localdomain localhost4 localhost4.localdomain4
::1         localhost localhost ...
(more)
edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2017-06-06 07:26:22 -0600

Aseem gravatar image

I had only 1 core assigned to the VM. I increased the core count to 2 and puppet server is running now. It would have been great if the puppet server binary would give some informative message in the log to point towards whatever resource isn't enough instead of a message saying script execution timed out.

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: 2017-06-01 11:04:13 -0600

Seen: 109 times

Last updated: Jun 06