bety icon indicating copy to clipboard operation
bety copied to clipboard

Docker container has problems sending emails after signup

Open Chris-Schnaufer opened this issue 7 years ago • 6 comments

There is an error reported to the user of the web site after signing up for an account when running the docker image. The account gets created however. This indicates that the problem arises from attempting to send email. The error reported to the user is We're sorry, but something went wrong. We've been notified about this issue and we'll take a look at it shortly. The exception message (which I can't find right now) indicates that the problem occurs when trying to bind to port 25.

Chris-Schnaufer avatar Jan 11 '19 20:01 Chris-Schnaufer

From slack https://pecanproject.slack.com/archives/C8QSKFDG8/p1546336813005300?thread_ts=1546309635.005100&cid=C8QSKFDG8 :

it is configured to send email using localhost. See https://guides.rubyonrails.org/action_mailer_basics.html#action-mailer-configuration-for-gmail how to change it (see in same page for all variables you can set)

Probably enough to just set

config.action_mailer.smtp_settings = {
  address:              'smtp.domain.com'
}

robkooper avatar Jan 11 '19 21:01 robkooper

@robkooper I just got another report about it happening on bety6.ncsa.illinois.edu / terraref.ncsa.illinois.edu/bety

is this something that can be set, at least as a default, in the docker container or a configuration yml file?

dlebauer avatar Dec 10 '19 15:12 dlebauer

bety6 does not run docker, so this is something else. When did this happen?

robkooper avatar Dec 12 '19 15:12 robkooper

It happened last week. Also the accounts were created but no email was sent out.

dlebauer avatar Dec 12 '19 16:12 dlebauer

Do you have an approximate date/time so I can look at the log files.

robkooper avatar Dec 12 '19 16:12 robkooper

According to Slack ~ Tues Dec 3 around or before 8:37 AM AZ time.

users.created_at on bety6 times are 2019-12-10 15:04:11, 2019-12-03 15:31:41, 2019-12-03 15:31:41

dlebauer avatar Dec 12 '19 19:12 dlebauer