FranciscoLeiria Trusted Contributor.
Trusted Contributor.
1140 views

Database Purging flows fail after upgrade from 10.51 to 10.60

We've just upgraded from 10.51 to 10.60 and the scheduled Purging flows (Audit Records, Debug Events, Execution Summary) all started to fail with error:

Error while executing http request: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target

Running the flows directly from Flow Launcher shows the same error.

Any ideas?

 

 

Labels (1)
0 Likes
7 Replies
Micro Focus Expert
Micro Focus Expert

Re: Database Purging flows fail after upgrade from 10.51 to 10.60

Hi,

Judging by the error you recceive it seems to be an issue with the certificates (most likely using self signed certificates and https url). The quick and easy way to fix this is to set the trustAllRoots input to true and the x509HostnameVerifier to allow_all.

If these are the values for those 2 inputs then you may have encountered a defect from the base cp in which upgrading the base cp to a new-er version would solve the issue.

Regards,

Vlad

0 Likes
FranciscoLeiria Trusted Contributor.
Trusted Contributor.

Re: Database Purging flows fail after upgrade from 10.51 to 10.60

Thank you for your quick reply. I really appreciate it.
I did what you suggest, and the message I get now is the following:

Failed to execute content action: com.hp.oo:oo-base-plugin:1.9.1 -> noOpReason: Unable to execute mojo: java.lang.reflect.InvocationTargetException

Will try re-deploying the base cp, which was already the last one, and come back here.
0 Likes
FranciscoLeiria Trusted Contributor.
Trusted Contributor.

Re: Database Purging flows fail after upgrade from 10.51 to 10.60

Just re-deployed the same base c.p. with no luck.

So I downloaded the new one that was available and getting the same error (see different cp version)

Failed to execute content action: com.hp.oo:oo-base-plugin:1.10.0 -> noOpReason: Unable to execute mojo: java.lang.reflect.InvocationTargetException

0 Likes
Micro Focus Expert
Micro Focus Expert

Re: Database Purging flows fail after upgrade from 10.51 to 10.60

Hi,

1. Do you have a Linux or a Windows RAS/Central where this content is executed?

2. Can you share more than just the error message ? (eg. maybe the entire stack trace)

Thanks,

Lucian

0 Likes
FranciscoLeiria Trusted Contributor.
Trusted Contributor.

Re: Database Purging flows fail after upgrade from 10.51 to 10.60

  1. Windows Central
  2. Below

