问题
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