Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Constant error during push - Failed to execute: 'control stop' #63

Open
learningfun1234 opened this issue Aug 8, 2016 · 3 comments
Open

Comments

@learningfun1234
Copy link

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!

@GochoMugo
Copy link
Contributor

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" notifications@github.com
Sent: ‎8/‎8/‎2016 19:26
To: "icflorescu/openshift-cartridge-nodejs" openshift-cartridge-nodejs@noreply.github.com
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.

@learningfun1234
Copy link
Author

learningfun1234 commented Aug 9, 2016

"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!

@richpixel
Copy link

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://xx@xxx.rhcloud.com//git/cubbycraft.git/
! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'ssh://xxx@xxx.rhcloud.com/
/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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants