[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [HTCondor-users] Email notification not work
- Date: Fri, 13 May 2016 13:02:11 -0500
- From: Todd Tannenbaum <tannenba@xxxxxxxxxxx>
- Subject: Re: [HTCondor-users] Email notification not work
On 5/13/2016 3:10 AM, feih@xxxxxxxxxxxxxxxxxxxxxxxxx wrote:
We have a tiny HTCondor cluster consists of 9 servers, 1 for central
manager/scheduler, 8 for starter. Now everything works except email
I can confirm /usr/bin/mail –s subject feih@xxxxxxxxxxxxxxxxxxxxxxxxx
works, because outgoing message received successfully.
And condor_config_val –dump | grep MAIL in the central node reports:
MAIL = /usr/bin/mail
MAIL_FROM = gitlab@xxxxxxxxxxxxxxxxxxxxxxxxx
However, if I add following lines to job description file and make
submission, no notification received after job completion.
Notification = Complete
notify_user = feih@xxxxxxxxxxxxxxxxxxxxxxxxx
Is there anything I can do to debug this problem, I have whole control
on all servers (postfix/HTCondor etc).
Debian Jessie + HTCondor 8.2.3~dfsg.1 from official debian repository.
Thank you very much.
Just a guess, but it looks like you are being hit by a bug that was
fixed starting with HTCondor v8.2.6 and above. Specifically, this one:
My guess is HTCondor v8.2.3 is invoking mail with a "-f" command-line
argument for the from address, like so
/usr/bin/mail -s subject -f gitlab@xxxxxxxxxxxxxxxxxxxxxxxxx user@xxx
And my guess is /usr/bin/mail on Debian wants the from address via a
"-r" argument because "-f" means something else.
If I guessed right, as a workaround you could get rid of the MAIL_FROM
setting in your condor_config file(s), which should cause HTCondor
v8.2.3 to omit the incorrect "-f" option all-together. Or you could
write your own wrapper script for /usr/bin/mail that converts the "-f"
to "-r" and set MAIL in condor_config to point to it.
Or you could upgrade HTCondor to a more recent version where this issue
has been fixed- recent versions are available packaged for Debian, see
Hope the above helps,
Todd Tannenbaum <tannenba@xxxxxxxxxxx> University of Wisconsin-Madison
Center for High Throughput Computing Department of Computer Sciences
HTCondor Technical Lead 1210 W. Dayton St. Rm #4257
Phone: (608) 263-7132 Madison, WI 53706-1685