Open vchepkov opened 2 years ago
It seems provider requires LANG variable to be set
# env -i puppet agent -t
Info: Applying configuration version 'c78cfbcf'
Error: Could not prefetch package provider 'npm': invalid byte sequence in US-ASCII
Error: Failed to apply catalog: invalid byte sequence in US-ASCII
# env -i LANG=en_US.UTF-8 puppet agent -t
Info: Applying configuration version 'c78cfbcf'
Notice: Applied catalog in 17.17 seconds
Affected Puppet, Ruby, OS and module versions/distributions
How to reproduce (e.g Puppet code you use)
Error occurs when provider is instantiated
What are you seeing
Any additional information you'd like to impart
provider works with no issues with
puppet agent -t
command from a command line session, I presume while running as a daemon some environment variable, which provider uses, is missing