获取汇编脚本失败,在Redhat Openshift中生成应用程序时出错

获取汇编脚本失败,在Redhat Openshift中生成应用程序时出错,openshift,redhat,Openshift,Redhat,我是RedhatOpenShift的新手,尝试部署节点应用程序(使用angularjs+mysql)并遇到构建问题 使用openshiftconsole创建节点应用程序,并在高级选项中指向私有存储库并链接配置的机密(ssh密钥到私有存储库) 我的生成失败,出现“汇编脚本失败”。粘贴日志如下(从控制台-模糊的私钥和值) 不确定我是否缺少一些配置。谢谢你在这方面的帮助 Cloning "ssh://username@bitbucket.org/username/my-app.git" ... Com

我是Redhat
OpenShift
的新手,尝试部署节点应用程序(使用angularjs+mysql)并遇到构建问题

使用
openshift
console创建节点应用程序,并在高级选项中指向私有存储库并链接配置的机密(ssh密钥到私有存储库)

我的生成失败,出现
“汇编脚本失败”
。粘贴日志如下(从控制台-模糊的私钥和值)

不确定我是否缺少一些配置。谢谢你在这方面的帮助

Cloning "ssh://username@bitbucket.org/username/my-app.git" ...
Commit: xxxxxxxxxxxxxxxxx (Fixed readme)
Author: Name <email>
Date:   Wed Sep 6 19:50:59 2017 -0700
Pulling image "docker- 
registry.default.svc:5000/openshift/nodejs@sha256:0000000000000" ...
---> Installing application source
---> Building your Node application from source
Current git config
url.https://github.com.insteadof=git@github.com: 
url.https://.insteadof=ssh:// 
url.https://github.com.insteadof=ssh://git@github.com 
core.repositoryformatversion=0
core.filemode=true
core.bare=false
core.logallrefupdates=true
remote.origin.url=ssh://username@bitbucket.org/username/my-app.git
remote.origin.fetch=+refs/heads/*:refs/remotes/origin/*
branch.master.remote=origin
branch.master.merge=refs/heads/master
---> Installing dependencies
---> Using 'npm install -s --only=production' 
error: build error: non-zero (13) exit code from docker- 
registry.default.svc:5000/openshift/nodejs@sha256:0000000000000
克隆”ssh://username@org/username/my app.git“。。。
提交:XXXXXXXXXXXXXX(固定自述)
作者:姓名
日期:2017年9月6日星期三19:50:59-0700
拉图像“docker-
registry.default.svc:5000/openshift/nodejs@sha256:0000000000000" ...
--->安装应用程序源
--->从源代码构建节点应用程序
当前git配置
网址。https://github.com.insteadof=git@github.com:
网址。https://.insteadof=ssh:// 
网址。https://github.com.insteadof=ssh://git@github.com
core.repositoryformatversion=0
core.filemode=true
core.bare=false
core.logallrefupdates=true
remote.origin.url=ssh://username@bitbucket.org/username/my-app.git
remote.origin.fetch=+refs/heads/*:refs/remotes/origin/*
branch.master.remote=origin
branch.master.merge=refs/heads/master
--->安装依赖项
--->使用“npm安装-s--only=production”
错误:生成错误:docker的非零(13)退出代码-
registry.default.svc:5000/openshift/nodejs@sha256:0000000000000

请注意,我的源代码托管在私有存储库中,根据上面的日志,openshift似乎能够访问存储库并下载源代码。

感谢Graham的指点。我重新创建了应用程序,这次在web控制台的高级选项中选择了1GB(默认为500MB),之后我的构建工作正常

运行
oc get events
,或查看web控制台中正在监视的事件,查看是否由于内存不足而导致生成吊舱被终止。安装带有
npm
的软件包时,可能会使用过多的内存,超过512Mi默认值。如果这看起来是问题所在,请运行
oc patch bc/yourappname--patch'{“spec”:{“resources”:{“limits”:{“memory”:“1Gi”}}}}}}}}}
,然后触发新的构建。感谢Graham-非常感谢您的输入
oc get events
未返回任何已在web控制台的监视下检查过的内容。未列出任何事件。试图应用内存修补程序,但命令失败。请注意,我正在windows上运行oc
oc修补程序bc/myapp——修补程序{“spec”:{“resources”:{“limits”:{“memory”:“1Gi”}}}}}}}
服务器错误(BadRequest):json:无法将字符串解组为map[string]接口{}类型的Go值