2022-04-05 01:09 PM
I'm trying to make our reporting engine send the generated reports via email, however it keeps getting stuck at Partial state after execution. When I checked the logs, it shows this error:
Failed to execute Report Output Action
com.rsa.soc.re.exception.ReportingException: Sending email failed.Please check SMTP Output Action configuration
at com.rsa.soc.re.outputaction.email.EmailOutputActionHandler.execute(EmailOutputActionHandler.java:195)
at com.rsa.soc.re.outputaction.report.ReportOutputActionExecutor.execute(ReportOutputActionExecutor.java:226)
at com.rsa.soc.re.outputaction.report.ReportOutputActionExecutor.run(ReportOutputActionExecutor.java:128)
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)
Caused by: java.io.IOException: javax.mail.MessagingException: Could not connect to SMTP host: <SMTP SERVER>, port: 25;
nested exception is:
java.net.SocketTimeoutException: Read timed out
at com.rsa.soc.re.utils.JavaMailUtils.sendMultipleAttachments(JavaMailUtils.java:337)
at com.rsa.soc.re.outputaction.email.EmailOutputActionHandler.execute(EmailOutputActionHandler.java:184)
... 7 more
Caused by: javax.mail.MessagingException: Could not connect to SMTP host: <SMTP SERVER>, port: 25;
nested exception is:
java.net.SocketTimeoutException: Read timed out
at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:1961)
at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:654)
at javax.mail.Service.connect(Service.java:317)
at javax.mail.Service.connect(Service.java:176)
at javax.mail.Service.connect(Service.java:125)
at javax.mail.Transport.send0(Transport.java:194)
at javax.mail.Transport.send(Transport.java:124)
at com.rsa.soc.re.utils.JavaMailUtils.sendMultipleAttachments(JavaMailUtils.java:331)
... 8 more
Caused by: java.net.SocketTimeoutException: Read timed out
at java.base/java.net.SocketInputStream.socketRead0(Native Method)
at java.base/java.net.SocketInputStream.socketRead(SocketInputStream.java:115)
at java.base/java.net.SocketInputStream.read(SocketInputStream.java:168)
at java.base/java.net.SocketInputStream.read(SocketInputStream.java:140)
at com.rsa.sslj.x.ap.c(Unknown Source)
at com.rsa.sslj.x.ap.a(Unknown Source)
at com.rsa.sslj.x.ap.a(Unknown Source)
at com.rsa.sslj.x.ap.j(Unknown Source)
at com.rsa.sslj.x.ap.i(Unknown Source)
at com.rsa.sslj.x.ap.h(Unknown Source)
at com.rsa.sslj.x.aT.startHandshake(Unknown Source)
at com.sun.mail.util.SocketFetcher.configureSSLSocket(SocketFetcher.java:549)
at com.sun.mail.util.SocketFetcher.createSocket(SocketFetcher.java:354)
at com.sun.mail.util.SocketFetcher.getSocket(SocketFetcher.java:211)
at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:1927)
... 15 more
I was able to use the same SMTP server to send out Health and Wellness alarms as well as ESA alerts, so I assume for now that there are no issues in terms of network connectivity (SMTP server is external to us).
From what I gather from non-RSA products that have similar errors, one resolution was to increase the timeout period. Is there a way for me to change timeout period for the reporting engine in the Explore page or somewhere else? Or are there other solutions for this?
2022-04-05 01:49 PM
in the Reporting engine Configuration page (Admin -> reporting engine -> view config -> output actions) did you set the SSL checkbox?
2022-04-05 02:44 PM
Yes the checkbox for SSL is checked. I use the same config for the SMTP notification server under Global Notifications, which worked for H&W and ESA.
I did try it unchecked before but it gave me a different error requiring the use of STARTTLS.