I noticed once when I started Puppet server, after installation, the following error:
Job for puppetserver.service failed because the control process exited with error code. See “systemctl status puppetserver.service” and “journalctl -xe” for details.
The error occurs because there is not enough RAM and to fix the error, open the Puppet server configuration file:
sudo nano /etc/default/puppetserver
And reduce the amount of allocated RAM for the Puppet server (for example, I specified 512m instead of 2g):
Now let’s start the Puppet server:
sudo systemctl start puppetserver
Thanks a lot..! it worked on aws EC2 instance