node.js - The system cannot find the file specified.

Repository of web frameworks and applications for Microsoft IIS.
User avatar
Posts: 22
Joined: 24 Jun 2012, 04:16

node.js - The system cannot find the file specified.

31 Jul 2012, 06:57

Hello,

what can cause this error:

Code: Select all
Windows error
The system cannot find the file specified. (ERROR CODE: 2)
Internal module error

message: Can't connect to a child process.
type: ZooException
file: NamedPipeTransportEx.cpp
line: 69
version: 1.0.0.47


? I've just installed node.js empty project locally on my desktop computer to test if it will run and I'm getting mentioned error.

Regards

User avatar
Posts: 1264
Joined: 07 Mar 2012, 10:16

Re: node.js - The system cannot find the file specified.

31 Jul 2012, 09:33

Hello,

Please, specify the following:

1. What version of Helicon Zoo are you using?
2. IS it IIS or IIS Express?
3. Have you managed to install node.js? where is it? did you get node.exe? can you run in from command line?
4. Where has the app been deployed? Do you have server.js in it? Did you manage to install all other modules in node_modules folder?
5. Does the second request get the same error?

Regards
Andrew

User avatar
Posts: 402
Joined: 06 Mar 2012, 11:59

Re: node.js - The system cannot find the file specified.

31 Jul 2012, 12:58

Please send the whole error text, including STDERR, etc. Hit "Expand all" and copy text here.

User avatar
Posts: 22
Joined: 24 Jun 2012, 04:16

Re: node.js - The system cannot find the file specified.

31 Jul 2012, 14:02

Full error:

Code: Select all
Windows error
The system cannot find the file specified. (ERROR CODE: 2)
Internal module error

message: Can't connect to a child process.
type: ZooException
file: NamedPipeTransportEx.cpp
line: 69
version: 1.0.0.47

STDERR

PeekNamedPipe

