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

Cannot turn off http server #19370

Closed
raducrisan1 opened this issue Aug 12, 2021 · 1 comment · Fixed by #20119
Closed

Cannot turn off http server #19370

raducrisan1 opened this issue Aug 12, 2021 · 1 comment · Fixed by #20119
Labels
area/vertx kind/bug Something isn't working
Milestone

Comments

@raducrisan1
Copy link

raducrisan1 commented Aug 12, 2021

Describe the bug

I've created an app on top on v2.1.2 final and my container would not start if I try to disable http via env variable. The variable is: QUARKUS_HTTP_HOST_ENABLED with the value 0.

Expected behavior

The app or the container would start.

Actual behavior

I've encountered an error while the container was starting. The error was:

hpc_producer-1.1.zehhlbpzwpf0@hzamd-node01    | 2021-08-12 10:52:51,505 ERROR [io.qua.run.Application] (main) Failed to start application (with profile prod): java.lang.IllegalArgumentException: Must configure at least one of http, https or unix domain socket
hpc_producer-1.1.zehhlbpzwpf0@hzamd-node01    | 	at io.quarkus.vertx.http.runtime.VertxHttpRecorder$WebDeploymentVerticle.start(VertxHttpRecorder.java:899)
hpc_producer-1.1.zehhlbpzwpf0@hzamd-node01    | 	at io.vertx.core.impl.DeploymentManager.lambda$doDeploy$5(DeploymentManager.java:196)
hpc_producer-1.1.zehhlbpzwpf0@hzamd-node01    | 	at io.vertx.core.impl.AbstractContext.dispatch(AbstractContext.java:96)
hpc_producer-1.1.zehhlbpzwpf0@hzamd-node01    | 	at io.vertx.core.impl.AbstractContext.dispatch(AbstractContext.java:59)
hpc_producer-1.1.zehhlbpzwpf0@hzamd-node01    | 	at io.vertx.core.impl.EventLoopContext.lambda$runOnContext$0(EventLoopContext.java:37)
hpc_producer-1.1.zehhlbpzwpf0@hzamd-node01    | 	at io.netty.util.concurrent.AbstractEventExecutor.safeExecute(AbstractEventExecutor.java:164)
hpc_producer-1.1.zehhlbpzwpf0@hzamd-node01    | 	at io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:472)
hpc_producer-1.1.zehhlbpzwpf0@hzamd-node01    | 	at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:500)
hpc_producer-1.1.zehhlbpzwpf0@hzamd-node01    | 	at io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:989)
hpc_producer-1.1.zehhlbpzwpf0@hzamd-node01    | 	at io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74)
hpc_producer-1.1.zehhlbpzwpf0@hzamd-node01    | 	at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30)
hpc_producer-1.1.zehhlbpzwpf0@hzamd-node01    | 	at java.base/java.lang.Thread.run(Thread.java:834)

How to Reproduce?

  1. Create a quarkus app from maven
  2. Add a resource adnotated with @path
  3. Either set in application.properties '''quarkus.http.host-enabled=false''' or set the env variable QUARKUS_HTTP_HOST_ENABLED=0
  4. Try to start the app mvn quarkus:dev or attempt start the container, if a docker image has been created.

Output of uname -a or ver

Linux hzamd-node01 5.4.0-80-generic #90-Ubuntu SMP Fri Jul 9 22:49:44 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux

Output of java -version

openjdk version "11.0.10" 2021-01-19 OpenJDK Runtime Environment GraalVM CE 21.0.0.2 (build 11.0.10+8-jvmci-21.0-b06) OpenJDK 64-Bit Server VM GraalVM CE 21.0.0.2 (build 11.0.10+8-jvmci-21.0-b06, mixed mode, sharing)

GraalVM version (if different from Java)

GraalVM CE 21.0.0.2

Quarkus version or git rev

2.1.2 Final

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

Apache Maven 3.8.1 (05c21c65bdfed0f71a2f2ada8b84da59348c4c5d)

Additional information

No response

@famod
Copy link
Member

famod commented Sep 6, 2021

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

Successfully merging a pull request may close this issue.

3 participants