openshift-cartridge-nodejs
openshift-cartridge-nodejs copied to clipboard
Constant error during push - Failed to execute: 'control stop'
Hello,
I am constantly receiving below error during "git push". If i retry i succeed on one gear but it again failed on second gear and my repo changes are not synced. I tried increasing time in bin/control script from 60 to 120 but that didnt help. Interestingly, when i do rhc app-stop <appName>it stops the application well. Do you have any suggestion or recommendation? I have nodejs on 2 gears which are load balanced using haproxy.
remote: An error occurred executing 'gear prereceive' (exit code: 1) remote: Error message: CLIENT_ERROR: Failed to execute: 'control stop' for /var/lib/openshift/[...]/nodejs
Thanks!
I am curious how you are starting and stopped your application. Could you publish that info here?
Gocho Mugo, Forfuture LLC
-----Original Message----- From: "learningfun1234" [email protected] Sent: 8/8/2016 19:26 To: "icflorescu/openshift-cartridge-nodejs" [email protected] Subject: [icflorescu/openshift-cartridge-nodejs] Constant error during push -Failed to execute: 'control stop' (#63)
Hello, I am constantly receiving below error during "git push". If i retry i succeed on one gear but it again failed on second gear and my repo changes are not synced. I tried increasing time in bin/control script from 60 to 120 but that didnt help. Interestingly, when i do rhc app-stop it stops the application well. Do you have any suggestion or recommendation? I have nodejs on 2 gears which are load balanced using haproxy. remote: An error occurred executing 'gear prereceive' (exit code: 1) remote: Error message: CLIENT_ERROR: Failed to execute: 'control stop' for /var/lib/openshift/[...]/nodejs Thanks! — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.
"git push" fails with the error mentioned on the previous post. Stop command that works - "rhc app-stop node1" Start command that works - "rhc app-start node1" Re-start command that fails - "rhc app-restart node1"
Outputs: ===STOPPING=== D:\tools>rhc app-stop node1 Stopping Node.js application... Stopping Node.js application...
RESULT: node1 stopped
===STARTING=== D:\tools>rhc app-start node1 Starting Node.js application... Starting Node.js application...
RESULT: node1 started
===RESTARTING=== D:\tools>rhc app-restart node1 A gear restart did not complete on 1 gear. Please try again and contact support if the issue persists.
Thanks!
Hi I'm also consistently getting an error about not being able to stop the nodejs app after doing a 'git push':
remote: CLIENT_MESSAGE: Stopping Node.js application... remote: CLIENT_RESULT: Warning! Could not stop Node.js application! remote: An error occurred executing 'gear prereceive' (exit code: 1) remote: Error message: CLIENT_ERROR: Failed to execute: 'control stop' for /var/lib/openshift/xxx/nodejs remote: remote: For more details about the problem, try running the command again with the '--trace' option. To ssh://[email protected]/~/git/cubbycraft.git/ ! [remote rejected] master -> master (pre-receive hook declined) error: failed to push some refs to 'ssh://[email protected]/~/git/xxx.git/'
It's not a show stopper because I can stop it with rhc stop-app, but it would be nice if this worked. Thanks