Edgewall Software
Modify

Opened 14 years ago

Closed 13 years ago

Last modified 9 years ago

#9221 closed defect (worksforme)

Exception AttributeError: "'SubversionRepository' object has no attribute 'pool'"

Reported by: Thijs Triemstra Owned by:
Priority: normal Milestone:
Component: version control Version: 0.11.6
Severity: normal Keywords:
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description

I'm running Trac 0.11.7 with SQLite on Apache/2.2.11 (Ubuntu) DAV/2 SVN/1.6.9 PHP/5.2.6-3ubuntu4.5 with Suhosin-Patch mod_ssl/2.2.11 OpenSSL/0.9.8g mod_wsgi/3.2 Python/2.6.5 and occasionally see this error on the Apache error.log:

[Mon Apr 12 12:21:56 2010] [error] Exception AttributeError: "'SubversionRepository' object has no attribute 'pool'" in <bound method SubversionRepository.__del__ of <trac.versioncontrol.svn_fs.SubversionRepository object at 0x7f450e423710>> ignored
[Mon Apr 12 12:22:13 2010] [error] Exception AttributeError: "'SubversionRepository' object has no attribute 'pool'" in <bound method SubversionRepository.__del__ of <trac.versioncontrol.svn_fs.SubversionRepository object at 0x7f450d5adc90>> ignored

Attachments (0)

Change History (8)

comment:1 by Remy Blank, 14 years ago

Milestone: next-minor-0.12.x

This could happen during shutdown of the Python interpreter. We could just add a try: except: inside the __del__() method, but it would be better to understand what's going on. I don't see how the .pool attribute could be missing otherwise, as it's created in __init__() and never deleted anywhere.

comment:2 by Thijs Triemstra <lists@…>, 14 years ago

Let me know if there's anything I can do to help debug this issue.

comment:3 by anonymous, 13 years ago

I see this in the logfile when uppgrading the trac server to 1.12 and trying to update the bitten client to 0.6b3 .

comment:4 by anonymous, 13 years ago

My comment ~35 minutes ago - "apache2ctl restart" seems to let the checkout-build-publish cycle run once. Then on next by bitten it gets an HTTP Error 500: Internal Server Error and the apache errorlog displays the error in the first description.

comment:5 by anonymous, 13 years ago

My last comment ~68 minutes (sorry for not logging in ;-) was solved by adding

WSGIApplicationGroup %{GLOBAL}

to the apache config file, see http://code.google.com/p/modwsgi/wiki/IntegrationWithTrac and http://trac.edgewall.org/wiki/TracSubversion#Troubleshooting

comment:6 by Thijs Triemstra, 13 years ago

Reporter: changed from Thijs Triemstra <lists@…> to Thijs Triemstra

in reply to:  5 comment:7 by Christian Boos, 13 years ago

Milestone: next-minor-0.12.x
Resolution: worksforme
Status: newclosed

Replying to anonymous:

My last comment ~68 minutes (sorry for not logging in ;-) was solved by adding

WSGIApplicationGroup %{GLOBAL}

to the apache config file, see http://code.google.com/p/modwsgi/wiki/IntegrationWithTrac and http://trac.edgewall.org/wiki/TracSubversion#Troubleshooting

Great! Thanks a lot for the feedback.

comment:8 by lkraav <leho@…>, 9 years ago

Indeed, also discovered that it will fail with anything other than %{GLOBAL}

Do note that some versions of the Subversion Python bindings apparently have problems when being used from within secondary Python sub interpreters rather than the main Python interpreter. The result of this will be strange Python exceptions or the Apache child processes could even crash. To avoid such problems, the Trac application should be forced to run within the main Python interpreter. This can be done using the WSGIApplicationGroup directive with the value '%{GLOBAL}' as shown.

Totally true ^^^^

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The ticket will remain with no owner.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from (none) 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.