Facing issue on build in visual studio connected to remote apalis imx8 (with torizon running)

Hello, following is the error I get on trying to build and debug hello world in visual studio connected to remote imx8(torizon). Need help fixing it.

Thank You,
Shardul

SDK container not found, cleaning the build …
Done
Error updating Torizon SDK container.
Code: 530
Description: Local docker exception.
Message: Docker exception: invalid reference format
Error running SDK container.
Code: 500
Description: Internal server error
Message: 400 Client Error for http+docker://localnpipe/v1.41/images/hello%20world_arm64v8-debian_bullseye_debug_d7953771-325d-47ae-ae41-431ef8756e11_sdk_image/json: Bad Request (“no such image: hello world_arm64v8-debian_bullseye_debug_d7953771-325d-47ae-ae41-431ef8756e11_sdk_image: invalid reference format”)
Error starting SDK container.
Loading application configuration…
SDK container not found, cleaning the build …
Done
Error updating Torizon SDK container.
Code: 530
Description: Local docker exception.
Message: Docker exception: invalid reference format
Error running SDK container.
Code: 500
Description: Internal server error
Message: 400 Client Error for http+docker://localnpipe/v1.41/images/hello%20world_arm64v8-debian_bullseye_debug_d7953771-325d-47ae-ae41-431ef8756e11_sdk_image/json: Bad Request (“no such image: hello world_arm64v8-debian_bullseye_debug_d7953771-325d-47ae-ae41-431ef8756e11_sdk_image: invalid reference format”)
Error starting SDK container.

Hi @ShardulC

Welcome to Toradex community.
Are you still facing the issue?Could you provide the Software and hardware versions of your setup?
Provide the steps to reproduce the issue.

Yes.

Tried to follow steps from above link, was not able to see the dialog in step 15 (do you want to build it box) but it went ahead building and then received above mentioned error.

Software: Microsoft Visual Studio Community 2019 (Version 16.11.3) , Toradex Torizon C/C++ support stable version
Hardware: Apalis imx8QM 4GB WB IT V1.1 on eval board 06805227

