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
muzzy
V2EX  ›  Python

uwsgi 服务启动问题

  •  1
     
  •   muzzy · 2015-11-13 17:50:17 +08:00 · 3934 次点击
    这是一个创建于 3079 天前的主题,其中的信息可能已经有所发展或是发生改变。
    在启动 uwsgi9090.service 的时候报错,错误内容如下
    -- Logs begin at Wed 2015-11-11 04:19:10 CST, end at Fri 2015-11-13 17:43:54 CST. --
    Nov 13 17:42:24 iZ28bhugodhZ uwsgi[13369]: *** Operational MODE: preforking ***
    Nov 13 17:42:24 iZ28bhugodhZ uwsgi[13369]: added ../ to pythonpath.
    Nov 13 17:42:25 iZ28bhugodhZ uwsgi[13369]: WSGI app 0 (mountpoint='') ready in 1 seconds on interpreter 0x16391a0 pid: 13369 (defaul
    Nov 13 17:42:25 iZ28bhugodhZ uwsgi[13369]: *** uWSGI is running in multiple interpreter mode ***
    Nov 13 17:42:25 iZ28bhugodhZ uwsgi[13369]: spawned uWSGI worker 1 (pid: 13369, cores: 1)
    Nov 13 17:42:25 iZ28bhugodhZ uwsgi[13369]: spawned uWSGI worker 2 (pid: 13371, cores: 1)
    Nov 13 17:43:54 iZ28bhugodhZ systemd[1]: uwsgi9090.service operation timed out. Terminating.
    Nov 13 17:43:54 iZ28bhugodhZ systemd[1]: uwsgi9090.service: control process exited, code=exited status=30
    Nov 13 17:43:54 iZ28bhugodhZ systemd[1]: Failed to start uwsgi9090.

    有没有哪位知道原因
    6 条回复    2015-11-18 09:22:40 +08:00
    fatelei
        1
    fatelei  
       2015-11-13 18:45:02 +08:00
    你有试过,直接启动程序看会不会报错吗?
    muzzy
        2
    muzzy  
    OP
       2015-11-13 21:05:50 +08:00
    @fatelei 直接启动服务是不报错的,给它加到服务里启动就会报错
    lix
        3
    lix  
       2015-11-13 22:49:47 +08:00
    启动参数是什么? app 的路径改成全路径试试
    billlee
        4
    billlee  
       2015-11-14 01:05:41 +08:00
    你的 uwsgi9090.service 中的 Type 用的是什么?
    dingyaguang117
        5
    dingyaguang117  
       2015-11-15 10:05:31 +08:00 via iPhone
    看到了../这种相对路径,直觉觉得有问题
    fatelei
        6
    fatelei  
       2015-11-18 09:22:40 +08:00
    @muzzy 把完整的启动命令发出来看下
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   1396 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 28ms · UTC 23:48 · PVG 07:48 · LAX 16:48 · JFK 19:48
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.