iisnode icon indicating copy to clipboard operation
iisnode copied to clipboard

HTTP Error 500.1002 - Internal Server Error

Open icyice80 opened this issue 11 years ago • 13 comments

I am trying to host prerender which is a node.js app inside IIS on my windows server 2008 Enterprise R2. Prerender runs fine via the command line. if I try to host it with IISNode. I keep getting the error below:

Application has thrown an uncaught exception and is terminated: Error: write ENOTSUP - cannot write to IPC channel. at errnoException (child_process.js:1001:11) at ChildProcess.target.send (child_process.js:465:16) at Worker.send (cluster.js:406:21) at sendInternalMessage (cluster.js:399:10) at handleResponse (cluster.js:177:5) at respond (cluster.js:192:5) at Object.messageHandler.queryServer (cluster.js:247:5) at handleMessage (cluster.js:197:32) at ChildProcess.emit (events.js:117:20) at handleMessage (child_process.js:322:10)

On the Windows Task Manager, I could see node.exe started then disappeared.

Any ideas would be greatly appreciated as I am out of clues now.

Thank you.

Bing

icyice80 avatar Oct 13 '14 22:10 icyice80

could you please paste your web.config and the main script file if possible?

rramachand21-zz avatar Oct 14 '14 04:10 rramachand21-zz

Hi

Here is the config: iisnode

The main script I use is https://github.com/prerender/prerender/blob/master/server.js

Please let me know if you need anything else.

Cheers

Bing

icyice80 avatar Oct 14 '14 17:10 icyice80

I have same issue with Prerender and IIS 8.5. I tried with iisnode tag and without this in web.config. My web.config is similar to icyice80 but I have put "server.js" in path attribute,

Sample applications from Node.js runs flawlessly, chrome debug included.

tokp avatar Oct 22 '14 14:10 tokp

Same issue on Azure websites, trying to run pencilblue cms

juanfranblanco avatar Feb 09 '15 13:02 juanfranblanco

I'm having the same issue as @icyice80 trying to run prerender with iisnode. Apparently, iisnode doesn't support cluster which is what prerender uses internally.

tysonnero avatar Apr 08 '15 21:04 tysonnero

any news on this issue??

rauluranga avatar Aug 18 '15 17:08 rauluranga

iisnode does not support cluster which prerender uses internally as @tysonnero mentioned above. Cluster does not support named pipes on windows which is the main issue here.

rramachand21-zz avatar Aug 18 '15 18:08 rramachand21-zz

add node to the application settings on Azure. this helps at least for the azure problem image

Same issue on Azure websites, trying to run pencilblue [cms]

IronMania avatar Nov 21 '17 12:11 IronMania

same issue here any news?

TomasKatz avatar Nov 22 '17 13:11 TomasKatz

I had this same issue. The problem for me was that the account that the application pool was running under did not have write access to the filesystem where the IIS node logs were being written. I changed the identity to the System account and it worked.

allens01 avatar Mar 28 '18 09:03 allens01

I had the same problem. It was caused by not enough rights of the application pool user, when the package "win-ca" was used.

As a temporary solution, instead of using "win-ca" we disabled checking of the local certificates.

yarick123 avatar Nov 26 '18 09:11 yarick123

Hi, how did you do this exactly? @allens01

kierandrewett avatar Feb 06 '19 18:02 kierandrewett

@EnderDev I did that in the Advanced Settings of the application pool, I set the identity to LocalSystem. image

This is not necessary the best solution as some companies might raise this as a security concern as the app has higher rights than required. Alternatively, if you app pool is running under the context of a service account, you can try giving that account rights to the directory where the IIS node logs are written?

allens01 avatar Feb 08 '19 08:02 allens01