Openshift - build error: non-zero (13) exit code
Openshift - build error: non-zero (13) exit code
我正在尝试在 OpenShift 容器平台上构建和部署基于 ASP.NET 应用程序(使用 AngularJS)的 dotnetcore。生成操作失败并出现以下错误:
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 构建。所以,我不确定出了什么问题。有人可以建议吗?谢谢。
我找到了错误的原因和解决方法。原因是 s2i
脚本调用 assemble
脚本可用 here。在第 121 行调用 fix-permissions
导致我出现问题。
为了解决这个问题,我创建了这个 assemble
脚本的本地副本并注释掉了这些行并解决了这个问题。
我能够正常构建和部署我的应用程序。谢谢
我正在尝试在 OpenShift 容器平台上构建和部署基于 ASP.NET 应用程序(使用 AngularJS)的 dotnetcore。生成操作失败并出现以下错误:
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 构建。所以,我不确定出了什么问题。有人可以建议吗?谢谢。
我找到了错误的原因和解决方法。原因是 s2i
脚本调用 assemble
脚本可用 here。在第 121 行调用 fix-permissions
导致我出现问题。
为了解决这个问题,我创建了这个 assemble
脚本的本地副本并注释掉了这些行并解决了这个问题。
我能够正常构建和部署我的应用程序。谢谢