Details
-
Bug
-
Status: Closed
-
Blocker
-
Resolution: Fixed
-
SERVER 2.0.0
-
None
-
None
-
1
-
Server Emerald 2015-05-27
Description
puppetserver foreground blows-up on Ubuntu 14.04 with the following error:
Errno::EACCES: Permission denied - /root/.puppetlabs
This error does not occur on Redhat 6 or 7.
–
For Puppet Server 2.x, running puppetserver foreground on top of Puppet-Agent 1.0.0 (Puppet 4.0) would fail with this error. I suspect that the same error may not have happened if Puppet-Agent 1.1.0 (Puppet 4.1) were installed on the host because the logic that tries to create the directory which causes the failure was reworked.
For Puppet Server 1.x, none of the logic which tries to create this directory was in place so the command did not fail.
The investigation for this ticket uncovered that for both Puppet Server 1.x and Puppet Server 2.x, running the foreground command via sudo - which is what would happen on sudo - would result in the process being run with the effective HOME directory of the original user rather than that of the "puppet" user, which is how Puppet Server is run as a service. This problem was fixed for both Puppet Server 1.x and Puppet Server 2.x.
Attachments
Issue Links
- relates to
-
EZ-44 sudo in foreground command does not set HOME for target user
-
- Closed
-
- links to