failed to set mode 0777

123 views
Skip to first unread message

Mike

unread,
Nov 24, 2022, 12:05:21 PM11/24/22
to Puppet Users
Hi,

Any ideas on this?  Maybe I should attempt to re-install this again.  Is there any documented installation process for puppet on ubuntu?  I've tried various ways and always end up with different issues.

Thanks

Mike


:/etc$ puppet device --verbose --target cisco.device.puppetlabs.net

Error: failed to set mode 0777 on /home/mypcsupport/.puppetlabs/etc/puppet/ssl: Operation not permitted @ apply2files - /home/mypcsupport/.puppetlabs/etc/puppet/ssl
Error: /File[/home/mypcsupport/.puppetlabs/etc/puppet/ssl]/mode: change from '0777' to '0771' failed: failed to set mode 0777 on /home/mypcsupport/.puppetlabs/etc/puppet/ssl: Operation not permitted @ apply2files - /home/mypcsupport/.puppetlabs/etc/puppet/ssl
Notice: /File[/home/mypcsupport/.puppetlabs/etc/puppet/ssl/certs]: Dependency File[/home/mypcsupport/.puppetlabs/etc/puppet/ssl] has failures: true
Warning: /File[/home/mypcsupport/.puppetlabs/etc/puppet/ssl/certs]: Skipping because of failed dependencies
Warning: /File[/home/mypcsupport/.puppetlabs/etc/puppet/ssl/public_keys]: Skipping because of failed dependencies
Warning: /File[/home/mypcsupport/.puppetlabs/etc/puppet/ssl/certificate_requests]: Skipping because of failed dependencies
Warning: /File[/home/mypcsupport/.puppetlabs/etc/puppet/ssl/private_keys]: Skipping because of failed dependencies
Warning: /File[/home/mypcsupport/.puppetlabs/etc/puppet/ssl/private]: Skipping because of failed dependencies
Warning: /File[/home/mypcsupport/.puppetlabs/etc/puppet/ssl/certs/puppetserver.example.com.pem]: Skipping because of failed dependencies
Warning: /File[/home/mypcsupport/.puppetlabs/etc/puppet/ssl/private_keys/puppetserver.example.com.pem]: Skipping because of failed dependencies
Warning: /File[/home/mypcsupport/.puppetlabs/etc/puppet/ssl/public_keys/puppetserver.example.com.pem]: Skipping because of failed dependencies
Warning: /File[/home/mypcsupport/.puppetlabs/etc/puppet/ssl/certs/ca.pem]: Skipping because of failed dependencies
Warning: /File[/home/mypcsupport/.puppetlabs/etc/puppet/ssl/crl.pem]: Skipping because of failed dependencies
Error: Could not set 'directory' on ensure: Permission denied @ dir_s_mkdir - /home/mypcsupport/.puppetlabs/etc/puppet/devices
Error: Could not set 'directory' on ensure: Permission denied @ dir_s_mkdir - /home/mypcsupport/.puppetlabs/etc/puppet/devices
Wrapped exception:
Permission denied @ dir_s_mkdir - /home/mypcsupport/.puppetlabs/etc/puppet/devices
Error: /File[/home/mypcsupport/.puppetlabs/etc/puppet/devices]/ensure: change from 'absent' to 'directory' failed: Could not set 'directory' on ensure: Permission denied @ dir_s_mkdir - /home/mypcsupport/.puppetlabs/etc/puppet/devices
Error: Could not prepare for execution: Got 2 failure(s) while initializing: File[/home/mypcsupport/.puppetlabs/etc/puppet/ssl]: change from '0777' to '0771' failed: failed to set mode 0777 on /home/mypcsupport/.puppetlabs/etc/puppet/ssl: Operation not permitted @ apply2files - /home/mypcsupport/.puppetlabs/etc/puppet/ssl; File[/home/mypcsupport/.puppetlabs/etc/puppet/devices]: change from 'absent' to 'directory' failed: Could not set 'directory' on ensure: Permission denied @ dir_s_mkdir - /home/mypcsupport/.puppetlabs/etc/puppet/devices

Dirk Heinrichs

unread,
Nov 25, 2022, 1:34:18 AM11/25/22
to puppet...@googlegroups.com
Am Donnerstag, dem 24.11.2022 um 09:05 -0800 schrieb Mike:

/home/mypcsupport/.puppetlabs/etc/puppet/ssl: Operation not permitted

This is not a Puppet problem. Any chance you're trying to operate on a network filesystem, or one that is mounted read-only?

I.o.w.: You need to fix that "Operation not permitted" error in your environment. It usually means that the underlying filesystem doesn't allow what you're trying to do.

HTH...

Dirk
-- 
Dirk Heinrichs
Senior Systems Engineer, Delivery Pipeline
OpenText ™ Discovery | Recommind
Recommind GmbH, Von-Liebig-Straße 1, 53359 Rheinbach
Vertretungsberechtigte Geschäftsführer Gordon Davies, Madhu Ranganathan, Christian Waida, Registergericht Amtsgericht Bonn, Registernummer HRB 10646
This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden
Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte Informationen. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtümlich erhalten haben, informieren Sie bitte sofort den Absender und vernichten Sie diese Mail. Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser Mail sind nicht gestattet.

Mike

unread,
Dec 9, 2022, 7:31:15 AM12/9/22
to Puppet Users
Hi Dirk,

The application was installed into the home drive of a standard ubuntu setup.  I'll have to see what has gone wrong in this situation.  Any suggestions of an installation guide I could follow that would allow me to setup puppet to operate with a cisco network?

Thanks

Mike

Reply all
Reply to author
Forward
0 new messages