Installing dcm4chee-arc-5.18.1-psql-secure-ui.zip - No adapter configuration. Keycloak is unconfigured and will deny all requests.

147 views
Skip to first unread message

Victor S

unread,
Oct 11, 2019, 5:38:44 AM10/11/19
to dcm...@googlegroups.com
Hello

I installed today dcm4chee-arc-5.18.1-psql-secure-ui.zip and when I try to access http://<server>:8080/dcm4chee-arc/ui2/ I receive the message "Forbidden", like in the image attached.
This is not an upgrade, I installed from zero.
I looked at the WildFly console and here the error is "[org.keycloak.adapters.undertow.KeycloakServletExtension] (ServerService Thread Pool -- 130) No adapter configuration.  Keycloak is unconfigured and will deny all requests."
At installation time I installed the adapter with these commands(that now give me the error "Duplicate resource" ):
[standalone@localhost:9990 /] /subsystem=security/security-domain=keycloak/:add
{
   
"outcome" => "failed",
   
"failure-description" => "WFLYCTL0212: Duplicate resource [
    (\"subsystem\" => \"security\"),
    (\"security-domain\" => \"keycloak\")
]"
,
   
"rolled-back" => true
}
[standalone@localhost:9990 /] /subsystem=security/security-domain=keycloak/authentication=classic/:add(login-modules=[{ "code" => "org.keycloak.adapters.jboss.KeycloakLoginModule","flag" => "required"}])
{
   
"outcome" => "failed",
   
"failure-description" => "WFLYCTL0212: Duplicate resource [
    (\"subsystem\" => \"security\"),
    (\"security-domain\" => \"keycloak\"),
    (\"authentication\" => \"classic\")
]"
,
   
"rolled-back" => true
}
[standalone@localhost:9990 /] /extension=org.keycloak.keycloak-adapter-subsystem/:add(module=org.keycloak.keycloak-adapter-subsystem)
{
   
"outcome" => "failed",
   
"failure-description" => "WFLYCTL0212: Duplicate resource [(\"extension\" => \"org.keycloak.keycloak-adapter-subsystem\")]",
   
"rolled-back" => true
}
[standalone@localhost:9990 /] /subsystem=keycloak:add
{
   
"outcome" => "failed",
   
"failure-description" => "WFLYCTL0212: Duplicate resource [(\"subsystem\" => \"keycloak\")]",
   
"rolled-back" => true
}

So the adapter is installed, why is WildFly reporting "No adapter configuration"?

Thank you.
forbidden.jpg

Victor S

unread,
Oct 14, 2019, 5:17:33 AM10/14/19
to dcm4che
I solved the problem, I reinstalled wildfly and keycloak. At keycloak server I originally didn't create a new realm named dcm4chee(as instructed),  instead I renamed the Master realm.
At the second installation I've finally seen the button "Add realm" in the keycloak server web interface(the button is hard too see...:) ).
I guess this was the cause of the error in my first installation.
Reply all
Reply to author
Forward
0 new messages