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
Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

Announcing Modern Navigation: A New Era of Splunk User Experience

We are excited to introduce the Modern Navigation feature in the Splunk Platform, available to both cloud and ...

Modernize your Splunk Apps – Introducing Python 3.13 in Splunk

We are excited to announce that the upcoming releases of Splunk Enterprise 10.2.x and Splunk Cloud Platform ...

Step into “Hunt the Insider: An Splunk ES Premier Mystery” to catch a cybercriminal ...

After a whole week of being on call, you fell asleep on your keyboard, and you hit a sequence of buttons that ...