question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

fabric8:build never ends

See original GitHub issue

I’m facing with a problem.

I’m performing:

mvn -Dfabric8.namespace=t-devhub-dev \
  -Dfabric8.openshift.trimImageInContainerSpec=true \
  -Dmaven.test.skip=true \
  clean package fabric8:resource fabric8:build

This process is hanging on waiting for fabric8:build ends:

[INFO] --- fabric8-maven-plugin:3.5.38:build (default-cli) @ tdev-forum-service ---
[INFO] F8: Using OpenShift build with strategy Docker
[INFO] Copying files to /home/jcabre/projects/tdevhub/application-src/t-devhub/tdev-forum-service/target/docker/forum/0.0.1-SNAPSHOT/build/maven
[INFO] Building tar: /home/jcabre/projects/tdevhub/application-src/t-devhub/tdev-forum-service/target/docker/forum/0.0.1-SNAPSHOT/tmp/docker-build.tar
[INFO] F8: [forum:0.0.1-SNAPSHOT]: Created docker source tar /home/jcabre/projects/tdevhub/application-src/t-devhub/tdev-forum-service/target/docker/forum/0.0.1-SNAPSHOT/tmp/docker-build.tar
[INFO] F8: Updating BuildServiceConfig forum-s2i for Docker strategy
[INFO] F8: Adding to ImageStream forum
[INFO] F8: Starting Build forum-s2i

docker-build.tar is really straigforward:

├── Dockerfile
├── maven
│   └── tdev-forum-service-0.0.1-SNAPSHOT.jar
└── .s2i
    └── environment

where Dockerfile is:

FROM docker.io/fabric8/java-jboss-openjdk8-jdk:1.2
ENV JAVA_APP_JAR=tdev-forum-service-0.0.1-SNAPSHOT.jar
COPY maven /deployments/

and .s2i/environment:

JAVA_APP_JAR=tdev-forum-service-0.0.1-SNAPSHOT.jar

Also, I’ve tried using oc client:

cat docker-build.tar | oc start-build --from-dir=- --loglevel=10 forum-s2i --follow

It’s also handing on:

I0723 12:17:06.770656    3403 loader.go:357] Config loaded from file /home/jcabre/.kube/config
Uploading archive file from STDIN as binary input for the build ...
round_trippers.go:417] curl -k -v -XPOST  -H "Accept: application/json, */*" -H "User-Agent: oc/v1.9.1+a0ce1bc657 (linux/amd64) kubernetes/a0ce1bc" -H "Authorization: Bearer cQFjgh_mjoAkbjYRhyz0sYCr8SaeauIpi4cjYL2UzDY" https://<cluster-url>/v1/namespaces/t-devhub-dev/buildconfigs/forum-s2i/instantiatebinary?name=forum-s2i&namespace=t-devhub-dev

Any ideas?

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:22 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
rhusscommented, Jul 23, 2018

Can you have a look into the OpenShift Build object from another terminal ?

oc describe build forum-s2i
oc logs forum-s2i-build...

?

0reactions
stale[bot]commented, May 5, 2019

This issue has been automatically marked as stale because it has not had any activity since 90 days. It will be closed if no further activity occurs within 7 days. Thank you for your contributions!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Openshift: build never ends - Stack Overflow
I'm facing with a problem. I'm performing: mvn -Dfabric8.namespace=t-devhub-dev \ -Dfabric8.openshift.
Read more >
fabric8io/docker-maven-plugin
This will create the jar (if any), build the Docker images, start the configured Docker containers, runs the integration tests, stops the ...
Read more >
fabric8:build and fabric8:push in openShift ? - Google Groups
I´m starting to setup my Maven Build with the fabric8-maven-plugin. ... it ends up with an image deployed to the openshift internal Registry....
Read more >
Appendix C. Fabric8 Maven plugin Red Hat Fuse 7.8
The fabric8:build goal is used for creating Docker-formatted images containing an application. ... Stop the application which has been deployed previously.
Read more >
How to use Fabric8 maven docker plugin (Introduction)
Let's first run the application first without containerizing it. ... Please stop the application and focus on how we build a docker image...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found