Modify ↓
Opened 21 years ago
Closed 21 years ago
#1171 closed defect (duplicate)
smtp connection error
| Reported by: | 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 )
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 , 21 years ago
| Keywords: | smtp email notification route exception added |
|---|---|
| Summary: | error reported → smtp connection error |
comment:2 by , 21 years ago
| Description: | modified (diff) |
|---|---|
| Resolution: | → duplicate |
| Status: | new → closed |
Duplicate of #980.
Note:
See TracTickets
for help on using tickets.



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.