Lots of email errors (ERROR | eventp_processlist.php)

On the emonPi in the var/log/emoncms.log there are lots of these email errors below. I don’t believe I’ve added an email address anywhere except for the Account page. It looks like something sends this error message once per minute.

I searched thru the forum for errors related to eventp_processlist.php but only found one or two posts.

How might I turn this off or correct it?

2018-03-07 01:17:02.858|ERROR|eventp_processlist.php|Email send returned error. message='Expected response code 250 but got code "535", with message "535-5.7.8 Username and Password not accepted. Learn more at
535 5.7.8  https://support.google.com/mail/?p=BadCredentials z73sm11018328ioi.76 - gsmtp
"'
2018-03-07 01:18:02.853|ERROR|eventp_processlist.php|Email send returned error. message='Expected response code 250 but got code "535", with message "535-5.7.8 Username and Password not accepted. Learn more at
535 5.7.8  https://support.google.com/mail/?p=BadCredentials 33sm10872930ioj.71 - gsmtp
"'
2018-03-07 01:19:03.000|ERROR|eventp_processlist.php|Email send returned error. message='Expected response code 250 but got code "535", with message "535-5.7.8 Username and Password not accepted. Learn more at
535 5.7.8  https://support.google.com/mail/?p=BadCredentials h63sm7921142ioa.81 - gsmtp
"'

Hi Jon. That error is part of the sentMail function of the eventp module

That would suggest you may have added an “send email” process to an input that is updated every 60s eg a emonTH low battery warning?

That is most likely the cause of the error, out going email requires an email setup in settings.php

https://github.com/emoncms/emoncms/blob/master/default.settings.php#L105-L114

if you do set up a gmail email account for this, remember to set the account for “low security applications” in the gmail account.

That is part of the reason this didn’t make sense, I dont think i set something up…

On my emonPi I found at /var/www/emoncms/settings.php:


 

Is there a separate parameter for turning on/off email support?

The “not setting it up” is only the reason it doesn’t succeed. It is not the trigger.

Look at your input processing, it there a “sendEmail” process anywhere?

use the Emoncms - user login api and then search using [CTRL-F] “sendEmail”

If that finds no occurrences then the issue is why is the “sendEmail” process being triggered every 60s, the fact it is email isn’t the issue. It’s a process that isn’t being deliberately triggered so why is it running?

No, there’s never been a need for one, email is only ever triggered by the user password reset, the sendEmail process or more recently the emailreport module, and if emoncms tries to use one of those without email set up it will raise an error, which is what is happening.

The issue is not “why is the email failing”, we know why that is, it’s not set up. The question is why is a “sendEmail” process being used when email hasn’t been set up? Either the process has been added in error or there is an issue that is triggering unwanted processes.

1 Like

Ugh! I forgot all about this! A few months ago I started experimenting with this process and I could not get it to work.

Thank you Paul!


1 Like