Forgot you password ? page error

nsureshindia
Participant II

Hi All,

When I submit an e-mail id in Forgot your password? page, which shows the below error, and not receiving any reset password e-mail. Unable to reset org. users' password via edge-ui

What could be the issue?

Verified ui.properties and SMTP configurations seems perfect.

Currently using Apigee v4.18.05.00

@Cladius Fernando

warning Oops, we got an error on the backend, please try again.

0 1 326
1 REPLY 1

nsureshindia
Participant II

After analysis of this issue, we found edge-ui.log has been flooded with Exception fro SMTP server connectivity issue. Which caused the error on UI as "Oops, we got an error on the backend, please try again."

Exception looks like----

org.apache.commons.mail.EmailException: Sending the email to the following server failed : 10.200.74.70:25
at org.apache.commons.mail.Email.sendMimeMessage(Email.java:1410)
at org.apache.commons.mail.Email.send(Email.java:1437)
at services.Mails$SendMailHelper.sendMail(Mails.java:133)
at services.Mails.sendMailPasswordReset(Mails.java:175)
at controllers.NonSecure$12.apply(NonSecure.java:872)
at controllers.NonSecure$12.apply(NonSecure.java:862)
at play.core.j.FPromiseHelper$$anonfun$map$1.apply(FPromiseHelper.scala:103)
at scala.util.Success$$anonfun$map$1.apply(Try.scala:236)
at scala.util.Try$.apply(Try.scala:191)
at scala.util.Success.map(Try.scala:236)
at scala.concurrent.Future$$anonfun$map$1.apply(Future.scala:235)
at scala.concurrent.Future$$anonfun$map$1.apply(Future.scala:235)
at scala.concurrent.impl.CallbackRunnable.run(Promise.scala:32)
at play.core.j.HttpExecutionContext$$anon$2.run(HttpExecutionContext.scala:40)
at akka.dispatch.TaskInvocation.run(AbstractDispatcher.scala:40)
at akka.dispatch.ForkJoinExecutorConfigurator$AkkaForkJoinTask.exec(AbstractDispatcher.scala:397)
at scala.concurrent.forkjoin.ForkJoinTask.doExec(ForkJoinTask.java:260)
at scala.concurrent.forkjoin.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1339)
at scala.concurrent.forkjoin.ForkJoinPool.runWorker(ForkJoinPool.java:1979)
at scala.concurrent.forkjoin.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:107)
Caused by: javax.mail.MessagingException: Could not connect to SMTP host: 10.26.74.190, port: 25;
nested exception is:
java.net.ConnectException: Connection refused (Connection refused)
at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:1972)
at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:642)
at javax.mail.Service.connect(Service.java:295)
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 org.apache.commons.mail.Email.sendMimeMessage(Email.java:1400)
... 19 more
Caused by: java.net.ConnectException: Connection refused (Connection refused)
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350)
at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206)
at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
at java.net.Socket.connect(Socket.java:589)
at com.sun.mail.util.SocketFetcher.createSocket(SocketFetcher.java:317)
at com.sun.mail.util.SocketFetcher.getSocket(SocketFetcher.java:233)
at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:1938)
... 26 more

By resolving SMTP connectivity issue you can reset password as well as receive the reset password link in mail.

Also ensure that your ui.properties file will have proper SMTP server configuration

conf_apigee_mail.smtp.host="10.200.74.70"
conf_apigee_mail.smtp.port="25"
conf_apigee_mail.smtp.channel=""

conf_apigee_mail.smtp.credential=""
conf_apigee_mail.smtp.tls="false"
conf_apigee_apigee.mgmt.mailfrom="MyComp <apigeeAdmin@apigee.com>"

The "From" field of the email can be set by using the conf_apigee_apigee.mgmt.mailfrom property in /opt/apigee/customer/application/ui.properties (if that file does not exist, create it). For example:

conf_apigee_apigee.mgmt.mailfrom="My Company <myCo@company.com>"

The email subjects are customizable by editing the following properties in /opt/apigee/customer/application/ui.properties (if that file does not exist, create it):

  • conf_apigee-base_apigee.emails.passwordreset.subject
  • conf_apigee-base_apigee.emails.useraddedexisting.subject
  • conf_apigee-base_apigee.emails.useraddednew.subject

All Keys in ui.properties will contribute this Password reset mail notifiacation action.