This site is in read only mode. Please continue to browse, but replying, likes, and other actions are disabled for now.

⚠️ We've moved!

Hi there!

To reduce project dependency on 3rd party paid services the StackStorm TSC has decided to move the Q/A from this forum to Github Discussions. This will make user experience better integrated with the native Github flow, as well as the questions closer to the community where they can provide answers.

Use 🔗 Github Discussions to ask your questions.

In st2 k8s deployment, getting `File does not exist` - while running script on remote server using custom pack

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 :