Contents of moses.exe
Serving on http://kubernetes.docker.internal:5000
INFO:root:REST → /api/version/docker
INFO:root:REST ← /api/version/docker - 200
INFO:root:REST → /api/eulas
INFO:root:REST ← /api/eulas - 200
INFO:root:REST → /api/version/docker
INFO:root:REST ← /api/version/docker - 200
INFO:root:REST → /api/devices
INFO:root:REST ← /api/devices - 200
INFO:root:REST → /api/devices/06805227
INFO:root:REST ← /api/devices/06805227 - 200
INFO:root:REST → /api/devices/06805227/images
INFO:root:SSH - Creating tunnel to 06805227
INFO:root:SSH - Tunnel to 06805227 activated
INFO:root:REST ← /api/devices/06805227/images - 200
INFO:root:REST → /api/devices/06805227/containers
INFO:root:REST ← /api/devices/06805227/containers - 200
INFO:root:REST → /api/devices/06805227/processes
INFO:root:SSH - Connecting to device 06805227
INFO:root:SSH - Connected to device 06805227
INFO:root:REST ← /api/devices/06805227/processes - 200
INFO:root:REST → /api/devices/06805227/storage
INFO:root:REST ← /api/devices/06805227/storage - 200
INFO:root:REST → /api/devices/06805227/memory
INFO:root:REST ← /api/devices/06805227/memory - 200
INFO:root:REST → /api/devices/06805227
INFO:root:REST ← /api/devices/06805227 - 200
INFO:root:REST → /api/devices/06805227/images
INFO:root:REST ← /api/devices/06805227/images - 200
INFO:root:REST → /api/devices/06805227/containers
INFO:root:REST ← /api/devices/06805227/containers - 200
INFO:root:REST → /api/devices/06805227/processes
INFO:root:REST ← /api/devices/06805227/processes - 200
INFO:root:REST → /api/devices/06805227/storage
INFO:root:REST ← /api/devices/06805227/storage - 200
INFO:root:REST → /api/devices/06805227/memory
INFO:root:REST ← /api/devices/06805227/memory - 200
INFO:root:REST → /api/applications/load
INFO:root:REST ← /api/applications/load - 200
INFO:root:REST → /api/applications/d7953771-325d-47ae-ae41-431ef8756e11/sdk/container
ERROR:root:Error: 548 SDK container not found. SDK Container not found: 404 Client Error for http+docker://localnpipe/v1.41/containers/hello%20world_arm64v8-debian_bullseye_debug_d7953771-325d-47ae-ae41-431ef8756e11_sdk/json: Not Found (“No such container: hello world_arm64v8-debian_bullseye_debug_d7953771-325d-47ae-ae41-431ef8756e11_sdk”)
ERROR:root:Exception: SDK Container not found: 404 Client Error for http+docker://localnpipe/v1.41/containers/hello%20world_arm64v8-debian_bullseye_debug_d7953771-325d-47ae-ae41-431ef8756e11_sdk/json: Not Found (“No such container: hello world_arm64v8-debian_bullseye_debug_d7953771-325d-47ae-ae41-431ef8756e11_sdk”)
ERROR:root:404 Client Error for http+docker://localnpipe/v1.41/containers/hello%20world_arm64v8-debian_bullseye_debug_d7953771-325d-47ae-ae41-431ef8756e11_sdk/json: Not Found (“No such container: hello world_arm64v8-debian_bullseye_debug_d7953771-325d-47ae-ae41-431ef8756e11_sdk”)
INFO:root:REST ← /api/applications/d7953771-325d-47ae-ae41-431ef8756e11/sdk/container - 548
INFO:root:REST → /api/applications/load
INFO:root:REST ← /api/applications/load - 200
INFO:root:REST → /api/platforms
INFO:root:REST ← /api/platforms - 200
INFO:root:REST → /api/progress/create
INFO:root:REST ← /api/progress/create - 200
INFO:root:REST → /api/applications/d7953771-325d-47ae-ae41-431ef8756e11/sdk/update
INFO:root:REST → /api/progress/status
ERROR:root:Error: 530 Local docker exception. Docker exception: invalid reference format
INFO:root:REST ← /api/progress/status - 200
INFO:root:REST ← /api/applications/d7953771-325d-47ae-ae41-431ef8756e11/sdk/update - 530
INFO:root:REST → /api/applications/d7953771-325d-47ae-ae41-431ef8756e11/sdk/run
ERROR:root:400 Client Error for http+docker://localnpipe/v1.41/images/hello%20world_arm64v8-debian_bullseye_debug_d7953771-325d-47ae-ae41-431ef8756e11_sdk_image/json: Bad Request (“no such image: hello world_arm64v8-debian_bullseye_debug_d7953771-325d-47ae-ae41-431ef8756e11_sdk_image: invalid reference format”)
Traceback (most recent call last):
File “docker\api\client.py”, line 268, in _raise_for_status
File “requests\models.py”, line 953, in raise_for_status
requests.exceptions.HTTPError: 400 Client Error: Bad Request for url: http+docker://localnpipe/v1.41/images/hello%20world_arm64v8-debian_bullseye_debug_d7953771-325d-47ae-ae41-431ef8756e11_sdk_image/json

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File “flask\app.py”, line 1513, in full_dispatch_request
File “flask\app.py”, line 1499, in dispatch_request
File “connexion\decorators\decorator.py”, line 48, in wrapper
File “connexion\decorators\uri_parsing.py”, line 144, in wrapper
File “connexion\decorators\validation.py”, line 384, in wrapper
File “connexion\decorators\parameter.py”, line 121, in wrapper
File “api.py”, line 1411, in applications_application_sdk_run_get
File “applicationconfig_sdk.py”, line 378, in start_sdk_container
File “applicationconfig_sdk.py”, line 239, in _start_sdk_container
File “docker\models\images.py”, line 316, in get
File “docker\utils\decorators.py”, line 19, in wrapped
File “docker\api\image.py”, line 253, in inspect_image
File “docker\api\client.py”, line 274, in _result
File “docker\api\client.py”, line 270, in _raise_for_status
File “docker\errors.py”, line 31, in create_api_error_from_http_exception
docker.errors.APIError: 400 Client Error for http+docker://localnpipe/v1.41/images/hello%20world_arm64v8-debian_bullseye_debug_d7953771-325d-47ae-ae41-431ef8756e11_sdk_image/json: Bad Request (“no such image: hello world_arm64v8-debian_bullseye_debug_d7953771-325d-47ae-ae41-431ef8756e11_sdk_image: invalid reference format”)
INFO:root:REST ← /api/applications/d7953771-325d-47ae-ae41-431ef8756e11/sdk/run - 500
INFO:root:REST → /api/applications/load
INFO:root:REST ← /api/applications/load - 200
INFO:root:REST → /api/applications/d7953771-325d-47ae-ae41-431ef8756e11/updated
INFO:root:Image has never been built.
INFO:root:REST ← /api/applications/d7953771-325d-47ae-ae41-431ef8756e11/updated - 200
INFO:root:REST → /api/progress/create
INFO:root:REST ← /api/progress/create - 200
INFO:root:REST → /api/applications/d7953771-325d-47ae-ae41-431ef8756e11/build
INFO:root:REST → /api/progress/status
ERROR:root:Error: 530 Local docker exception. Docker exception: invalid reference format
INFO:root:REST ← /api/progress/status - 200
INFO:root:REST ← /api/applications/d7953771-325d-47ae-ae41-431ef8756e11/build - 530

Thanks.

@ashok.tx Simply creating a new project in Visual studio has worked and could build and deploy it on board. Not sure why it gave error the first time.
Thanks.

Hi @ShardulC

Glad it worked.
It could be some miss configurations. Thanks for the update.