gunicorn启动报错gunicorn.errors.HaltServer
启动gunicorn报错:
# gunicorn -b :9008 -w 2 webserver:app
2013-12-10 09:12:58 [29701] [INFO] Starting gunicorn 0.14.3
2013-12-10 09:12:58 [29701] [INFO] Listening at: http://0.0.0.0:9008 (29701)
2013-12-10 09:12:58 [29701] [INFO] Using worker: sync
2013-12-10 09:12:58 [29704] [INFO] Booting worker with pid: 29704
2013-12-10 09:12:58 [29705] [INFO] Booting worker with pid: 29705
2013-12-10 09:12:58 [29704] [INFO] Worker exiting (pid: 29704)
2013-12-10 09:12:58 [29705] [INFO] Worker exiting (pid: 29705)
Traceback (most recent call last):
File "/root/.virtualenvs/py268/bin/gunicorn", line 8, in <module>
load_entry_point('gunicorn==0.14.3', 'console_scripts', 'gunicorn')()
File "/root/.virtualenvs/py268/lib/python2.6/site-packages/gunicorn/app/wsgiapp.py", line 32, in run
WSGIApplication("%prog [OPTIONS] APP_MODULE").run()
File "/root/.virtualenvs/py268/lib/python2.6/site-packages/gunicorn/app/base.py", line 129, in run
Arbiter(self).run()
File "/root/.virtualenvs/py268/lib/python2.6/site-packages/gunicorn/arbiter.py", line 184, in run
self.halt(reason=inst.reason, exit_status=inst.exit_status)
File "/root/.virtualenvs/py268/lib/python2.6/site-packages/gunicorn/arbiter.py", line 279, in halt
self.stop()
File "/root/.virtualenvs/py268/lib/python2.6/site-packages/gunicorn/arbiter.py", line 327, in stop
self.reap_workers()
File "/root/.virtualenvs/py268/lib/python2.6/site-packages/gunicorn/arbiter.py", line 413, in reap_workers
raise HaltServer(reason, self.WORKER_BOOT_ERROR)
gunicorn.errors.HaltServer: <HaltServer 'Worker failed to boot.' 3>
解决:
使用debug模式查看更多信息--log-level=debug:
gunicorn -b :9008 -w 2 webserver:app --log-level=debug
发现是import error
添加pythonpath以及import的资源目录添加__init__.py文件使之成为一个package即可
export PYTHONPATH=/home/..
gunicorn启动报错gunicorn.errors.HaltServer的更多相关文章
- mlflow ui 启动报错No such file or directory: 'gunicorn': 'gunicorn'
1.mlflow ui 启动报错,信息如下: [root@localhost mlflow]# mlflow ui /usr/local/python3/lib/python3./importlib/ ...
- Oracle启动报错ORA-03113解决
环境:RHEL6.4 + Oracle 11.2.0.4 步骤摘要:1.启动报错ORA-031132.查看alert日志查找原因3.根据实际情况采取合理的措施,这里我们先增加闪回区大小,把库启动起来4 ...
- undo丢失恢复异常恢复,运维DBA反映Oracle数据库无法启动报错ORA-01157 ORA-01110,分析原因为Oracle数据库坏块导致
本文转自 惜纷飞 大师. 模拟基表事务未提交数据库crash,undo丢失恢复异常恢复,运维DBA反映Oracle数据库无法启动报错ORA-01157 ORA-01110,分析原因为Oracle数据库 ...
- Linux下Tomcat项目启动报错
Linux下Tomcat项目启动报错 org.springframework.beans.factory.CannotLoadBeanClassException: Error loading cla ...
- 转 : Apache启动报错:could not bind to address [::]:443 解决办法
转:Apache启动报错:could not bind to address [::]:443 解决办法 安装Apache服务器的时候,报如下错误: Installing the 'apache' s ...
- tomcat启动报错,找不到相应的 queue,从而引发内存泄漏
tomcat启动报错,无法创建 bean listenerStatusChangeDealHandler, no queue 'STOCK.NOTIFY_CHANGE.INTER.CACHE.QUEU ...
- 使用CXF+Spring发布WebService,启动报错
使用CXF+Spring发布WebService,启动报错,日志如下: 五月 12, 2017 9:01:37 下午 org.apache.tomcat.util.digester.SetProper ...
- 【报错】spring整合activeMQ,pom.xml文件缺架包,启动报错:Caused by: java.lang.ClassNotFoundException: org.apache.xbean.spring.context.v2.XBeanNamespaceHandler
spring版本:4.3.13 ActiveMq版本:5.15 ======================================================== spring整合act ...
- Tomcat启动报错org.springframework.web.context.ContextLoaderListener类配置错误——SHH框架
SHH框架工程,Tomcat启动报错org.springframework.web.context.ContextLoaderListener类配置错误 1.查看配置文件web.xml中是否配置.or ...
随机推荐
- (转) ASP.NET反射
原文:http://www.cnblogs.com/zizo/p/3509895.html 两个现实中的例子:1.B超:大家体检的时候大概都做过B超吧,B超可以透过肚皮探测到你内脏的生理情况.这是如何 ...
- 如何恢复oracle中已删除的表
在9i中Oracle引入了flashback的概念,可以将数据返回到某个时间点,但对于诸如drop/truncate等DDL语句却尚不支持.进入Oracle10g,这一缺陷得到了弥补.可以将丢失掉的表 ...
- iOS开发——生成二维码——工具类
啥也不说,直接上源码,拷过去就能用.生成二维码的工具类使用方法在ProduceQRCode.h里有示例说明 分别将下面的ProduceQRCode.h和ProduceQRCode.m对应的代码考到自己 ...
- HDU 4628 Pieces(DP + 状态压缩)
Pieces 题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=4628 题目大意:给定一个字符串s,如果子序列中有回文,可以一步删除掉它,求把整个序列删除 ...
- How to change Visual Studio default environment setting
如何改变 Visual Studio 的默认环境设置: 1. 工具栏 Tools --> Import and Export Settings... 2. 选择 Reset All Settin ...
- CSS Masking(翻译)
原文地址:http://www.html5rocks.com/en/tutorials/masking/adobe/ 关于计算机图形,两种常见的操作是:cliping(裁剪) and masking ...
- .net闭包的应用
这里体现出闭包的数据共享 , , , , , , , , , }; ; ; values.ToList().ForEach(s => result1 += s); values.ToList() ...
- python 访问php程序,实现定时
#!/usr/bin/python #test2.py import sys import urllib2 j = True jj = 1##########用于统计,所以分页, url = 'htt ...
- mysql中 出现No query specified
Mysql----error:no query specified mysql下抛出错误: error:no query specified 出现此错误是sql不合法原因: 如:select * fr ...
- jQuery DataTables 插件使用笔记
初始化 在页面中 <!DOCTYPE html> <html> <head> <link rel="stylesheet" type=&q ...