Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

v0.8.0 on Windows cannot run applications from a UNC share #3578

Closed
tjanczuk opened this issue Jun 28, 2012 · 3 comments
Closed

v0.8.0 on Windows cannot run applications from a UNC share #3578

tjanczuk opened this issue Jun 28, 2012 · 3 comments
Labels

Comments

@tjanczuk
Copy link

OS: Windows Server 2008 R2
Node: v0.8.0

Node.js v0.8.0 cannot run applications that reside on a UNC share. The same problem applies to resolving modules that reside on a UNC share through require.

Repro:

c:
mkdir \repro
cd \repro
echo console.log('Success'); > server.js
net share uncrepro=c:\repro /grant:Everyone,Read
node \\%COMPUTERNAME%\uncrepro\server.js

Expected:

Success

Actual:

fs.js:520
  return binding.lstat(pathModule._makeLong(path));
                 ^
Error: ENOENT, no such file or directory 'c:\TJANCZUK-HP'
    at Object.fs.lstatSync (fs.js:520:18)
    at Object.realpathSync (fs.js:1025:21)
    at tryFile (module.js:142:15)
    at Function.Module._findPath (module.js:181:18)
    at Function.Module._resolveFilename (module.js:336:25)
    at Function.Module._load (module.js:280:25)
    at Module.runMain (module.js:487:10)
    at process.startup.processNextTick.process._tickCallback (node.js:244:9)

(where TJANCZUK-HP is your machine name, same as %COMPUTERNAME%).

The actual scenario I am trying to achieve is running node.js applications from a location in the file system that is a symlink to an UNC location. It appears that the inability to run apps from UNC paths is preventing this, but once that issue is addressed, it would be good to validate that there are no additional issues in the "symlink to UNC path" scenario.

@piscisaureus
Copy link

This should have been fixed in 0cdeb8e and joyent/libuv@4a88b3b4 . However it would be great if you could test the latest version on the 0.8 branch and see if it fixes your problems.

@piscisaureus
Copy link

And as our new msft contact, you're also welcome to review joyent/libuv@4a88b3b :-)

@tjanczuk
Copy link
Author

Thanks Bert, I confirmed this fixes the issue for us.

When does v0.8.1 ship?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants