Plone应用程序在启动时立即崩溃如何获得有用的错误输出?

2024-04-29 01:32:56 发布

您现在位置:Python中文网/ 问答频道 /正文

我安装了Plone,向我的buildout.cfg添加了一些包,并成功地运行了bin/buildout。但是,现在,当我运行bin/instance restart时,它立即崩溃,没有错误输出:

$ bin/instance restart
. 
daemon process restarted, pid=29508
$ ps aux | grep 29508
ubuntu   29626  0.0  0.0  12944   928 pts/0    S+   11:52   0:00 grep --color=auto 29508
$ ps aux | grep plone
ubuntu   29743  0.0  0.0  12944   984 pts/0    S+   11:53   0:00 grep --color=auto plone

var/log/instance.log中除了一个指示服务器启动的条目外,没有其他内容:

------
2018-02-08T11:53:24 INFO ZServer HTTP server started at Thu Feb  8 11:53:24 2018
    Hostname: 0.0.0.0
    Port: 8080

我怎样才能找出车祸的原因?你知道吗


Tags: instancelogautobinubuntuplonebuildoutcfg
1条回答
网友
1楼 · 发布于 2024-04-29 01:32:56

不要运行bin/instance restart,而是使用:

bin/instance fg

它在前台的debug mode中运行Plone,而不是通过Supervisor以生产模式运行Plone。你知道吗

然后,您可能会看到一条错误消息并对崩溃进行回溯(希望暗示缺少依赖项或其他容易解决的问题)。你知道吗

相关问题 更多 >