Environment variables
ALLUSERSPROFILE   C:\ProgramData
AMDAPPSDKROOT   C:\Program Files (x86)\AMD APPAPPDATA   C:\Windows\system32\config\systemprofile\AppData\Roaming
APPL_PHYSICAL_PATH   C:\ProjektyASP\PHP\test\nodejs
APPL_VIRTUAL_PATH   /nodejs
APP_POOL_CONFIG   C:\inetpub\temp\apppools\nodejs\nodejs.config
APP_POOL_ID   nodejs
APP_WORKER   C:\ProjektyASP\PHP\test\nodejs\server.js
COMPUTERNAME   GRZEGORZ-PC
ComSpec   C:\Windows\system32\cmd.exe
CommonProgramFiles   C:\Program Files\Common Files
CommonProgramFiles(x86)   C:\Program Files (x86)\Common Files
CommonProgramW6432   C:\Program Files\Common Files
DEPLOY_FILE   deploy.js
DEPLOY_LOG   log\deploy.log
FP_NO_HOST_CHECK   NO
HOST   127.0.0.1
LOCALAPPDATA   C:\Windows\system32\config\systemprofile\AppData\Local
NODE_PATH   C:\ProjektyASP\PHP\test\nodejs\node_modules
NUMBER_OF_PROCESSORS   4
OPENSSL_CONF   C:\Progarmy\OpenSSL-Win32\bin\openssl.cfg
OS   Windows_NT
PATHEXT   .COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC;.RB;.RBW
PORT   \\.\pipe\zoo_pipe_e5b6e734-508d-4c6b-9964-fd5d94e0d1fe
PROCESSOR_ARCHITECTURE   AMD64
PROCESSOR_IDENTIFIER   Intel64 Family 6 Model 37 Stepping 5, GenuineIntel
PROCESSOR_LEVEL   6
PROCESSOR_REVISION   2505
PSModulePath   C:\Windows\system32\WindowsPowerShell\v1.0\ModulesPUBLIC   C:\Users\Public
Path   C:\Program Files (x86)\AMD APP\bin\x86_64;C:\Program Files (x86)\AMD APP\bin\x86;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files\Common Files\Microsoft Shared\Windows Live;C:\Program Files (x86)\Common Files\Microsoft Shared\Windows Live;C:\Program Files (x86)\VMware\VMware vSphere CLI\Perl\site\bin;C:\Program Files (x86)\VMware\VMware vSphere CLI\Perl\bin;%SystemRoot%;%SystemRoot%\system32;c:\Ruby19\bin;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Microsoft ASP.NET\ASP.NET Web Pages\v1.0\;C:\Program Files (x86)\Windows Live\Shared;C:\Program Files (x86)\ATI Technologies\ATI.ACE\Core-Static;C:\strawberry\c\bin;C:\strawberry\perl\site\bin;C:\strawberry\perl\bin;C:\Program Files (x86)\Microsoft SQL Server\100\Tools\Binn\;C:\Program Files\Microsoft SQL Server\100\Tools\Binn\;C:\Program Files\Microsoft SQL Server\100\DTS\Binn\;C:\Program Files (x86)\Microsoft SQL Server\100\Tools\Binn\VSShell\Common7\IDE\;C:\Program Files (x86)\Microsoft Visual Studio 9.0\Common7\IDE\PrivateAssemblies\;C:\Program Files (x86)\Microsoft SQL Server\100\DTS\Binn\;C:\Program Files (x86)\Calibre2\;C:\Program Files\TortoiseHg\;C:\Program Files (x86)\Pinnacle\Shared Files\;C:\Program Files (x86)\QuickTime Alternative\QTSystem;C:\Program Files\TortoiseSVN\bin;C:\ProjektyASP\Webio\Subversion\bin;C:\Program Files\Microsoft\Web Platform Installer\;C:\Program Files (x86)\nodejsProgramData   C:\ProgramData
ProgramFiles   C:\Program Files
ProgramFiles(x86)   C:\Program Files (x86)
ProgramW6432   C:\Program Files
SystemDrive   C:
SystemRoot   C:\Windows
TEMP   C:\Windows\TEMP
TERM   dumb
TMP   C:\Windows\TEMP
USERDOMAIN   WORKGROUP
USERNAME   GRZEGORZ-PC$
USERPROFILE   C:\Windows\system32\config\systemprofile
VS100COMNTOOLS   C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\ToolsWATCH_FILE_CHANGES_MASK   *.js
windir   C:\Windows
Helicon Zoo engine settings
appName    nodejs.project
appFullPath    C:\Program Files (x86)\nodejs\node.exe
appDirectory    C:\ProjektyASP\PHP\test\nodejs
appArguments    "C:\ProjektyASP\PHP\test\nodejs\server.js"
transportName    NamedPipe
protocol    http
scriptProcessor    nodejs.http
errorLogDir    
postBufferDir    
watchFileChangesMask    *.js
host    127.0.0.1
port    \\.\pipe\zoo_pipe_e5b6e734-508d-4c6b-9964-fd5d94e0d1fe
proxyPath    
minInstances    1
maxInstances    4
minRequestsPerWorker    3
maxRequestsPerWorker    15
portLower    49152
portUpper    65535
workerRequestTimeout    30
timeLimit    0
postBuffer    1024
memoryLimit    0
gracefulShutdownTimeout    0
Web.config variables
APPL_PHYSICAL_PATH   C:\ProjektyASP\PHP\test\nodejs
APPL_VIRTUAL_PATH   /nodejs
APP_WORKER   C:\ProjektyASP\PHP\test\nodejs\server.js
DEPLOY_FILE   deploy.js
DEPLOY_LOG   log\deploy.log
HOST   127.0.0.1
NODE_PATH   C:\ProjektyASP\PHP\test\nodejs\node_modules
PORT   \\.\pipe\zoo_pipe_e5b6e734-508d-4c6b-9964-fd5d94e0d1fe
WATCH_FILE_CHANGES_MASK   *.js

User avatar
Posts: 1264
Joined: 07 Mar 2012, 10:16

Re: node.js - The system cannot find the file specified.

01 Aug 2012, 05:55

Please, use cmd and the following commands, and provide the result you get:

Code: Select all
cd C:\ProjektyASP\PHP\test\nodejs
"C:\Program Files (x86)\nodejs\node.exe" "C:\ProjektyASP\PHP\test\nodejs\server.js"


Regards
Andrew

User avatar
Posts: 22
Joined: 24 Jun 2012, 04:16

Re: node.js - The system cannot find the file specified.

01 Aug 2012, 07:06

Code: Select all
module.js:340
    throw err;
          ^
