V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
推荐学习书目
Learn Python the Hard Way
Python Sites
PyPI - Python Package Index
http://diveintopython.org/toc/index.html
Pocoo
值得关注的项目
PyPy
Celery
Jinja2
Read the Docs
gevent
pyenv
virtualenv
Stackless Python
Beautiful Soup
结巴中文分词
Green Unicorn
Sentry
Shovel
Pyflakes
pytest
Python 编程
pep8 Checker
Styles
PEP 8
Google Python Style Guide
Code Style from The Hitchhiker's Guide
wxy148616
V2EX  ›  Python

uWSGI worker 3 screams: UAAAAAAH my master disconnected: i will kill myself !

  •  
  •   wxy148616 · 2019-03-29 17:00:12 +08:00 · 2807 次点击
    这是一个创建于 2069 天前的主题,其中的信息可能已经有所发展或是发生改变。

    自己写了个 Django 项目,部署以后一会儿就出现这个情况,不知不觉就挂了,实在找不到原因啊,有没有大佬给指点一下?

    日志信息:

    *** uWSGI is running in multiple interpreter mode ***
    gracefully (RE)spawned uWSGI master process (pid: 1738)
    spawned uWSGI worker 1 (pid: 2499, cores: 1)
    spawned uWSGI worker 2 (pid: 2500, cores: 1)
    spawned uWSGI worker 3 (pid: 2501, cores: 1)
    spawned uWSGI worker 4 (pid: 2502, cores: 1)
    WSGI app 0 (mountpoint='') ready in 2 seconds on interpreter 0x1627770 pid: 2502 (default app)
    WSGI app 0 (mountpoint='') ready in 3 seconds on interpreter 0x1627770 pid: 2500 (default app)
    WSGI app 0 (mountpoint='') ready in 2 seconds on interpreter 0x1627770 pid: 2499 (default app)
    WSGI app 0 (mountpoint='') ready in 3 seconds on interpreter 0x1627770 pid: 2501 (default app)
    Fri Mar 29 07:12:44 2019 - uWSGI worker 3 screams: UAAAAAAH my master disconnected: i will kill myself !!!
    

    uwsgi.ini 文件:

    [uwsgi]
    socket=:9000
    chdir=/root/python/salary/salary_pro
    module=salary_pro.wsgi
    master=true
    processes=4
    vacuum=true
    lazy-apps=true
    

    启动命令:

    nohup uwsgi --ini uwsgi.ini &
    
    第 1 条附言  ·  2019-04-01 13:29:55 +08:00

    uwsgi.log日志信息

    ...brutally killing workers...
    Gracefully killing worker 2 (pid: 2778)...
    Gracefully killing worker 1 (pid: 2777)...
    Gracefully killing worker 3 (pid: 2779)...
    Gracefully killing worker 4 (pid: 2780)...
    worker 1 buried after 1 seconds
    worker 2 buried after 1 seconds
    worker 3 buried after 1 seconds
    worker 4 buried after 1 seconds
    binary reloading uWSGI...
    
    5 条回复    2020-12-08 11:05:24 +08:00
    Stlin
        1
    Stlin  
       2019-03-29 17:09:04 +08:00
    uwsgi 写入日志

    ```
    daemonize = /project/logs/uwsgi.log
    ```

    然后再去看看
    superZzr
        2
    superZzr  
       2019-03-29 17:29:04 +08:00
    虽然没用过 ,但是这个日志 莫名的萌啊
    wxy148616
        3
    wxy148616  
    OP
       2019-03-29 18:22:34 +08:00
    @Stlin 谢谢,我先去试试
    Latin
        4
    Latin  
       2019-03-29 18:45:34 +08:00
    kill 自己,哈哈哈
    luofan004
        5
    luofan004  
       2020-12-08 11:05:24 +08:00
    解决了么?
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   3510 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 21ms · UTC 04:50 · PVG 12:50 · LAX 20:50 · JFK 23:50
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.