Skip to content

Build failure with ODC import #2

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

Open
maysunfaisal opened this issue Apr 28, 2021 · 1 comment
Open

Build failure with ODC import #2

maysunfaisal opened this issue Apr 28, 2021 · 1 comment

Comments

@maysunfaisal
Copy link
Contributor

Build Config build log:

Cloning "https://github.com/maysunfaisal/devfile-sample-java-springboot-basic" ...
	Commit:	138a5adb30c24487873625919e5f17d4ba637c62 (Update attributes)
	Author:	Maysun Faisal <[email protected]>
	Date:	Wed Apr 28 17:04:23 2021 -0400
Caching blobs under "/var/cache/blobs".

Pulling image openjdk:11-jdk ...
Getting image source signatures
Copying blob sha256:8bf93eef8c9e12cf4f4690f75b1ff0108a28d222797833839abd04397b14e016
Copying blob sha256:44718e6d535d365250316b02459f98a1b0fa490158cc53057d18858507504d60
Copying blob sha256:b87fc504233c0bf4b90cb62e9b114fb0f1927b4a65265ffc153378d21aa8fe70
Copying blob sha256:efe9738af0cb2184ee8f3fb3dcb130455385aa428a27d14e1e07a5587ff16e64
Copying blob sha256:bd8f6a7501ccbe80b95c82519ed6fd4f7236a41e0ae59ba4a8df76af24629efc
Copying blob sha256:f37aabde37b87d272286df45e6a3145b0884b72e07e657bf1a2a1e74a92c6172
Copying blob sha256:8d33b4df10ef9923b10a61fb63df5315fe61d166413ee73b281d7b198406a453
Copying config sha256:aa31437d461e2e27f19a40cec530dc1098baf6a3593e7b178ab0e50ef9f50fc5
Writing manifest to image destination
Storing signatures

Pulling image quay.io/eclipse/che-java11-maven:nightly ...
Getting image source signatures
Copying blob sha256:5d6f1e8117dbb1c6a57603cb4f321a861a08105a81bcc6b01b0ec2b78c8523a5
Copying blob sha256:004f1eed87df3f75f5e2a1a649fa7edd7f713d1300532fd0909bb39cd48437d7
Copying blob sha256:d7eb6c022a4e6128219b32a8e07c8c22c89624ff440ebac1506121794bc15ccc
Copying blob sha256:48c2faf66abec3dce9f54d6722ff592fce6dd4fb58a0d0b72282936c6598a3b3
Copying blob sha256:234b70d0479d7f16d7ee8d04e4ffdacc57d7d14313faf59d332f18b2e9418743
Copying blob sha256:6c215442f70bd949a6f2e8092549943905e2d4f9c87a4f532d7740ae8647d33a
Copying blob sha256:355e8215390faee903502a9fddfc65cd823f1606f053376ba2575adce66974a1
Copying blob sha256:cf5eb43522f68d7e2347e19ad70dadcf1594d25b792ede0464c2936ff902c4c6
Copying blob sha256:4fee0489a65b64056f81358639bfe85fd87776630830fd02ce8c15e34928bf9c
Copying blob sha256:413646e6fa5d7bcd9722d3e400fc080a77deb505baed79afa5fedae23583af25
Copying blob sha256:232905e288bdccf6f4c3edf2dcb21ceab3d93c091e95b67a2b160b01451ca1cc
Copying blob sha256:34778fff62ec7e392a616f3f73eb36100792ff9bc25bcc53ec7fedcb32da009d
Copying blob sha256:eed1f5a41912d9e6a0caa4ee64110e78cba6441f0c7a16daf208cca6a4a22c46
Copying blob sha256:f93aa4efdeb7339a8fd05deef92e1e26f7c8018da597eece452e17fc0d790f06
Copying blob sha256:7cbd9e976192d4a59d1d1df3f8e62acf95d13ddbd0dc5dea7dff4e709c83a18f
Copying config sha256:25726db9c42c020395769524d2f4ed5630b8b6f527d7ae3afc76cf4479384346
Writing manifest to image destination
Storing signatures
Adding transient rw bind mount for /run/secrets/rhsm
STEP 1: FROM quay.io/eclipse/che-java11-maven:nightly
STEP 2: WORKDIR /build
--> 4a68854b089
STEP 3: COPY pom.xml .
--> f1386d3b7d4
STEP 4: RUN mvn dependency:go-offline
[ERROR] Could not create local repository at /build/?/.m2/repository -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/LocalRepositoryNotAccessibleException
STEP 5: FROM openjdk:11-jdk
STEP 6: COPY --from=0 /build/target/demo-0.0.1-SNAPSHOT.jar /app/target/demo-0.0.1-SNAPSHOT.jar
Error shutting down storage: A layer is mounted: layer is in use by a container
error: build error: error building at STEP "RUN mvn dependency:go-offline": error while running runtime: exit status 1
@elsony
Copy link
Owner

elsony commented Apr 29, 2021

It looks like there is some permission caused by the random user when running on OpenShift. Pushed a change that may potentially fix the permission problem: 52c9b18

kvv1968 added a commit to kvv1968/devfile-sample-java-springboot-basic that referenced this issue Feb 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants