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

Endpoints don't work in Quarkus workspaces #18512

Closed
3 of 22 tasks
svor opened this issue Dec 2, 2020 · 2 comments
Closed
3 of 22 tasks

Endpoints don't work in Quarkus workspaces #18512

svor opened this issue Dec 2, 2020 · 2 comments
Labels
area/devfile-registry kind/bug Outline of a bug - must adhere to the bug report template. severity/P1 Has a major impact to usage or development of the system.
Milestone

Comments

@svor
Copy link
Contributor

svor commented Dec 2, 2020

Describe the bug

Predefined endpoints don't work in Quarkus workspaces

Che version

  • latest
  • nightly
  • other: please specify

Steps to reproduce

  1. Go to che.openshift.io and create Quarkus REST API workspace
  2. Execute Package and Start Development mode (Hot reload + debug) commands
  3. Try to click on hello-greeting-endpoint endpoint

Expected behavior

New tab should be opened with the application

Runtime

  • kubernetes (include output of kubectl version)
  • Openshift (include output of oc version)
  • minikube (include output of minikube version and kubectl version)
  • minishift (include output of minishift version and oc version)
  • docker-desktop + K8S (include output of docker version and kubectl version)
  • other: (please specify)

Screenshots

screenshot-che openshift io-2020 12 02-17_28_24
screenshot-routej60zdvi5-vsvydenk-che 8a09 starter-us-east-2 openshiftapps com-2020 12 02-17_34_52

Installation method

  • chectl
    • provide a full command that was used to deploy Eclipse Che (including the output)
    • provide an output of chectl version command
  • OperatorHub
  • I don't know

Environment

  • my computer
    • Windows
    • Linux
    • macOS
  • Cloud
    • Amazon
    • Azure
    • GCE
    • che.openshift.io
  • other: please specify

Eclipse Che Logs

Additional context

@svor svor added the kind/bug Outline of a bug - must adhere to the bug report template. label Dec 2, 2020
@che-bot che-bot added the status/need-triage An issue that needs to be prioritized by the curator responsible for the triage. See https://github. label Dec 2, 2020
@l0rd
Copy link
Contributor

l0rd commented Dec 2, 2020

It looks like the port plugin is asking if we want to expose the port even if it's already exposed cc @benoitf

@l0rd l0rd added area/plugin-port Issues related to the port plugin severity/P1 Has a major impact to usage or development of the system. and removed status/need-triage An issue that needs to be prioritized by the curator responsible for the triage. See https://github. labels Dec 2, 2020
@benoitf
Copy link
Contributor

benoitf commented Dec 3, 2020

@l0rd
port plugin is asking because the process is listening only on ::ffff:7f00:1 which is the loopback URL so it's not 'exposed' at all, it should listen on all interfaces '0.0.0.0' to be reached from the outside (without jwt proxy)

If I accept the redirect it's working
image

So it's how quarkus is configured that is wrong there.
quarkusio/quarkus@ac8b99c

22 days ago it has been changed to not listen on all interfaces anymore

And Max didn't wanted that we use a specific commit of quarkus repository it's what is happening with breaking changes.

Adding -Dquarkus.http.host=0.0.0.0 fixes the issue.
image

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/devfile-registry kind/bug Outline of a bug - must adhere to the bug report template. severity/P1 Has a major impact to usage or development of the system.
Projects
None yet
Development

No branches or pull requests

5 participants