Plone 应用程序在启动时立即崩溃 - 如何获得有用的错误输出?
Plone app crashes immediately on launch - how to get useful error output?
我安装了 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
如何找出导致崩溃的原因?
而不是 运行 bin/instance restart
,使用:
bin/instance fg
这会在前台 debug mode 中运行 Plone,而不是通过 Supervisor 在生产模式下运行。
然后您可能会看到崩溃的错误消息和回溯(希望暗示缺少依赖项或其他容易解决的问题)。
我安装了 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
如何找出导致崩溃的原因?
而不是 运行 bin/instance restart
,使用:
bin/instance fg
这会在前台 debug mode 中运行 Plone,而不是通过 Supervisor 在生产模式下运行。
然后您可能会看到崩溃的错误消息和回溯(希望暗示缺少依赖项或其他容易解决的问题)。