无法使用Azure SDK for Node.js进行调试

时间:2013-03-26 03:22:02

标签: node.js azure sdk

我对Azure SDK感到非常沮丧,因为我一直在使用它,并且出现了向日志文件输出错误的问题:

Application has thrown an uncaught exception and is terminated:
Error: ENOENT, no such file or directory 'C:\DWASFiles\Sites\pazooza\VirtualDirectory0\site\wwwroot\iisnode\RD00155D4313F9-20848-stdout-Tue Mar 26 2013 03:10:56 GMT+0000 (GMT Standard Time).txt'
    at Object.openSync (fs.js:240:18)
    at Object.writeFileSync (fs.js:628:15)
    at SyncWriteStream.<anonymous> (D:\Program Files (x86)\iisnode\interceptor.js:181:20)
    at Object.<anonymous> (console.js:25:18)
    at IncomingMessage.<anonymous> (C:\DWASFiles\Sites\pazooza\VirtualDirectory0\site\wwwroot\utils\facebook.js:69:21)
    at IncomingMessage.emit (events.js:88:20)
    at HTTPParser.parserOnMessageComplete [as onMessageComplete] (http.js:130:23)
    at CleartextStream.socketOnData [as ondata] (http.js:1288:20)
    at CleartextStream._push (tls.js:375:27)
    at SecurePair.cycle (tls.js:734:20)

如您所见,因为fs对象试图找到c:驱动器上的内容而发生错误,指向本地计算机的c:驱动器与假定为的日志系统有什么关系Azure网站?

和D:\ Program Files(x86)\ iisnode \ interceptor.js

什么是不应该指向Azure云网站实例中的资源?

Azure SDK中的任何人都可以告诉我如何使此错误消失。

我几个月前和几个月前就问过这个问题,我们认为我们现在已经把它修好了......非常令人沮丧的微软......你们这样做是为了让我们的生活更轻松吗?

我在这里的其他问题导致了这个问题:

Webmatrix 2 brokenWindows Azure Node.js Internal Server Error

我的node.js web.config文件如下所示:

<configuration>
     <system.webServer>
          <handlers>
               <!-- indicates that the server.js file is a node.js application to be handled by the iisnode module -->
               <add name="iisnode" path="server.js" verb="*" modules="iisnode"/>
          </handlers>
          <rewrite>
               <rules>
                    <!-- Don't interfere with requests for node-inspector debugging -->
                    <rule name="NodeInspector" patternSyntax="ECMAScript" stopProcessing="true">                    
                        <match url="^server.js\/debug[\/]?" />
                    </rule>

                    <!-- First we consider whether the incoming URL matches a physical file in the /public folder -->
                    <rule name="StaticContent">
                         <action type="Rewrite" url="public{{REQUEST_URI}}"/>
                    </rule>

                    <!-- All other URLs are mapped to the Node.js application entry point -->
                    <rule name="DynamicContent">
                         <conditions>
                              <add input="{{REQUEST_FILENAME}}" matchType="IsFile" negate="True"/>
                         </conditions>
                         <action type="Rewrite" url="server.js"/>
                    </rule>

               </rules>
          </rewrite>
          <!-- You can control how Node is hosted within IIS using the following options  -->
          <iisnode
            loggingEnabled="true"
            devErrorsEnabled="true"
         />
     </system.webServer>
</configuration>

当我设置logginEnabled =“true”时,有关为什么会出现此错误的任何帮助或建议,我们将不胜感激。

当我将loggingEnabled设置为false时没有错误并且网站运行正常,但是当它打开时,一切都会消失!

1 个答案:

答案 0 :(得分:0)

您可以在https://github.com/windowsazure/iisnode下提出问题吗?

听起来这是IISNode日志记录的问题?我们可以帮助您了解有关该问题的更多详细信息。

安德烈