V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
推荐关注
Meteor
JSLint - a JavaScript code quality tool
jsFiddle
D3.js
WebStorm
推荐书目
JavaScript 权威指南第 5 版
Closure: The Definitive Guide
bilibala
V2EX  ›  JavaScript

js 文件只加载了一部分

  •  
  •   bilibala · 2015-11-13 10:45:31 +08:00 · 3447 次点击
    这是一个创建于 3292 天前的主题,其中的信息可能已经有所发展或是发生改变。

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

    3 条回复    2015-11-13 16:09:01 +08:00
    zivfun
        1
    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
        2
    zivfun  
       2015-11-13 11:10:03 +08:00
    自己去查
    bilibala
        3
    bilibala  
    OP
       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 就解决了
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   899 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 70ms · UTC 20:27 · PVG 04:27 · LAX 12:27 · JFK 15:27
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.