DeployHubProject / DeployHub-Pro

DeployHub Pro Pipeline Status Project
https://www.openmakesoftware.com/application-release-automation-for-continuous-delivery/
Other
11 stars 4 forks source link

Application deploy doesn't send out mails on Success #360

Closed hatati closed 2 years ago

hatati commented 2 years ago

When Deployhub successfully deploys an application version it doesn't send out emails to the recipients, claiming:

INFO: Return code is 0
INFO: Using template "DeploySuccess" to notify users
Error: Server has closed the connection
Message not okay - no recipients?
INFO: Time taken 0.105055 seconds

The DeploySuccess notifier template does have multiple recipients attached: image

Image: quay.io/deployhub/deployhub-pro:ui-skin-v9.0.0.3271-g1077e12

hatati commented 2 years ago

From the dm.log i can see that the system has registered the recipients:

2022/03/15 12:02:07 [6021] [0x7f1a4f5d0840] Adding recipient [<Nermin.Sehovic@keylane.com>]
2022/03/15 12:02:07 [6021] [0x7f1a4f5d0840] Adding recipient [<nermin.sehovic@keylane.com>]
2022/03/15 12:02:07 [6021] [0x7f1a4f5d0840] Adding recipient [<Obex-ba@keylane.com>]
2022/03/15 12:02:07 [6021] [0x7f1a4f5d0840] Removing temporary files
sbtaylor15 commented 2 years ago

In your SMTP notifier object, add /tmp/smtp.log under the Logfile entry field and re-run the deployment. The /tmp/smtp.log file in the DeployHub container should have additional error messages from the SMTP server. Send us the /tmp/smtp.log file for us to review.

hatati commented 2 years ago

Heres the log:

