#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 , 15 years ago
Milestone: | → next-minor-0.12.x |
---|
comment:3 by , 14 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 , 14 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.
follow-up: 7 comment:5 by , 14 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 , 14 years ago
Reporter: | changed from | to
---|
comment:7 by , 14 years ago
Milestone: | next-minor-0.12.x |
---|---|
Resolution: | → worksforme |
Status: | new → closed |
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 , 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 ^^^^
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.