Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OpenShift: Annoying Random Issue when deploying into OpenShift #332

Closed
snowdrop-bot opened this issue May 4, 2021 · 0 comments
Closed
Assignees
Labels
7 - Community development upstream/closed The issue has been closed in the upstream repository

Comments

@snowdrop-bot
Copy link
Collaborator

Describe the bug

The deployment to OpenShift is randomly failing due to this exception:

12:49:34.706 Failed to execute goal io.quarkus:quarkus-maven-plugin:1.13.2.Final:build (default) on project config: Failed to build quarkus application: io.quarkus.builder.BuildException: Build failure: Build failed due to errors
12:49:34.706 	[error]: Build step io.quarkus.container.image.openshift.deployment.OpenshiftProcessor#openshiftBuildFromJar threw an exception: java.lang.RuntimeException: Execution of openshift build failed. See build output for more details
12:49:34.706 	at io.quarkus.container.image.openshift.deployment.OpenshiftProcessor.openshiftException(OpenshiftProcessor.java:513)
12:49:34.707 	at io.quarkus.container.image.openshift.deployment.OpenshiftProcessor.openshiftBuild(OpenshiftProcessor.java:457)
12:49:34.707 	at io.quarkus.container.image.openshift.deployment.OpenshiftProcessor.lambda$openshiftBuild$10(OpenshiftProcessor.java:410)
12:49:34.707 	at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:183)
12:49:34.707 	at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:195)
12:49:34.708 	at java.base/java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:177)
12:49:34.708 	at java.base/java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1655)
12:49:34.708 	at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:484)
12:49:34.708 	at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:474)
12:49:34.708 	at java.base/java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:150)
12:49:34.708 	at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:173)
12:49:34.709 	at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
12:49:34.710 	at java.base/java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:497)
12:49:34.710 	at io.quarkus.container.image.openshift.deployment.OpenshiftProcessor.openshiftBuild(OpenshiftProcessor.java:410)
12:49:34.710 	at io.quarkus.container.image.openshift.deployment.OpenshiftProcessor.createContainerImage(OpenshiftProcessor.java:352)
12:49:34.710 	at io.quarkus.container.image.openshift.deployment.OpenshiftProcessor.openshiftBuildFromJar(OpenshiftProcessor.java:259)
12:49:34.710 	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
12:49:34.711 	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
12:49:34.711 	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
12:49:34.711 	at java.base/java.lang.reflect.Method.invoke(Method.java:566)
12:49:34.711 	at io.quarkus.deployment.ExtensionLoader$2.execute(ExtensionLoader.java:920)
12:49:34.711 	at io.quarkus.builder.BuildContext.run(BuildContext.java:277)
12:49:34.712 	at org.jboss.threads.EnhancedQueueExecutor$Task.run(EnhancedQueueExecutor.java:2415)
12:49:34.712 	at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1452)
12:49:34.712 	at java.base/java.lang.Thread.run(Thread.java:834)
12:49:34.712 	at org.jboss.threads.JBossThread.run(JBossThread.java:501)
12:49:34.712 Caused by: java.io.IOException: Pipe closed
12:49:34.712 	at java.base/java.io.PipedInputStream.read(PipedInputStream.java:307)
12:49:34.712 	at java.base/java.io.PipedInputStream.read(PipedInputStream.java:377)
12:49:34.713 	at java.base/sun.nio.cs.StreamDecoder.readBytes(StreamDecoder.java:284)
12:49:34.713 	at java.base/sun.nio.cs.StreamDecoder.implRead(StreamDecoder.java:326)
12:49:34.713 	at java.base/sun.nio.cs.StreamDecoder.read(StreamDecoder.java:178)
12:49:34.713 	at java.base/java.io.InputStreamReader.read(InputStreamReader.java:185)
12:49:34.713 	at java.base/java.io.BufferedReader.fill(BufferedReader.java:161)
12:49:34.713 	at java.base/java.io.BufferedReader.readLine(BufferedReader.java:326)
12:49:34.713 	at java.base/java.io.BufferedReader.readLine(BufferedReader.java:392)
12:49:34.713 	at io.quarkus.container.image.openshift.deployment.OpenshiftProcessor.openshiftBuild(OpenshiftProcessor.java:453)
12:49:34.714 	... 24 more

I think this is happening after Dekorate was upgrated to 2.x by this change.

To Reproduce

Steps to reproduce the behavior:

  1. mvn io.quarkus:quarkus-maven-plugin:999-SNAPSHOT:create -DprojectGroupId=org.acme -DprojectArtifactId=openshift-quickstart -DclassName="org.acme.rest.GreetingResource" -Dpath="/greeting" -Dextensions=openshift
  2. cd openshift-quickstart
  3. Deploy it using mvn package -Dquarkus.kubernetes.deploy=true -Dquarkus.openshift.expose=true

Note that this is not happening always, but when happens this is really annoying...


quarkusio#16968


$upstream:16968$

@snowdrop-bot snowdrop-bot added the upstream/closed The issue has been closed in the upstream repository label Sep 14, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
7 - Community development upstream/closed The issue has been closed in the upstream repository
Projects
None yet
Development

No branches or pull requests

2 participants