请稍等 ...
×

采纳答案成功!

向帮助你的同学说点啥吧!感谢那些助人为乐的人

访问 127.0.0.1/xadmin 出现 [Errno 10060]

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

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

正在回答

2回答

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

1 回复 有任何疑惑可以回复我~
  • 提问者 foxxx #1
    老师这个问题: 只会在xadmin 第一次登陆会出现这个问题, xadmin的登陆和我们自己写的登陆不是走的同一个登陆逻辑吗?
    回复 有任何疑惑可以回复我~ 2018-06-21 17:45:26
提问者 foxxx 2018-06-21 18:08:56

就是在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 回复 有任何疑惑可以回复我~
  • bobby #1
    这个问题你不用管,我这里也会偶尔出现 不会影响系统,应该和操作系统有关,linux下我没有遇到过这个问题
    回复 有任何疑惑可以回复我~ 2018-06-23 17:47:04
  • 提问者 foxxx 回复 bobby #2
    好吧,放linux上没问题~谢谢老师啦
    回复 有任何疑惑可以回复我~ 2018-06-24 18:18:42
问题已解决,确定采纳
还有疑问,暂不采纳
意见反馈 帮助中心 APP下载
官方微信