Alert publisher/ SMTP connectivity
ERROR org.apache.camel.processor.DefaultErrorHandler: Failed delivery for (MessageId: ID-uxxxxxxxx on ExchangeId: ID-xxxxxxx). Exhausted after delivery attempt: 1 caught: javax.mail.MessagingException: Exception reading response;
nested exception is:
java.net.SocketTimeoutException: Read timed out
To troubleshoot these issues, we need to first verify that the connectivity between the server and SMTP/SNMP host is good.
-> telnet <hostname> port
If connectivity is good, then we can either enable the debug logs and check for more loggings in alert publisher.
How to enable DEBUG->
Cloudera Manager Service -Alert Publisher - Configurations
Under the advanced java configuration for alert publisher, please append the below configuration
"-Djavax.net.debug=all"
Then go to logs
Set the log level to debug in alert publisher
We can also verify the tcp dump and check if the message are getting accepted from CM server.
For Example->
tcpdump -i any -s 100000 -w ~/alertpub.out port <port>
2- The alert publisher fails to send out the alert due to the unavailability of the credentials information.
ERROR org.apache.camel.processor.DefaultErrorHandler: Failed delivery for (MessageId: ID-xxxxxxxxx on ExchangeId: ID-xxxxxx). Exhausted after delivery attempt: 1 caught: javax.mail.AuthenticationFailedException: failed to connect, no password specified?
javax.mail.AuthenticationFailedException: failed to connect, no password specified?
at javax.mail.Service.connect(Service.java:325)
Make sure credential information has been given over to the alert publisher configuration.
CM > CMS > Configuration > Alerts: Mail Server Hostname, Alerts: Mail Server Username, Alerts: Mail Server Password
[1]

