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

Scp in init returns a "write broken pipe" error #76

Open
crile opened this issue Dec 12, 2019 · 0 comments
Open

Scp in init returns a "write broken pipe" error #76

crile opened this issue Dec 12, 2019 · 0 comments

Comments

@crile
Copy link

crile commented Dec 12, 2019

Hi, I try to copy a local script to my remote server in the init then execute it.

    - title: status
      #rate-ms: 60000
      multistep-init:
        - scp monit.sh raspberry:/tmp/monit.sh
        - ssh raspberry
      sample: sh /tmp/monit.sh

But the scp command seems to fail with the following error:

    SAMPLING FAILURE failed to execute command: write |1: broken pipe

All commands work properly outsite of sampler.
The monit.sh script is in the current working directory.
I also try to use absolute path with no success.

Tested on Ubuntu mate with amd-64 binary and the remote server is a raspberry pi.

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

No branches or pull requests

1 participant