Error: Cannot find module 'express'
    at Function.Module._resolveFilename (module.js:338:15)
    at Function.Module._load (module.js:280:25)
    at Module.require (module.js:362:17)
    at require (module.js:378:17)
    at Object.<anonymous> (C:\ProjektyASP\PHP\test\nodejs\server.js:1:77)
    at Module._compile (module.js:449:26)
    at Object.Module._extensions..js (module.js:467:10)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:312:12)
    at Module.runMain (module.js:487:10)


App located in nodejs virtual directory is sample app which can be downloaded using WPI (Node.js project). server.js file contains:

Code: Select all
var express = require('express');
var app = module.exports = express.createServer();
app.get('/:url?', function(req, res){
    res.send('<html><head><title>Hello from node.js!</title><link href="styles/style.css" rel="stylesheet" type="text/css" /></head><body><h1>Hello from node.js!</h1></body></html>');
});
app.listen(process.env.PORT);


App is being runned on normal IIS7 server (Windows7).

EDIT: Node.js was installed also using WPI.

User avatar
Posts: 1264
Joined: 07 Mar 2012, 10:16

Re: node.js - The system cannot find the file specified.

01 Aug 2012, 10:04

1. is there a folder named node_modules in the project's folder?
2. what do you have in this folder?
3. if you don't have this folder, please, check permissions for nodejs folder. Permissions to write need to be granted for User that runs pool
4. The commands from console for starting deploy-script are: (seems like it didin't start and didn't install express)
Code: Select all
cd C:\ProjektyASP\PHP\test\nodejs
deploy.cmd


Regards
Andrew

User avatar
Posts: 22
Joined: 24 Jun 2012, 04:16

Re: node.js - The system cannot find the file specified.

01 Aug 2012, 10:30

Does this folder should be created by node.js or it should come with node.js project downloaded from WPI?

User avatar
Posts: 402
Joined: 06 Mar 2012, 11:59

Re: node.js - The system cannot find the file specified.

01 Aug 2012, 12:45

Currently the folder is created by node.js so it needs write permissions to install required modules.

User avatar
Posts: 22
Joined: 24 Jun 2012, 04:16

Re: node.js - The system cannot find the file specified.

02 Aug 2012, 04:27

Hello,

I was testing it on my local windows, I've even added everyone to full permissions for this folder but this has not changed anything. Today I've also installed Helicon Zoo on my production server with node.js support and I'm getting the same error.

Code: Select all
module.js:340
    throw err;
          ^
Error: Cannot find module 'express'
    at Function.Module._resolveFilename (module.js:338:15)
    at Function.Module._load (module.js:280:25)
    at Module.require (module.js:362:17)
    at require (module.js:378:17)
    at Object.<anonymous> (PATH\wwwroot\server.js:1:77)
    at Module._compile (module.js:449:26)
    at Object.Module._extensions..js (module.js:467:10)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:312:12)
    at Module.runMain (module.js:487:10)


EDIT: Permissions are set up by WebsitePanel. Dedicated app pool has dedicated user with proper permissions to created wwwroot folder.

User avatar
Posts: 1264
Joined: 07 Mar 2012, 10:16

Re: node.js - The system cannot find the file specified.

02 Aug 2012, 05:36

Unfortunately we can not suggest anything until you provide us with the information we requested:

1. is there a folder named node_modules in the project's folder?
2. what do you have in this folder?
3. if you don't have this folder, please, check permissions for nodejs folder. Permissions to write need to be granted for User that runs pool
4. The commands from console for starting deploy-script are: (seems like it didin't start and didn't install express)

Code: Select all
cd C:\ProjektyASP\PHP\test\nodejs
deploy.cmd


Regards
Andrew

User avatar
Posts: 3
Joined: 17 Aug 2012, 06:23

Re: node.js - The system cannot find the file specified.

17 Aug 2012, 06:34

I have a site set up in IIS 5 that is running an ASP site. When i try to view a page for this site i get this error in the browser and nothing else "The system cannot find the file specified". Even if i try to view an html page it throws the same error. I've gone through everything to try and find out what possibly could be missing and everything seems to be there that needs to be. Anyone have any insight or have any theories as to what could be causing this?

User avatar
Posts: 22
Joined: 24 Jun 2012, 04:16

Re: node.js - The system cannot find the file specified.

17 Aug 2012, 07:03

I think you should ask your question on IIS 5/6 forums:

http://forums.iis.net/default.aspx?GroupID=40

Return to Helicon Zoo

Who is online

Users browsing this forum: No registered users and 6 guests