search cancel

DX AIOps 21.3.1 - Unable to connect to DOI UI - doi-adminui pod in crashloopback

book

Article ID: 254962

calendar_today

Updated On:

Products

DX Operational Intelligence

Issue/Introduction

Symptoms:

- doiadmin pod is in crashloopback.  

- the following error is reported in the doi-adminui pod log: 

java.lang.NoSuchMethodError: org.apache.commons.lang3.text.StrSubstitutor.setPreserveEscapes(Z)V
at org.apache.openejb.util.PropertyPlaceHolderHelper.<clinit>(PropertyPlaceHolderHelper.java:51)
at org.apache.openejb.assembler.classic.Assembler.createRecipe(Assembler.java:3750)
at org.apache.openejb.assembler.classic.Assembler.createTransactionManager(Assembler.java:3571)
at org.apache.openejb.assembler.classic.Assembler.buildContainerSystem(Assembler.java:574)
at org.apache.openejb.assembler.classic.Assembler.build(Assembler.java:494)
at org.apache.openejb.OpenEJB$Instance.<init>(OpenEJB.java:150)
at org.apache.openejb.OpenEJB.init(OpenEJB.java:307)
at org.apache.tomee.catalina.TomcatLoader.initialize(TomcatLoader.java:245)
at org.apache.tomee.catalina.ServerListener.lifecycleEvent(ServerListener.java:169)
at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:123)
at org.apache.catalina.util.LifecycleBase.setStateInternal(LifecycleBase.java:423)
at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:137)
at org.apache.catalina.startup.Catalina.load(Catalina.java:724)
at org.apache.catalina.startup.Catalina.load(Catalina.java:746)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:305)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:475)

Environment

DX Platform 21.3.1, 21.3.1HF1

Cause

The problem is related to defect DE551667 : Class loading problem with different versions of the same third party jar

Resolution

Solution:

Fixed in 22.1 and onward releases.

 

Workaround:

1) Download the attached package : doi-adminui-21.3.1-ga-hf2.tar.gz

 

2) Extract the content :

gzip -d doi-adminui-21.3.1-ga-hf2.tar.gz

 

3) Load image:  

docker load --input doi-adminui-21.3.1-ga-hf2.tar

 

NOTE: In the below commands replace:

<namespace>                       = with your namespace or project name
<private-registry-hostname> = with your docker registry hostname

 

4) Tag image 

docker tag esd-oi-docker-release-local.artifactory-lvn.broadcom.net/doi/onprem/doi-ui:onprem-21.3.1-ga-hf2.4733 <private-registry-hostname>:5000/<namespace>/doi-ui:onprem-21.3.1-ga-hf2.4733

 

5) Push docker image to central repository  

docker push <private-registry-hostname>:5000/<namespace>/doi-ui:onprem-21.3.1-ga-hf2.4733

 

6) Edit image deployment to reference new image name  

kubectl edit deployment doi-adminui -n <namespace>

search for "image:" and replace the value with the new image name, for example:

  ...

 image: <private-registry-hostname>:5000/<namespace>/doi-ui:onprem-21.3.1-ga-hf2.4733

 ...

Save the deployment  

 

7) Scale up the doi-adminui pod  

kubectl scale --replicas=1 deployment doi-adminui -n<namespace>

 

8) Verify doi-adminui  pod started successfully 

Additional Information

https://knowledge.broadcom.com/external/article/190815/aiops-troubleshooting-common-issues-and.html#mcetoc_1fp6nrcl8i

Attachments

doi-adminui-21.3.1-ga-hf2.tar_1669306672794.gz get_app