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

Warning "Tag 22.3-java17 was deleted or has expired" while building a native image #30738

Closed
fedinskiy opened this issue Jan 31, 2023 · 8 comments
Labels
area/mandrel kind/bug Something isn't working

Comments

@fedinskiy
Copy link
Contributor

fedinskiy commented Jan 31, 2023

Describe the bug

Since the end of January 2023, during native build there is a warning "Tag 22.3-java17 was deleted or has expired". It looks like the default image quay.io/quarkus/ubi-quarkus-mandrel:22.3-java17 was deleted.

Expected behavior

No warning.

Actual behavior

[WARNING] [io.quarkus.deployment.pkg.steps.NativeImageBuildStep] Cannot find the `native-image` in the GRAALVM_HOME, JAVA_HOME and System PATH. Install it using `gu install native-image` Attempting to fall back to container build.
[INFO] [io.quarkus.deployment.pkg.steps.NativeImageBuildContainerRunner] Using docker to run the native image builder
[INFO] [io.quarkus.deployment.pkg.steps.NativeImageBuildContainerRunner] Checking image status quay.io/quarkus/ubi-quarkus-mandrel:22.3-java17
Error response from daemon: unknown: Tag 22.3-java17 was deleted or has expired. To pull, revive via time machine
[INFO] [io.quarkus.deployment.pkg.steps.NativeImageBuildStep] Running Quarkus native-image plugin on native-image 22.3.0.1-Final Mandrel Distribution (Java Version 17.0.5+8)

How to Reproduce?

  1. git clone [email protected]:quarkus-qe/quarkus-startstop.git -b 2.13
  2. cd quarkus-startstop/app-jax-rs-minimal
  3. mvn clean compile package -Pnative -Dquarkus.version=2.13.7.Final -Dquarkus.platform.group-id=io.quarkus.platform

Output of uname -a or ver

6.0.18-300.fc37.x86_64

Output of java -version

17.0.5, vendor: GraalVM Community

GraalVM version (if different from Java)

No response

Quarkus version or git rev

2.13.7.Final

Build tool (ie. output of mvnw --version or gradlew --version)

Apache Maven 3.8.6 (84538c9988a25aec085021c365c560670ad80f63)

Additional information

No response

@fedinskiy fedinskiy added the kind/bug Something isn't working label Jan 31, 2023
@quarkus-bot
Copy link

quarkus-bot bot commented Jan 31, 2023

/cc @Karm (mandrel), @galderz (mandrel), @zakkak (mandrel)

@gsmet
Copy link
Member

gsmet commented Jan 31, 2023

@cescoffier ?

@zakkak
Copy link
Contributor

zakkak commented Jan 31, 2023

Related to quarkusio/quarkus-images#223

@cescoffier
Copy link
Member

These are the old images. They are not really maintained. I will restore the tags, but we should also invite users to move to the new ones. I have no way to rebuild these images anymore.

@zakkak
Copy link
Contributor

zakkak commented Jan 31, 2023

but we should also invite users to move to the new ones.

AFAIK this is not possible for users of 2.13. Is that right?

@cescoffier
Copy link
Member

I've restored the tag.

@zakkak yes, and the problem is that I'm stuck with the old image. I don't have a single machine able to build them. Tried two macs, 1 fedora, 1 ubuntu.... there is always something going wrong between docker, cekit, python, ruby... (my last hope is windows 10)

Same on github action. Using containers didn't work either.

So, we may need to consider moving 2.13 to the new images.

@jerboaa
Copy link
Contributor

jerboaa commented Jan 31, 2023

Wouldn't it be possible to workaround it by setting: -Dquarkus.native.builder-image=quay.io/quarkus/ubi-quarkus-mandrel-builder-image:22.3-java17? Images at quay.io/quarkus/ubi-quarkus-mandrel:22.3-java17 are outdated :-(

fedinskiy added a commit to fedinskiy/quarkus-startstop that referenced this issue Jan 31, 2023
Fixes failures due to two upstreams issues:
Missing classes: quarkusio/quarkus#30508
Missing builder image: quarkusio/quarkus#30738
@cescoffier
Copy link
Member

Yes using -Dquarkus.native.builder-image=quay.io/quarkus/ubi-quarkus-mandrel-builder-image:22.3-java17 works.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/mandrel kind/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants