Openshift - 构建错误:非零(13)退出代码

时间:2018-01-10 09:32:58

标签: asp.net angularjs .net-core openshift openshift-enterprise

我正在尝试在OpenShift Container平台上构建和部署基于dotnetcore的ASP.NET应用程序(使用AngularJS)。构建操作失败,并出现以下错误:

chgrp: changing group of '/opt/app-root/src/..1981_10_01_08_47_25.068924002/.gitconfig': Operation not permitted
chgrp: changing group of '/opt/app-root/src/..1981_10_01_08_47_25.068924002/password': Operation not permitted
chgrp: changing group of '/opt/app-root/src/..1981_10_01_08_47_25.068924002/username': Operation not permitted
chgrp: changing group of '/opt/app-root/src/..1981_10_01_08_47_25.068924002': Operation not permitted
chgrp: changing group of '/opt/app-root/src/..data': Operation not permitted
chgrp: changing group of '/opt/app-root/src/.gitconfig': Operation not permitted
chgrp: changing group of '/opt/app-root/src/password': Operation not permitted
chgrp: changing group of '/opt/app-root/src/username': Operation not permitted
chmod: changing permissions of '/opt/app-root/src/..1981_10_01_08_47_25.068924002': Operation not permitted
chmod: changing permissions of '/opt/app-root/src/..1981_10_01_08_47_25.068924002/.gitconfig': Operation not permitted
chmod: changing permissions of '/opt/app-root/src/..1981_10_01_08_47_25.068924002/password': Operation not permitted
chmod: changing permissions of '/opt/app-root/src/..1981_10_01_08_47_25.068924002/username': Operation not permitted
chmod: changing permissions of '/opt/app-root/src/..1981_10_01_08_47_25.068924002': Operation not permitted

error: build error: non-zero (13) exit code from registry.access.redhat.com/dotnet/dotnet-20-rhel7@sha256:0dbafdca780475373a34be07877b152f94ff7ef4168758f1f9011bc71793245f

我选择执行source2image构建。所以,我不确定是什么问题。有人可以提供建议吗?感谢。

1 个答案:

答案 0 :(得分:1)

我找到了错误的原因和解决方法。原因是调用s2i脚本的assemble脚本可用here。在第121行打电话给fix-permissions导致我出现问题。

要解决此问题,我创建了此assemble脚本的本地副本,并注释掉了这些行并解决了该问题。

我能够构建和部署我的应用程序。感谢