Closed Chubacca73 closed 4 years ago
Hi @Chubacca73 do you setup iotedgehubdev before running it? Please try command "Azure IoT Edge: Setup IoT Edge Simulator" in vscode first. And then "Build and Run IoT Edge in Simulator" again?
I have the same problem, i installed the lateste VSCode update and this problem started ERROR: for edgeHubDev Cannot start service edgeHubDev: driver failed programming external connectivity on endpoint edgeHubDev (ddbfab2553be625cb5cd58314367b7bdb5cb7ac407fbd66a4eff9fb006af88a2): Error starting userland proxy: mkdir /port/tcp:0.0.0.0:8883:tcp:172.21.0.2:8883: input/output error ERROR: Encountered errors while bringing up the project. ERROR: Error: Error while executing command: docker-compose -f C:\ProgramData\iotedgehubdev\data\data\docker-compose.yml up. Command '['docker-compose', '-f', 'C:\ProgramData\iotedgehubdev\data\data\docker-compose.yml', 'up']' returned non-zero exit status 1.
I have the same problem, i installed the lateste VSCode update and this problem started ERROR: for edgeHubDev Cannot start service edgeHubDev: driver failed programming external connectivity on endpoint edgeHubDev (ddbfab2553be625cb5cd58314367b7bdb5cb7ac407fbd66a4eff9fb006af88a2): Error starting userland proxy: mkdir /port/tcp:0.0.0.0:8883:tcp:172.21.0.2:8883: input/output error ERROR: Encountered errors while bringing up the project. ERROR: Error: Error while executing command: docker-compose -f C:\ProgramData\iotedgehubdev\data\data\docker-compose.yml up. Command '['docker-compose', '-f', 'C:\ProgramData\iotedgehubdev\data\data\docker-compose.yml', 'up']' returned non-zero exit status 1.
i did a restart of docker and everyhing was ok again.
Hi. Thank you for your feedback. Followed your advice. The behaviour remains similar as initially reported. Following for further suggestions. best regards!
@Chubacca73 can you give more info about the language used in your solution and also the container os type? Currently there is an issue in edgeHub realted to proxy. https://github.com/Azure/iotedge/issues/688 and it may related to your scenario.
Besides, to configure the proxy. You need add http_proxy env for edgeHub in deployment manifest "edgeHub": { "type": "docker", "settings": { "image": "mcr.microsoft.com/azureiotedge-hub:1.0", "createOptions": "" }, "env": { "https_proxy": { "value": "https://proxy.example.com:3128" } }, "status": "running", "restartPolicy": "always" }
The reference to config proxy for edge runtime could be found at https://docs.microsoft.com/en-us/azure/iot-edge/how-to-configure-proxy-support
Well as far as I get it the deplyoment manifest for the edgeHub is only used if the project is started via "Build and Run IoT Edge Solution in Simulator" where everything works as expected; but if the edgeHub is started via "Start IoT Edge Hub Simulator for Single Module" there is no way to inject the environment variables for https_proxy & upstreamprotocol!?
@alaendle thanks for the suggestion. Customizing edgeHub options when starting in single module is in our plan (https://github.com/Azure/iotedgehubdev/issues/105). Please stay tuned.
Already added this feature
Following the guide "debug-in-attach-mode-with-iot-edge-simulator-c-nodejs-java-azure-functions" to setup a development encironemnt for IotEdge devices in Visual Studio Code the following error occures after clicking on deployment.debugtemplate.json and select "Build and Run IoTEdge in Simulator.
As the development environment is behind a corporate proxy we assume that the issue is related. For other tools such as docker or nuget, pip or similar we can set a proxy environement variable but we do not konw if this is possible for the iotedgehubdev as well.