Azure / iotedgehubdev

IoT Edge Hub Dev Tool
Other
88 stars 31 forks source link

Build and Run IoT Edge Solution in Simulator fails on LODS VM environment #281

Closed darenm closed 3 years ago

darenm commented 4 years ago

When attempting to build a custom IoT Edge c# module using the VS Code IoTEdge extension within the Learning On Demand (LODS) virtual environment, the command fails with the following error message:

Error

"/mnt/c/Users/Admin/.vscode/extensions/vsciot-vscode.azure-iot-edge-1.22.0/iotedgehubdev/0.14.1/iotedgehubdev" setup -c "HostName=iot-az220-training-dm20200803.azure-devices.net;DeviceId=SimulatedDevice;SharedAccessKey=<removed-key>=" -i "HostName=iot-az220-training-dm20200803.azure-devices.net;SharedAccessKeyName=iothubowner;SharedAccessKey=<removed-key>"
authority@SEA-DEV:/mnt/c/Users/Admin/Documents/EdgeSolution$ "/mnt/c/Users/Admin/.vscode/extensions/vsciot-vscode.azure-iot-edge-1.22.0/iotedgehubdev/0.14.1/iotedgehubdev" setup -c "HostName=iot-az220-training-dm20200803.azure-devices.net;DeviceId=SimulatedDevice;SharedAccessKey=<removed-key>" -i "HostName=iot-az220-training-dm20200803.azure-devices.net;SharedAccessKeyName=iothubowner;SharedAccessKey=<removed-key>"
bash: /mnt/c/Users/Admin/.vscode/extensions/vsciot-vscode.azure-iot-edge-1.22.0/iotedgehubdev/0.14.1/iotedgehubdev: No such file or directory
authority@SEA-DEV:/mnt/c/Users/Admin/Documents/EdgeSolution$

The LODS VM has the following installed:

The Lab Instructions that are being followed are documented at: https://microsoftlearning.github.io/AZ-220-Microsoft-Azure-IoT-Developer/Instructions/Labs/LAB_AK_13-deploy-and-debug-custom-azure-iot-edge-module.html#exercise-1-verify-lab-prerequisites

darenm commented 4 years ago

I executed the lab in an ExpressLabs virtual environment and the command executed OK - I noticed that in this environment the iotedgehubdev command is executed using PowerShell rather than bash. The environment has different versions of Python and Docker:

SLdragon commented 4 years ago

same with the issue here: https://github.com/microsoft/vscode-azure-iot-edge/issues/556

konichi3 commented 3 years ago

microsoft/vscode-azure-iot-edge#556 is closed. Closing