Edgewall Software
Modify

Opened 19 years ago

Closed 19 years ago

#1171 closed defect (duplicate)

smtp connection error

Reported by: julien@… Owned by: Jonas Borgström
Priority: normal Milestone:
Component: ticket system Version: 0.8
Severity: normal Keywords: smtp email notification route exception
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description (last modified by Christopher Lenz)

I tried to create a new ticket and I got this error message:

Python traceback

Traceback (most recent call last):
  File "/var/tmp/trac-0.8-1mdk-buildroot//usr/lib/python2.3/site-packages/trac/core.py", line 525, in cgi_start
  File "/var/tmp/trac-0.8-1mdk-buildroot//usr/lib/python2.3/site-packages/trac/core.py", line 520, in real_cgi_start
  File "/var/tmp/trac-0.8-1mdk-buildroot//usr/lib/python2.3/site-packages/trac/core.py", line 435, in dispatch_request
  File "/var/tmp/trac-0.8-1mdk-buildroot//usr/lib/python2.3/site-packages/trac/Module.py", line 44, in run
  File "/var/tmp/trac-0.8-1mdk-buildroot//usr/lib/python2.3/site-packages/trac/Ticket.py", line 298, in render
  File "/var/tmp/trac-0.8-1mdk-buildroot//usr/lib/python2.3/site-packages/trac/Ticket.py", line 290, in create_ticket
  File "/var/tmp/trac-0.8-1mdk-buildroot//usr/lib/python2.3/site-packages/trac/Notify.py", line 227, in notify
  File "/var/tmp/trac-0.8-1mdk-buildroot//usr/lib/python2.3/site-packages/trac/Notify.py", line 131, in notify
  File "/var/tmp/trac-0.8-1mdk-buildroot//usr/lib/python2.3/site-packages/trac/Notify.py", line 79, in notify
  File "/var/tmp/trac-0.8-1mdk-buildroot//usr/lib/python2.3/site-packages/trac/Notify.py", line 139, in begin_send
  File "/usr/lib/python2.3/smtplib.py", line 240, in __init__
    (code, msg) = self.connect(host, port)
  File "/usr/lib/python2.3/smtplib.py", line 302, in connect
    raise socket.error, msg
error: (113, 'No route to host')

Attachments (0)

Change History (2)

comment:1 by Matthew Good <trac@…>, 19 years ago

Keywords: smtp email notification route exception added
Summary: error reportedsmtp connection error

Please use a more descriptive title when reporting errors.

If you take a look at the last couple of lines you can see that this is occurring in the smtplib module and it's getting a "No route to host" error. This means that the Trac configuration for the mail server is invalid, so when it is trying to send the email notification it can't connect to your mail server.

We should probably catch any exceptions related to email notification and log them, rather than let them get displayed to the user.

comment:2 by Christopher Lenz, 19 years ago

Description: modified (diff)
Resolution: duplicate
Status: newclosed

Duplicate of #980.

Modify Ticket

Change Properties
Set your email in Preferences
Action
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.