Error while upgrading from 5.17.1 to 5.22.0 (Deploy error)

160 views
Skip to first unread message

Toufic Mokbel

unread,
Mar 23, 2020, 8:26:17 AM3/23/20
to dcm4che
Upgrading from 5.17.1 to 5.22.0 (mysql)

While updating LDAP data, I modified the fields of all update-config-5.18.1 to 5.22.0 being dcmAETitle=DCM4CHEE to dcmAETitle=TNMPACS
because I only modified the AET in 5.17.1 from DCM4CHEE to TNMPACS.
(shall I need to modify anything else in update-config-xxx files?)

I got an error while using importing update-config-5.19.1 that the entry already existed, it was solved by ticking on "update existing entries" in the LDIF Import option tab.
All steps were successfully performed.
During the Update Widlfly Deployment (ver 17.0.1) I was asked to overwrite some files while extracting  'cm4che-jboss-modules-dcm4chee-arc-light-5.x.x.zip' and 'jclouds-jboss-modules-2.2.0-noguava.zip', although I deleted the folders "modules/org/apache/jclouds" and "modules/org/dcm4che'.
The process failed while deploying 5.22.0 with the following error:

 deploy C:\SMLPACS\PACS\dcm4chee-arc-5.22.0-mysql\deploy\dcm4chee-arc-ear-5.22.0-mysql.ear

