Ask Your Question

Error 500 on SERVER : /scripts/" (in directory "."): error=13, Permission denied on node

asked 2017-10-16 14:12:55 -0600

ramkrishnayadav gravatar image

updated 2017-10-16 21:31:12 -0600

Red Cricket gravatar image

Puppet Enterprise is running on the rhel amis . Puppet enterprise version is 2017 2.2 The node is running on amazon amis. Node has docker containers. There is a hiera classification involved which is working fine.

But when i run the puppet agent on the node. I see this error --

Info: Retrieving pluginfacts
Info: Retrieving plugin
Info: Loading facts
Warning: Facter: Could not process routing table entry: Expected a destination followed by key/value pairs, got ' dev docker0  proto kernel  scope link  src linkdown'
Error: Could not retrieve catalog from remote server: Error 500 on SERVER: Server Error: Exception while executing '/etc/puppetlabs/code/environments/<env>/scripts/': Cannot run program 
"/etc/puppetlabs/code/environments/<env>/scripts/" (in directory "."): error=13, Permission denied on node <hostname>
Warning: Not using cache on failed catalog
Error: Could not retrieve catalog; skipping run

Can some one please guide here what is this error=13 permission denied.

edit retag flag offensive close merge delete



Why are you have "<env>" in the path "/etc/puppetlabs/code/environments/<env>/scripts/"?

Red Cricket gravatar imageRed Cricket ( 2017-10-16 21:35:03 -0600 )edit

I think I ran into the same problem with some facts parsing values/devices when I had docker installed on rhel amis.. You have to figure out which fact is having the problem, and there are ways you can run facts inside of irb and debug the specific problem. In that case, double check if ...

DarylW gravatar imageDarylW ( 2017-10-17 08:18:44 -0600 )edit

the script mentioned above, check to make sure it is executable

DarylW gravatar imageDarylW ( 2017-10-17 08:19:08 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2017-10-24 10:35:22 -0600

annihil8ted gravatar image

Make sure the permission and owner are correct for the file and the path it resides on.

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


Asked: 2017-10-16 14:12:55 -0600

Seen: 77 times

Last updated: Oct 24