Error while executing groovy script 'Script execution failed, check error log for more info' | Community
Skip to main content
May 2, 2023

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

  • May 2, 2023
  • 2 replies
  • 1855 views

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

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

2 replies

Rohit_Utreja
Community Advisor
Community Advisor
May 2, 2023

Hi @deepika_sharma1 

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

 

Best Regards,

Rohit

Nikhil-Kumar
Community Advisor
Community Advisor
May 2, 2023

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

May 3, 2023

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/package/sources/44652-552916-daef29d2-934d-448a-a83b-4f51e55b045b/next/10332079, 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)