[英]Can only start bottle server from command line?
Have a bottle simple bottle server that starts fine if we use command line如果我们使用命令行,有一个简单的瓶子服务器可以正常启动
a@abc:~/work/scripts>python BServer.py
Bottle v0.12.18 server starting up (using WSGIRefServer())...
Listening on http://xxx.xxx.xxx.xxx:8088/
Hit Ctrl-C to quit.
But when that is executed from another process that restart system everyday, bottle server seems to fail and keep failing on但是,当从另一个每天重新启动系统的进程执行该操作时,bottle server 似乎失败并继续失败
run(host=xxx.xxx.xxx.xxx, port=8088)
I suspect it can a missing import or not correct permission on the import but still havent manages to pin point the exact root cause.我怀疑它可能缺少导入或不正确的导入权限,但仍然没有设法找出确切的根本原因。 Any ideias what can be causing it?
任何想法可能是什么原因造成的? or how i can dump bottle log to a file?
或者我如何将瓶子日志转储到文件中?
Thank you.谢谢你。
In case it helps.万一有帮助。 Found python was failing on subsequent runs, because they were started by another user ).
发现 python 在后续运行中失败,因为它们是由另一个用户启动的)。 Script had this line:
脚本有这一行:
import os
os.environ['HOME']
Home was not define resulting in crash. Home 未定义导致崩溃。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.