Hi @bruno.tx …
that I’ve done. It worket fine a while.
I have to trace in a c# project via pcap in docker network host mode. As user torizon that ist not possible for me.
In a earlier Project I had used the setting “torizon_run_as”:root and all worked fine.
In the newly created project, I couldn’t start the debug process via SSH…
Terminal msgs:
Executing task: DOCKER_HOST=10.100.1.79:2375 LOCAL_REGISTRY=localhost TAG=arm64 GPU=-imx8 DEBUG_SSH_PORT=2223 DEBUG_PORT1= DEBUG_PORT2= DEBUG_PORT3= docker compose -p torizon up -d networktracingapi-debug
WARN[0000] The "DOCKER_LOGIN" variable is not set. Defaulting to a blank string.
[+] Running 2/2
✔ Container torizon-networktracingapi-debug-1 Started 0.5s
! networktracingapi-debug Published ports are discarded when using host network mode 0.0s
* Terminal will be reused by tasks, press any key to close it.
* Executing task: xonsh /home/carlton/Toradex/_GitLab/test-controller/toradex-hardware/apis/networktracing/NetworkTracingAPI/.conf/service-check.xsh ssh 1 2223 torizon 10.100.1.79 'echo ssh-ok'
Exception occurred: Command '['sshpass', '-p', '1', 'ssh', '-p', '2223', '-o', 'UserKnownHostsFile=/dev/null', '-o', 'StrictHostKeyChecking=no', '-o', 'PubkeyAuthentication=no', 'torizon@10.100.1.79', 'echo ssh-ok']' returned non-zero exit status 5.
Attempt 1/15: waiting for ssh...
Exception occurred: Command '['sshpass', '-p', '1', 'ssh', '-p', '2223', '-o', 'UserKnownHostsFile=/dev/null', '-o', 'StrictHostKeyChecking=no', '-o', 'PubkeyAuthentication=no', 'torizon@10.100.1.79', 'echo ssh-ok']' returned non-zero exit status 5.
Attempt 2/15: waiting for ssh...
.... 15 x
then:
^Cxonsh: To log full traceback to a file set: $XONSH_TRACEBACK_LOGFILE = <filename>
Traceback (most recent call last):
File "/home/carlton/Toradex/_GitLab/test-controller/toradex-hardware/apis/networktracing/NetworkTracingAPI/.conf/service-check.xsh", line 62, in <module>
if result.returncode == 0:
File "/home/carlton/.local/pipx/venvs/xonsh/lib/python3.10/site-packages/xonsh/procs/pipelines.py", line 735, in returncode
self.end()
File "/home/carlton/.local/pipx/venvs/xonsh/lib/python3.10/site-packages/xonsh/procs/pipelines.py", line 481, in end
self._end(tee_output=tee_output)
File "/home/carlton/.local/pipx/venvs/xonsh/lib/python3.10/site-packages/xonsh/procs/pipelines.py", line 489, in _end
for _ in self.tee_stdout():
File "/home/carlton/.local/pipx/venvs/xonsh/lib/python3.10/site-packages/xonsh/procs/pipelines.py", line 391, in tee_stdout
for line in self.iterraw():
File "/home/carlton/.local/pipx/venvs/xonsh/lib/python3.10/site-packages/xonsh/procs/pipelines.py", line 351, in iterraw
time.sleep(timeout * cnt)
File "/home/carlton/.local/pipx/venvs/xonsh/lib/python3.10/site-packages/xonsh/procs/posix.py", line 330, in _signal_int
signal.pthread_kill(threading.get_ident(), signal.SIGINT)
File "/home/carlton/.local/pipx/venvs/xonsh/lib/python3.10/site-packages/xonsh/procs/posix.py", line 330, in _signal_int
signal.pthread_kill(threading.get_ident(), signal.SIGINT)
File "/home/carlton/.local/pipx/venvs/xonsh/lib/python3.10/site-packages/xonsh/procs/posix.py", line 330, in _signal_int
signal.pthread_kill(threading.get_ident(), signal.SIGINT)
[Previous line repeated 29 more times]
File "/home/carlton/.local/pipx/venvs/xonsh/lib/python3.10/site-packages/xonsh/procs/posix.py", line 328, in _signal_int
self._restore_sigint(frame=frame)
File "/home/carlton/.local/pipx/venvs/xonsh/lib/python3.10/site-packages/xonsh/procs/posix.py", line 341, in _restore_sigint
old(signal.SIGINT, frame)
KeyboardInterrupt
* The terminal process "/usr/bin/bash '-c', 'xonsh /home/carlton/Toradex/_GitLab/test-controller/toradex-hardware/apis/networktracing/NetworkTracingAPI/.conf/service-check.xsh ssh 1 2223 torizon 10.100.1.79 'echo ssh-ok''" terminated with exit code: 1.
chmod +x .conf/*.xsh
chmod +x .vscode/tasks.xsh
I’ve executed.
In the working project, there’s no ssh-check task in task.json… Maybe that gives us a clue?
Ha… if I remove the ssh-check from the deploy-torizon-arm64 task, it works again… so far, so good. 
Best
Gerald