When attempting to reset the password in Edge UI, we see that the “Submit” button disabled. We are unable to reset the password on 4.17.01.
Can anyone please help to reset the password ?
When attempting to reset the password in Edge UI, we see that the “Submit” button disabled. We are unable to reset the password on 4.17.01.
Can anyone please help to reset the password ?
Checked the Edge UI system.log and found the following exception was thrown:
[error] a.a.ActorSystemImpl - Uncaught fatal error from thread [application-akka.actor.default-dispatcher-10] shutting down ActorSystem [application]
java.lang.ExceptionInInitializerError: null
at services.Mails.sendMail(Mails.java:92) ~[enterpriseui.enterpriseui-4.17.01.00-0b21e01-20170109-213339-sans-externalized.jar:na]
at services.Mails.sendMailPasswordReset(Mails.java:87) ~[enterpriseui.enterpriseui-4.17.01.00-0b21e01-20170109-213339-sans-externalized.jar:na]
at controllers.NonSecure$12.apply(NonSecure.java:852) ~[enterpriseui.enterpriseui-4.17.01.00-0b21e01-20170109-213339-sans-externalized.jar:na]
at controllers.NonSecure$12.apply(NonSecure.java:842) ~[enterpriseui.enterpriseui-4.17.01.00-0b21e01-20170109-213339-sans-externalized.jar:na]
at play.core.j.FPromiseHelper$$anonfun$map$1.apply(FPromiseHelper.scala:103) ~[com.typesafe.play.play_2.11-2.4.8.jar:2.4.8]
at scala.util.Success$$anonfun$map$1.apply(Try.scala:236) ~[org.scala-lang.scala-library-2.11.6.jar:na]
at scala.util.Try$.apply(Try.scala:191) ~[org.scala-lang.scala-library-2.11.6.jar:na]
at scala.util.Success.map(Try.scala:236) ~[org.scala-lang.scala-library-2.11.6.jar:na]
at scala.concurrent.Future$$anonfun$map$1.apply(Future.scala:235) ~[org.scala-lang.scala-library-2.11.6.jar:na]
at scala.concurrent.Future$$anonfun$map$1.apply(Future.scala:235) ~[org.scala-lang.scala-library-2.11.6.jar:na]
Caused by: play.api.Configuration$$anon$1: Configuration error[/opt/apigee/edge-ui-4.17.01-0.0.3792/conf/apigee.conf: 21: Configuration key 'mail.smtp.credential' is set to null but expected STRING]
at play.api.Configuration$.configError(Configuration.scala:178) ~[com.typesafe.play.play_2.11-2.4.8.jar:2.4.8]
at play.api.Configuration.reportError(Configuration.scala:829) ~[com.typesafe.play.play_2.11-2.4.8.jar:2.4.8]
at play.api.Configuration.readValue(Configuration.scala:217) ~[com.typesafe.play.play_2.11-2.4.8.jar:2.4.8]
at play.api.Configuration.getString(Configuration.scala:237) ~[com.typesafe.play.play_2.11-2.4.8.jar:2.4.8]
at play.Configuration.getString(Configuration.java:113) ~[com.typesafe.play.play_2.11-2.4.8.jar:2.4.8]
at services.ConfigService.getString(ConfigService.java:179) ~[enterpriseui.enterpriseui-4.17.01.00-0b21e01-20170109-213339-sans-externalized.jar:na]
at services.ConfigService$Mail$SMTP.<clinit>(ConfigService.java:135) ~[enterpriseui.enterpriseui-4.17.01.00-0b21e01-20170109-213339-sans-externalized.jar:na]
at services.Mails.sendMail(Mails.java:92) ~[enterpriseui.enterpriseui-4.17.01.00-0b21e01-20170109-213339-sans-externalized.jar:na]
at services.Mails.sendMailPasswordReset(Mails.java:87) ~[enterpriseui.enterpriseui-4.17.01.00-0b21e01-20170109-213339-sans-externalized.jar:na]
at controllers.NonSecure$12.apply(NonSecure.java:852) ~[enterpriseui.enterpriseui-4.17.01.00-0b21e01-20170109-213339-sans-externalized.jar:na]
As shown in the error above, the configuration key (property) in /opt/apigee/edge-ui-4.17.01-0.0.3792/conf/apigee.conf was set to null which actually did not allow us to reset the password.
mail.smtp.credential=null
Updated mail.smtp.credential to an empty string using the CWC (code with config)
Create a file
/opt/apigee/customer/application/ui.properties
Add the following line
conf_apigee_mail.smtp.credential=""
Restart the UI
apigee-service edge-ui restart
Confirmed that the property was set to empty string in /opt/apigee/edge-ui-4.17.01-0.0.3792/conf/apigee.conf
mail.smtp.credential=""
We were able to successfully reset the password without any issues.