[keycloak-user] How to create a realm through Admin CLI

Marko Strukelj mstrukel at redhat.com
Tue Feb 13 04:28:43 EST 2018


See documentation:
http://www.keycloak.org/docs/latest/server_admin/index.html#the-admin-cli

No route to host means you have a networking issue or are using a wrong IP
for the server.

On Feb 13, 2018 09:13, "Subodh Joshi" <subodhcjoshi82 at gmail.com> wrote:

Hi All

I am trying to create realm through admin CLI and tried below command

 ./kcadm.sh config credentials --server http://<IP ADDRESS>:8665/auth/
create realms -s realm=demorealmAdminCLI -s enabled=true

But i am getting
Required option not specified: --realm

What i am doing wrong ?

When i tried following command
[root at suredevbana1 bin]# ./kcadm.sh config credentials --server http://<IP
ADDRESS>:8665/auth/ --realm master --user admin --password admin

Then i am getting below message
Logging into http://<IP ADDRESS>:8665/auth/ as user admin of realm master
Feb 13, 2018 1:23:35 PM org.apache.http.impl.execchain.RetryExec execute
INFO: I/O exception (java.net.NoRouteToHostException) caught when
processing request to {}->http:// <IP ADDRESS> :8665: No route to host
Feb 13, 2018 1:23:35 PM org.apache.http.impl.execchain.RetryExec execute
INFO: Retrying request to {}->http:// <IP ADDRESS> :8665
Feb 13, 2018 1:23:35 PM org.apache.http.impl.execchain.RetryExec execute
INFO: I/O exception (java.net.NoRouteToHostException) caught when
processing request to {}->http:// <IP ADDRESS> :8665: No route to host
Feb 13, 2018 1:23:35 PM org.apache.http.impl.execchain.RetryExec execute
INFO: Retrying request to {}->http:// <IP ADDRESS> :8665
Feb 13, 2018 1:23:35 PM org.apache.http.impl.execchain.RetryExec execute
INFO: I/O exception (java.net.NoRouteToHostException) caught when
processing request to {}->http:// <IP ADDRESS> :8665: No route to host
Feb 13, 2018 1:23:35 PM org.apache.http.impl.execchain.RetryExec execute
INFO: Retrying request to {}->http:// <IP ADDRESS> :8665
Failed to send request - No route to host


Subodh Chandra Joshi
subodh1_joshi82 at yahoo.co.in
http://www.questioninmind.com
_______________________________________________
keycloak-user mailing list
keycloak-user at lists.jboss.org
https://lists.jboss.org/mailman/listinfo/keycloak-user


More information about the keycloak-user mailing list