代码之家  ›  专栏  ›  技术社区  ›  Prasanna K Rao

Openshift-生成错误:非零(13)退出代码

  •  3
  • Prasanna K Rao  · 技术社区  · 7 年前

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

    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 回复  |  直到 7 年前
        1
  •  1
  •   Prasanna K Rao    7 年前

    我找到了错误的原因以及解决方法。原因是 s2i 调用 assemble 可用脚本 here . 有一个呼叫 fix-permissions 在121号生产线,这导致了我的问题。

    为了解决此问题,我创建了此的本地副本 集合 编写脚本并注释掉这些行,从而解决了问题。

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

    推荐文章