2014年2月19日 星期三

[openshift] Git Post-Receive Result: failure / openshfit scale rsync: connection unexpectedly closed


Counting objects: 5, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (2/2), done.
Writing objects: 100% (3/3), 255 bytes, done.
Total 3 (delta 1), reused 0 (delta 0)
remote: Stopping PHP 5.3 cartridge (Apache+mod_php)
remote: Stopping Cron cartridge
remote: CLIENT_RESULT: cron scheduling service is already disabled for gear 52d34cdc5973ca612e00003a
remote: Syncing git content to other proxy gears
remote: Building git ref 'master', commit f04ae12
remote: Checking deplist.txt for PEAR dependency..
remote: Preparing build for deployment
remote: Deployment id is b2d4b2e0
remote: Distributing deployment to child gears
remote: -------------------------
remote: Git Post-Receive Result: failure
remote: Distribution status: failure
remote: Distribution failed for the following gears:
remote: 52fd4b8fe0b8cdea410000ef (rsync: connection unexpectedly closed (0 bytes received so far) [sender])
remote: Deployment completed with status: failure
remote: postreceive failed
To ssh://52d34cdc5973ca612e00003a@php-xxx.rhcloud.com/~/git/php.git/
   e5fc173..f04ae12  master -> master
Branch master set up to track remote branch master from origin.

今天發現 openshift 的gear 沒有起來,在 git add . / git commit -m / git push 後
有上面error

remote: Git Post-Receive Result: failure

scale out 好像有用到另外一個 instance 52fd4b8fe0b8cdea410000ef 可是,並沒有把build好的 code sync過去。

先進到web console把,scale的功能關掉。


Counting objects: 5, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (2/2), done.
Writing objects: 100% (3/3), 254 bytes, done.
Total 3 (delta 1), reused 0 (delta 0)
remote: Stopping PHP 5.3 cartridge (Apache+mod_php)
remote: Stopping Cron cartridge
remote: CLIENT_RESULT: cron scheduling service is already disabled for gear 52d34cdc5973ca612e00003a
remote: Syncing git content to other proxy gears
remote: Building git ref 'master', commit b578ee1
remote: Checking deplist.txt for PEAR dependency..
remote: Preparing build for deployment
remote: Deployment id is 881fa405
remote: Activating deployment
remote: Starting Cron cartridge
remote: HAProxy already running
remote: HAProxy instance is started
remote:
remote: Database schema not yet added, WordPress is ready for install by visiting the site.
remote: Starting PHP 5.3 cartridge (Apache+mod_php)
^@remote: -------------------------
remote: Git Post-Receive Result: success
remote: Activation status: success
remote: Deployment completed with status: success
To ssh://52d34cdc5973ca612e00003a@php-xxx.rhcloud.com/~/git/php.git/
   f04ae12..b578ee1  master -> master

Branch master set up to track remote branch master from origin.

如此就build 成功了。

ref:
Deploying and Building Applications | OpenShift by Red Hat
https://www.openshift.com/developers/deploying-and-building-applications
OpenShift Environment Variables | OpenShift by Red Hat
https://www.openshift.com/page/openshift-environment-variables




沒有留言:

張貼留言