Edgewall Software

Opened 16 years ago

Closed 16 years ago

#2238 closed defect (fixed)

Confusing Error message issued when mime gateway is nonresponsive.

Reported by: curt@… Owned by: Jonas Borgström
Priority: normal Milestone: 0.9
Component: ticket system Version: 0.8.4
Severity: normal Keywords:
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:


When TRAC tries to send email notification of activity and the designated mime gateway is unresponsive, TRAC returns the a stack trace.

A more informative error message would be more helpful. A log of the SMTP dialog would be even better.

Python traceback

Traceback (most recent call last):

File "D:\www\python\Lib\site-packages\trac\ModPythonHandler.py", line 195, in handler

core.dispatch_request(mpr.path_info, args, mpr, env)

File "D:\www\python\lib\site-packages\trac\core.py", line 441, in dispatch_request


File "D:\www\python\Lib\site-packages\trac\Module.py", line 44, in run


File "D:\www\python\lib\site-packages\trac\Ticket.py", line 474, in render

self.save_changes (id)

File "D:\www\python\lib\site-packages\trac\Ticket.py", line 391, in save_changes

tn.notify(ticket, newticket=0, modtime=now)

File "D:\www\python\lib\site-packages\trac\Notify.py", line 229, in notify

NotifyEmail.notify(self, ticketid, subject)

File "D:\www\python\lib\site-packages\trac\Notify.py", line 132, in notify

Notify.notify(self, resid)

File "D:\www\python\lib\site-packages\trac\Notify.py", line 79, in notify


File "D:\www\python\lib\site-packages\trac\Notify.py", line 140, in begin_send

self.server = smtplib.SMTP(self.smtp_server)

File "D:\www\python\lib\smtplib.py", line 240, in init

(code, msg) = self.connect(host, port)

File "D:\www\python\lib\smtplib.py", line 302, in connect

raise socket.error, msg

error: (10060, 'Operation timed out')

Attachments (0)

Change History (1)

comment:1 by Emmanuel Blot, 16 years ago

Milestone: 0.9
Resolution: fixed
Status: newclosed

AFAICT, SMTP notification failures are now catched (in 0.9) and no Python trace is returned to the user. The error is nevertheless dumped to the logger.

The SMTP dialog with the SMTP server is handled by the Python smtp library, which makes it hard to retrieve.

Modify Ticket

Change Properties
Set your email in Preferences
as closed The owner will remain Jonas Borgström.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from Jonas Borgström to the specified user.

Add Comment

E-mail address and name can be saved in the Preferences .
Note: See TracTickets for help on using tickets.