使用gunicorn运行python flask应用程序。当我在本地启动docker映像时,一切都很好,但是当我使用kubernetes在azure上运行docker映像时,出现此OSError。该请求很好,但是在日志中出现错误。
现在有人在发生什么吗?
10.242.0.1 - - [31/Jul/2018:15:11:04 +0000] "GET /api/evaluation HTTP/1.1" 200 14343 "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.99 Safari/537.36"
[2018-07-31 15:11:05 +0000] [10] [ERROR] Socket error processing request.
Traceback (most recent call last):
File "/usr/local/lib/python3.6/site-packages/gunicorn/workers/sync.py", line 134, in handle
req = six.next(parser)
File "/usr/local/lib/python3.6/site-packages/gunicorn/http/parser.py", line 41, in __next__
self.mesg = self.mesg_class(self.cfg, self.unreader, self.req_count)
File "/usr/local/lib/python3.6/site-packages/gunicorn/http/message.py", line 181, in __init__
super(Request, self).__init__(cfg, unreader)
File "/usr/local/lib/python3.6/site-packages/gunicorn/http/message.py", line 54, in __init__
unused = self.parse(self.unreader)
File "/usr/local/lib/python3.6/site-packages/gunicorn/http/message.py", …
Run Code Online (Sandbox Code Playgroud) I can't remove docker images on azure, and I have run out of storage space.
I login to
$ ssh -i nopass.pem -fNL LOCAL_PORT:localhost:REMOTE_PORT -p 2200 [USERNAME]@[DNSPREFIX]mgmt.[REGION].cloudapp.azure.com
Run Code Online (Sandbox Code Playgroud)
and then I can see a bunch of images with
$ docker -H 127.0.0.1:22375 images
REPOSITORY TAG IMAGE ID CREATED SIZE
whatever.azurecr.io/whatnot 2018_01_08_12_0db3a68 7c3ea6fa5131 6 weeks ago 1.38GB
whatever.azurecr.io/whatnot 2018_01_08_11_8978ed3 e168b18d0057 6 weeks ago 1.38GB
whatever.azurecr.io/whatnot 2018_01_04_11_4147403 2ad5bc1170d0 6 weeks ago 1.39GB
whatever.azurecr.io/whatnot 2018_01_02_12_785ec5e 0e8d0954009b 7 weeks ago 1.39GB
whatever.azurecr.io/whatnot 2018_01_02_11_785ec5e f8f33d1350c9 7 …
Run Code Online (Sandbox Code Playgroud)