puppetlabs / puppetlabs/ruby-pwsh
PowerShell resources erroring out
@chelnak is already working on this.
Since Sep 30, 2022.
- Dominant language
- Ruby
- Stars
- 20
- Forks
- 27
- Avg merge
- 1d 7h
- Merged PRs (30d)
- 4
Description
Hi puppetlabs,
I'm hoping someone could help me out here, I have a system that is exhibiting the same behavior (powershell resources erroring out) and message reported in issue #188, but we're already running the latest version of ruby-pwsh. I confirmed the code that prevents SystemRoot from being cleaned up is present on the box. We have "PowerShell Script Block Logging" enabled but do not use ""Protected Event Logging".
I recognize that because I don't know what setting(s) are causing this, reproducing is difficult / impossible but if someone could share how I can troubleshoot this on the machine, that would be appreciated.
Thanks!
Error Sample
PS C:\Users> puppet agent -t -v
Info: Using environment 'ex_production'
Info: Retrieving pluginfacts
Info: Retrieving plugin
Info: Loading facts
Info: Caching catalog for server100.sub.domain.com
Info: Applying configuration version '1664544632'
#<Thread:0x000000000a41ae10 C:/ProgramData/PuppetLabs/puppet/cache/lib/pwsh.rb:561 run> terminated with exception (repor
t_on_exception is true):
Traceback (most recent call last):
1: from C:/ProgramData/PuppetLabs/puppet/cache/lib/pwsh.rb:563:in block in read_streams'
C:/ProgramData/PuppetLabs/puppet/cache/lib/pwsh.rb:563:in sysread': end of file reached (EOFError)
#<Thread:0x0000000009dd7ee0 C:/ProgramData/PuppetLabs/puppet/cache/lib/pwsh.rb:561 run> terminated with exception (repor
t_on_exception is true):
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.