Puppet server fails to start after a new installation

0 votes

I had a puppet server 6.7 installed on ubuntu 18.04. It was working fine. I tried uninstalling it using the following commands:

sudo apt-get remove puppetmaster-common
sudo apt-get remove --auto-remove puppetmaster-common
sudo apt-get purge puppetmaster-common
sudo apt-get purge --auto-remove puppetmaster-common


sudo apt-get remove puppet
sudo apt-get remove --auto-remove puppet
sudo apt-get purge puppet
sudo apt-get purge --auto-remove puppet

I installed it again, but now it stopped working the logs are showing a lot of errors:

Could not autoload puppet/type/user: Could not autoload puppet/provider/user/directoryservice: cannot load such file
Could not autoload puppet/provider/user/directoryservice: cannot load such file -- plist
Could not autoload puppet/type/user: Could not autoload puppet/provider/user/directoryservice: cannot load such file
Could not create resources for managing Puppet's files and directories in sections [:main, :master, :ssl, :metrics]
Could not prepare for execution: Could not create resources for managing Puppet's files and directories in sections

What's the issue? How can i start it again?

Aug 6 in Puppet by Jane
33 views

1 answer to this question.

0 votes

Try this:

Remove the existing apt repository by manually deleting the entries in

/etc/apt/sources.list.d

Remove puppetlabls-pc1.list, puppet.list, puppet.save, all entries related to puppet and 

then run the following command:

sudo apt-get update

Install puppet master once again without appending any additional apt repos

sudo apt-get -y install puppetmaster

This might be because you might be using wrong apt source.

Hope this helps!

answered Aug 6 by Sirajul
• 29,660 points

Related Questions In Puppet

0 votes
1 answer

How do I start a puppet server?

Hey if you're using Ubuntu, you can ...READ MORE

answered Feb 21 in Puppet by Kavyashri
29 views
+5 votes
2 answers

How To Deploy Windows Server Using Puppet?

Deploying windows server through Puppet is similar ...READ MORE

answered Mar 26, 2018 in Puppet by shubham
• 6,890 points
310 views
0 votes
0 answers
0 votes
1 answer
+13 votes
2 answers

Git management technique when there are multiple customers and need multiple customization?

Consider this - In 'extended' Git-Flow, (Git-Multi-Flow, ...READ MORE

answered Mar 26, 2018 in DevOps & Agile by DragonLord999
• 8,380 points
177 views
0 votes
1 answer
0 votes
1 answer

Configuring puppet after installation

Once we have Puppet installed on the ...READ MORE

answered Jul 29 in Puppet by Sirajul
• 29,660 points
14 views
0 votes
1 answer

Error: Ruby run error after connecting puppet apply to PuppetDB.

If Puppet apply is configured incorrectly, this error is ...READ MORE

answered Jul 31 in Puppet by Sirajul
• 29,660 points
24 views