random Trac email notification lost

23 views
Skip to first unread message

gao jason

unread,
Sep 18, 2009, 1:17:09 AM9/18/09
to trac-...@googlegroups.com
Hi all,

     I've been experienced random lost of email notifications from Trac system. I enable the log function but I cannot find a clue in the file trac.log, it seems everything is fine from the log though.
     I have tried to search google with no luck. And I don't know which part I should troubleshoot....Help to point a troubleshooting direction or give me some keyword to google. Thanks a lot!
 
     My Trac version is http://ftp.edgewall.com/pub/trac/Trac-0.11.4.tar.gz. Here is some setting related from my trac.ini, let me know what information I can provide to help resolving this issue. Thanks again for helping.

[notification]
always_notify_owner = true
always_notify_reporter = true
always_notify_updater = true
smtp_always_bcc = x...@x.xxx
smtp_always_cc = x...@x.xxx
smtp_enabled = true
smtp_from = x...@x.xxx
smtp_from_name = Trac
smtp_password = x...@x.xxx
smtp_port = 25
smtp_replyto = nor...@x.xxx
smtp_server = x.xxx
smtp_subject_prefix = [Trac]
smtp_user = x...@x.xxx
use_public_cc = False


Best Regards,
Jason

Noah Kantrowitz

unread,
Sep 18, 2009, 5:00:50 AM9/18/09
to trac-...@googlegroups.com
Given that you have censored the entire config, I doubt it will be of
much help. If the log says the the mail was sent, that means the SMTP
server accepted it. I would check your mail server logs from that time.

--Noah

gao jason

unread,
Sep 22, 2009, 1:46:14 AM9/22/09
to trac-...@googlegroups.com
Thanks for your reply, Noah! And sorry for my late response, I just came back from a loooooooong teambuilding.

Now I'm focusing on the error "gaierror: (-2, 'Name or service not known')" which come from the trac.log recently, and I believe this is the root cause of my random email lost issue.
I tried http://trac.edgewall.org/ticket/8244 and then http://trac.edgewall.org/changeset/1343, but there is not much value informaition I need.

Below are more detailed log:
=========================================================================================================
2009-09-21 10:15:16,180 Trac[main] DEBUG: Dispatching <Request "POST u'/ticket/80'">
2009-09-21 10:15:16,225 Trac[web_ui] ERROR: Failure sending notification on change to ticket #80: gaierror: (-2, 'Name or service not known')
2009-09-21 10:15:16,225 Trac[web_ui] DEBUG: Side effect for ConfigurableTicketWorkflow
=========================================================================================================
2009-09-21 11:56:12,674 Trac[web_ui] ERROR: Failure sending notification on creation of ticket #92: gaierror: (-2, 'Name or service not known')
2009-09-21 11:56:12,680 Trac[main] DEBUG: Dispatching <Request "GET u'/ticket/92'">
=========================================================================================================
gaierror: (-2, 'Name or service not known')
=========================================================================================================

I suspect this is related to DNS, right? Please advise and help, thanks all.

Jason

Cooke, Mark

unread,
Sep 22, 2009, 3:21:48 AM9/22/09
to trac-...@googlegroups.com
> ==============================================================

> ===========================================
>
> I suspect this is related to DNS, right? Please advise and
> help, thanks all.
>
I did some googling and there seem to be a number of instances of
gaierror (which was new to me) being generated from the python stdlib,
all to do with name resolution. Most seemed to say that using the IP
address instead of the name was a workaround ~ could you try this? I'm
not sure which address is failing to resolve but if it is your smtp
server, just stick the ip adress in the config file instead.

~ Mark C

gao jason

unread,
Sep 22, 2009, 4:33:56 AM9/22/09
to trac-...@googlegroups.com
Hey thank you Mark, I will change the smtp_server to IP address and check if the problem persists.
will keep you guys informed with the result. 
Thanks for the hint again  :-)
 
Jason

gao jason

unread,
Oct 10, 2009, 4:46:46 AM10/10/09
to trac-...@googlegroups.com
after two weeks test, the gaierror doesn't appear any more. problem resolved!
The setting of smtp_server is IP address instead of domain name now and everything works like a charm
Reply all
Reply to author
Forward
0 new messages