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

Quarkus CLI stopped working with error "Could not download https://github.com/quarkusio/jbang-catalog/blob/HEAD/jbang-catalog.json" #36031

Closed
springified opened this issue Sep 20, 2023 · 11 comments
Labels
area/cli Related to quarkus cli (not maven/gradle/etc.) area/jbang Issues related to when using jbang.dev with Quarkus kind/bug Something isn't working

Comments

@springified
Copy link

Describe the bug

None of the quarkus CLI seems to be working.

quarkus --version
[jbang] [ERROR] Could not download https://github.com/quarkusio/jbang-catalog/blob/HEAD/jbang-catalog.json
[jbang] Run with --verbose for more details

Quarkus Version
Installed version Quarkus 3.3.3

Java Version
java --version
openjdk 22-ea 2024-03-19
OpenJDK Runtime Environment (build 22-ea+12-877)
OpenJDK 64-Bit Server VM (build 22-ea+12-877, mixed mode, sharing)

Jbang Version
jbang --version
0.110.1

**OS **
Mac OS 13.5.2

Expected behavior

CLI should work

Actual behavior

No response

How to Reproduce?

Enter any of the CLI

Output of uname -a or ver

Darwin Prabhas-MacBook-Pro.local 22.6.0 Darwin Kernel Version 22.6.0: Wed Jul 5 22:22:05 PDT 2023; root:xnu-8796.141.3~6/RELEASE_ARM64_T6000 arm64

Output of java -version

openjdk version "22-ea" 2024-03-19 OpenJDK Runtime Environment (build 22-ea+12-877) OpenJDK 64-Bit Server VM (build 22-ea+12-877, mixed mode, sharing)

GraalVM version (if different from Java)

No response

Quarkus version or git rev

3.3.3

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

quarkus

Additional information

No response

@springified springified added the kind/bug Something isn't working label Sep 20, 2023
@quarkus-bot quarkus-bot bot added area/cli Related to quarkus cli (not maven/gradle/etc.) area/jbang Issues related to when using jbang.dev with Quarkus labels Sep 20, 2023
@quarkus-bot
Copy link

quarkus-bot bot commented Sep 20, 2023

/cc @ebullient (cli), @maxandersen (cli,jbang), @quarkusio/devtools (jbang)

@gsmet
Copy link
Member

gsmet commented Sep 20, 2023

I tried to reproduce it and couldn't. Can you access https://github.com/quarkusio/jbang-catalog/blob/HEAD/jbang-catalog.json ?

@gsmet
Copy link
Member

gsmet commented Sep 20, 2023

@iocanel is this download related to the plugins? If so, I don't think it should be a fatal error.

@iocanel
Copy link
Contributor

iocanel commented Sep 20, 2023

The error is related to the plugins. However, I don't think that it should be fatal as it only affects the plugins coming from our jbang catalog.

@springified
Copy link
Author

It appears the issue is sporadic. at the time of the issue, the URL (https://github.com/quarkusio/jbang-catalog/blob/HEAD/jbang-catalog.json ) is accessible from browser. only quarkus cli fails. But i am not sure why the issue is not reproducible now to me as well.

@maxandersen
Copy link
Member

@iocanel why is the cli downloading these when running quarkus --version ?

@maxandersen
Copy link
Member

@springified can you run with --verbose to get the full stacktrace ?

@iocanel
Copy link
Contributor

iocanel commented Sep 22, 2023

Recently we added a change where we completely bypass plugins, for known commands, so I wouldn't expect this to happen. Need to check.

@gsmet
Copy link
Member

gsmet commented Sep 22, 2023

In any case, we need the error to not be fatal.

@iocanel
Copy link
Contributor

iocanel commented Sep 22, 2023

I can't see how after 927f7a8 this issue can occur and I even debugged that main branch to verify that JBangCatalogService & JBangSupport are not even initialized when running standard commands.

Anyway, I'll wrap the the calls to jbang in try / catch though I am not really sure if this is the root cause.

@gsmet
Copy link
Member

gsmet commented Aug 19, 2024

I think this can be closed.

@gsmet gsmet closed this as completed Aug 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/cli Related to quarkus cli (not maven/gradle/etc.) area/jbang Issues related to when using jbang.dev with Quarkus kind/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants