You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@streampark.apache.org by "tcmtang (via GitHub)" <gi...@apache.org> on 2023/11/02 10:40:38 UTC

[I] [Bug] Kubernetes application release docker build error: layer does not exist [incubator-streampark]

tcmtang opened a new issue, #3308:
URL: https://github.com/apache/incubator-streampark/issues/3308

   ### Search before asking
   
   - [X] I had searched in the [issues](https://github.com/apache/incubator-streampark/issues?q=is%3Aissue+label%3A%22bug%22) and found no similar issues.
   
   
   ### Java Version
   
   java version "1.8.0_211"
   
   ### Scala Version
   
   2.11.x
   
   ### StreamPark Version
   
   2.1.1
   
   ### Flink Version
   
   1.16.2
   
   
   ### deploy mode
   
   kubernetes-application
   
   ### What happened
   
   **Release kubernetes application task docker build error:
   layer does not exist.**
   
   Error Stack:
   ```
   [streampark-build-pipeline-executor-0] ERROR org.apache.streampark.flink.packer.pipeline.impl.FlinkK8sApplicationBuildPipeline - [StreamPark] [streampark-packer] building pipeline has failed. | appName=flink-test
   java.util.concurrent.ExecutionException: com.github.dockerjava.api.exception.DockerClientException: Could not build image: failed to export image: failed to create image: failed to get layer sha256:a1462763f944a429da7885970b752a1ca04b6641377275bc3dfa62d61ebb7608: layer does not exist
           at java.util.concurrent.FutureTask.report(FutureTask.java:122)
           at java.util.concurrent.FutureTask.get(FutureTask.java:206)
           at org.apache.streampark.flink.packer.pipeline.BuildPipeline.$anonfun$launch$1(BuildPipeline.scala:136)
           at scala.util.Try$.apply(Try.scala:213)
           at org.apache.streampark.flink.packer.pipeline.BuildPipeline.launch(BuildPipeline.scala:129)
           at org.apache.streampark.flink.packer.pipeline.BuildPipeline.launch$(BuildPipeline.scala:127)
           at org.apache.streampark.flink.packer.pipeline.impl.FlinkK8sApplicationBuildPipeline.launch(FlinkK8sApplicationBuildPipeline.scala:42)
           at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
           at java.util.concurrent.FutureTask.run(FutureTask.java:266)
           at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
           at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
           at java.lang.Thread.run(Thread.java:748)
   Caused by: com.github.dockerjava.api.exception.DockerClientException: Could not build image: failed to export image: failed to create image: failed to get layer sha256:a1462763f944a429da7885970b752a1ca04b6641377275bc3dfa62d61ebb7608: layer does not exist
           at com.github.dockerjava.api.command.BuildImageResultCallback.getImageId(BuildImageResultCallback.java:78)
           at com.github.dockerjava.api.command.BuildImageResultCallback.awaitImageId(BuildImageResultCallback.java:50)
           at org.apache.streampark.flink.packer.pipeline.impl.FlinkK8sApplicationBuildPipeline.$anonfun$buildProcess$21(FlinkK8sApplicationBuildPipeline.scala:180)
           at org.apache.streampark.flink.packer.pipeline.impl.FlinkK8sApplicationBuildPipeline.$anonfun$buildProcess$21$adapted(FlinkK8sApplicationBuildPipeline.scala:165)
           at org.apache.streampark.flink.packer.docker.package$.usingDockerClient(package.scala:46)
           at org.apache.streampark.flink.packer.pipeline.impl.FlinkK8sApplicationBuildPipeline.$anonfun$buildProcess$20(FlinkK8sApplicationBuildPipeline.scala:182)
           at scala.runtime.java8.JFunction0$mcV$sp.apply(JFunction0$mcV$sp.java:23)
           at org.apache.streampark.flink.packer.pipeline.BuildPipeline.$anonfun$execStep$1(BuildPipeline.scala:102)
           at scala.util.Try$.apply(Try.scala:213)
           at org.apache.streampark.flink.packer.pipeline.BuildPipeline.execStep(BuildPipeline.scala:97)
           at org.apache.streampark.flink.packer.pipeline.BuildPipeline.execStep$(BuildPipeline.scala:96)
           at org.apache.streampark.flink.packer.pipeline.impl.FlinkK8sApplicationBuildPipeline.execStep(FlinkK8sApplicationBuildPipeline.scala:42)
           at org.apache.streampark.flink.packer.pipeline.impl.FlinkK8sApplicationBuildPipeline.buildProcess(FlinkK8sApplicationBuildPipeline.scala:182)
           at org.apache.streampark.flink.packer.pipeline.impl.FlinkK8sApplicationBuildPipeline.buildProcess(FlinkK8sApplicationBuildPipeline.scala:42)
           at org.apache.streampark.flink.packer.pipeline.BuildPipeline$$anon$1.call(BuildPipeline.scala:134)
           at org.apache.streampark.flink.packer.pipeline.BuildPipeline$$anon$1.call(BuildPipeline.scala:133)
           ... 4 common frames omitted
   ```
   
   Dockerfile step:
   ```
   Step 1/4 : FROM registry-vpc.cn-shenzhen.aliyuncs.com/mmg-sys/flink:1.16.2-java11
   Step 2/4 : RUN mkdir -p $FLINK_HOME/usrlib
   Step 3/4 : COPY lib $FLINK_HOME/lib/
   Step 4/4 : COPY streampark-flinkjob_flink-test.jar $FLINK_HOME/usrlib/streampark-flinkjob_flink-test.jar
   ```
   
   Docker version:
   ```
   Client: Docker Engine - Community
    Version:           23.0.6
    API version:       1.42
    Go version:        go1.19.9
    Git commit:        ef23cbc
    Built:             Fri May  5 21:19:08 2023
    OS/Arch:           linux/amd64
    Context:           default
   
   Server: Docker Engine - Community
    Engine:
     Version:          23.0.6
     API version:      1.42 (minimum version 1.12)
     Go version:       go1.19.9
     Git commit:       9dbdbd4
     Built:            Fri May  5 21:18:15 2023
     OS/Arch:          linux/amd64
     Experimental:     false
    containerd:
     Version:          1.6.21
     GitCommit:        3dce8eb055cbb6872793272b4f20ed16117344f8
    runc:
     Version:          1.1.7
     GitCommit:        v1.1.7-0-g860f061
    docker-init:
     Version:          0.19.0
     GitCommit:        de40ad0
   ```
   
   ### Error Exception
   
   _No response_
   
   ### Screenshots
   
   _No response_
   
   ### Are you willing to submit PR?
   
   - [ ] Yes I am willing to submit a PR!(您是否要贡献这个PR?)
   
   ### Code of Conduct
   
   - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@streampark.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [Bug] Kubernetes application release docker build error: layer does not exist [incubator-streampark]

Posted by "caicancai (via GitHub)" <gi...@apache.org>.
caicancai commented on issue #3308:
URL: https://github.com/apache/incubator-streampark/issues/3308#issuecomment-1875486060

   I'm very sorry for replying to you so late. Has the bug been resolved?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@streampark.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [Bug] Kubernetes application release docker build error: layer does not exist [streampark]

Posted by "wolfboys (via GitHub)" <gi...@apache.org>.
wolfboys closed issue #3308: [Bug] Kubernetes application release docker build error: layer does not exist
URL: https://github.com/apache/streampark/issues/3308


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@streampark.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [Bug] Kubernetes application release docker build error: layer does not exist [incubator-streampark]

Posted by "caicancai (via GitHub)" <gi...@apache.org>.
caicancai commented on issue #3308:
URL: https://github.com/apache/incubator-streampark/issues/3308#issuecomment-1875492579

   Have you filled in the docker information correctly? Did the build docker fail?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@streampark.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [Bug] Kubernetes application release docker build error: layer does not exist [streampark]

Posted by "wolfboys (via GitHub)" <gi...@apache.org>.
wolfboys commented on issue #3308:
URL: https://github.com/apache/streampark/issues/3308#issuecomment-5523146256

   Thanks for your feedback. We are closing this issue because it is outdated.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@streampark.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org