Chad Campbell
Chad Campbell

Reputation: 937

Azure IoT Edge Service Not Starting

I am trying to work with IoT Edge. To create an Iot Edge Device for development purposes, I'm following the instructions provided here. I can successfully get to the line that says Start-Service iotedge. Unfortunately, the "iotedge" Windows Service will not start.

I can see the "iotedge" Windows Service in the Service management console. When I manually click "Start", I receive the following message after a couple of seconds:

The iotedge service on Local Computer started and then stopped. Some services stop automatically if they are not in use by other services or programs.

When I look in the Event Viewer, I see the following Error in the Application Windows logs:

The description for Event ID 1 from source iotedged cannot be found. Either the component that raises this event is not installed on your local computer or the installation is corrupted. You can install or repair the component on the local computer. If the event originated on another computer, the display information had to be saved with the event. The following information was included with the event: iotedged::windows -- Error while running service. Quitting.

I'm running Windows 10 Enterprise, Version 1803 in a Boot Camp partition.

On this same partition, I've tried running Azure IoT Edge on Virtual Machines in Hyper-V running:

In both cases, the "iotedge" Windows Service fails to start.

I've also have a Virtual Machine hosted on Azure that's running Windows Server 2016 Datacenter in a Standard DS1 v2 (1 vcpus, 3.5 GB memory) instance. I'm unable to get the iotedge Windows Service to run there.

Does the iotedge Windows Service run in a virtualized environment? Even if it doesn't the service should work in the Window 10 Enterprise environment which is an actual partition. What am I missing?

Thank you.

Upvotes: 0

Views: 1748

Answers (2)

Damon Barry
Damon Barry

Reputation: 261

One reason the service would start and then stop is if something isn't right in the config.yaml file. Did you complete the steps in the configure section of the how-to guide? You need the device connection string, the edge device's hostname, "connect" and "listen" URLs for management and workload APIs, and moby runtime info. IoT Edge does run in a virtualized Windows environment--that's how it gets tested in the team's internal build infrastructure.

Upvotes: 2

Engin Polat
Engin Polat

Reputation: 51

In the EventViewer message, I noticed "The description for Event ID 1 from source iotedged cannot be found..."

Should it be iotedge?

By any chance did you make a typo when you create IoT Edge service?

Upvotes: 0

Related Questions