question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Capture the stdout/stderr of the service in the ChangeError exception message when the service immediately exits

See original GitHub issue

When 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:closed
  • Created 2 years ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
benhoytcommented, Sep 21, 2021

Good call. I have a quick fix in progress at https://github.com/canonical/pebble/pull/69

0reactions
benhoytcommented, Dec 14, 2021

Merged, closing!

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found