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

k6 SSH - GoError: wait: remote command exited without exit status or exit signal #16

Open
yonastsegayedel opened this issue Nov 28, 2024 · 0 comments

Comments

@yonastsegayedel
Copy link

Hi Team, I am using K6 SSH extension to simulate SSH load. Created a small script where connectivity is happening but getting below error while running 'ls' command. How can avoid below issue?

` execution: local
script: sshlauncher.js
output: -

scenarios: (100.00%) 1 scenario, 1 max VUs, 10m30s max duration (incl. graceful stop):
* default: 1 iterations for each of 1 VUs (maxDuration: 10m0s, gracefulStop: 30s)

ERRO[0003] GoError: wait: remote command exited without exit status or exit signal
running at reflect.methodValueCall (native)
default at file:///C:/k6scripts/sshlauncher/sshlauncher.js:12:11(19) executor=per-vu-iterations scenario=default source=stacktrace

 data_received........: 0 B 0 B/s
 data_sent............: 0 B 0 B/s
 iteration_duration...: avg=2.16s min=2.16s med=2.16s max=2.16s p(90)=2.16s p(95)=2.16s
 iterations...........: 1   0.461361/s
 vus..................: 1   min=1      max=1
 vus_max..............: 1   min=1      max=1

running (00m02.2s), 0/1 VUs, 1 complete and 0 interrupted iterations
default ✓ [======================================] 1 VUs 00m02.2s/10m0s 1/1 iters, 1 per VU`

Script:

`import ssh from 'k6/x/ssh';
import { sleep } from 'k6';

export default function () {
ssh.connect({
username: 'user1',
password: 'password1',
host: '10.10.10.10',
port: 22
})
console.log(ssh.run('ls'))
sleep(10);
//console.log(ssh.run('ls -lrt'))
}`

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