Edgewall Software
Modify

Opened 20 years ago

Closed 18 years ago

#822 closed defect (invalid)

Running tracd on Win2K doesn't clean up TCP/IP sockets causing full buffer

Reported by: Ken Barker <ken.barker@…> Owned by: Jonas Borgström
Priority: high Milestone:
Component: web frontend/tracd Version: 0.7.1
Severity: blocker Keywords: email notification
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description

I have Trac 0.7.1 running on Win2K Pro. Runs well for about a week and then I get this on new or updated tickets.

I am serving subversion via svnserve and trac via tracd.

A reboot works to relieve the symptoms.

See the traceback below for more details.

Traceback (most recent call last):
  File "C:\Python23\scripts\tracd", line 232, in do_trac_req
    self.do_real_trac_req()
  File "C:\Python23\scripts\tracd", line 254, in do_real_trac_req
    trac.core.dispatch_request(self.path_info, args, self, self.env, db)
  File "C:\Python23\Lib\site-packages\trac\core.py", line 380, in dispatch_request
    module.run()
  File "C:\Python23\Lib\site-packages\trac\Module.py", line 41, in run
    self.render()
  File "C:\Python23\Lib\site-packages\trac\Ticket.py", line 277, in render
    self.save_changes (id, old, new)
  File "C:\Python23\Lib\site-packages\trac\Ticket.py", line 174, in save_changes
    tn.notify(id, newticket=0, modtime=now)
  File "C:\Python23\lib\site-packages\trac\Notify.py", line 216, in notify
    NotifyEmail.notify(self, tktid, subject)
  File "C:\Python23\lib\site-packages\trac\Notify.py", line 128, in notify
    Notify.notify(self, resid)
  File "C:\Python23\lib\site-packages\trac\Notify.py", line 76, in notify
    self.begin_send()
  File "C:\Python23\lib\site-packages\trac\Notify.py", line 136, in begin_send
    self.server = smtplib.SMTP(self.smtp_server)
  File "C:\Python23\lib\smtplib.py", line 240, in __init__
    (code, msg) = self.connect(host, port)
  File "C:\Python23\lib\smtplib.py", line 302, in connect
    raise socket.error, msg
error: (10055, 'No buffer space available')

Attachments (0)

Change History (7)

comment:1 by Jonas Borgström, 20 years ago

Milestone: 0.8

A quick google hinted that this might be because windows has run out of TCP/IP socket buffers because too many connections are open at once.

Is it enough to just restart tracd or is a full system reboot required?

If simply restarting tracd isn't enough, your windows installation might have a nasty resource leak and you probably need to install some windows service pack or similar to fix this leak…

comment:2 by Ken Barker <ken.barker@…>, 20 years ago

I have tried simply cycling tracd. It doesn't correct the issue.

Additional information: Both svnserve and tracd are running as services using FireDaemon. The FireDaemon services "call" a batch file each.

comment:3 by ken.barker@…, 20 years ago

Summary: New or Changed Ticket causes error when trying to send notification emailRunning tracd on Win2K doesn't clean up TCP/IP sockets causing full buffer

Changed the summary - the bit about notifications is really just the symptom of tracd running unclean on Windows.

comment:4 by Jonas Borgström, 20 years ago

Milestone: 0.80.9

Not important enough to block 0.8…

comment:5 by Christopher Lenz, 20 years ago

Component: ticket systemtracd

comment:6 by Christopher Lenz, 20 years ago

Milestone: 0.9

comment:7 by Matthew Good, 18 years ago

Resolution: invalid
Status: newclosed

This ticket is being closed since no new information has been provided to confirm or debug this. If you can provide more information to help resolve this issue please reopen the ticket.

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.