Edgewall Software
Modify

Opened 18 years ago

Closed 18 years ago

Last modified 18 years ago

#3894 closed defect (duplicate)

MySQL server has gone away

Reported by: anonymous Owned by: Jonas Borgström
Priority: normal Milestone:
Component: general Version: 0.10
Severity: normal Keywords:
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description

Whenever the MySQL server restarts we get this error:

Python Traceback

Traceback (most recent call last):
  File "/usr/lib/python2.3/site-packages/trac/web/main.py", line 362, in dispatch_request
    env.shutdown(threading._get_ident())
  File "/usr/lib/python2.3/site-packages/trac/env.py", line 186, in shutdown
    DatabaseManager(self).shutdown(tid)
  File "/usr/lib/python2.3/site-packages/trac/db/api.py", line 75, in shutdown
    self._cnx_pool.shutdown(tid)
  File "/usr/lib/python2.3/site-packages/trac/db/pool.py", line 139, in shutdown
    self._cleanup(tid)
  File "/usr/lib/python2.3/site-packages/trac/db/pool.py", line 121, in _cleanup
    cnx.rollback()
OperationalError: (2006, 'MySQL server has gone away')

Attachments (0)

Change History (2)

comment:1 by Matthew Good, 18 years ago

Resolution: duplicate
Status: newclosed

Duplicate of #3645.

comment:2 by Christian Boos, 18 years ago

Yes, it's a duplicate of #3645, but actually it gives also some hints about weaknesses in the pool code: here, we see that the exception occurring in line 121 in _cleanup will consume a connection for ever… and therefore this can potentially lead to #3504 (hangs).

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.