ST2 version: 3.5
While trying to run the script on the remote server, getting the below error:
Inside st2client:
$st2 run samplepack.run_remote_script
error: Failed copying content to remote boxes. Local path
/opt/stackstorm/packs/samplepack/actions/touch_test.sh does not exist.
failed: true
return_code: 255
succeeded: false
traceback: " File
“/opt/stackstorm/st2/lib/python3.6/site-packages/remote_runner/remote_script_runner.py”, line 50, in
_run
copy_results = self._copy_artifacts(remote_action)
File “/opt/stackstorm/st2/lib/python3.6/site-packages/remote_runner/remote_script_runner.py”, line 108,
in _copy_artifacts
mode=file_mode,
File “/opt/stackstorm/st2/lib/python3.6/site-packages/st2common/runners/parallel_ssh.py”, line 177, in
put
raise Exception(“Local path %s does not exist.” % local_path)
"
Action:
runner_type: “remote-shell-script”
description: “remote shell runner”
enabled: true
name: run_remote_script
pack: st2testclassic
entry_point: “touch_test.sh”
parameters:
cmd:
required: true
type: string
default: “date”
username:
required: true
type: string
default: “xxxx”
password:
required: true
type: string
default: “xxxx”
hosts:
type: “string”
description: “Address of the syslog server”
required: true
default: “xxx.com”
experimental:
immutable: true
default: true
But the script is present, as shwon below in the st2client :