0

尝试在 azure 上运行 rail.js 节点应用程序时出现 iisnode 错误 500。不幸的是,LogFiles/nodejs 和 wwwroot/server.js.logs 中的日志文件中没有任何内容

这是回复

iisnode encountered an error when processing the request.

HRESULT: 0x2
HTTP status: 500
HTTP reason: Internal Server Error
You are receiving this HTTP 200 response because system.webServer/iisnode/@devErrorsEnabled configuration setting is 'true'.

In addition to the log of stdout and stderr of the node.exe process, consider using debugging and ETW traces to further diagnose the problem.

The node.exe process has not written any information to the stdout or stderr.

该应用程序在本地运行良好,我还可以将 vanilla hello world 节点应用程序(不是 rail.js 应用程序)部署到 Azure。如何获得有关错误的更多信息,无论如何我可以看到控制台输出?

4

1 回答 1

0

重启确实解决了这个问题。看起来它可能与您用于会话缓存的机制有关,因为默认值与在多个实例下运行不兼容。

要打开日志记录,请确保您在 iisnode.yml 文件中有 loggingEnabled: true,然后您应该能够下载日志

于 2012-09-07T20:59:08.847 回答