Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
Q1tum opened this issue Aug 16, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@Q1tum
Copy link

Q1tum commented Aug 16, 2024

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

  • Version puppet7-7.32.1
  • Platform FreeBSD
@Q1tum Q1tum added the bug Something isn't working label Aug 16, 2024
@joshcooper
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants