【问题标题】:An error occurred executing 'gear postreceive' on openshift在 openshift 上执行“gear postreceive”时发生错误
【发布时间】:2015-07-10 19:02:38
【问题描述】:

我今天在我的 openshift 应用上启用了 Jenkins。我登录了 jenkins url,但没有更改任何配置设置。今天晚些时候我试图$ git push我的网站的新版本。但我收到以下错误:

$ git push origin
Counting objects: 17, done.
Delta compression using up to 8 threads.
Compressing objects: 100% (9/9), done.
Writing objects: 100% (9/9), 917 bytes | 0 bytes/s, done.
Total 9 (delta 7), reused 0 (delta 0)
remote: Executing Jenkins build.
remote: 
remote: You can track your build at https://jenkins-namespace.rhcloud.com/job/app-build
remote: 
remote: Waiting for build to schedule......
remote: **BUILD FAILED/CANCELLED**
remote: Please see the Jenkins log for more details via 'rhc tail'
remote: !!!!!!!!
remote: Deployment Halted!
remote: If the build failed before the deploy step, your previous
remote: build is still running.  Otherwise, your application may be
remote: partially deployed or inaccessible.
remote: Fix the build and try again.
remote: !!!!!!!!
remote: An error occurred executing 'gear postreceive' (exit code: 1)
remote: Error message: CLIENT_ERROR: Failed to execute: 'control post-receive' for /var/lib/openshift/52UUID/jenkins-client
remote: 
remote: For more details about the problem, try running the command again with the '--trace' option.
To ssh://52UUID@app-namespace.rhcloud.com/~/git/app.git/
   6a9fe46..a551871  master -> master

所以我跑了$rhc tail jenkins

Jul 10, 2015 2:43:45 PM hudson.plugins.openshift.OpenShiftCloud hasCapacity
INFO: No capacity remaining.  Not provisioning...
Jul 10, 2015 2:43:45 PM hudson.plugins.openshift.OpenShiftCloud provisionSlave
INFO: Not provisioning new builder due to lack of capacity
Jul 10, 2015 2:43:45 PM hudson.plugins.openshift.OpenShiftCloud provision
INFO: Provisioned 0 new nodes
Jul 10, 2015 2:43:45 PM hudson.plugins.openshift.OpenShiftCloud cancelItem
INFO: Cancelling Item 
Jul 10, 2015 2:43:45 PM hudson.plugins.openshift.OpenShiftCloud cancelItem
WARNING: Build app-build appbldr has been canceled

所以我想我的能力不足。所以我检查$ rhc show-app app --gears quota

 Gear                     Cartridges                                            Used Limit
------------------------ --------------------------------------------------- ------ -----
52UUID python-2.7 postgresql-9.2 cron-1.4 jenkins-client-1 0.9 GB  1 GB

1GB 中的 0.9GB。我已经删除了日志并运行了 rhc tidy 命令。我最新的数据库备份有 14MB(两天前,虽然还没有测试它是否已满),我的应用程序有 35MB 的文件、图像、js 库等。
我不想在这里处理容量问题,而是 jenkins push 需要多少才能成功? 我是一名学生,我将 openshift 用于学生项目,所以我现在想避免升级。谢谢。

【问题讨论】:

    标签: jenkins openshift


    【解决方案1】:

    嗯,No capacity remaining. 表示我有 3/3 的齿轮,而不是磁盘使用率。 More info.

    【讨论】: