无法启动/停止openshift应用程序 [英] Can't start/stop openshift application
问题描述
我在openshift上有一个突然停止运行的应用程序.
使用了以下墨盒:
I have an application on openshift which has suddenly stopped running.
The following cartridges are used :
- Mysql
- Cron
- Nodejs
有关应用程序崩溃的唯一信息是来自nodejs.log的以下信息:
The only information about the crash of the app is the following from nodejs.log :
DEBUG: Sending SIGTERM to child...
现在,当我尝试rhc启动/停止/重新启动应用程序时,我收到以下消息:
Now, when I try to rhc start / stop / restart the app, I got the following messages :
Failed to execute: 'control stop' for /var/lib/openshift/<username>/nodejs
Failed to execute: 'control stop' for /var/lib/openshift/<username>/cron
Failed to execute: 'control stop' for /var/lib/openshift/<username>/mysql
我可以在应用程序中通过ssh手动启动应用程序并执行
I can manually start the app by ssh in the app and executing
./mysql/bin/control start
./nodejs/bin/control start
./cron/bin/control start
为什么无法自动重启应用程序?
Why can't the app be automatically restarted ?
推荐答案
对我有用的解决方案-尽管很奇怪-一天后尝试.
Solution that worked for me - as weird as it is - try a day later.
昨天遇到了同样的问题-重新启动或git push均未起作用.尝试从快照还原,强制停止和手动启动均无济于事.如今,它可以立即开始工作.我只能猜测OpenShift上的某些cron作业已将其修复.
Had the same problem yesterday - neither restarting nor git pushes were working. Tried restoring from snapshot, forcing stop and manual starts to no avail. And today it works straight off. I can only guess that some cron-jobs on OpenShift fixed it.
这篇关于无法启动/停止openshift应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!