Hi @eric.tx ,
Today, I can’t even run it, it fails on deployment. I can run it on my PC. Here are the logs:
_SSH_PORT=6502 DEBUG_PORT1=6512 DEBUG_PORT2= DEBUG_PORT3= docker compose -p torizon up -d anaheimpy3-debug
WARN[0000] The “DOCKER_LOGIN” variable is not set. Defaulting to a blank string.
[+] Building 0.0s (0/0) docker:default
WARN[0000] Found orphan containers ([torizon-pantilt-1]) for this project. If you removed or renamed this service in your compose file, you can run this command with the --remove-orphans flag to clean it up.
[+] Running 1/1
Container torizon-anaheimpy3-debug-1 Started 0.1s
-
Terminal will be reused by tasks, press any key to close it.
-
Executing task: ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -p 6502 torizon@192.168.5.38 pkill python3 || true
Warning: Permanently added ‘[192.168.5.38]:6502’ (ED25519) to the list of known hosts.
-
Terminal will be reused by tasks, press any key to close it.
-
Executing task: rsync -P -av -e ssh -p 6502 -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null /home/steve/AnaheimTestC/src torizon@192.168.5.38:/home/torizon/app/
ssh: connect to host 192.168.5.38 port 6502: Connection refused
rsync: connection unexpectedly closed (0 bytes received so far) [sender]
rsync error: unexplained error (code 255) at io.c(232) [sender=3.2.7]
-
The terminal process “rsync ‘-P’, ‘-av’, ‘-e’, ‘ssh -p 6502 -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null’, ‘/home/steve/AnaheimTestC/src’, ‘torizon@192.168.5.38:/home/torizon/app/’” failed to launch (exit code: 255).
-
Terminal will be reused by tasks, press any key to close it.
-
Executing task: xonsh .conf/validate-deps-running.xsh
VALIDATING ENVIRONMENT
OS: Linux
OS Version: 5.15.167.4-microsoft-standard-WSL2
OS Arch: x86_64
Under WSL: Ubuntu-22.04
VS Code:
1.100.2
848b80aeb52026648a8ff9f7c45a9b0a80641e2e
x64
TOR Extension: toradex.apollox-vscode@3.0.4
Environment is valid!
-
Terminal will be reused by tasks, press any key to close it.
-
Executing task: bash -c [[ ! -z “192.168.5.38” ]] && true || false
-
Terminal will be reused by tasks, press any key to close it.
-
Executing task: bash -c [[ “aarch64” == “aarch64” ]] && true || false
-
Terminal will be reused by tasks, press any key to close it.
-
Executing task: sleep 1
-
Terminal will be reused by tasks, press any key to close it.
-
Executing task: sshpass -p torizon1 scp -P 22 -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no /home/steve/AnaheimTestC/docker-compose.yml torizon@192.168.5.38:~/
Warning: Permanently added ‘192.168.5.38’ (ED25519) to the list of known hosts.
-
Terminal will be reused by tasks, press any key to close it.
-
Executing task: DOCKER_HOST=192.168.5.38:2375 docker image prune -f --filter=dangling=true
Total reclaimed space: 0B
-
Terminal will be reused by tasks, press any key to close it.
-
Executing task: docker compose -p torizon stop anaheimpy3 anaheimpy3-debug && docker compose -p torizon rm -f anaheimpy3 anaheimpy3-debug
No stopped containers
-
Terminal will be reused by tasks, press any key to close it.
-
Executing task: xonsh /home/steve/AnaheimTestC/.conf/torizon-packages.xsh arm64
Applying torizonPackages.json:
Applying to Dockerfile.debug …
Dockerfile.debug
Applying to Dockerfile …
Dockerfile
torizonPackages.json applied
-
Terminal will be reused by tasks, press any key to close it.
-
Executing task: DOCKER_HOST= docker compose build --pull --build-arg SSHUSERNAME=torizon --build-arg APP_ROOT=/home/torizon/app --build-arg IMAGE_ARCH=arm64 --build-arg DEBUG_SSH_PORT=6502 --build-arg GPU=-imx8 anaheimpy3-debug
WARN[0000] The “DOCKER_LOGIN” variable is not set. Defaulting to a blank string.
[+] Building 0.8s (13/13) FINISHED docker:default
=> [anaheimpy3-debug internal] load .dockerignore 0.0s
=> => transferring context: 117B 0.0s
=> [anaheimpy3-debug internal] load build definition from Dockerfile.debug 0.0s
=> => transferring dockerfile: 2.82kB 0.0s
=> [anaheimpy3-debug internal] load metadata for docker.io/torizon/debian:4 0.7s
=> [anaheimpy3-debug 1/8] FROM docker.io/torizon/debian:4@sha256:cca23c84946621ee72aae4593da5f3 0.0s
=> [anaheimpy3-debug internal] load build context 0.0s
=> => transferring context: 43B 0.0s
=> CACHED [anaheimpy3-debug 2/8] RUN apt-get -q -y update && apt-get -q -y install open 0.0s
=> CACHED [anaheimpy3-debug 3/8] RUN apt-get -q -y update && apt-get -q -y install && 0.0s
=> CACHED [anaheimpy3-debug 4/8] RUN python3 -m venv /home/torizon/app/.venv --system-site-pack 0.0s
=> CACHED [anaheimpy3-debug 5/8] COPY requirements-debug.txt /requirements-debug.txt 0.0s
=> CACHED [anaheimpy3-debug 6/8] RUN . /home/torizon/app/.venv/bin/activate && pip3 install 0.0s
=> CACHED [anaheimpy3-debug 7/8] RUN mkdir /var/run/sshd && sed 's@session\srequired\spam 0.0s
=> CACHED [anaheimpy3-debug 8/8] RUN rm -r /etc/ssh/ssh*key && dpkg-reconfigure openssh-ser 0.0s
=> [anaheimpy3-debug] exporting to image 0.0s
=> => exporting layers 0.0s
=> => writing image sha256:c93dd1023a9a06a95bc0cc3d20ef14cf9767880fa4e3e70c7677a2474a6d1763 0.0s
=> => naming to localhost:5002/anaheimpy3-debug:arm64 0.0s
-
Terminal will be reused by tasks, press any key to close it.
-
Executing task: DOCKER_HOST= docker compose push anaheimpy3-debug
WARN[0000] The “DOCKER_LOGIN” variable is not set. Defaulting to a blank string.
[+] Pushing 0/0
⠋ Pushing anaheimpy3-debug: b3efd35b11af Preparing 0.0s
⠋ Pushing anaheimpy3-debug: bb392264e246 Preparing 0.0s
⠋ Pushing anaheimpy3-debug: b3e30e48f4d4 Preparing 0.0s
⠋ Pushing anaheimpy3-debug: df12f399b33f Preparing 0.0s
⠋ Pushing anaheimpy3-debug: 7aa28b0b0d5d Preparing 0.0s
⠋ Pushing anaheimpy3-debug: ebaa2b1109f3 Waiting 0.0s
⠋ Pushing anaheimpy3-debug: 327c58d2f5e5 Waiting 0.0s
⠋ Pushing anaheimpy3-debug: ef5ab135b4e1 Waiting 0.0s
[+] Pushing 0/19impy3-debug: 0d44ca85e203 Waiting 0.0s
⠋ Pushing anaheimpy3-debug: b3efd35b11af Layer already exists 0.0s
⠋ Pushing anaheimpy3-debug: bb392264e246 Layer already exists 0.0s
⠋ Pushing anaheimpy3-debug: b3e30e48f4d4 Layer already exists 0.0s
⠋ Pushing anaheimpy3-debug: df12f399b33f Layer already exists 0.0s
⠋ Pushing anaheimpy3-debug: 7aa28b0b0d5d Layer already exists 0.0s
⠋ Pushing anaheimpy3-debug: ebaa2b1109f3 Layer already exists 0.0s
⠋ Pushing anaheimpy3-debug: 327c58d2f5e5 Layer already exists 0.0s
⠋ Pushing anaheimpy3-debug: ef5ab135b4e1 Layer already exists 0.0s
⠋ Pushing anaheimpy3-debug: 0d44ca85e203 Layer already exists 0.0s
⠋ Pushing anaheimpy3-debug: cbfca7efdd64 Layer already exists 0.0s
⠋ Pushing anaheimpy3-debug: c5852bef3e08 Layer already exists 0.0s
⠋ Pushing anaheimpy3-debug: 6cd757f87b26 Layer already exists 0.0s
⠋ Pushing anaheimpy3-debug: 84f02289282b Layer already exists 0.0s
⠋ Pushing anaheimpy3-debug: db9633f880e7 Layer already exists 0.0s
⠋ Pushing anaheimpy3-debug: ab925bd8dc65 Layer already exists 0.0s
⠋ Pushing anaheimpy3-debug: 5f70bf18a086 Layer already exists 0.0s
⠋ Pushing anaheimpy3-debug: ac6442dc9f87 Layer already exists 0.0s
⠋ Pushing anaheimpy3-debug: 169ce75e923c Layer already exists 0.0s
⠋ Pushing anaheimpy3-debug: 66a307619b8c Layer already exists 0.0s
-
Terminal will be reused by tasks, press any key to close it.
-
Executing task: DOCKER_HOST=192.168.5.38:2375 LOCAL_REGISTRY=192.168.5.10 TAG=arm64 GPU=-imx8 DEBUG_SSH_PORT=6502 DEBUG_PORT1=6512 DEBUG_PORT2= DEBUG_PORT3= docker compose pull anaheimpy3-debug
WARN[0000] The “DOCKER_LOGIN” variable is not set. Defaulting to a blank string.
[+] Pulling 1/1
anaheimpy3-debug Pulled 0.3s
-
Terminal will be reused by tasks, press any key to close it.
-
Executing task: DOCKER_HOST=192.168.5.38:2375 LOCAL_REGISTRY=192.168.5.10 TAG=arm64 GPU=-imx8 DEBUG_SSH_PORT=6502 DEBUG_PORT1=6512 DEBUG_PORT2= DEBUG_PORT3= docker compose -p torizon up -d anaheimpy3-debug
WARN[0000] The “DOCKER_LOGIN” variable is not set. Defaulting to a blank string.
[+] Building 0.0s (0/0) docker:default
WARN[0000] Found orphan containers ([torizon-pantilt-1]) for this project. If you removed or renamed this service in your compose file, you can run this command with the --remove-orphans flag to clean it up.
[+] Running 1/1
Container torizon-anaheimpy3-debug-1 Started 0.1s
-
Terminal will be reused by tasks, press any key to close it.
-
Executing task: ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -p 6502 torizon@192.168.5.38 pkill python3 || true
Warning: Permanently added ‘[192.168.5.38]:6502’ (ED25519) to the list of known hosts.
-
Terminal will be reused by tasks, press any key to close it.
-
Executing task: rsync -P -av -e ssh -p 6502 -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null /home/steve/AnaheimTestC/src torizon@192.168.5.38:/home/torizon/app/
Warning: Permanently added ‘[192.168.5.38]:6502’ (ED25519) to the list of known hosts.
sending incremental file list
src/
src/main.py
268 100% 0.00kB/s 0:00:00 (xfr#1, to-chk=0/2)
sent 412 bytes received 39 bytes 902.00 bytes/sec
total size is 268 speedup is 0.59
-
Terminal will be reused by tasks, press any key to close it.
-
Executing task: ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -p 6502 torizon@192.168.5.38 cd /home/torizon/app && . /home/torizon/app/.venv/bin/activate && screen -d -m python3 -m debugpy --listen 0.0.0.0:6512 --log-to src/log --wait-for-client src/main.py
Warning: Permanently added ‘[192.168.5.38]:6502’ (ED25519) to the list of known hosts.
-
Terminal will be reused by tasks, press any key to close it.
-
Executing task: ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -p 6502 torizon@192.168.5.38 ‘cT=0; while ! grep -r “: wait_for_client()” /home/torizon/app/src/log/debugpy.server*.log 2> /dev/null; do sleep 0.1; if [ “$cT” -eq 100 ]; then echo “Problem debugging main.py file”; break; fi; cT=$(expr $cT + 1); done’
Warning: Permanently added ‘[192.168.5.38]:6502’ (ED25519) to the list of known hosts.
D+00000.626: wait_for_client()
-
Terminal will be reused by tasks, press any key to close it.
-
Executing task: xonsh .conf/validate-deps-running.xsh
VALIDATING ENVIRONMENT
OS: Linux
OS Version: 5.15.167.4-microsoft-standard-WSL2
OS Arch: x86_64
Under WSL: Ubuntu-22.04
VS Code:
1.100.2
848b80aeb52026648a8ff9f7c45a9b0a80641e2e
x64
TOR Extension: toradex.apollox-vscode@3.0.4
Environment is valid!
-
Terminal will be reused by tasks, press any key to close it.
-
Executing task: bash -c [[ ! -z “192.168.5.38” ]] && true || false
-
Terminal will be reused by tasks, press any key to close it.
-
Executing task: bash -c [[ “aarch64” == “aarch64” ]] && true || false
-
Terminal will be reused by tasks, press any key to close it.
-
Executing task: sleep 1
-
Terminal will be reused by tasks, press any key to close it.
-
Executing task: sshpass -p torizon1 scp -P 22 -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no /home/steve/AnaheimTestC/docker-compose.yml torizon@192.168.5.38:~/
Warning: Permanently added ‘192.168.5.38’ (ED25519) to the list of known hosts.
-
Terminal will be reused by tasks, press any key to close it.
-
Executing task: DOCKER_HOST=192.168.5.38:2375 docker image prune -f --filter=dangling=true
Total reclaimed space: 0B
-
Terminal will be reused by tasks, press any key to close it.
-
Executing task: docker compose -p torizon stop anaheimpy3 anaheimpy3-debug && docker compose -p torizon rm -f anaheimpy3 anaheimpy3-debug
No stopped containers
-
Terminal will be reused by tasks, press any key to close it.
-
Executing task: xonsh /home/steve/AnaheimTestC/.conf/torizon-packages.xsh arm64
Applying torizonPackages.json:
Applying to Dockerfile.debug …
Dockerfile.debug
Applying to Dockerfile …
Dockerfile
torizonPackages.json applied
-
Terminal will be reused by tasks, press any key to close it.
-
Executing task: DOCKER_HOST= docker compose build --pull --build-arg SSHUSERNAME=torizon --build-arg APP_ROOT=/home/torizon/app --build-arg IMAGE_ARCH=arm64 --build-arg DEBUG_SSH_PORT=6502 --build-arg GPU=-imx8 anaheimpy3-debug
WARN[0000] The “DOCKER_LOGIN” variable is not set. Defaulting to a blank string.
[+] Building 1.2s (14/14) FINISHED docker:default
=> [anaheimpy3-debug internal] load .dockerignore 0.0s
=> => transferring context: 117B 0.0s
=> [anaheimpy3-debug internal] load build definition from Dockerfile.debug 0.0s
=> => transferring dockerfile: 2.82kB 0.0s
=> [anaheimpy3-debug internal] load metadata for docker.io/torizon/debian:4 1.2s
=> [anaheimpy3-debug auth] torizon/debian:pull token for registry-1.docker.io 0.0s
=> [anaheimpy3-debug 1/8] FROM docker.io/torizon/debian:4@sha256:cca23c84946621ee72aae4593da5f3 0.0s
=> [anaheimpy3-debug internal] load build context 0.0s
=> => transferring context: 43B 0.0s
=> CACHED [anaheimpy3-debug 2/8] RUN apt-get -q -y update && apt-get -q -y install open 0.0s
=> CACHED [anaheimpy3-debug 3/8] RUN apt-get -q -y update && apt-get -q -y install && 0.0s
=> CACHED [anaheimpy3-debug 4/8] RUN python3 -m venv /home/torizon/app/.venv --system-site-pack 0.0s
=> CACHED [anaheimpy3-debug 5/8] COPY requirements-debug.txt /requirements-debug.txt 0.0s
=> CACHED [anaheimpy3-debug 6/8] RUN . /home/torizon/app/.venv/bin/activate && pip3 install 0.0s
=> CACHED [anaheimpy3-debug 7/8] RUN mkdir /var/run/sshd && sed 's@session\srequired\spam 0.0s
=> CACHED [anaheimpy3-debug 8/8] RUN rm -r /etc/ssh/ssh*key && dpkg-reconfigure openssh-ser 0.0s
=> [anaheimpy3-debug] exporting to image 0.0s
=> => exporting layers 0.0s
=> => writing image sha256:c93dd1023a9a06a95bc0cc3d20ef14cf9767880fa4e3e70c7677a2474a6d1763 0.0s
=> => naming to localhost:5002/anaheimpy3-debug:arm64 0.0s
-
Terminal will be reused by tasks, press any key to close it.
-
Executing task: DOCKER_HOST= docker compose push anaheimpy3-debug
WARN[0000] The “DOCKER_LOGIN” variable is not set. Defaulting to a blank string.
[+] Pushing 0/0
⠋ Pushing anaheimpy3-debug: b3efd35b11af Layer already exists 0.0s
⠋ Pushing anaheimpy3-debug: bb392264e246 Layer already exists 0.0s
⠋ Pushing anaheimpy3-debug: b3e30e48f4d4 Layer already exists 0.0s
⠋ Pushing anaheimpy3-debug: df12f399b33f Layer already exists 0.0s
⠋ Pushing anaheimpy3-debug: 7aa28b0b0d5d Layer already exists 0.0s
⠋ Pushing anaheimpy3-debug: ebaa2b1109f3 Layer already exists 0.0s
⠋ Pushing anaheimpy3-debug: 327c58d2f5e5 Layer already exists 0.0s
⠋ Pushing anaheimpy3-debug: ef5ab135b4e1 Layer already exists 0.0s
⠋ Pushing anaheimpy3-debug: 0d44ca85e203 Layer already exists 0.0s
⠋ Pushing anaheimpy3-debug: cbfca7efdd64 Layer already exists 0.0s
⠋ Pushing anaheimpy3-debug: c5852bef3e08 Layer already exists 0.0s
⠋ Pushing anaheimpy3-debug: 6cd757f87b26 Layer already exists 0.0s
⠋ Pushing anaheimpy3-debug: 84f02289282b Layer already exists 0.0s
⠋ Pushing anaheimpy3-debug: db9633f880e7 Layer already exists 0.0s
⠋ Pushing anaheimpy3-debug: ab925bd8dc65 Layer already exists 0.0s
⠋ Pushing anaheimpy3-debug: 5f70bf18a086 Layer already exists 0.0s
⠋ Pushing anaheimpy3-debug: ac6442dc9f87 Layer already exists 0.0s
⠋ Pushing anaheimpy3-debug: 169ce75e923c Layer already exists 0.0s
⠋ Pushing anaheimpy3-debug: 66a307619b8c Layer already exists 0.0s
-
Terminal will be reused by tasks, press any key to close it.
-
Executing task: DOCKER_HOST=192.168.5.38:2375 LOCAL_REGISTRY=192.168.5.10 TAG=arm64 GPU=-imx8 DEBUG_SSH_PORT=6502 DEBUG_PORT1=6512 DEBUG_PORT2= DEBUG_PORT3= docker compose pull anaheimpy3-debug
WARN[0000] The “DOCKER_LOGIN” variable is not set. Defaulting to a blank string.
[+] Pulling 1/1
anaheimpy3-debug Pulled 0.3s
-
Terminal will be reused by tasks, press any key to close it.
-
Executing task: DOCKER_HOST=192.168.5.38:2375 LOCAL_REGISTRY=192.168.5.10 TAG=arm64 GPU=-imx8 DEBUG_SSH_PORT=6502 DEBUG_PORT1=6512 DEBUG_PORT2= DEBUG_PORT3= docker compose -p torizon up -d anaheimpy3-debug
WARN[0000] The “DOCKER_LOGIN” variable is not set. Defaulting to a blank string.
[+] Building 0.0s (0/0) docker:default
WARN[0000] Found orphan containers ([torizon-pantilt-1]) for this project. If you removed or renamed this service in your compose file, you can run this command with the --remove-orphans flag to clean it up.
[+] Running 1/1
Container torizon-anaheimpy3-debug-1 Started 0.1s
-
Terminal will be reused by tasks, press any key to close it.
-
Executing task: ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -p 6502 torizon@192.168.5.38 pkill python3 || true
Warning: Permanently added ‘[192.168.5.38]:6502’ (ED25519) to the list of known hosts.
-
Terminal will be reused by tasks, press any key to close it.
-
Executing task: rsync -P -av -e ssh -p 6502 -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null /home/steve/AnaheimTestC/src torizon@192.168.5.38:/home/torizon/app/
Warning: Permanently added ‘[192.168.5.38]:6502’ (ED25519) to the list of known hosts.
sending incremental file list
src/
src/main.py
268 100% 0.00kB/s 0:00:00 (xfr#1, to-chk=0/2)
sent 412 bytes received 39 bytes 300.67 bytes/sec
total size is 268 speedup is 0.59
-
Terminal will be reused by tasks, press any key to close it.
-
Executing task: ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -p 6502 torizon@192.168.5.38 cd /home/torizon/app && . /home/torizon/app/.venv/bin/activate && screen -d -m python3 -m debugpy --listen 0.0.0.0:6512 --log-to src/log --wait-for-client src/main.py
Warning: Permanently added ‘[192.168.5.38]:6502’ (ED25519) to the list of known hosts.
-
Terminal will be reused by tasks, press any key to close it.
-
Executing task: ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -p 6502 torizon@192.168.5.38 ‘cT=0; while ! grep -r “: wait_for_client()” /home/torizon/app/src/log/debugpy.server*.log 2> /dev/null; do sleep 0.1; if [ “$cT” -eq 100 ]; then echo “Problem debugging main.py file”; break; fi; cT=$(expr $cT + 1); done’
Warning: Permanently added ‘[192.168.5.38]:6502’ (ED25519) to the list of known hosts.
D+00000.628: wait_for_client()
- Terminal will be reused by tasks, press any key to close it.
Steve