2017-04-27 12:21:50,617 [1_WorkerExecutionThread-8_288900037] (ExecutionServiceImpl.java:333) ERROR - Error occurred during operation execution. Execution id: 288900037
io.cloudslang.score.exceptions.FlowExecutionException: Failed to execute content action: com.hp.oo:oo-base-plugin:1.9.1 -> noOp
Reason: Unable to execute mojo: java.lang.reflect.InvocationTargetException
at io.cloudslang.worker.execution.reflection.ReflectionAdapterImpl.executeControlAction(ReflectionAdapterImpl.java:73)
at io.cloudslang.worker.execution.services.ExecutionServiceImpl.executeStep(ExecutionServiceImpl.java:326)
at io.cloudslang.worker.execution.services.ExecutionServiceImpl.execute(ExecutionServiceImpl.java:80)
at io.cloudslang.worker.management.services.SimpleExecutionRunnable.executeRegularStep(SimpleExecutionRunnable.java:167)
at io.cloudslang.worker.management.services.SimpleExecutionRunnable.run(SimpleExecutionRunnable.java:120)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at io.cloudslang.worker.management.services.WorkerThreadFactory$1.run(WorkerThreadFactory.java:33)
at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.reflect.InvocationTargetException
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:497)
at io.cloudslang.worker.execution.reflection.ReflectionAdapterImpl.executeControlAction(ReflectionAdapterImpl.java:62)
... 10 more
Caused by: io.cloudslang.score.exceptions.FlowExecutionException: Failed to execute content action: com.hp.oo:oo-base-plugin:1.9.1 -> noOp
Reason: Unable to execute mojo: java.lang.reflect.InvocationTargetException
at com.hp.oo.execution.control.actions.contentexecution.ContentExecutionActions.executeContentAction(ContentExecutionActions.java:147)
... 15 more
Caused by: java.lang.RuntimeException: Failed to resolve goals for plugin [com.hp.oo:oo-base-plugin:1.9.1]
at com.hp.oo.maven.PluginAdapterImpl.createPluginGoals(PluginAdapterImpl.java:439)
at com.hp.oo.maven.PluginAdapterImpl.getPluginGoals(PluginAdapterImpl.java:397)
at com.hp.oo.maven.PluginAdapterImpl.executePlugin(PluginAdapterImpl.java:311)
at com.hp.oo.maven.PluginAdapterImpl.execute(PluginAdapterImpl.java:248)
at com.hp.oo.execution.control.actions.contentexecution.ContentExecutionActions.executeContentAction(ContentExecutionActions.java:97)
... 15 more
Caused by: java.lang.RuntimeException: Unable to execute mojo: java.lang.reflect.InvocationTargetException
at com.hp.oo.maven.execution.PluginExecutorImpl.execute(PluginExecutorImpl.java:288)
at com.hp.oo.maven.execution.PluginExecutorImpl.execute(PluginExecutorImpl.java:231)
at com.hp.oo.maven.PluginAdapterImpl.getPluginMetadata(PluginAdapterImpl.java:469)
at com.hp.oo.maven.PluginAdapterImpl.createPluginGoals(PluginAdapterImpl.java:413)
... 19 more
Caused by: org.apache.maven.plugin.MojoExecutionException: Unable to execute mojo
at org.twdata.maven.mojoexecutor.MojoExecutor.executeMojo(MojoExecutor.java:96)
at com.hp.oo.maven.execution.PluginExecutorImpl.execute(PluginExecutorImpl.java:277)
... 22 more
Caused by: java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
at org.twdata.maven.mojoexecutor.MavenCompatibilityHelper.loadPluginDescriptor(MavenCompatibilityHelper.java:78)
at org.twdata.maven.mojoexecutor.MojoExecutor.executeMojo(MojoExecutor.java:85)
... 23 more
Caused by: java.lang.reflect.InvocationTargetException
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:497)
at org.twdata.maven.mojoexecutor.MavenCompatibilityHelper.loadPluginDescriptor(MavenCompatibilityHelper.java:73)
... 24 more
Caused by: org.apache.maven.plugin.PluginResolutionException: Plugin com.hp.oo:oo-base-plugin:1.9.1 or one of its dependencies could not be resolved: Failed to read artifact descriptor for com.hp.oo:oo-base-plugin:jar:1.9.1
at org.apache.maven.plugin.internal.DefaultPluginDependenciesResolver.resolve(DefaultPluginDependenciesResolver.java:122)
at org.apache.maven.plugin.internal.DefaultMavenPluginManager.getPluginDescriptor(DefaultMavenPluginManager.java:148)
at org.apache.maven.plugin.DefaultBuildPluginManager.loadPlugin(DefaultBuildPluginManager.java:81)
... 29 more
Caused by: org.eclipse.aether.resolution.ArtifactDescriptorException: Failed to read artifact descriptor for com.hp.oo:oo-base-plugin:jar:1.9.1
at org.apache.maven.repository.internal.DefaultArtifactDescriptorReader.loadPom(DefaultArtifactDescriptorReader.java:335)
at org.apache.maven.repository.internal.DefaultArtifactDescriptorReader.readArtifactDescriptor(DefaultArtifactDescriptorReader.java:217)
at org.eclipse.aether.internal.impl.DefaultRepositorySystem.readArtifactDescriptor(DefaultRepositorySystem.java:288)
at org.apache.maven.plugin.internal.DefaultPluginDependenciesResolver.resolve(DefaultPluginDependenciesResolver.java:108)
... 31 more
Caused by: org.eclipse.aether.resolution.ArtifactResolutionException: Could not transfer artifact com.hp.oo:oo-base-plugin:pom:1.9.1 from/to (http://localhost:443/oo/m2/artifacts): The server localhost failed to respond
at org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:459)
at org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolveArtifacts(DefaultArtifactResolver.java:262)
at org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolveArtifact(DefaultArtifactResolver.java:239)
at org.apache.maven.repository.internal.DefaultArtifactDescriptorReader.loadPom(DefaultArtifactDescriptorReader.java:320)
... 34 more
Caused by: org.eclipse.aether.transfer.ArtifactTransferException: Could not transfer artifact com.hp.oo:oo-base-plugin:pom:1.9.1 from/to (http://localhost:443/oo/m2/artifacts): The server localhost failed to respond
at org.eclipse.aether.connector.wagon.WagonRepositoryConnector$6.wrap(WagonRepositoryConnector.java:1016)
at org.eclipse.aether.connector.wagon.WagonRepositoryConnector$6.wrap(WagonRepositoryConnector.java:1004)
at org.eclipse.aether.connector.wagon.WagonRepositoryConnector$GetTask.run(WagonRepositoryConnector.java:725)
at org.eclipse.aether.util.concurrency.RunnableErrorForwarder$1.run(RunnableErrorForwarder.java:67)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
... 1 more
Caused by: org.apache.maven.wagon.TransferFailedException: The server localhost failed to respond
at org.apache.maven.wagon.shared.http.AbstractHttpClientWagon.fillInputData(AbstractHttpClientWagon.java:567)
at org.apache.maven.wagon.StreamWagon.getInputStream(StreamWagon.java:116)
at org.apache.maven.wagon.StreamWagon.getIfNewer(StreamWagon.java:88)
at org.apache.maven.wagon.StreamWagon.get(StreamWagon.java:61)
at org.eclipse.aether.connector.wagon.WagonRepositoryConnector$GetTask.run(WagonRepositoryConnector.java:660)
... 4 more
Caused by: org.apache.commons.httpclient.NoHttpResponseException: The server localhost failed to respond
at org.apache.commons.httpclient.HttpMethodBase.readStatusLine(HttpMethodBase.java:1976)
at org.apache.commons.httpclient.HttpMethodBase.readResponse(HttpMethodBase.java:1735)
at org.apache.commons.httpclient.HttpMethodBase.execute(HttpMethodBase.java:1098)
at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:398)
at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:171)
at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:397)
at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:323)
at org.apache.maven.wagon.shared.http.AbstractHttpClientWagon.execute(AbstractHttpClientWagon.java:446)
at org.apache.maven.wagon.shared.http.AbstractHttpClientWagon.fillInputData(AbstractHttpClientWagon.java:561)

0 Likes
FranciscoLeiria Trusted Contributor.
Trusted Contributor.

Re: Database Purging flows fail after upgrade from 10.51 to 10.60

We have two environments, is working on one and not in the other, in order for the flow to work we have two options:

1. Weaken the security (trustallroots=True) in input

2. Manually specify path to trustkeystore, and keystore password.

Seems that by default OO Central not trusting their own Selfsigned certificates?

Any ideas?

 

Thank you,

 

Francisco

0 Likes
AndreiTruta Outstanding Contributor.
Outstanding Contributor.

Re: Database Purging flows fail after upgrade from 10.51 to 10.60

Starting from the top, did you check the certificates of the Central - did they by any chancee expired? If yes, you will need to regenerate those.

It seems like upon flow triggering stuff needs to be cached to /var/cache folder - that is the reason why you get: http://localhost:443/oo/m2/artifacts from/to error - if the above certificate does not fix the problem you should also check that the Central is still configured to work for http too as it seems that the management url in the central wrapper points to http and localhost - as seen above

Let us know if you manage to fix it. thank you in advance,

Andrei Vasile Truta
0 Likes
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.