‘Waiting for registry’ error appears after 4–5 successful executions

I’m facing an issue with the Torizon IDE extension during deployment.
after Executing multiple runs i getting below error.
Attempt 8/15: waiting for registry… Exception occurred: Command '[‘sshpass’, ‘-p’, ‘toradex’, ‘ssh’, ‘-p’, ‘22’, ‘-o’, ‘UserKnownHostsFile=/dev/null’, ‘-o’, ‘StrictHostKeyChecking=no’, ‘-o’, ‘PubkeyAuthentication=no’, ‘torizon@192.168.225.223’, 'curl --silent --max-time 5 http://localhost:5002/v2/_catalog’\\]’ returned non-zero exit status 7. Attempt 9/15: waiting for registry…

Attempt 14/15: waiting for registry…
Exception occurred: Command '[‘sshpass’, ‘-p’, ‘toradex’, ‘ssh’, ‘-p’, ‘22’, ‘-o’, ‘UserKnownHostsFile=/dev/null’, ‘-o’, ‘StrictHostKeyChecking=no’, ‘-o’, ‘PubkeyAuthentication=no’, ‘torizon@192.168.225.223’, 'curl --silent --max-time 5 http://localhost:5002/v2/_catalog’\]’ returned non-zero exit status 7.
Attempt 15/15: waiting for registry…

Max attempts reached
Was not possible to get a response from the registry
Error cause: Failed
My question is: if the registry is not available, why does the command sometimes run successfully for the first 4–5 attempts without any error, and only later start failing with registry error?

Hi, I’m the Toradex AI Assistant.

I might make mistakes or occasionally get you wrong. Our support team will step in if needed.


I’d be glad to help! Could you let me know which OS and version you are using?

To better assist you with this registry connection issue, I’ll also need some additional information about your setup. Could you run the tdx-info command on your device and share the output? You can find more details about this command at https://developer.toradex.com/software/development-resources/tdx-info/.

Port Requirements

Based on the troubleshooting documentation, the Torizon IDE extension requires specific ports to be accessible between your development machine and the target device (1):

  • 22 (Dev Board SSH Connection)
  • 2375 (Docker API)
  • 5002 (Local Docker Registry)
  • 2222 (Container SSH Connection)

The error you’re experiencing suggests intermittent connectivity issues with the local Docker registry on port 5002 (1).

Common Registry Issues

From the community discussions, registry connectivity problems can occur due to:

  1. Multi-NIC environment issues - If your development machine has multiple network interfaces, the extension may have difficulty determining the correct IP address to use (2)

  2. Registry configuration - The device needs to have the correct registry configuration in /etc/docker/daemon.json pointing to your development machine’s IP (2)

  3. Network connectivity - Intermittent network issues between your development machine and the target device

Next Steps

Once you provide your platform information, I can give you more specific troubleshooting steps. The intermittent nature of your issue (working initially, then failing) typically indicates network connectivity problems or registry startup timing issues rather than a fundamental configuration problem.

Best regards, Toradex AI Assistant.


Did you like my answer? :+1: :-1:

If I answered your question, please tick the “Solution” checkbox.

For follow-up questions to me, please use @ToradexAI in your post.

below is my tdx-info
torizon@colibri-imx7-emmc-06673341:~$ sudo tdx-info
Software summary

Bootloader: U-Boot
Kernel version: 6.6.108-7.4.0-00057-g451f1e35226f #1-Torizon SMP PREEMPT Mon Jun 30 14:11:55 UTC 2025
Kernel command line: root=LABEL=otaroot rootfstype=ext4 quiet logo.nologo vt.global_cursor_default=0 plymouth.ignore-serial-consoles splash fbcon=map:3 ostree=/ostree/boot.1/torizon/22d58afd3489301015d8dd92011adee7c16b9fe8bedfe39c90cb8b42e0278e8d/0
Distro name: NAME=“Torizon OS Upstream”
Distro version: VERSION_ID=7.4.0-build.28
Distro variant: VARIANT=“Docker”
Hostname: colibri-imx7-emmc-06673341

Hardware info

HW model: Toradex Colibri iMX7D 1GB (eMMC) on Colibri Evaluation Board V3

Toradex version: 0039 V1.1A
Serial number: 06673341
Processor arch: armv7l

torizon@colibri-imx7-emmc-06673341:~$
I am using port:22
I can run programme 4 to 5 time but after that I am getting above error @ToradexAI

Thank you for providing your system information! You’re running Torizon OS 7.4.0-build.28 on a Colibri iMX7D 1GB (eMMC) on Colibri Evaluation Board V3.

Understanding the Registry Error Pattern

The intermittent nature of your issue (working for 4-5 runs, then failing) is a common pattern with the Torizon IDE Extension’s local Docker registry functionality. This typically indicates resource exhaustion or network interface confusion rather than a fundamental configuration problem.

Troubleshooting Steps

1. Check Network Configuration

The error suggests the extension is having trouble reaching the local Docker registry on port 5002 (1). Since you mentioned this happens after several successful runs, this points to a potential IP address detection issue.

You can configure the torizon.overwriteHostIp setting in VS Code to specify the correct IP address of your development machine (1). To do this:

  1. Open VS Code Command Palette (F1)
  2. Select “Preferences: Open Settings (JSON)”
  3. Add the following line with your development machine’s IP:
"torizon.overwriteHostIp": "YOUR_DEV_MACHINE_IP"

(1)

2. Verify Required Ports

The Torizon IDE Extension requires these ports to be accessible (1):

  • 22 (SSH Connection) - :white_check_mark: You confirmed this works
  • 2375 (Docker API)
  • 5002 (Local Docker Registry) - This is where your error occurs
  • 2222 (Container SSH Connection)

3. Check for SSH Connection Issues

The error shows SSH exit status 7, which typically indicates connection problems. You can test the SSH connection manually (1):

ping -W 1 -c 1 <your-device-ip>

(1)

If you get “Operation not permitted”, run:

sudo setcap cap_net_raw+ep /bin/ping

(1)

4. Registry Connectivity Test

The extension is trying to connect to http://localhost:5002/v2/_catalog on your device. This suggests the local registry on your development machine should be accessible from the device at that address.

Why It Works Initially Then Fails

This pattern typically occurs because:

  1. Resource buildup: After multiple deployments, temporary containers or network connections may accumulate
  2. Registry state: The local Docker registry may become unresponsive after handling multiple requests
  3. Network interface confusion: Your development machine may have multiple network interfaces, and the extension might lose track of the correct one

Recommended Solution

Try restarting VS Code and your development machine’s Docker service between deployment sessions. This will reset the local registry and clear any accumulated network state.

The torizon.overwriteHostIp setting mentioned above is often the most effective permanent solution for this type of intermittent connectivity issue (1).

Best regards, Toradex AI Assistant.


Did you like my answer? :+1: :-1:

If I answered your question, please tick the “Solution” checkbox.

For follow-up questions to me, please use @ToradexAI in your post.