1

私は何年もの間 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 Web サイトにあるはずのログ システムと関係があります。 ?

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

Azure クラウド Web サイト インスタンス内のリソースを指しているはずがありません。

Azure SDK の誰でも、このエラーを解消する方法を教えてもらえますか?

何ヶ月も前に尋ねたところ、今では修正されていると思っていましたが、再び戻ってきました...非常にイライラするマイクロソフト...

この問題につながる他の質問:

Webmatrix 2 の破損Windows Azure Node.js 内部サーバー エラー

私の 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 に設定すると、エラーは発生せず、サイトは正常に動作しますが、オンにするとすべてが無効になります!

4

1 に答える 1

0

https://github.com/windowsazure/iisnodeで問題を報告していただけますか?

これは IISNode のログに問題があるようですね。問題の詳細については、こちらでお手伝いできる場合があります。

アンドレ

于 2013-07-18T13:54:30.253 に答える