Unable to deploy program on verdian IMx8mp board ssh er

#5 [newcsharp-debug 2/5] RUN apt-get -q -y update && apt-get -q -y install openssl openssh-server rsync file && apt-get clean && apt-get autoremove && rm -rf /var/lib/apt/lists/*
#5 CACHED

#6 [newcsharp-debug 3/5] RUN apt-get -q -y update && apt-get -q -y install libgpiod2:arm64 libgpiod-dev:arm64 && apt-get clean && apt-get autoremove && rm -rf /var/lib/apt/lists/*
#6 CACHED

#7 [newcsharp-debug 4/5] RUN mkdir /var/run/sshd && sed ‘s@session\srequired\spam_loginuid.so@session optional pam_loginuid.so@g’ -i /etc/pam.d/sshd && if test torizon != root ; then mkdir -p /home/torizon/.ssh ; else mkdir -p /root/.ssh ; fi && echo “PermitUserEnvironment yes” >> /etc/ssh/sshd_config && echo “PermitRootLogin yes” >> /etc/ssh/sshd_config && echo “Port 2222” >> /etc/ssh/sshd_config && echo “PasswordAuthentication yes” >> /etc/ssh/sshd_config && echo “PermitEmptyPasswords yes” >> /etc/ssh/sshd_config && su -c “env” torizon > /etc/environment && echo “torizon:” | chpasswd -e
#7 CACHED

#8 [newcsharp-debug 5/5] RUN rm -r /etc/ssh/ssh*key && dpkg-reconfigure openssh-server
#8 CACHED

#9 [newcsharp-debug] exporting to image
#9 exporting layers done
#9 writing image sha256:295bf10482c230137066673c69af23ed1159bc2778bc3504a6adf7622bfcc505 done
#9 naming to localhost:5002/newcsharp-debug:arm64 done
#9 DONE 0.0s

#10 [newcsharp-debug] resolving provenance for metadata file
#10 DONE 0.0s

  • Terminal will be reused by tasks, press any key to close it.

  • Executing task: DOCKER_HOST= docker compose --ansi never push newcsharp-debug

WARN[0000] The “DOCKER_LOGIN” variable is not set. Defaulting to a blank string.
WARN[0000] /home/Torizon/Csharpsensor/docker-compose.yml: the attribute version is obsolete, it will be ignored, please remove it to avoid potential confusion
Pushing localhost:5002/newcsharp-debug:arm64: fe03705a2994 Preparing
Pushing localhost:5002/newcsharp-debug:arm64: 89db35b19ef7 Preparing
Pushing localhost:5002/newcsharp-debug:arm64: ac335645c4c2 Preparing
Pushing localhost:5002/newcsharp-debug:arm64: 9301d1299ba5 Preparing
Pushing localhost:5002/newcsharp-debug:arm64: 550e01653322 Preparing
Pushing localhost:5002/newcsharp-debug:arm64: 85c261c6b451 Preparing
Pushing localhost:5002/newcsharp-debug:arm64: bba027968eee Preparing
Pushing localhost:5002/newcsharp-debug:arm64: bb95280742bd Preparing
Pushing localhost:5002/newcsharp-debug:arm64: d5661228a6f6 Preparing
Pushing localhost:5002/newcsharp-debug:arm64: 1f74cca9ef3c Preparing
Pushing localhost:5002/newcsharp-debug:arm64: cf08845a6a01 Preparing
Pushing localhost:5002/newcsharp-debug:arm64: e009595c7dc0 Preparing
Pushing localhost:5002/newcsharp-debug:arm64: 6dc89911362e Preparing
Pushing localhost:5002/newcsharp-debug:arm64: 0d7dccc6d0e7 Preparing
Pushing localhost:5002/newcsharp-debug:arm64: 67ca54a26679 Preparing
Pushing localhost:5002/newcsharp-debug:arm64: 3440d23a444f Preparing
Pushing localhost:5002/newcsharp-debug:arm64: 5a49bdb65752 Preparing
Pushing localhost:5002/newcsharp-debug:arm64: 2bd1a2222589 Preparing
Pushing localhost:5002/newcsharp-debug:arm64: bb95280742bd Waiting
Pushing localhost:5002/newcsharp-debug:arm64: d5661228a6f6 Waiting
Pushing localhost:5002/newcsharp-debug:arm64: 1f74cca9ef3c Waiting
Pushing localhost:5002/newcsharp-debug:arm64: cf08845a6a01 Waiting
Pushing localhost:5002/newcsharp-debug:arm64: 5a49bdb65752 Waiting
Pushing localhost:5002/newcsharp-debug:arm64: 2bd1a2222589 Waiting
Pushing localhost:5002/newcsharp-debug:arm64: e009595c7dc0 Waiting
Pushing localhost:5002/newcsharp-debug:arm64: 6dc89911362e Waiting
Pushing localhost:5002/newcsharp-debug:arm64: 3440d23a444f Waiting
Pushing localhost:5002/newcsharp-debug:arm64: 0d7dccc6d0e7 Waiting
Pushing localhost:5002/newcsharp-debug:arm64: 67ca54a26679 Waiting
Pushing localhost:5002/newcsharp-debug:arm64: bba027968eee Waiting
Pushing localhost:5002/newcsharp-debug:arm64: 550e01653322 Layer already exists
Pushing localhost:5002/newcsharp-debug:arm64: 89db35b19ef7 Layer already exists
Pushing localhost:5002/newcsharp-debug:arm64: 9301d1299ba5 Layer already exists
Pushing localhost:5002/newcsharp-debug:arm64: ac335645c4c2 Layer already exists
Pushing localhost:5002/newcsharp-debug:arm64: fe03705a2994 Layer already exists
Pushing localhost:5002/newcsharp-debug:arm64: bba027968eee Layer already exists
Pushing localhost:5002/newcsharp-debug:arm64: 85c261c6b451 Layer already exists
Pushing localhost:5002/newcsharp-debug:arm64: bb95280742bd Layer already exists
Pushing localhost:5002/newcsharp-debug:arm64: d5661228a6f6 Layer already exists
Pushing localhost:5002/newcsharp-debug:arm64: e009595c7dc0 Layer already exists
Pushing localhost:5002/newcsharp-debug:arm64: 1f74cca9ef3c Layer already exists
Pushing localhost:5002/newcsharp-debug:arm64: 0d7dccc6d0e7 Layer already exists
Pushing localhost:5002/newcsharp-debug:arm64: 6dc89911362e Layer already exists
Pushing localhost:5002/newcsharp-debug:arm64: cf08845a6a01 Layer already exists
Pushing localhost:5002/newcsharp-debug:arm64: 67ca54a26679 Layer already exists
Pushing localhost:5002/newcsharp-debug:arm64: 2bd1a2222589 Layer already exists
Pushing localhost:5002/newcsharp-debug:arm64: 3440d23a444f Layer already exists
Pushing localhost:5002/newcsharp-debug:arm64: 5a49bdb65752 Layer already exists

  • Terminal will be reused by tasks, press any key to close it.

  • Executing task: DOCKER_HOST=192.168.0.10:2375 LOCAL_REGISTRY=192.168.0.20 TAG=arm64 GPU=-imx8 DEBUG_SSH_PORT=2222 DEBUG_PORT1= DEBUG_PORT2= DEBUG_PORT3= docker compose --ansi never pull newcsharp-debug

