Edgewall Software
Modify

Opened 19 years ago

Closed 19 years ago

#1940 closed defect (duplicate)

Trac Notify SMTP Socket Error

Reported by: trac at zippy6.net Owned by: Jonas Borgström
Priority: normal Milestone:
Component: ticket system Version: 0.8.4
Severity: critical Keywords:
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description

The Scenario

We have e-mail notification enabled on our Trac installation, and it is working fine. However, our system adminstrators took down the mail server last night for regularly scheduled maintanence. During this time I attempted to create a new ticket. After hitting the Submit ticket button, the web page never refreshed, and so I hit the Submit ticket a few more times.

Going to the View Tickets tab, I saw that the ticket really was created … three copies were created. The Trac server got confused when it could not open a socket connectin to the mail server.

This behavior could be related to #980

Trac Error Log

20:02:31 Trac[core] ERROR: (110, 'Connection timed out')
20:02:31 Trac[core] ERROR: Traceback (most recent call last):
  File "/usr/lib/python2.4/site-packages/trac/ModPythonHandler.py", line 195, in handler
    core.dispatch_request(mpr.path_info, args, mpr, env)
  File "/usr/lib/python2.4/site-packages/trac/core.py", line 441, in dispatch_request
    module.run()
  File "/usr/lib/python2.4/site-packages/trac/Module.py", line 44, in run
    self.render()
  File "/usr/lib/python2.4/site-packages/trac/Ticket.py", line 302, in render
    self.create_ticket()
  File "/usr/lib/python2.4/site-packages/trac/Ticket.py", line 294, in create_ticket
    tn.notify(ticket, newticket=1)
  File "/usr/lib/python2.4/site-packages/trac/Notify.py", line 228, in notify
    NotifyEmail.notify(self, ticket['id'], subject)
  File "/usr/lib/python2.4/site-packages/trac/Notify.py", line 131, in notify
    Notify.notify(self, resid)
  File "/usr/lib/python2.4/site-packages/trac/Notify.py", line 79, in notify
    self.begin_send()
  File "/usr/lib/python2.4/site-packages/trac/Notify.py", line 139, in begin_send
    self.server = smtplib.SMTP(self.smtp_server)
  File "/usr/lib/python2.4/smtplib.py", line 241, in __init__
    (code, msg) = self.connect(host, port)
  File "/usr/lib/python2.4/smtplib.py", line 303, in connect
    raise socket.error, msg
error: (110, 'Connection timed out')

Attachments (0)

Change History (1)

comment:1 by Christopher Lenz, 19 years ago

Milestone: 0.9
Resolution: duplicate
Status: newclosed

Indeed, as far as I can tell, this is a duplucate of #980. The problem has been fixed in trunk and will be in the upcoming 0.9 release.

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.