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 reports occupied http port on occupied https port #15776

Closed
szgergo opened this issue Mar 16, 2021 · 3 comments
Closed

Quarkus reports occupied http port on occupied https port #15776

szgergo opened this issue Mar 16, 2021 · 3 comments
Labels
kind/bug Something isn't working

Comments

@szgergo
Copy link

szgergo commented Mar 16, 2021

Describe the bug

I have tried to enable https in Quarkus by adding keystore to src/main/resources and defining the following properties:
quarkus.http.port=10000 quarkus.http.ssl-port=443 quarkus.http.ssl.certificate.key-store-file=keystore.jks
When I started the application it failed with an error message stating that port 10000 is occupied. This was not the case (checked with netstat). The problem was that the 443 port was in fact occupied.

Expected behavior

Throw exception on actually occupied port. (In this case the 443 port)

Actual behavior

Throws exception on not occupied http port instead of the occupied https port.

To Reproduce

Steps to reproduce the behavior:

  1. Download the zip: black-dwarf-main.zip
  2. Start a process on port 443 (For example netcat -l 443)
  3. Start the application (run mvn clean install -U then java -jar deployment/target/quarkus-app/quarkus-run.jar)

Environment (please complete the following information):

Uname -a output:
Darwin Gergos-MacBook-Pro.local 20.3.0 Darwin Kernel Version 20.3.0: Thu Jan 21 00:06:51 PST 2021; root:xnu-7195.81.3~1/RELEASE_ARM64_T8101 arm64

Java version:
openjdk version "11.0.10" 2021-01-19 LTS
OpenJDK Runtime Environment Zulu11.45+27-CA (build 11.0.10+9-LTS)
OpenJDK 64-Bit Server VM Zulu11.45+27-CA (build 11.0.10+9-LTS, mixed mode)

GraalVM version:
No GraalVM

Quarkus version:
1.12.2.Final

Maven version:
Maven home: /opt/homebrew/Cellar/maven/3.6.3_1/libexec
Java version: 11.0.10, vendor: Azul Systems, Inc., runtime: /Library/Java/JavaVirtualMachines/zulu-11.jdk/Contents/Home
Default locale: en_HU, platform encoding: UTF-8
OS name: "mac os x", version: "11.2.3", arch: "aarch64", family: "mac"

@szgergo szgergo added the kind/bug Something isn't working label Mar 16, 2021
@geoand
Copy link
Contributor

geoand commented Jan 25, 2022

Closing in favor of #22967 which is essentially the same issue but has more details

@yrodiere
Copy link
Member

yrodiere commented Nov 2, 2022

Closing now, I think @geoand forgot to actually do it :)

@geoand
Copy link
Contributor

geoand commented Nov 2, 2022

Oops! Thanks for catching the mistake @yrodiere

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

No branches or pull requests

3 participants