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.

ENOENT when accessing WORKLOADURI with Node.js module on Windows containers

See original GitHub issue

I’m attempting to use Node.js modules using Windows as the underlying host operating system.

I’ve successfully booted the module under the IoT Edge environment, but now I have an issue where I get the following error when running Client.fromEnvironment:

Error: connect ENOENT /C:/ProgramData/iotedge/workload/sock
    at PipeConnectWrap.afterConnect [as oncomplete] (net.js:1191:14)

I noticed that there’s a forward slash at the beginning of the path and that is probably part of the problem.

Expected Behavior

Client.fromEnvironment should work without any issues.

Current Behavior

Client.fromEnvironment throws an exception:

Error: connect ENOENT /C:/ProgramData/iotedge/workload/sock
    at PipeConnectWrap.afterConnect [as oncomplete] (net.js:1191:14)

Steps to Reproduce

  1. Run the example Node.js module solution create by the Azure IoT Edge Visual Studio Code extension under a Windows machine.
  2. Get the error showing up under “iotedge logs <module>”.

Context (Environment)

Device (Host) Operating System

Windows 10 Enterprise 1809

Architecture

windows-amd64

Container Operating System

Windows containers

Runtime Versions

iotedged

1.0.6.1

Edge Agent

1.0

Edge Hub

1.0

Docker

Client: Docker Engine - Community Version: 18.09.2 API version: 1.39 Go version: go1.10.8 Git commit: 6247962 Built: Sun Feb 10 04:12:31 2019 OS/Arch: windows/amd64 Experimental: false

Server: Docker Engine - Community Engine: Version: 18.09.2 API version: 1.39 (minimum version 1.24) Go version: go1.10.6 Git commit: 6247962 Built: Sun Feb 10 04:28:48 2019 OS/Arch: windows/amd64 Experimental: false

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
Griffrezcommented, Mar 6, 2019

Sounds good to me.

0reactions
avranjucommented, Mar 6, 2019

This should work once support for Unix Domain Sockets lands in the Node.js SDK on Windows. Do you think its OK to close this issue here and continue tracking this on the Node SDK repo?

Read more comments on GitHub >

github_iconTop Results From Across the Web

lack of support for unix domain sockets (affects module on ...
I'm attempting to use Node.js modules using Windows as the underlying host operating system. I've used the example generated by Azure IoT Edge ......
Read more >
Not able to deploy Node JS Module on windows container
I am able to create and pull image of IoT edge node js module from azure container registry but not run under windows...
Read more >
Common errors
The error Error: ENOENT, stat 'C:\Users\<user>\AppData\Roaming\npm' on Windows 7 is a consequence of joyent/node#8141, and is an issue with the Node ...
Read more >
Newbie in Docker. Getting "Error: Cannot find module ' ...
Hi. I am following a docker tutorial. We are building a small project where we create a small node js app, wrap it...
Read more >
Introduction to Docker for Javascript Developers (feat Node ...
A Docker image is a set of instructions for how to create a container. If you are familiar with web development, think of...
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