Jira (PUP-11727) Restrictive umask on compiler causes errors after upgrade

6 views
Skip to first unread message

Aaron Hilton (Jira)

unread,
Jan 31, 2023, 11:53:02 AM1/31/23
to puppe...@googlegroups.com
Aaron Hilton created an issue
 
Puppet / Improvement PUP-11727
Restrictive umask on compiler causes errors after upgrade
Issue Type: Improvement Improvement
Affects Versions: PUP 7.21.0
Assignee: Unassigned
Components: Compiler
Created: 2023/01/31 8:52 AM
Environment:

RHEL 7

PE 2023.0

Priority: Normal Normal
Reporter: Aaron Hilton

Customer upgraded from 2021.7.1 to 2023.0 and all compilers except one were reporting as operational in the Console GUI except one. Running puppet infra status came back with no issues for affected compiler and all services were running on the compiler.
The puppetserver.log file on the affected compiler was flooded with the error

Facter Error loading fact /opt/puppetlabs/puppet/cache/lib/facter/pe_postgresql_info.rb: no such file to load -- /opt/puppetlabs/puppet/cache/lib/pe_install/pe_postgresql_info.rb

Further investigation found that the parent directories of these files did not have sufficient permissions for the pe-puppet user to access them causing the error.

50332369    4 drwx------  16 root     root         4096 Jan 30 17:07 /opt/puppetlabs/puppet/cache/lib
41943474    0 drwx------   2 root     root            6 Jan 30 17:05 /opt/puppetlabs/puppet/cache/locales

It was determined that this compiler was running with umask set as 0077, causing the insufficient permissions. Deleting the /opt/puppetlabs/puppet/cache directory and running (umask 0022 && /opt/puppetlabs/bin/puppet plugin download) resolved the issue.
 
Please adjust the service or agent as necessary to enforce propper permissions on these directories.

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v8.20.11#820011-sha1:0629dd8)
Atlassian logo

Charmaine Pritchett (Jira)

unread,
Jan 31, 2023, 11:54:02 AM1/31/23
to puppe...@googlegroups.com
Charmaine Pritchett updated an issue
Change By: Charmaine Pritchett
Zendesk Ticket Count: 1
Zendesk Ticket IDs: 50900

Charmaine Pritchett (Jira)

unread,
Jan 31, 2023, 11:54:03 AM1/31/23
to puppe...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages