簡體   English   中英

errno32 LDAP Django管道損壞

[英]Broken pipe errno32 LDAP Django

我目前正在嘗試將我學校的LDAP與Django構建的網站一起使用。 但是我遇到了一個我無法解決的錯誤。

當我使用學校的網絡時,LDAP登錄可以在localhost上完美運行。 但是,當我使用校外網絡時,登錄無法正常工作,即使我第一次運行manage.py時創建的管理員登錄也無法正常工作。

每次我嘗試登錄時,終端顯示以下錯誤:

Traceback (most recent call last):
  File "/Users/Me/anaconda/lib/python2.7/wsgiref/handlers.py", line 86, in run
    self.finish_response()
  File "/Users/Me/anaconda/lib/python2.7/wsgiref/handlers.py", line 128, in finish_response
    self.write(data)
  File "/Users/Me/anaconda/lib/python2.7/wsgiref/handlers.py", line 212, in write
    self.send_headers()
  File "/Users/Me/anaconda/lib/python2.7/wsgiref/handlers.py", line 270, in send_headers
    self.send_preamble()
  File "/Users/Me/anaconda/lib/python2.7/wsgiref/handlers.py", line 194, in send_preamble
    'Date: %s\r\n' % format_date_time(time.time())
  File "/Users/Me/anaconda/lib/python2.7/socket.py", line 324, in write
    self.flush()
  File "/Users/Me/anaconda/lib/python2.7/socket.py", line 303, in flush
    self._sock.sendall(view[write_offset:write_offset+buffer_size])
error: [Errno 32] Broken pipe
[28/Jan/2014 11:18:43] "POST /admin/ HTTP/1.1" 500 59
----------------------------------------
Exception happened during processing of request from ('127.0.0.1', 60538)
Traceback (most recent call last):
  File "/Users/Me/anaconda/lib/python2.7/SocketServer.py", line 593, in process_request_thread
    self.finish_request(request, client_address)
  File "/Users/Me/anaconda/lib/python2.7/SocketServer.py", line 334, in finish_request
    self.RequestHandlerClass(request, client_address, self)
  File "/Users/Me/anaconda/lib/python2.7/site-packages/django/core/servers/basehttp.py", line 150, in __init__
    super(WSGIRequestHandler, self).__init__(*args, **kwargs)
  File "/Users/Me/anaconda/lib/python2.7/SocketServer.py", line 651, in __init__
    self.finish()
  File "/Users/Me/anaconda/lib/python2.7/SocketServer.py", line 710, in finish
    self.wfile.close()
  File "/Users/Me/anaconda/lib/python2.7/socket.py", line 279, in close
    self.flush()
  File "/Users/Me/anaconda/lib/python2.7/socket.py", line 303, in flush
    self._sock.sendall(view[write_offset:write_offset+buffer_size])
error: [Errno 32] Broken pipe
----------------------------------------

非常感謝您的幫助 !

這是Django devserver的問題(您正在使用它運行網站,完全不建議將其用於生產網站)。

有關更多詳細信息,請參見此票證

根據許多消息來源,“斷管”是正常的瀏覽器怪癖。 例如,瀏覽器從套接字讀取,然后確定所讀取的圖像顯然沒有改變。 瀏覽器現在(強制)關閉連接,因為它不需要更多數據。 現在,此套接字的另一端(python運行服務器)引發套接字異常,告訴程序客戶端“中斷套接字管道”。

簡短的答案是:忽略此錯誤,因為它是已知錯誤並且不會得到解決。

還有一個SO線程正在談論這個問題。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM