Highlighted
Outstanding Contributor.
Outstanding Contributor.
1382 views

UD Probe Error Failed to load post import hooks script

Jump to solution

Product: UCMDB 10.33 CUP 3 CP 29
OS: Windows Server 2012 R2

I recently upgraded UCMDB from CUP 2 with CP 27 to CUP 3 with CP 29. I'm now getting mulitple errors in the probe logs about "Failed to load post import hooks script". The jobs continue to run but I have not evaluated what the full effect is of this error.

Here is an example of the full error message:

<2018-12-07 18:59:38,288> [WARN ] [JobExecuterWorker-16:Inventory_Discovery_by_Scanner_Datacenter_137.202.221.6] (?:?) - Failed to load post import hooks script
Traceback (most recent call last):
  File "vital_product_data_by_aix_vio_lsdev_impl", line 15, in <module>
  File "vital_product_data_by_aix_vio_lsdev_impl", line 22, in Discoverer
  File "os_platform_discoverer", line 53, in __getattr__
AttributeError

	at org.python.core.PyException.doRaise(PyException.java:198)
	at org.python.core.Py.makeException(Py.java:1337)
	at org.python.core.Py.makeException(Py.java:1341)
	at org.python.core.Py.makeException(Py.java:1345)
	at org.python.pycode._pyx3173.__getattr__$10(os_platform_discoverer:53)
	at org.python.pycode._pyx3173.call_function(os_platform_discoverer)
	at org.python.core.PyTableCode.call(PyTableCode.java:167)
	at org.python.core.PyBaseCode.call(PyBaseCode.java:153)
	at org.python.core.PyFunction.__call__(PyFunction.java:423)
	at org.python.core.PyFunction.__call__(PyFunction.java:418)
	at org.python.core.PyInstance.ifindfunction(PyInstance.java:189)
	at org.python.core.PyInstance.__findattr_ex__(PyInstance.java:151)
	at org.python.core.PyObject.__getattr__(PyObject.java:1006)
	at org.python.pycode._pyx3174.Discoverer$1(vital_product_data_by_aix_vio_lsdev_impl:29)
	at org.python.pycode._pyx3174.call_function(vital_product_data_by_aix_vio_lsdev_impl)
	at org.python.core.PyTableCode.call(PyTableCode.java:167)
	at org.python.core.PyBaseCode.call(PyBaseCode.java:307)
	at org.python.core.Py.makeClass(Py.java:1837)
	at org.python.core.Py.makeClass(Py.java:1831)
	at org.python.pycode._pyx3174.f$0(vital_product_data_by_aix_vio_lsdev_impl:15)
	at org.python.pycode._pyx3174.call_function(vital_product_data_by_aix_vio_lsdev_impl)
	at org.python.core.PyTableCode.call(PyTableCode.java:167)
	at org.python.core.PyCode.call(PyCode.java:18)
	at org.python.core.Py.runCode(Py.java:1386)
	at org.python.core.Py.exec(Py.java:1430)
	at com.hp.ucmdb.discovery.library.execution.impl.ScriptsLoader.loadModule(ScriptsLoader.java:259)
	at com.hp.ucmdb.discovery.library.execution.impl.ScriptsLoader.loadModule(ScriptsLoader.java:165)
	at com.hp.ucmdb.discovery.library.execution.impl.ScriptsLoader.loadModule(ScriptsLoader.java:161)
	at com.hp.ucmdb.discovery.library.execution.impl.ScriptsLoader.reloadPostImportHooksScripts(ScriptsLoader.java:529)
	at com.hp.ucmdb.discovery.library.execution.impl.ScriptsLoader.loadPostImportHooks(ScriptsLoader.java:501)
	at com.hp.ucmdb.discovery.library.execution.impl.ExecutionEngineImpl.executeScripts(ExecutionEngineImpl.java:138)
	at com.hp.ucmdb.discovery.library.execution.impl.StepExecutionEngineImpl.executeScript(StepExecutionEngineImpl.java:43)
	at com.hp.ucmdb.discovery.probe.agents.probemgr.workflow.WorkflowJythonStep.executeStep(WorkflowJythonStep.java:21)
	at com.hp.ucmdb.discovery.probe.agents.probemgr.workflow.WorkflowInstance.executeStep(WorkflowInstance.java:256)
	at com.hp.ucmdb.discovery.probe.agents.probemgr.workflow.WorkflowInstance.execute(WorkflowInstance.java:82)
	at com.hp.ucmdb.discovery.probe.agents.probemgr.workflow.WorkflowInstance$$FastClassBySpringCGLIB$$c6755917.invoke(<generated>)
	at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:204)
	at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:700)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at org.springframework.aop.aspectj.MethodInvocationProceedingJoinPoint.proceed(MethodInvocationProceedingJoinPoint.java:80)
	at com.hp.ucmdb.discovery.probe.agents.probemgr.accuratedependencies.aspects.PerformanceLoggingAspect.workflowInstancePerformanceLogging(PerformanceLoggingAspect.java:21)
	at sun.reflect.GeneratedMethodAccessor60.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethodWithGivenArgs(AbstractAspectJAdvice.java:621)
	at org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethod(AbstractAspectJAdvice.java:610)
	at org.springframework.aop.aspectj.AspectJAroundAdvice.invoke(AspectJAroundAdvice.java:65)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:91)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:633)
	at com.hp.ucmdb.discovery.probe.agents.probemgr.workflow.WorkflowInstance$$EnhancerBySpringCGLIB$$d0e85e7a.execute(<generated>)
	at com.hp.ucmdb.discovery.probe.services.dynamic.core.WorkflowService.discover(WorkflowService.java:61)
	at com.hp.ucmdb.discovery.probe.agents.probemgr.taskexecuter.JobExecuter.launchTask(JobExecuter.java:1226)
	at com.hp.ucmdb.discovery.probe.agents.probemgr.taskexecuter.JobExecuter$JobExecuterWorker.launchAndIsProbeRestarting(JobExecuter.java:973)
	at com.hp.ucmdb.discovery.probe.agents.probemgr.taskexecuter.JobExecuter$JobExecuterWorker.executeTask(JobExecuter.java:889)
	at com.hp.ucmdb.discovery.probe.agents.probemgr.taskexecuter.JobExecuter$JobExecuterWorker.run(JobExecuter.java:749)
Tags (2)
0 Likes
1 Solution

Accepted Solutions
Highlighted
Outstanding Contributor.
Outstanding Contributor.

I have received probe hot fix QCCR1H125070 which resolved the "Failed to load post import hooks script" error message. The hot fix also resolved an issue with the probes dumping heap memory frequently and restarting.

 

John

View solution in original post

0 Likes
14 Replies
Highlighted
Acclaimed Contributor.
Acclaimed Contributor.

Hello John,

 

this is a known regression in CUP3. There is a patch via Support.

 

Kind regards,
Bogdan Mureșan

EMEA Technical Success
Highlighted
Outstanding Contributor.
Outstanding Contributor.

Thank you Bogdan for the information!

Cheers,
John

0 Likes
Highlighted
Respected Contributor.
Respected Contributor.

Hello,

I have the same error for UCMDB 2018.11 with CP29. Is there a patch for this version too?

0 Likes
Highlighted
Acclaimed Contributor.
Acclaimed Contributor.

AFAIK it was reported only on 10.33 CUP3 but the CP29 version is common in both scenarios.
I understood that it was due to some typo in the CUP3 patch. Could be also some consequences in CP29. Support should be involved.

Kind regards,
Bogdan Mureșan

EMEA Technical Success
0 Likes
Highlighted
Honored Contributor.
Honored Contributor.

Hi John,

 

We have exaclty the same trace  with uCMDB 10.33.CUP 29.

Support are not able to help us. Coud you give me details of the resoltion? Fix name ? Etc

BR

Thomas

 

 

 

0 Likes
Highlighted
Honored Contributor.
Honored Contributor.

Hi Bogdan,

I already heard your name from Karim. We have the same situation and after one month no solution from support.

Could you help us?

BR

Thomas

0 Likes
Highlighted
Outstanding Contributor.
Outstanding Contributor.

The issue has not been resolved. I did receive a patch this week but it didn't fix the issue.

0 Likes
Highlighted
Honored Contributor.
Honored Contributor.

Hi John,

We have also received discovery-library.jar but it doesn't works.

BR

Thomas

0 Likes
Highlighted
Respected Contributor.
Respected Contributor.

 Hi,

I have made some reverse engineering on the discovery-library.jar, it seems the regression came from a change in CUP3. I think this is this one :

Change Request: QCCR1H111703:  Symptom:    This is a request to provide an automatic method to ensure that the class    cache files are always up to date whenever script changes are made.  Resolution:    Fixed the compile issue for the .py class cache files.

We have ask the support to provide a new jar whithout it.

Best regards,

Camille

0 Likes
Highlighted
Outstanding Contributor.
Outstanding Contributor.

I did not receive a new discovery-library.jar from support. I was sent patch124240 which patches the ScriptsLoader.class but that did not work. I am hoping that they are able to find a solution soon.

John

0 Likes
Highlighted
Honored Contributor.
Honored Contributor.

Hi John,

We have finally received a new jar which rollback  QCCR1H111703. And it works.

The second step it to fix bug.

I will unform you if you want when we have a final fix

BR

Thomas

The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.