Last modified: 2014-08-25 22:27:28 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T72003, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 70003 - Errors in e-mail pipes should go to local error log, not e-mail sender
Errors in e-mail pipes should go to local error log, not e-mail sender
Status: ASSIGNED
Product: Wikimedia Labs
Classification: Unclassified
tools (Other open bugs)
unspecified
All All
: Unprioritized normal
: ---
Assigned To: Marc A. Pelletier
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-08-25 22:05 UTC by Merlijn van Deen (test)
Modified: 2014-08-25 22:27 UTC (History)
2 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Merlijn van Deen (test) 2014-08-25 22:05:09 UTC
wikibugs' .forward contains:

|jmail /data/project/wikibugs/toredis.py wikibugs-l 2>&1 > /data/project/wikibugs/mailerror.log

When 'jmail' fails for some reason, the error log does not end up in /data/project/wikibugs/mailerror.log, however, but in a reply to the e-mail sender.

Some ideas:
1) get .forward to actually listen to pipe redirection, or
2) always pipe logs to a specific mail error file, or
3) make sure replies are always cc'ed to the tool authors
Comment 1 Marc A. Pelletier 2014-08-25 22:12:23 UTC
Redirection doesn't do what you expect because jmail actually fires up a grid job for processing the email; so the redirection sends output from the job /submission/ not its actual execution.

Right now, jmail uses the fairly common convention that if the mail handler fails for any reason, it generates a bounce with the output.  It doesn't seem unreasonable to provide for a parameter to jmail to allow different handling (e.g.: accept the mail quietly and log to a file) but then the sender is left without an indication that whatever it tried to do by sending mail didn't actually happen.
Comment 2 Merlijn van Deen (test) 2014-08-25 22:15:55 UTC
I actually meant the output from the jmail submission -- if job submission fails (e.g. SGE queue out of space), jmail (I assume) sends the error to stderr, and then the mail daemon mails it back. That's the error I'd like to receive -- anything further on can be handled in the shell script jmail invokes.
Comment 3 Marc A. Pelletier 2014-08-25 22:27:28 UTC
Ah! Hm.  I'll need to consider the right way to do that; that behaviour comes from exim itself.  Perhaps an additional level of error checking around the jsub would work.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links