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, 2019 in Puppet by Jane
1,017 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, 2019 by Sirajul
• 59,230 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, 2019 in Puppet by Kavyashri
727 views
+5 votes
2 answers

How To Deploy Windows Server Using Puppet?

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

answered Mar 27, 2018 in Puppet by shubham
• 7,340 points
1,871 views
0 votes
0 answers
0 votes
1 answer
+15 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 27, 2018 in DevOps & Agile by DragonLord999
• 8,450 points
4,024 views
+2 votes
1 answer
0 votes
1 answer

Configuring puppet after installation

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

answered Jul 29, 2019 in Puppet by Sirajul
• 59,230 points
566 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, 2019 in Puppet by Sirajul
• 59,230 points
905 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP