Staging was running the scheduled task 'Sending Count Notification Daily Emails' and it failed. This is because staging, and local dev, is not configured to use an email provider to send real emails.
For local dev and staging: the playframework conf needs to be configured to log the email which would have been sent, that should resolve the injection issue. Eg set play.mailer.mock to true in application.conf.
20:11:50.528 INFO [][application-akka.actor.default-dispatcher-24][org.maproulette.jobs.SchedulerActor] - Scheduled Task 'Sending Count Notification Daily Emails': Starting run
20:11:50.570 ERROR [][application-akka.actor.default-dispatcher-24][org.maproulette.jobs.SchedulerActor] - Failed to send count email: com.google.inject.ProvisionException: Unable to provision, see the
following errors:
1) [Guice/ErrorInCustomProvider]: RuntimeException: host needs to be set in order to use this plugin (or set play.mailer.mock to true in application.conf)
while locating SMTPConfigurationProvider
while locating SMTPConfiguration
Learn more:
https://github.com/google/guice/wiki/ERROR_IN_CUSTOM_PROVIDER
1 error
======================
Full classname legend:
======================
SMTPConfiguration: "play.api.libs.mailer.SMTPConfiguration"
SMTPConfigurationProvider: "play.api.libs.mailer.SMTPConfigurationProvider"
========================
End of classname legend:
========================
Staging was running the scheduled task 'Sending Count Notification Daily Emails' and it failed. This is because staging, and local dev, is not configured to use an email provider to send real emails.
For local dev and staging: the playframework conf needs to be configured to log the email which would have been sent, that should resolve the injection issue. Eg
set play.mailer.mock to true in application.conf
.