Knowledge Article :: "Workflow execution stuck into the Execution Started state" or "Error while restarting the agent"

Problem:

“Workflow execution stuck into the Execution Started state”

“Error while restarting the agent”

“On AEUI, Request stays in in ‘Execution Started’ state, When no execution is going on.”

Issue#1 - Error in log file:

ERROR WorkflowResponseHandler: - Could not successfully send the response to the server, putting it back in queue

Issue# 2- When try to restart the agent got below error:

CloudFront attempted to establish a connection with the origin, but either the attempt failed, or the origin closed the connection. We can’t connect to the server for this app or website at this time. There might be too much traffic or a configuration error. Try again later or contact the app or website owner.

Solution:

The below error occurs in AE Server logs, when workflow execution response is received from the agent. So, this error is resulting in failure while updating response back to Server from agent and that’s why requests are remaining in the “ExecutionStarted” state.

2020-06-04 00:04:52 UTC (Z) http-nio-8080-exec-42 ERROR AEEmailServiceImpl:663 - <[-server name-]-PROD>, error sending email, {}
org.springframework.mail.MailSendException: Mail server connection failed; nested exception is javax.mail.MessagingException: Could not connect to SMTP host: [], port: 587;

The error states that AE Server on On-demand instance is not able to connect to your SMTP server.

  1. Check your SMTP Server configuration from AE UI and correct it if needed.
  2. As a workaround, you can disable email notification features for now.