Installation appeared to work, or did it?

169 views
Skip to first unread message

Jonathan Brooks

unread,
Jul 28, 2021, 11:14:51 AM7/28/21
to dcm4che

Hi All,

I've managed to make it to the end of the secure installation using:

Ubuntu 20.04LTS
dcm4chee-arc-5.23.3-mysql-secure
keycloak-14.0.0
wildfly -24.0.0.Final
OpenLDAP
Openjdk-11
mysql (Server version: 8.0.26-0ubuntu0.20.04.2)
mysql-connector-java 8.0.26 (JDBC module)

Made it through to the end (took a day) and was able to deploy without errors. I used my host name as "localhost" throughout (no quotes), it's not a VM, no docker involved.

I'm going to post some instructions for this, but before I do I need to get the actual archive working!

I visit:

I can log in using the standard (?) username/password = admin/changeit

I'm presented with the J4Care background image and a menu icon top left, which if I select and then click on Navigation I get several warning messages appear (see attached image).

I've checked that the configuration for the dcm4chee-arc-ui client in keycloak is correct (so I don't think it's a web origins problem e.g. here), and it doesn't make any difference if I choose to use https or http, or use a private browsing window (not a caching problem).

I'm attaching the output from the Inspector->Network errors from the browser. I suspect this is related to keycloak thinking that the Node name is "my_machine_name", but I'm trying to access resources at "localhost" - not sure if this is relevant (connection blocked by CORS policy).

Any help with solving this would be much much much appreciated.

Best wishes,

Jon

localhost-1627483613810.log
error401.png

Vrinda Nayak

unread,
Jul 29, 2021, 5:08:42 AM7/29/21
to dcm4che
It seems you have deployed secured version of archive (UI and RESTful) but only secured UI in Keycloak subsystem's secure-deployment.

Jonathan Brooks

unread,
Jul 29, 2021, 3:49:10 PM7/29/21
to dcm4che
Hi Vrinda,

Thanks for this - can I check that your interpretation is that from the following two commands:

Or is it it that I didn't issue the following new(?) commands?

I'm a bit confused where I went wrong with this.

Best wishes,

Jon

Vrinda Nayak

unread,
Jul 30, 2021, 4:52:38 AM7/30/21
to dcm4che

Which version of archive have you deployed?
- /subsystem=keycloak/secure-deployment=dcm4chee-arc-ui2-5.x.x-secure.war/.........
and
- /subsystem=keycloak/secure-deployment=dcm4chee-arc-war-5.x.x-secure.war/.........
is required if you have deployed secured version of archive (where both UI & RESTful services of archive are secured) i.e. eg. dcm4chee-arc-ear-5.23.3-psql-secure.ear and dcm4chee-arc-ui2-5.23.3-secure.war

- /subsystem=keycloak/secure-deployment=dcm4chee-arc-ui2-5.x.x-secure.war/.........
is sufficient, if you've deployed only secure-ui version (where RESTful services are not secured) i.e. eg. dcm4chee-arc-ui2-5.23.3-secure.war and dcm4chee-arc-ear-5.23.3-psql.ear

Jonathan Brooks

unread,
Jul 30, 2021, 10:55:10 AM7/30/21
to dcm4che
HI Vrinda,

Thanks - as I mentioned in a follow up email I am trying to deploy secured UI and RESTful services. I deployed both - with no errors, but still couldn't interact with the UI without the unauthorized 401 errors.

No idea what's going wrong - the logs aren't particularly instructive.

Any other steps I should try?

Cheers, Jon

Vrinda Nayak

unread,
Jul 30, 2021, 11:50:30 AM7/30/21
to dcm4che
Can you share your wildfly configuration?

If you've deployed secured version of archive (UI and RESTful services both are secured) and also added them in Keycloak's server subsystem, check if requesting an access token from Keycloak and using it in a RESTful service works.

Jonathan Brooks

unread,
Jul 30, 2021, 12:50:10 PM7/30/21
to dcm4che
Appears to have worked, I think the only thing I did different this time was Secure the Wildfly Console as per your recent instructions.
Only other change was that I used the timezone=Europe/London instead of timezone=UTC when adding the mysql database via the JBoss CLI.

Requesting an access token worked using the curl command in the link you sent. Very exciting! :-)

Is there a recommended way to test uploading and downloading of data? At some point I will "attach" this server to the MRI scanner, but until then I need to do thing by hand I guess.

Thanks for all your help!!!!

Have a great weekend.

Best wishes,

Jon

Vrinda Nayak

unread,
Aug 1, 2021, 2:24:32 PM8/1/21
to dcm4che
Reply all
Reply to author
Forward
0 new messages