deployhub$ cat /tmp/smtp.log 
SetSMTPServer(SMTP.schantz.com)
SetLogin(schantzsystem@schantz.com)
SetSenderMail(schantzsystem@schantz.com)
SetReplyTo(schantzsystem@schantz.com)
SetSubject(Application Obex Platform;47_1_30 has been deployed successfully)
AddMsgLine(Application Obex Platform;47_1_30 has been deployed to environment platform-dev-environment by user admin.)
Error: Server has closed the connection
Message not okay - no recipients?
SetSMTPServer(SMTP.schantz.com)
SetLogin(schantzsystem@schantz.com)
SetSenderMail(schantzsystem@schantz.com)
SetReplyTo(schantzsystem@schantz.com)
SetSubject(Application Obex Platform;47_1_30 has been deployed successfully)
AddMsgLine(Application Obex Platform;47_1_30 has been deployed to environment platform-dev-environment by user admin.)
Error: Server has closed the connection
Message not okay - no recipients?
SetSMTPServer(SMTP.schantz.com)
SetLogin(schantzsystem@schantz.com)
SetSenderMail(schantzsystem@schantz.com)
SetReplyTo(schantzsystem@schantz.com)
SetSubject(Application Obex Platform;47_1_31 has been deployed successfully)
AddMsgLine(Application Obex Platform;47_1_31 has been deployed to environment platform-dev-environment by user admin.)
Error: Server has closed the connection
Message not okay - no recipients?
SetSMTPServer(SMTP.schantz.com)
SetLogin(schantzsystem@schantz.com)
SetSenderMail(schantzsystem@schantz.com)
SetReplyTo(schantzsystem@schantz.com)
SetSubject(Application Obex Platform;47_1_32 has been deployed successfully)
AddMsgLine(Application Obex Platform;47_1_32 has been deployed to environment platform-dev-environment by user admin.)
Error: Server has closed the connection
Message not okay - no recipients?
SetSMTPServer(SMTP.schantz.com)
SetLogin(schantzsystem@schantz.com)
SetSenderMail(schantzsystem@schantz.com)
SetReplyTo(schantzsystem@schantz.com)
SetSubject(Application Obex Platform;47_1_7 has been deployed successfully)
AddMsgLine(Application Obex Platform;47_1_7 has been deployed to environment platform-dev-environment by user admin.)
Error: Server has closed the connection
Message not okay - no recipients?
SetSMTPServer(SMTP.schantz.com)
SetLogin(schantzsystem@schantz.com)
SetSenderMail(schantzsystem@schantz.com)
SetReplyTo(schantzsystem@schantz.com)
SetSubject(Application Obex Platform;47_1_8 has been deployed successfully)
AddMsgLine(Application Obex Platform;47_1_8 has been deployed to environment platform-dev-environment by user admin.)
Error: Server has closed the connection
Message not okay - no recipients?
SetSMTPServer(SMTP.schantz.com)
SetLogin(schantzsystem@schantz.com)
SetSenderMail(schantzsystem@schantz.com)
SetReplyTo(schantzsystem@schantz.com)
SetSubject(Application Obex Platform;47_1_9 has been deployed successfully)
AddMsgLine(Application Obex Platform;47_1_9 has been deployed to environment platform-dev-environment by user admin.)
Error: Server has closed the connection
Message not okay - no recipients?
SetSMTPServer(SMTP.schantz.com)
SetLogin(schantzsystem@schantz.com)
SetSenderMail(schantzsystem@schantz.com)
SetReplyTo(schantzsystem@schantz.com)
SetSubject(Application Obex Platform;47_1_10 has been deployed successfully)
AddMsgLine(Application Obex Platform;47_1_10 has been deployed to environment platform-dev-environment by user admin.)
Error: Server has closed the connection
Message not okay - no recipients?
SetSMTPServer(SMTP.schantz.com)
SetLogin(schantzsystem@schantz.com)
SetSenderMail(schantzsystem@schantz.com)
SetReplyTo(schantzsystem@schantz.com)
SetSubject(Application Obex Platform;47_1_11 has been deployed successfully)
AddMsgLine(Application Obex Platform;47_1_11 has been deployed to environment platform-dev-environment by user admin.)
Error: Server has closed the connection
Message not okay - no recipients?
SetSMTPServer(SMTP.schantz.com)
SetLogin(schantzsystem@schantz.com)
SetSenderMail(schantzsystem@schantz.com)
SetReplyTo(schantzsystem@schantz.com)
SetSubject(Application Obex Platform;47_1_15 has been deployed successfully)
AddMsgLine(Application Obex Platform;47_1_15 has been deployed to environment platform-dev-environment by user admin.)
Error: Server has closed the connection
Message not okay - no recipients?
SetSMTPServer(SMTP.schantz.com)
SetLogin(schantzsystem@schantz.com)
SetSenderMail(schantzsystem@schantz.com)
SetReplyTo(schantzsystem@schantz.com)
SetSubject(Application Obex Platform;47_1_31 has been deployed successfully)
AddMsgLine(Application Obex Platform;47_1_31 has been deployed to environment platform-dev-environment by user admin.)
Error: Server has closed the connection
Message not okay - no recipients?
SetSMTPServer(SMTP.schantz.com)
SetLogin(schantzsystem@schantz.com)
SetSenderMail(schantzsystem@schantz.com)
SetReplyTo(schantzsystem@schantz.com)
SetSubject(Application Obex Platform;47_2_5 has been deployed successfully)
AddMsgLine(Application Obex Platform;47_2_5 has been deployed to environment platform-dev-environment by user admin.)
Error: Server has closed the connection
Message not okay - no recipients?
SetSMTPServer(SMTP.schantz.com)
SetLogin(schantzsystem@schantz.com)
SetSenderMail(schantzsystem@schantz.com)
SetReplyTo(schantzsystem@schantz.com)
SetSubject(Application Obex Platform;47_2_7 has been deployed successfully)
AddMsgLine(Application Obex Platform;47_2_7 has been deployed to environment platform-dev-environment by user admin.)
Error: Server has closed the connection
Message not okay - no recipients?
sbtaylor15 commented 2 years ago

Is SMTP.schantz.com using SSL? Also, which port are you using? The Error: Server has closed the connection is happening when trying to read the response from the SMTP server. Basically, 0 bytes are being returned.

hatati commented 2 years ago

New nodes on our cluster weren't configured properly network wise and they therefore didn't have access to the SMTP server. After adjusting the network configuration it now sends mails on deploy success.