Problem setting Torizon with Python app template

my simple getting started application with the python 3 container does not work.
I’ve followed all the steps indicated in the getting started guide, and still get this error when I compile the project:
*

  1. Error response from daemon: Get “https://172.20.0.1:5002/v2/”: http: server gave HTTP response to HTTPS client

where 172.20.0.1 is the local ipv4 adress of my computer.
here is the complete terminal log file:
python template build log.txt (10.9 KB)

Greetings @DuclairTiomo,

It appears something wasn’t configured correctly on the device side. Could you share the contents of the file /etc/docker/daemon.json on the device you’re trying to deploy to.

When you add a device to the IDE extension it should have automatically modified this file to include your IP address as a valid insecure registry similar to this:

cat /etc/docker/daemon.json 
{
   "insecure-registries" : ["192.168.0.10:5002"]
}

Perhaps this file wasn’t correctly written or the wrong IP address was written in your case.

Best Regards,
Jeremias

Hi Jeremias,

Yes, you are right, here is the content o the file

{
“insecure-registries” : [“169.254.61.84:5002”]
}

How can I make sure the IP address is correctly written by the IDE extension?

Thanks.
Duclair.

How can I make sure the IP address is correctly written by the IDE extension?

Unfortunately, this is something our extension does automatically and can’t really be configured at the moment. The good news is that after you connect your device to the IDE, you should be able to just manually edit this file yourself and correct the IP address that is written. You’ll need to then restart Docker on the device or reboot the device for it to take effect.

That said, do you know where this “169.254.61.84” address might have come from? Perhaps your PC has multiple addresses or a complex network setup and the extension wasn’t able to determine which was the correct address to use.

Edit: Actually I learned there is an option apollox.overwriteHostIp in your project’s .vscode/settings.json. This can be used to set your IP address instead of relying on the automatic detection.

Best Regards,
Jeremias