Capture the stdout/stderr of the service in the ChangeError exception message when the service immediately exits
See original GitHub issueWhen the workload executable cannot start due to e.g. incorrect arguments, the reason is not immediately obvious from the juju debug logs.
ops.pebble.ChangeError: cannot perform the following tasks:
- Start service "avalanche" (cannot start service: exited quickly with code 1)
It would be handy if the exception message included the error message emitted by the service (if any).
Issue Analytics
- State:
- Created 2 years ago
- Comments:6 (2 by maintainers)
Top Results From Across the Web
powershell - Capturing standard out and error with Start-Process
It'll return stderr, stdout, and exit codes as objects. One thing to note: the function won't accept .\ in the path; full paths...
Read more >BASH Shell Redirect stderr To stdout ( redirect stderr to a File )
Explains how to redirect stderr to stdout to a file or vice versa in Bash under Linux, macOS, *BSD, and Unix-like systems.
Read more >about Redirection - PowerShell | Microsoft Learn
Explains how to redirect output from PowerShell to text files.
Read more >Service Messages - TeamCity On-Premises - JetBrains
The testStdOut and testStdErr service messages report the test's standard and error output to be displayed in the TeamCity UI. There must be ......
Read more >shell_exec - Manual - PHP
A simple way to handle the problem of capturing stderr output when using ... To change the account go to console services, right...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Good call. I have a quick fix in progress at https://github.com/canonical/pebble/pull/69
Merged, closing!