Can't start/stop openshift application

懵懂的女人 提交于 2019-12-12 17:27:41

问题


I have an application on openshift which has suddenly stopped running.
The following cartridges are used :

  • Mysql
  • Cron
  • Nodejs

The only information about the crash of the app is the following from nodejs.log :

 DEBUG: Sending SIGTERM to child...

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

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 ?


回答1:


Solution that worked for me - as weird as it is - try a day later.

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.




回答2:


Try 'rhc app-force-stop "app"'. Then restart the app. I don't know what the root cause of your problem is tho. Check your disk quota and or a memory leak.



来源:https://stackoverflow.com/questions/25377576/cant-start-stop-openshift-application

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!