Expand my Community achievements bar.

Error while executing groovy script 'Script execution failed, check error log for more info'

Avatar

Level 1

Hi,
i have written a groovy script to rename my dam assets and publish them after moving from old path to a new path, but while i run the script after 2-3 minutes i see an error 'Script execution failed, check error log for more info'. Could anyone help me resolve this ?
I am using AEMaaCS and Groovy version 17.0.0. 


Thanks,
Deepika

3 Replies

Avatar

Community Advisor

Hi @deepika_sharma1 

Could you please have a look at the AEM logs and share it?

 

Best Regards,

Rohit

Avatar

Community Advisor

@deepika_sharma1 - Could you please share the error log along with the script that you are executing.

Avatar

Level 1

Hi @Nikhil-Kumar ,

I can see the below warning repeated around 10 times in my logs.

02.05.2023 09:01:37.175 [cm-p44652-e552916-aem-author-68b9fd4c87-vwwfx] *INFO* [Service Poller for discovery] org.apache.http.impl.execchain.RetryExec Retrying request to {}->http://content-distribution.ns-team-content-distribution.svc.cluster.local:8080
02.05.2023 09:01:39.546 [cm-p44652-e552916-aem-author-68b9fd4c87-vwwfx] *WARN* [Service Poller for package] com.adobe.granite.distribution.service.mclient.ServicePoller Error polling message topic=package, position=10332079
com.adobe.granite.distribution.service.mclient.RetryException: Got status code=500, reason='' when trying to get from url=http://content-distribution.ns-team-content-distribution.svc.cluster.local:8080/distribution/topics/..., retrying after delay=40000
at com.adobe.granite.distribution.service.mclient.RestClient.get(RestClient.java:93) [com.adobe.granite.distribution.service.messaging-client:0.15.10]
at com.adobe.granite.distribution.service.mclient.ServicePoller.requestNext(ServicePoller.java:153) [com.adobe.granite.distribution.service.messaging-client:0.15.10]
at com.adobe.granite.distribution.service.mclient.ServicePoller.poller(ServicePoller.java:81) [com.adobe.granite.distribution.service.messaging-client:0.15.10]
at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at java.base/java.lang.Thread.run(Thread.java:834)