Edgewall Software
Modify

Opened 17 years ago

Closed 17 years ago

#4392 closed defect (duplicate)

Intermittent problem

Reported by: trac@… Owned by: Jonas Borgström
Priority: normal Milestone:
Component: general Version: 0.10.3
Severity: normal Keywords:
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description

I realise this is one of those problems that is close to impossible to diagnose, but maybe the Python traceback is more helpful than I can be.

Lately, every once in a while I get an error trying to access Trac on our Xubuntu server. The traceback is below. After refreshing the page once or twice, it usually returns.

Sometimes when I am editting a page and submit, I don't get an error, but merely a blank page.

I have since upgraded Trac from 0.10dev to 0.10.3rc1, but to no avail. This server has worked well for a long time and it servers only a an svn, Trac and file server. No new software gets installed, except for the occasional Xubuntu update to already installed software.

Hope this helps somehow.

Python Traceback

Traceback (most recent call last):

File "/usr/lib/python2.4/site-packages/trac/web/main.py", line 387, in dispatch_request

dispatcher.dispatch(req)

File "/usr/lib/python2.4/site-packages/trac/web/main.py", line 191, in dispatch

chosen_handler = self._pre_process_request(req, chosen_handler)

File "/usr/lib/python2.4/site-packages/trac/web/main.py", line 263, in _pre_process_request

chosen_handler = f.pre_process_request(req, chosen_handler)

File "/usr/lib/python2.4/site-packages/trac/versioncontrol/api.py", line 73, in pre_process_request

self.get_repository(req.authname) # triggers a sync if applicable

File "/usr/lib/python2.4/site-packages/trac/versioncontrol/api.py", line 101, in get_repository

repos = self._connector.get_repository(rtype, rdir, authname)

File "/usr/lib/python2.4/site-packages/trac/versioncontrol/svn_fs.py", line 259, in get_repository

repos = SubversionRepository(dir, None, self.log)

File "/usr/lib/python2.4/site-packages/trac/versioncontrol/svn_fs.py", line 287, in init

self.path = repos.svn_repos_find_root_path(path, self.pool())

File "/usr/lib/python2.4/site-packages/libsvn/repos.py", line 43, in svn_repos_find_root_path

return apply(_repos.svn_repos_find_root_path, args)

TypeError: argument number 2: a 'apr_pool_t *' is expected, 'instance(<libsvn.core.GenericSWIGWrapper instance at 0xb559db0c>)' is received

Attachments (0)

Change History (1)

comment:1 by Matthew Good, 17 years ago

Resolution: duplicate
Status: newclosed

This is a duplicate of #2611 and is a problem with using the SVN libraries with mod_python in multiple virtual hosts.

In your Apache config add:

    PythonInterpreter main_interpreter

after:

SetHandler    mod_python

This will force mod_python to run in the same interpreter and should avoid the issue described in #2611.

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.