Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stdout doesn't return with bbr cli #35

Closed
SergeyMuha opened this issue Apr 8, 2020 · 3 comments
Closed

Stdout doesn't return with bbr cli #35

SergeyMuha opened this issue Apr 8, 2020 · 3 comments
Labels

Comments

@SergeyMuha
Copy link

SergeyMuha commented Apr 8, 2020

As I understood from docs https://docs.cloudfoundry.org/bbr/bbr-devguide.html#logs, we can get stderr and stdout only in case of script failure.
The stdout and stderr streams are captured and sent to the operator who invokes the backup and restore.
Note: BBR prints any output from the scripts in case of failure.
Here is simple example of backup script that I trigger with bbr cli
cat backup
#!/bin/bash
echo "Stdout"
echo "Stderror" >&2
exit 1
When I run it with bbr cli
bbr deployment --target $BOSH_ENVIRONMENT --username $BOSH_CLIENT --password $BOSH_CLIENT_SECRET --deployment 688be997ccbfafc76822 backup
[bbr] 2020/04/08 13:20:51 INFO .....
[bbr] 2020/04/08 13:21:26 ERROR - Error backing up broker on job/bffdc9a6-342b-41d0-96ea-bf0dd02acfb5.
.....
1 error occurred:
error 1:
1 error occurred:
error 1:
Error attempting to run backup for job broker on job/bffdc9a6-342b-41d0-96ea-bf0dd02acfb5: Stderror - exit code 1
I get only "Stderror" from stderr, but where is stdout? (edited)

I can add --debug but it will output much more info then I need. (all calls).
Also how can I get some logs when backup finished successfully?

@cf-gitbot
Copy link

We have created an issue in Pivotal Tracker to manage this:

https://www.pivotaltracker.com/story/show/172221640

The labels on this github issue will be updated when the story is started.

@SergeyMuha SergeyMuha changed the title Stdout doesn't return but bbr cli Stdout doesn't return with bbr cli Apr 8, 2020
@totherme
Copy link
Member

Hi Sergey,

We've heard this feedback from a couple of places now, and it's definitely on our radar. We're focussing on other features right now, but we'll circle back around and update this issue when we're able to properly update our bbr UX.

Thanks!

@neil-hickey
Copy link
Contributor

Closing for now, the team does not have bandwidth to action this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants