When i try to open the web UI xyz.com/h2/ of the H2 database with my browser, i get the following plaintext response:
Host xyz.com not found
I am running the H2 database in a Kubernetes environment.
The following JVM options are used to start the H2 database:
command:
- java
args:
- -cp
- /opt/h2/h2.jar
- org.h2.tools.Server
- -baseDir
- /opt/h2/data
- -tcp
- -tcpPort
- "9092"
- -tcpAllowOthers
- -web
- -webDaemon
- -webPort
- "8082"
- -webAllowOthers
- -ifNotExists
When i enable tracing with the option -trace
, i can see an HTTP 404 Not Found error in the server logs of the H2 database.
Versions i use:
H2: 2.2.224
Kubernetes: 1.26
Java: JDK11
I am expecting to see the GUI console (web UI) of the H2 database when requesting the URL. With H2 version 1.4.196 the above configuration is working for example.