{"WFLYCTL0062: Composite operation failed and was rolled back. Steps that failed:" => {"Operation step-2" =>
 {"WFLYCTL0080: Failed services" => {"jboss.deployment.subunit.\"dcm4chee-arc-ear-5.22.0-mysql.ear\".\"dcm4chee-arc-ser
vice-5.22.0.jar\".component.ArchiveServiceImpl.START" => "java.lang.IllegalStateException: WFLYEE0042: Failed to constr
uct component instance
    Caused by: java.lang.IllegalStateException: WFLYEE0042: Failed to construct component instance
    Caused by: javax.ejb.EJBException: java.lang.RuntimeException: java.io.IOException: Unable to start TCPListener on
localhost:2762
    Caused by: java.lang.RuntimeException: java.io.IOException: Unable to start TCPListener on localhost:2762
    Caused by: java.io.IOException: Unable to start TCPListener on localhost:2762
    Caused by: java.io.FileNotFoundException: C:\\SMLPACS\\wildfly-17.0.1.Final\\standalone\\configuration\\keystores\\
key.jks (The system cannot find the path specified)"}}}}


The Wildfly log:


ERROR [org.jboss.msc.service.fail] (ServerService Thread Pool -- 127) MSC000001: Failed to start service jboss.deployment.subunit."dcm4chee-arc-ear-5.22.0-mysql.ear"."dcm4chee-arc-service-5.22.0.jar".component.ArchiveServiceImpl.START: org.jboss.msc.service.StartException in service jboss.deployment.subunit."dcm4chee-arc-ear-5.22.0-mysql.ear"."dcm4chee-arc-service-5.22.0.jar".component.ArchiveServiceImpl.START: java.lang.IllegalStateException: WFLYEE0042: Failed to construct component instance
        at org.jboss.as.ee.component.ComponentStartService$1.run(ComponentStartService.java:57)
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
        at java.util.concurrent.FutureTask.run(FutureTask.java:266)
        at org.jboss.threads.ContextClassLoaderSavingRunnable.run(ContextClassLoaderSavingRunnable.java:35)
        at org.jboss.threads.EnhancedQueueExecutor.safeRun(EnhancedQueueExecutor.java:1982)
        at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.doRunTask(EnhancedQueueExecutor.java:1486)
        at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1348)
        at java.lang.Thread.run(Thread.java:748)
        at org.jboss.threads.JBossThread.run(JBossThread.java:485)
Caused by: java.lang.IllegalStateException: WFLYEE0042: Failed to construct component instance
        at org.jboss.as.ee.component.BasicComponent.constructComponentInstance(BasicComponent.java:163)
        at org.jboss.as.ee.component.BasicComponent.constructComponentInstance(BasicComponent.java:134)
        at org.jboss.as.ee.component.BasicComponent.createInstance(BasicComponent.java:88)
        at org.jboss.as.ejb3.component.singleton.SingletonComponent.getComponentInstance(SingletonComponent.java:127)
        at org.jboss.as.ejb3.component.singleton.SingletonComponent.start(SingletonComponent.java:141)
        at org.jboss.as.ee.component.ComponentStartService$1.run(ComponentStartService.java:54)
        ... 8 more
Caused by: javax.ejb.EJBException: java.lang.RuntimeException: java.io.IOException: Unable to start TCPListener on localhost:2762


Please check what could be the reason,
Thank you!


Vrinda Nayak

unread,
Mar 23, 2020, 9:20:11 AM3/23/20
to dcm4che
The key.jks and cacerts.jks configuration has been changed as part of issue. Please move these 2 files from $Wildfly_Home/standalaone/configuration/dcm4chee-arc to $Wildfly_Home/standalaone/configuration/keystores and retry. I've also updated this missing information in Upgrade wiki.

Toufic Mokbel

unread,
Mar 23, 2020, 9:56:01 AM3/23/20
to dcm...@googlegroups.com

Fixed! thank you!

Please confirm that I need only to change dcmAETitle=DCM4CHEE in all the update-config-xxxxx.LDIF files in case I only modified the AET in 5.17.1?
PS: Please clarify what shall be changed in the update-config-xxxxx.LDIF files  if the default AET was modified in 5.17.1?
What shall this change affect the Web Application Default name in 5.22.0? Shall the Web App name be changed also manually in 5.22.0?


Please also confirm that there is nothing wrong with below:
I got an error while using importing update-config-5.19.1 that the entry already existed, it was solved by ticking on "update existing entries" in the LDIF Import option tab.
All steps were successfully performed.
During the Update Widlfly Deployment (ver 17.0.1) I was asked to overwrite some files while extracting  'cm4che-jboss-modules-dcm4chee-arc-light-5.x.x.zip' and 'jclouds-jboss-modules-2.2.0-noguava.zip', although I deleted the folders "modules/org/apache/jclouds" and "modules/org/dcm4che'.

Thank you!

Toufic Mokbel

unread,
Mar 25, 2020, 3:10:33 AM3/25/20
to dcm4che
Kindly confirm...
To avoid any wrong step...
Thanks!

Gunter Zeilinger

unread,
Mar 25, 2020, 3:49:31 AM3/25/20
to dcm...@googlegroups.com
https://github.com/dcm4che-dockerfiles/slapd-dcm4chee/blob/master/ldap/configure.sh#L29-L55


Sent with ProtonMail Secure Email.

‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐
> -----------------------------------------------------
>
> You received this message because you are subscribed to the Google Groups "dcm4che" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to dcm4che+u...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/dcm4che/27d48eb4-b90a-406a-960f-44ae1a4dcbe0%40googlegroups.com.


Toufic Mokbel

unread,
Mar 25, 2020, 3:58:03 AM3/25/20
to dcm4che
Dear,

A bit confusing, I am using W10 Operating System and Apache DS.
Just need a confirmation on the below steps while upgrading from 5.17.1 to 5.22.0.

Do I need only to change dcmAETitle=DCM4CHEE in all the update-config-xxxxx.LDIF files in case I only modified the AET in 5.17.1?

Gunter Zeilinger

unread,
Mar 25, 2020, 4:42:03 AM3/25/20
to dcm...@googlegroups.com
Shell script https://github.com/dcm4che-dockerfiles/slapd-dcm4chee/blob/master/bin/update-data in the provided docker image with Open LDAP applies necessary string replacements on the update LDIF files according configuration parameters passed by environment variables. So it documents best, how to customize provided update LDIF files according your settings.





Sent with ProtonMail Secure Email.


‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐
You received this message because you are subscribed to the Google Groups "dcm4che" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dcm4che+u...@googlegroups.com.

Toufic Mokbel

unread,
Mar 25, 2020, 12:14:52 PM3/25/20
to dcm4che
Thank you...
Still need your advice about below, if anything else shall be done:

I got an error while using importing update-config-5.19.1 that the entry already existed, it was solved by ticking on "update existing entries" in the LDIF Import option tab.

And,

Gunter Zeilinger

unread,
Mar 25, 2020, 1:01:05 PM3/25/20
to dcm...@googlegroups.com



Sent with ProtonMail Secure Email.

‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐
On Wednesday, March 25, 2020 5:14 PM, Toufic Mokbel <toufic...@gmail.com> wrote:

> Thank you...
> Still need your advice about below, if anything else shall be done:
>
> I got an error while using importing update-config-5.19.1 that the entry already existed, it was solved by ticking on "update existing entries" in the LDIF Import option tab.

It's not necessarily an issue. But without knowing which object/attribute was overwritten, I can't give you a hint, if or which feature may be got affected.

>
> And,
>
> During the Update Widlfly Deployment (ver 17.0.1) I was asked to overwrite some files while extracting 'cm4che-jboss-modules-dcm4chee-arc-light-5.x.x.zip' and 'jclouds-jboss-modules-2.2.0-noguava.zip', although I deleted the folders "modules/org/apache/jclouds" and "modules/org/dcm4che'.
>
>

It may was caused by

unzip -l ~/work/dcm4che/dcm4che-jboss-modules/target/dcm4che-jboss-modules-5.22.0.zip modules/org/keycloak/*
Archive: /home/gunter/work/dcm4che/dcm4che-jboss-modules/target/dcm4che-jboss-modules-5.22.0.zip
Length Date Time Name
--------- ---------- ----- ----
0 2020-03-25 11:24 modules/org/keycloak/
0 2020-03-25 11:24 modules/org/keycloak/admin-client/
0 2020-03-25 11:24 modules/org/keycloak/admin-client/main/
57776 2020-02-20 13:22 modules/org/keycloak/admin-client/main/keycloak-admin-client-9.0.0.jar
576 2020-03-25 11:24 modules/org/keycloak/admin-client/main/module.xml
--------- -------
58352 5 files

But jclouds-jboss-modules-2.2.0-noguava.zip, actually only contains files under modules/org/apache/jclouds, so I am in doubt, that you really removed that directory before.

Anyway, it should not harm.


Toufic Mokbel

unread,
Mar 26, 2020, 4:14:21 AM3/26/20
to dcm4che

Dear Gunter,
Please see below in red.





Sent with ProtonMail Secure Email.

‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐
On Wednesday, March 25, 2020 5:14 PM, Toufic Mokbel <toufic...@gmail.com> wrote:

> Thank you...
> Still need your advice about below, if anything else shall be done:
>
> I got an error while using importing update-config-5.19.1 that the entry already existed, it was solved by ticking on "update existing entries" in the LDIF Import option tab.

It's not necessarily an issue. But without knowing which object/attribute was overwritten, I can't give you a hint, if or which feature may be got affected.
I have attached the log for the update-config-5.19.1.ldif (all other update-config-x.xx.x passed without errors).
Too many #!ERROR ENTRY_ALREADY_EXISTS in the above.
Please advise whether they should be overwritten or not?



>
> And,
>
> During the Update Widlfly Deployment (ver 17.0.1) I was asked to overwrite some files while extracting 'cm4che-jboss-modules-dcm4chee-arc-light-5.x.x.zip' and 'jclouds-jboss-modules-2.2.0-noguava.zip', although I deleted the folders "modules/org/apache/jclouds" and "modules/org/dcm4che'.
>

It may was caused by

 unzip -l ~/work/dcm4che/dcm4che-jboss-modules/target/dcm4che-jboss-modules-5.22.0.zip modules/org/keycloak/*
Archive:  /home/gunter/work/dcm4che/dcm4che-jboss-modules/target/dcm4che-jboss-modules-5.22.0.zip
  Length      Date    Time    Name
---------  ---------- -----   ----
        0  2020-03-25 11:24   modules/org/keycloak/
        0  2020-03-25 11:24   modules/org/keycloak/admin-client/
        0  2020-03-25 11:24   modules/org/keycloak/admin-client/main/
    57776  2020-02-20 13:22   modules/org/keycloak/admin-client/main/keycloak-admin-client-9.0.0.jar
      576  2020-03-25 11:24   modules/org/keycloak/admin-client/main/module.xml
---------                     -------
    58352                     5 files

The only file in the dcm4che-jboss-modules-5.22.0.zip that was overwritten in the old version is  \modules\org\keycloak\admin-client\main\module.xml
I guess no problem with it? 

But jclouds-jboss-modules-2.2.0-noguava.zip, actually only contains files under modules/org/apache/jclouds, so I am in doubt, that you really removed that directory before.

You are right! 
update-config-5.19.1.ldif.log

Gunter Zeilinger

unread,
Mar 26, 2020, 4:59:55 AM3/26/20
to dcm...@googlegroups.com
Seems that for some reason your LDAP data already included changes implied by

If you are not aware of any configuration changes you did related to that issues, overwriting the existing entries should not harm.


Sent with ProtonMail Secure Email.

‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐
--
You received this message because you are subscribed to the Google Groups "dcm4che" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dcm4che+u...@googlegroups.com.

mohammadlockman

unread,
Mar 29, 2020, 1:51:28 AM3/29/20
to Toufic Mokbel, dcm4che




Sent from my Samsung Galaxy smartphone.
-------- Original message --------
From: Toufic Mokbel <toufic...@gmail.com>
Date: 2020/03/26 2:14 PM (GMT+06:00)
Subject: Re: [dcm4che-group] Re: Error while upgrading from 5.17.1 to 5.22.0 (Deploy error)


Dear Gunter,
Please see below in red.



Sent with ProtonMail Secure Email.

‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐
On Wednesday, March 25, 2020 5:14 PM, Toufic Mokbel <tobb
ufic...@gmail.com> wrote:

> Thank you..
Reply all
Reply to author
Forward
0 new messages