访问 127.0.0.1/xadmin 出现 [Errno 10060]

来源:5-5 xadmin全局配置

foxxx

2018-06-19

第一次启动, 访问xadmin,后台多出[Errno 10060]  这么一条错误, 等个将近一分钟才会显示xadmin页面, 以后访问就没问题了.

只要重启服务就会出现一次.

写回答

2回答

bobby

2018-06-21

这个可以不用管 后期部署通过nginx+uwsgi启动 只要现在能访问就行了

1
1
foxxx
老师这个问题: 只会在xadmin 第一次登陆会出现这个问题, xadmin的登陆和我们自己写的登陆不是走的同一个登陆逻辑吗?
2018-06-21
共1条回复

foxxx

提问者

2018-06-21

就是在xadmin第一次登陆会出现, 有时候是这个错误,但是10060 一定出现

Traceback (most recent call last):

  File "d:\python2.7\Lib\wsgiref\handlers.py", line 86, in run

    self.finish_response()

  File "d:\python2.7\Lib\wsgiref\handlers.py", line 128, in finish_response

    self.write(data)

  File "d:\python2.7\Lib\wsgiref\handlers.py", line 212, in write

    self.send_headers()

  File "d:\python2.7\Lib\wsgiref\handlers.py", line 270, in send_headers

    self.send_preamble()

  File "d:\python2.7\Lib\wsgiref\handlers.py", line 194, in send_preamble

    'Date: %s\r\n' % format_date_time(time.time())

  File "d:\python2.7\Lib\socket.py", line 328, in write

    self.flush()

  File "d:\python2.7\Lib\socket.py", line 307, in flush

    self._sock.sendall(view[write_offset:write_offset+buffer_size])

error: [Errno 10053]

[21/Jun/2018 18:06:43] "GET /xadmin/ HTTP/1.1" 500 59

----------------------------------------

Exception happened during processing of request from ('127.0.0.1', 3047)

Traceback (most recent call last):

  File "d:\python2.7\Lib\SocketServer.py", line 596, in process_request_thread

    self.finish_request(request, client_address)

  File "d:\python2.7\Lib\SocketServer.py", line 331, in finish_request

    self.RequestHandlerClass(request, client_address, self)

  File "C:\Users\sqian\Envs\mxonline\lib\site-packages\django\core\servers\basehttp.py", line 99, in __init__

    super(WSGIRequestHandler, self).__init__(*args, **kwargs)

  File "d:\python2.7\Lib\SocketServer.py", line 654, in __init__

    self.finish()

  File "d:\python2.7\Lib\SocketServer.py", line 713, in finish

    self.wfile.close()

  File "d:\python2.7\Lib\socket.py", line 283, in close

    self.flush()

  File "d:\python2.7\Lib\socket.py", line 307, in flush

    self._sock.sendall(view[write_offset:write_offset+buffer_size])

error: [Errno 10053]

----------------------------------------

[Errno 10060]


0
2
foxxx
回复
bobby
好吧,放linux上没问题~谢谢老师啦
2018-06-24
共2条回复

Python3.6+django+xadmin,打造在线教育平台

【毕设】Python 2.7到3.6 完美适配,Django升级2.0

3677 学习 · 4038 问题

查看课程