puppetlabs / puppet

Server automation framework and application
https://puppet.com/open-source/#osp
Apache License 2.0
7.43k stars 2.2k forks source link

Warning: Facter: Unable to getenv for pid 1, 'uninitialized constant Facter::Util::Linux' #9451

Closed Q1tum closed 2 months ago

Q1tum commented 2 months ago

Describe the Bug

puppet facts gives warning before json output:

server01 ~ $ puppet facts
Warning: Facter: Unable to getenv for pid 1, 'uninitialized constant Facter::Util::Linux'
{
  "agent_specified_environment": "production",
  "augeas": {
    "version": "1.14.0"
  },
}

Expected Behavior

No warning should be given when running puppet agent -t or puppet facts

Steps to Reproduce

Steps to reproduce the behavior:

  1. Run puppet agent -t or puppet facts on client where the agent is installed.

Environment

joshcooper commented 2 months ago

Thanks for the info @Q1tum This is an issue in facter https://github.com/puppetlabs/facter/issues/2742 so I'm going to close this as a duplicate. There's a related facter PR you might want to try out https://github.com/puppetlabs/facter/pull/2744