asp.netangularjs.net-coreopenshiftopenshift-enterprise

Openshift - build error: non-zero (13) exit code


I am attempting to build and deploy a dotnetcore based ASP.NET application (with AngularJS) on OpenShift Container platform. The build operation is failing with the following error:

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

I am opting to perform source2image build. So, I am not sure what is wrong. Can someone advise? thanks.


Solution

  • I found the reason for the error and a workaround as well. The reason was the s2i script calling the assemble script available here. There is a call to fix-permissions at line no 121 that is causing me issues.

    To fix the issue, I created a local copy of this assemble script and commented out these lines and that resolved the issue.

    I was able to build and deploy my application ok. thanks