WARN[0000] The “DOCKER_LOGIN” variable is not set. Defaulting to a blank string.
WARN[0000] /home/Torizon/Csharpsensor/docker-compose.yml: the attribute version is obsolete, it will be ignored, please remove it to avoid potential confusion
newcsharp-debug Pulling
newcsharp-debug Warning Get “https://192.168.0.20:5002/v2/”: net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)
WARNING: Some service image(s) must be built from source by running:
docker compose build newcsharp-debug
1 error occurred:
* Error response from daemon: Get “https://192.168.0.20:5002/v2/”: net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)

  • The terminal process “/bin/bash ‘-c’, ‘DOCKER_HOST=192.168.0.10:2375 LOCAL_REGISTRY=192.168.0.20 TAG=arm64 GPU=-imx8 DEBUG_SSH_PORT=2222 DEBUG_PORT1= DEBUG_PORT2= DEBUG_PORT3= docker compose --ansi never pull newcsharp-debug’” terminated with exit code: 18.
  • Terminal will be reused by tasks, press any key to close it.

The pipe program ‘ssh’ exited unexpectedly with code 255."

Hi, I’m the Toradex AI Assistant. The Toradex Support team will follow up with you shortly!

Did you like my answer?

:+1: :-1:


Hello,

It seems you’re encountering a timeout issue when trying to pull Docker images from your local registry to the Verdin iMX8MP board. Let’s go through some steps to help you troubleshoot and resolve this problem:

  1. Network Connectivity: First, ensure that your development machine and the Verdin iMX8MP board have a stable network connection. Verify that the IP address 192.168.0.20 is correct and that the board can reach this address without issues.

  2. Local Registry Configuration: Check that your local Docker registry is up and running. You can test its accessibility by trying to access it from another machine on the same network using a web browser or a tool like curl.

  3. Docker Daemon Settings: On the Verdin board, make sure the Docker daemon is configured to allow connections to your local registry. This might involve adding your registry’s IP and port to the insecure-registries list in the Docker daemon configuration file (/etc/docker/daemon.json). After making any changes, remember to restart the Docker service.

  4. Registry Security: If your registry uses HTTPS, ensure that the board has the necessary certificates to trust the registry. If it’s an insecure registry, confirm that the Docker daemon is set to allow connections to it.

  5. Timeout Settings: If network latency is a concern, consider increasing the timeout settings for Docker operations to accommodate any delays.

By following these steps, you should be able to address the timeout issue and successfully deploy your program on the Verdin iMX8MP board. If the problem persists, double-check all configurations and ensure that all network components are functioning correctly.

I hope this helps! If you have any more questions, feel free to ask.

Best regards,
Toradex AI Assistant

Please, also check if these links can help you solve your problem:

Torizoncore-builder SSH deploy issue.

Greetings @atharva.s,

Looks like there was a network error between the Toradex device and your PC running VSCode. The Toradex device is trying to contact your PC via https://192.168.0.20:5002/v2/. Please make sure this IP address is correct and reachable from the Toradex device as well as port 5002 is available on your PC.

Sometimes office/corporate network setups have firewalls or other network configurations that can interfere with the process of our VSCode extension.

Best Regards,
Jeremias

We have set static ips for host machine ie my laptop and board moreover both are connected directly to each other using ethernet cable; moreover, we tried changing the host machine on which we previously used VScode with the board and successfully tested the gpio application

connected directly to each other using ethernet cable

Can the board route to https://192.168.0.20:5002 successfully via this direct connection?

If not then there’s still some network issues on your configuration.

Best Regards,
Jeremias