js 文件只加载了一部分

2015-11-13 10:45:31 +08:00
 bilibala

好奇怪的问题,这个 js 文件只加载了一部分,直接拖到最后可以看到是一个不完整的 js 文件
地址: http://app-video-test.biquu.com/static/gen/admin.js

3494 次点击
所在节点    JavaScript
3 条回复
zivfun
2015-11-13 11:09:54 +08:00
<html>
<head>
<title>Internal Server Error</title>
</head>
<body>
<h1>Internal Server Error</h1>

</body>
</html>
zivfun
2015-11-13 11:10:03 +08:00
自己去查
bilibala
2015-11-13 16:09:01 +08:00
问题解决了,访问这个链接时,查看了 gunicorn 的运行日志,出现了这样的错误信息:
---------------------------------------
Traceback (most recent call last):
File "/home/run_user/.virtualenvs/product/local/lib/python2.7/site-packages/gunicorn/workers/sync.py", line 108, in handle_request
resp.write_file(respiter)
File "/home/run_user/.virtualenvs/product/local/lib/python2.7/site-packages/gunicorn/http/wsgi.py", line 333, in write_file
self.sendfile_all(fileno, self.sock.fileno(), fo_offset, nbytes)
File "/home/run_user/.virtualenvs/product/local/lib/python2.7/site-packages/gunicorn/http/wsgi.py", line 310, in sendfile_all
sent += sendfile(sockno, fileno, offset+sent, nbytes-sent)
File "/home/run_user/.virtualenvs/product/local/lib/python2.7/site-packages/gunicorn/http/_sendfile.py", line 66, in sendfile
raise OSError(e, os.strerror(e))
OSError: [Errno 11] Resource temporarily unavailable
ERROR:gunicorn.error:Error handling request
Traceback (most recent call last):
File "/home/run_user/.virtualenvs/product/local/lib/python2.7/site-packages/gunicorn/workers/sync.py", line 108, in handle_request
resp.write_file(respiter)
File "/home/run_user/.virtualenvs/product/local/lib/python2.7/site-packages/gunicorn/http/wsgi.py", line 333, in write_file
self.sendfile_all(fileno, self.sock.fileno(), fo_offset, nbytes)
File "/home/run_user/.virtualenvs/product/local/lib/python2.7/site-packages/gunicorn/http/wsgi.py", line 310, in sendfile_all
sent += sendfile(sockno, fileno, offset+sent, nbytes-sent)
File "/home/run_user/.virtualenvs/product/local/lib/python2.7/site-packages/gunicorn/http/_sendfile.py", line 66, in sendfile
raise OSError(e, os.strerror(e))
OSError: [Errno 11] Resource temporarily unavailable

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

把 gunicorn 版本升级到 19.3.0 就解决了

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/235862

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX