1
我有一個坐在nginx前端後面的Python龍捲風服務器。每隔一段時間,但不是每一次,我都會得到一個502錯誤。我看在nginx的訪問日誌,我看到:如何調試HTTP 502錯誤?
127.0.0.1 - - [02/Jun/2010:18:04:02 -0400] "POST /a/question/updates HTTP/1.1" 502 173 "http://localhost/tagged/python" "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.3) Gecko/20100401 Firefox/3.6.3"
,並在錯誤日誌中:
2010/06/02 18:04:02 [error] 14033#0: *1700 connect() failed (111: Connection refused)
while connecting to upstream, client: 127.0.0.1, server: _,
request: "POST /a/question/updates HTTP/1.1",
upstream: "http://127.0.0.1:8888/a/question/updates", host: "localhost", referrer: "http://localhost/tagged/python"
我不認爲任何中的錯誤日誌龍捲風顯示。你將如何去調試呢?有什麼我可以放在Tornado或nginx配置來幫助調試嗎?
大多數人會發現,這是nginx無法驗證上游頭文件(含內容的201)時的結果,或者記錄瞭如此多的錯誤(Notices)以至於打破了4k錯誤緩衝區。 – ppostma1 2014-01-09 16:56:26