Hi,
I have received a Verdin imx8mPlus and a Mallow carrier board.
I have started the quick start guide and can build a container on my host pc then pull and run it on the verdin.
I now would like to use the vs code torizon extension to debug code on the verdin buy clicking the debug tab and selecting “Torizon ARMv8”.
I’m following this guide.
https://developer.toradex.com/quickstart/nextsteps/first-python-application/?module=verdin_imx8mp&carrier=yavia&host=linux&os=torizon&learning_path=torizon_lessons
I get the following error when I try to deploy the application to the Verdin.
Executing task: sshpass -p ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no torizon@192.168.1.166 LOCAL_REGISTRY=10.0.2.15 TAG=arm64 docker compose pull python032724-debug
Warning: Permanently added '192.168.1.166' (ED25519) to the list of known hosts.
time="2024-03-27T13:27:22Z" level=warning msg="The \"DOCKER_LOGIN\" variable is not set. Defaulting to a blank string."
python032724-debug Pulling
python032724-debug Warning
WARNING: Some service image(s) must be built from source by running:
docker compose build python032724-debug
1 error occurred:
* Error response from daemon: Get "http://10.0.2.15:5002/v2/": net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)
* The terminal process "sshpass '-p', '', 'ssh', '-o', 'UserKnownHostsFile=/dev/null', '-o', 'StrictHostKeyChecking=no', 'torizon@192.168.1.166', 'LOCAL_REGISTRY=10.0.2.15 TAG=arm64 docker compose pull python032724-debug'" terminated with exit code: 18.
* Terminal will be reused by tasks, press any key to close it.
I installed the “TorizonCore 6.5.0” image from the installer.
I have not changed any configurations from the guide.
My host machine is running Ubuntu 22.04 in a virtual machine.
I have started a clean vm and installed docker,arm emulator, vs code, and flashed “TorizonCore 6.5.0” again per the documentation.
I have to add the device manually in vs code because it is not auto-detected.
Thank you.
This is the full terminal output.
Executing task: pwsh -nop .conf/validateDepsRunning.ps1
⚠️ VALIDATING ENVIRONMENT
✅ Environment is valid!
* Terminal will be reused by tasks, press any key to close it.
* Executing task: bash -c [[ ! -z "192.168.1.166" ]] && 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: [ $(/bin/python3 -m pip --version | awk '{print $2}' | cut -d'.' -f1) -lt 23 ] && /bin/python3 -m pip install --upgrade pip || true
* Terminal will be reused by tasks, press any key to close it.
* Executing task: /bin/python3 -m pip install --break-system-packages -r requirements-debug.txt
Defaulting to user installation because normal site-packages is not writeable
Requirement already satisfied: debugpy in /home/vboxuser/.local/lib/python3.10/site-packages (from -r requirements-debug.txt (line 1)) (1.8.1)
* 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 scp -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no /home/vboxuser/python032724/python032724/docker-compose.yml torizon@192.168.1.166:~/
Warning: Permanently added '192.168.1.166' (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.1.166: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: if [ false == false ]; then DOCKER_HOST=192.168.1.166:2375 docker compose -p torizon down --remove-orphans ; fi
Warning: No resource found to remove for project "torizon".
* 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 SSH_DEBUG_PORT=6502 --build-arg GPU=-vivante python032724-debug
WARN[0000] The "DOCKER_LOGIN" variable is not set. Defaulting to a blank string.
WARN[0000] /home/vboxuser/python032724/python032724/docker-compose.yml: `version` is obsolete
[+] Building 0.9s (16/16) FINISHED docker:default
=> [python032724-debug internal] load build definition from Dockerfile.debug 0.0s
=> => transferring dockerfile: 3.02kB 0.0s
=> [python032724-debug internal] load metadata for docker.io/torizon/debian:3.2.1-bookworm 0.8s
=> [python032724-debug auth] torizon/debian:pull token for registry-1.docker.io 0.0s
=> [python032724-debug internal] load .dockerignore 0.0s
=> => transferring context: 117B 0.0s
=> [python032724-debug 1/10] FROM docker.io/torizon/debian:3.2.1-bookworm@sha256:c645d6bc14f7d419340df0be25dbbe115ada029fa2e502a1c9149f3 0.0s
=> [python032724-debug internal] load build context 0.0s
=> => transferring context: 158B 0.0s
=> CACHED [python032724-debug 2/10] RUN apt-get -q -y update && apt-get -q -y install openssl openssh-server rsync f 0.0s
=> CACHED [python032724-debug 3/10] RUN apt-get -q -y update && apt-get -q -y install && apt-get clean && apt-get autoremove 0.0s
=> CACHED [python032724-debug 4/10] RUN python3 -m venv /home/torizon/app/.venv --system-site-packages 0.0s
=> CACHED [python032724-debug 5/10] COPY requirements-debug.txt /requirements-debug.txt 0.0s
=> CACHED [python032724-debug 6/10] RUN . /home/torizon/app/.venv/bin/activate && pip3 install --upgrade pip && pip3 install --break 0.0s
=> CACHED [python032724-debug 7/10] COPY .conf/id_rsa.pub /id_rsa.pub 0.0s
=> CACHED [python032724-debug 8/10] RUN mkdir /var/run/sshd && sed 's@session\s*required\s*pam_loginuid.so@session optional pam_logi 0.0s
=> CACHED [python032724-debug 9/10] RUN rm -r /etc/ssh/ssh*key && dpkg-reconfigure openssh-server 0.0s
=> CACHED [python032724-debug 10/10] COPY --chown=torizon:torizon ./src /home/torizon/app/src 0.0s
=> [python032724-debug] exporting to image 0.0s
=> => exporting layers 0.0s
=> => writing image sha256:fbd79f3cee31a16d00c0c4c975b218bf5eff53d73d444b9a72e90279a0b7f5ab 0.0s
=> => naming to localhost:5002/python032724-debug:arm64 0.0s
* Terminal will be reused by tasks, press any key to close it.
* Executing task: DOCKER_HOST= docker compose push python032724-debug
WARN[0000] The "DOCKER_LOGIN" variable is not set. Defaulting to a blank string.
WARN[0000] /home/vboxuser/python032724/python032724/docker-compose.yml: `version` is obsolete
[+] Pushing 19/0
✔ Pushing localhost:5002/python032724-debug:arm64: a3120f7c1902 Layer already exists 0.0s
✔ Pushing localhost:5002/python032724-debug:arm64: 698a2f5b52ef Layer already exists 0.0s
✔ Pushing localhost:5002/python032724-debug:arm64: 7768f44b95b6 Layer already exists 0.0s
✔ Pushing localhost:5002/python032724-debug:arm64: 6d9370ad00cc Layer already exists 0.0s
✔ Pushing localhost:5002/python032724-debug:arm64: 974743a4f043 Layer already exists 0.0s
✔ Pushing localhost:5002/python032724-debug:arm64: 2edf9cdaf628 Layer already exists 0.0s
✔ Pushing localhost:5002/python032724-debug:arm64: 04551442c43d Layer already exists 0.0s
✔ Pushing localhost:5002/python032724-debug:arm64: c47bf356ccef Layer already exists 0.0s
✔ Pushing localhost:5002/python032724-debug:arm64: 3981f58ef9c2 Layer already exists 0.0s
✔ Pushing localhost:5002/python032724-debug:arm64: 4d43de620b2b Layer already exists 0.0s
✔ Pushing localhost:5002/python032724-debug:arm64: 2b1b9a443581 Layer already exists 0.0s
✔ Pushing localhost:5002/python032724-debug:arm64: 78b4e0bbebbf Layer already exists 0.0s
✔ Pushing localhost:5002/python032724-debug:arm64: af2e04463901 Layer already exists 0.0s
✔ Pushing localhost:5002/python032724-debug:arm64: fa80bad6bfa4 Layer already exists 0.0s
✔ Pushing localhost:5002/python032724-debug:arm64: 99556bba1730 Layer already exists 0.0s
✔ Pushing localhost:5002/python032724-debug:arm64: 5eda8e9db600 Layer already exists 0.0s
✔ Pushing localhost:5002/python032724-debug:arm64: 9c76f5bd7f07 Layer already exists 0.0s
✔ Pushing localhost:5002/python032724-debug:arm64: 39940505a96f Layer already exists 0.0s
✔ Pushing localhost:5002/python032724-debug:arm64: f4e4d9391e13 Layer already exists 0.0s
* Terminal will be reused by tasks, press any key to close it.
* Executing task: sshpass -p ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no torizon@192.168.1.166 LOCAL_REGISTRY=10.0.2.15 TAG=arm64 docker compose pull python032724-debug
Warning: Permanently added '192.168.1.166' (ED25519) to the list of known hosts.
time="2024-03-27T13:45:06Z" level=warning msg="The \"DOCKER_LOGIN\" variable is not set. Defaulting to a blank string."
python032724-debug Pulling
python032724-debug Warning
WARNING: Some service image(s) must be built from source by running:
docker compose build python032724-debug
1 error occurred:
* Error response from daemon: Get "http://10.0.2.15:5002/v2/": net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)
* The terminal process "sshpass '-p', '', 'ssh', '-o', 'UserKnownHostsFile=/dev/null', '-o', 'StrictHostKeyChecking=no', 'torizon@192.168.1.166', 'LOCAL_REGISTRY=10.0.2.15 TAG=arm64 docker compose pull python032724-debug'" terminated with exit code: 18.
* Terminal will be reused by tasks, press any key to close it.
Thank you,