example42 / puppet-php

A puppet module for php. According to Example42 NextGen spec.
Other
45 stars 62 forks source link

metadata.json file permissions are incorrect #101

Closed andrewhertog closed 6 years ago

andrewhertog commented 9 years ago

I have clean install of puppetserver Ran puppet module install example42-php to install.

Added the following snippit to my site.pp manifest:

class{ 'php':
}

Running puppet agent -t resulted in the following:

Info: Retrieving pluginfacts
Error: /File[/opt/puppetlabs/puppet/cache/facts.d]: Failed to generate additional resources using 'eval_generate': Error 400 on SERVER: Permission denied - /etc/puppetlabs/code/environments/production/modules/php/metadata.json
Error: /File[/opt/puppetlabs/puppet/cache/facts.d]: Could not evaluate: Could not retrieve file metadata for puppet:///pluginfacts: Error 400 on SERVER: Permission denied - /etc/puppetlabs/code/environments/production/modules/php/metadata.json
Info: Retrieving plugin
Error: /File[/opt/puppetlabs/puppet/cache/lib]: Failed to generate additional resources using 'eval_generate': Error 400 on SERVER: Permission denied - /etc/puppetlabs/code/environments/production/modules/php/metadata.json
Error: /File[/opt/puppetlabs/puppet/cache/lib]: Could not evaluate: Could not retrieve file metadata for puppet:///plugins: Error 400 on SERVER: Permission denied - /etc/puppetlabs/code/environments/production/modules/php/metadata.json
Info: Loading facts
Error: Could not retrieve catalog from remote server: Error 400 on SERVER: Evaluation Error: Error while evaluating a Function Call, Permission denied - /etc/puppetlabs/code/environments/production/modules/php/metadata.json at /etc/puppetlabs/code/environments/production/manifests/sandbox.pp:2:3 on node xxxx
Warning: Not using cache on failed catalog
Error: Could not retrieve catalog; skipping run

Discovered that the metadata.json had file permission of 640. Changed it to 644 and ran puppet agent -t and it was successful.

murnieza commented 9 years ago

Same problem there.

alvagante commented 9 years ago

Strange, on my local repo permissions are correct, and the publish script does not change them. Maybe some quick with puppet-blacksmith... have to investigate.

tremblaysimon commented 8 years ago

Maybe you should include the metadata.json in the git repository. I don't know if it would fix the issue...!

alvagante commented 8 years ago

Pushed a new version, should be ok now. Pls let me know.

tremblaysimon commented 8 years ago

I tested with 2.0.25 and it is fixed.

Thank you.