I’m trying to run the kc.bat with hostname on our Azure VM, but below is the error I get
C:\keycloak-24.0.4>bin\kc.bat --verbose start --hostname-debug=true --hostname=IN-API-KC.mydomain.COM
JAVA_HOME is not set. Unexpected results may occur.
Set JAVA_HOME to the directory of your local JDK to avoid this message.
2024-06-07 16:38:14,531 INFO [org.keycloak.quarkus.runtime.hostname.DefaultHostnameProvider] (main) Hostname settings: Base URL: , Hostname: IN-API-KC.mydomain.COM, Strict HTTPS: true, Path: , Strict BackChannel: false, Admin URL: , Admin: , Port: -1, Proxied: false
2024-06-07 16:38:15,153 INFO [org.infinispan.CONTAINER] (keycloak-cache-init) ISPN000556: Starting user marshaller ‘org.infinispan.jboss.marshalling.core.JBossUserMarshaller’
2024-06-07 16:38:15,604 INFO [org.infinispan.CLUSTER] (keycloak-cache-init) ISPN000088: Unable to use any JGroups configuration mechanisms provided in properties {}. Using default JGroups configuration!
2024-06-07 16:38:15,900 INFO [org.infinispan.CLUSTER] (keycloak-cache-init) ISPN000078: Starting JGroups channel ISPN
2024-06-07 16:38:15,916 INFO [org.jgroups.JChannel] (keycloak-cache-init) local_addr: 3f8146ae-7dda-494a-8c67-29639d0bb1b0, name: IN-API-KC-17231
2024-06-07 16:38:15,947 ERROR [org.jgroups.protocols.UDP] (keycloak-cache-init) failed setting interface to name:eth1 (Microsoft Hyper-V Network Adapter) (/10.161.104.17): java.net.SocketException: Invalid argument: no further information
2024-06-07 16:38:15,962 ERROR [org.jgroups.protocols.UDP] (keycloak-cache-init) failed setting interface to name:eth1 (Microsoft Hyper-V Network Adapter) (/10.161.104.17): java.net.SocketException: Invalid argument: no further information
2024-06-07 16:38:16,010 INFO [org.jgroups.protocols.FD_SOCK2] (keycloak-cache-init) server listening on *.34639
2024-06-07 16:38:18,026 INFO [org.jgroups.protocols.pbcast.GMS] (keycloak-cache-init) IN-API-KC-17231: no members discovered after 2007 ms: creating cluster as coordinator
2024-06-07 16:38:18,061 INFO [org.infinispan.CLUSTER] (keycloak-cache-init) ISPN000094: Received new cluster view for channel ISPN: [IN-API-KC-17231|0] (1) [IN-API-KC-17231]
2024-06-07 16:38:18,182 INFO [org.infinispan.CLUSTER] (keycloak-cache-init) ISPN000079: Channel ISPN local address is IN-API-KC-17231, physical addresses are [10.161.104.17:50175]
2024-06-07 16:38:18,217 WARN [org.infinispan.CONFIG] (keycloak-cache-init) ISPN000569: Unable to persist Infinispan internal caches as no global state enabled
2024-06-07 16:38:18,296 WARN [io.quarkus.agroal.runtime.DataSources] (JPA Startup Thread) Datasource enables XA but transaction recovery is not enabled. Please enable transaction recovery by setting quarkus.transaction-manager.enable-recovery=true, otherwise data may be lost if the application is terminated abruptly
2024-06-07 16:38:24,227 INFO [org.keycloak.connections.infinispan.DefaultInfinispanConnectionProviderFactory] (main) Node name: IN-API-KC-17231, Site name: null
2024-06-07 16:38:24,236 INFO [org.keycloak.broker.provider.AbstractIdentityProviderMapper] (main) Registering class org.keycloak.broker.provider.mappersync.ConfigSyncEventListener
2024-06-07 16:38:26,173 INFO [io.quarkus] (main) Keycloak 24.0.4 on JVM (powered by Quarkus 3.8.4) started in 14.007s. Listening on: https:// 0.0.0.0:8443
2024-06-07 16:38:26,173 INFO [io.quarkus] (main) Profile prod activated.
2024-06-07 16:38:26,173 INFO [io.quarkus] (main) Installed features: [agroal, cdi, hibernate-orm, jdbc-h2, keycloak, logging-gelf, micrometer, narayana-jta, reactive-routes, resteasy-reactive, resteasy-reactive-jackson, smallrye-context-propagation, smallrye-health, vertx]
KeyCloak Version: 24.0.4
VM is connected to our company domain
VM name: IN-API-KC
unable to connect this from outside machine