Splunk Dev

Unexpected EOF while trying to send email

ateterine
Path Finder

Hi Splunkers

I have set up a Search Head Cluster with Splunk 6.4 and ran into some challenges.

Trying to send an email when alert is triggered, but it fails to send. Getting "Unexpected EOF" error.

Tried 'Schedule PDF Delivery' of a dashboard, and got same "Unexpected EOF"

Sending the test email failed: command="sendemail", (-1, 'Unexpected EOF') while sending mail to: antet@email.com

From the Python Log:

2016-04-08 04:50:28,569 Pacific Daylight Time ERROR sendemail:127 - Sending email. subject="Stream error", results_link="http://**********:8800/app/opsalerts/@go?sid=scheduler__nobody__opsalerts__RMD5fb2ac14e7d33a13c_at_1460116200_3229_41D114D1-64B8-499E-A79C-EADED06D3A6F", recipients="[u'email@example.com']", server="99.99.99.99"
2016-04-08 04:50:28,571 Pacific Daylight Time ERROR sendemail:392 - (-1, 'Unexpected EOF') while sending mail to: email@example.com

Any help or a hint where to look would be appreciated!

Thanks

Tags (4)
0 Karma

ateterine
Path Finder

Yes, sorry should have posted it here.

After re-entering password via Web Interface, email sending works as expected.

Hope this solves your issue as well.

fab73
Path Finder

Sorry, can You please explain better which web interface?

0 Karma

evelenke
Contributor

Great, solved as well, thank you!

0 Karma

Richfez
SplunkTrust
SplunkTrust

Only a hint, but I hope it helps.

The python log is telling you where the error is, even if it's not providing much more information of use. That error is in file sendemail.py at line 392. That line, at least in MY file, is mergedObject['token.name'] = ssContent.get('name'). I'm not sure what that's telling me, but it's right in the area of getting name, app and owner.

Knowing that, can you double-check the name of the report and make sure it's like super-standard regular characters with nothing weird in it? Maybe you have access to someone who knows python a bit better than I and can do some debugging?

0 Karma

evelenke
Contributor

Hi,
was this resolved? Have the same issue.

p.s. in my file line 392 is:
logger.error(errorMessage)

0 Karma
Get Updates on the Splunk Community!

Splunk Observability for AI

Don’t miss out on an exciting Tech Talk on Splunk Observability for AI!Discover how Splunk’s agentic AI ...

Splunk Enterprise Security 8.x: The Essential Upgrade for Threat Detection, ...

Watch On Demand the Tech Talk on November 6 at 11AM PT, and empower your SOC to reach new heights! Duration: ...

Splunk Observability as Code: From Zero to Dashboard

For the details on what Self-Service Observability and Observability as Code is, we have some awesome content ...