Comments (7)
Pinging @elastic/ingest-management (Team:Ingest Management)
from elastic-agent.
@michalpristas or @blakerouse you know more windows than me. Can you take a look?
from elastic-agent.
Please note if you don't have $ErrorActionPreference = "Stop"
(PS equiv of Bash's set -e
), then PS will treat the STDERR output as an error and display it, but it wont immediately kill elastic-agent.exe. Tested under PowerShell ISE.
Why not under PowerShell interactive? I am no PS expert, but reading up on this it seems, ISE, PS Remote, and I assume task scheduled instances wrap STDERR with System.Management.Automation.ErrorRecord.
from elastic-agent.
Pinging @elastic/elastic-agent-control-plane (Team:Elastic-Agent-Control-Plane)
from elastic-agent.
closing, even with the options set i was not able to repro
Win 11 64bit
from elastic-agent.
As I document you will not trip this issue in a normal powershell console. This error handling is only on by default in PS Remote, PS ISE and certain ways of scheduling PS scripts. Search for System.Management.Automation.ErrorRecord - If this error handling is enabled any line sent to STDERR becomes an ErrorRecord that needs to be handled. If not you get the NativeCommandError, and with $ErrorActionPreference = "Stop" the exe is stopped/killed.
[System.Environment]::OSVersion.Version
Major Minor Build Revision
----- ----- ----- --------
10 0 19042 0
from elastic-agent.
@michalpristas could you please take a look again.
from elastic-agent.
Related Issues (20)
- [Flaky Test]: internal/pkg/dir,internal/pkg/eql,internal/pkg/diagnostics – link.exe: exit status 0xc000013a HOT 1
- APM config is not correctly marshaled in diagnostic files HOT 2
- [Flaky Test]: TestFleetManagedUpgradePrivileged – upgrade watcher did not start HOT 3
- [Flaky Test]: TestStandaloneUpgradeWithGPGFallback – unexpected end of JSON input HOT 1
- Elaspic not working HOT 5
- Elastic Agent Policy is broken when JSON contains numeric string names HOT 11
- [Flaky Test]: TestFakeInputSuite/TestManager_Chunk – component failed: Failed: pid '<pid>' missed 3 check-ins and will be killed HOT 1
- [Flaky Test]: TestStandaloneUpgrade/Upgrade_8.12.0-SNAPSHOT_to_8.13.0-SNAPSHOT_(privileged) – error installing package: failed to copy source directory... /opt/Elastic/Agent/elastic-agent: file exists HOT 8
- Mage integration:local is broken for SNAPSHOT packages HOT 4
- Add a test that can detect OS handle leaks HOT 1
- Add a test that can detect goroutine leaks HOT 1
- Add generalized memory leak detection HOT 1
- `elastic-agent status` should forward info from running processes HOT 3
- [Elastic Agent] Define the syntaxt for processors that would add fields via agent policy HOT 1
- [Telemetry] Report the policies that have add_field enabled.
- Status command is inconsistent between `full`, `json` and `yam` HOT 2
- [Flaky Test]: TestComponentBuildHashInDiagnostics – build hash is empty HOT 1
- [Flaky Test]: TestStandaloneUpgradeUninstallKillWatcher – uninstall failed: exit status 1 HOT 3
- [Flaky Test]: TestStandaloneUpgradeWithGPGFallback – failed to verify SHA512 hash HOT 13
- The version of the watcher that gets the watcher lock is not deterministic. HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from elastic-agent.