Install Keyloak 12.0.2 Test

Simply following the directions on the website does not work for my keycloak evaluation system. ./ fails with

7:03:32,276 WARN [org.jboss.jca.core.connectionmanager.pool.strategy.OnePool] (ServerService Thread Pool – 66) IJ000604: Throwable
while attempting to get a new connection: null: javax.resource.ResourceException: IJ031084: Unable to create connection
at org.jboss.jca.adapters.jdbc.local.LocalManagedConnectionFactory.createLocalManagedConnection(
at org.jboss.jca.adapters.jdbc.local.LocalManagedConnectionFactory.getLocalManagedConnection(
at org.jboss.jca.adapters.jdbc.local.LocalManagedConnectionFactory.createManagedConnection(
at org.jboss.jca.core.connectionmanager.pool.mcp.SemaphoreConcurrentLinkedDequeManagedConnectionPool.createConnectionEventListener(S"

Is there prerequisite not listed on the instructions? I’ve tried on Centos 7 and Redhat 8. Same indications.

Disregard. Found documentation showing firewall configuration on Redhat box for Keycloak and RH SSO. Server is now running.

iptables -F
systemctl stop firewalld.service

This isolated the issue to firewall.

Test environment was a single machine with only localhost advertised in /etc/hosts. No DNS configured. Did not have my hostname advertised in /etc/hosts. Added ports 8080 and 8443 to firewall rules with firewall-cmd. Would be good if the pre-requisite section of the documentation said something like:


  1. Hostname advertised in DNS or /etc/hosts
  2. Firewall daemon off or allow tcp ports 8443 and 8080

No errors found on startup - SUCKS!

But then who’da thought someone would just load a stock VM and drop KC on it, follow the instructions and then start the search for answers on the internet.