question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Azure IoT Edge - Deploy to IoT Edge devices failed (if DTR is not accessible from cloud)

See original GitHub issue

Required Information

Type: Question Enter Task Name: Azure IoT Edge - Deploy to IoT Edge

Environment

  • Cloud Azure-DevOps
  • Agent - Hosted

Issue Description

Task fails if deployment manifest contains images that aren’t available to the deployment agent, because they reside inside a private DTR that is only available within the enterprise network (and is not accessible from the public internet).

Task logs

2020-12-09T12:53:58.1191315Z ##[section]Starting: Azure IoT Edge - Deploy to IoT Edge devices
2020-12-09T12:53:58.1504971Z ==============================================================================
2020-12-09T12:53:58.1505693Z Task         : Azure IoT Edge
2020-12-09T12:53:58.1506244Z Description  : Build and deploy an Azure IoT Edge image
2020-12-09T12:53:58.1506505Z Version      : 2.4.4
2020-12-09T12:53:58.1506982Z Author       : Microsoft Corporation
2020-12-09T12:53:58.1507556Z Help         : https://docs.microsoft.com/azure/devops/pipelines/tasks/build/azure-iot-edge
2020-12-09T12:53:58.1507928Z ==============================================================================
2020-12-09T12:54:03.7578427Z Start deploying...
2020-12-09T12:54:03.7589065Z Deployment task is running in build pipeline? false
2020-12-09T12:54:03.7593054Z D:\a\r1\a\_xxx\deployment.json
2020-12-09T12:54:03.7593527Z Checking if the following file is a valid json: D:\a\r1\a\_xxx\deployment.json
2020-12-09T12:54:03.7597588Z Valid
2020-12-09T12:54:25.2008477Z ##[error]privateserver/privateimage:0.0.4-amd64 does not exist or the credential is not set correctly. Error: Get https://privateserver/v2/privateimage/manifests/0.0.4-amd64: dial tcp: privateserver: no such host

Any chance to use this task without publishing the modules to Azure CR? The only thing I want is that the deployment manifest is transfered it to the IoT-Hub 😉 - no further validations/actions are needed.

Thanks in advance - and please let me know if I was unclear or could contribute further information.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:14 (10 by maintainers)

github_iconTop GitHub Comments

1reaction
cindydeng1998commented, Mar 22, 2021

@alaendle Thank you for your feedback, the docs have been updated with the environment variable SKIP_MODULE_IMAGE_VALIDATION option. Please let us know if you run into any other issues

@20shivangi Do you think you can close this issue? Thanks!

1reaction
F-Joachimcommented, Dec 9, 2020

Hi @alaendle,

you can set the environment variable named SKIP_MODULE_IMAGE_VALIDATION to true to skip the image validation. So far I could not find this hint in the documentation. Here is the code line that checks if a check should be performed.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Troubleshoot Azure IoT Edge common errors - Microsoft Learn
Use this article to identify and resolve common issues when using IoT Edge solutions. If you need information on how to find logs...
Read more >
Troubleshoot your IoT Edge device - Azure - Microsoft Learn
If you experience issues running Azure IoT Edge in your environment, use this article as a guide for troubleshooting and diagnostics.
Read more >
Common issues and resolutions for Azure IoT Edge for Linux ...
Use this article to help resolve common issues that can occur when deploying IoT Edge for Linux on Windows solutions.
Read more >
Azure IoT Edge fails to start module from private repo
Hello @Omar-7550,. you are deploying a deployment manifest to an Azure IoT Edge device. This deployment manifest describes (among other things) ...
Read more >
Troubleshooting Azure IoT Hub error codes | Microsoft Learn
Some devices may experience a time drift issue when the device time has a greater than five minute difference from the server. This...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found