Edgewall Software
Modify

Opened 11 years ago

Closed 11 years ago

#8024 closed defect (fixed)

SubversionException: ("Wyst\xc4\x85pi\xc5\x82 b\xc5\x82\xc4\x85d bazy danych Berkeley DB dla systemu plik\xc3\xb3w '/var/lib/svn/repo/db' podczas otwierania \xc5\x9brodowiska:\n", 160029)

Reported by: tkielan@… Owned by: Christian Boos
Priority: normal Milestone: 0.11.3
Component: version control Version: 0.11.1
Severity: normal Keywords: svn
Cc: Branch:
Release Notes:
API Changes:

Description

How to Reproduce

While doing a GET operation on /login, Trac issued an internal error.

(please provide additional details here)

System Information

Trac 0.11.1
Python 2.4.4 (#1, Oct 22 2008, 19:49:52)
[GCC 4.1.2 20061115 (prerelease) (Debian 4.1.1-21)]
setuptools 0.6c8
SQLite 3.3.8
pysqlite 2.3.3
Genshi 0.5.1
mod_python 3.2.10
Subversion 1.5.1 (r32289)

Python Traceback

Traceback (most recent call last):
  File "/usr/lib/python2.4/site-packages/trac/web/main.py", line 423, in _dispatch_request
    dispatcher.dispatch(req)
  File "/usr/lib/python2.4/site-packages/trac/web/main.py", line 173, in dispatch
    chosen_handler)
  File "/usr/lib/python2.4/site-packages/trac/web/main.py", line 286, in _pre_process_request
    chosen_handler = filter_.pre_process_request(req, chosen_handler)
  File "/usr/lib/python2.4/site-packages/trac/versioncontrol/api.py", line 86, in pre_process_request
    self.get_repository(req.authname).sync()
  File "/usr/lib/python2.4/site-packages/trac/versioncontrol/api.py", line 157, in get_repository
    repos = self._connector.get_repository(rtype, rdir, authname)
  File "/usr/lib/python2.4/site-packages/trac/versioncontrol/svn_fs.py", line 279, in get_repository
    {'tags': self.tags,
  File "/usr/lib/python2.4/site-packages/trac/versioncontrol/svn_fs.py", line 401, in __init__
    self.repos = repos.svn_repos_open(self.path, self.pool())
  File "/var/lib/python-support/python2.4/libsvn/repos.py", line 53, in svn_repos_open
    return apply(_repos.svn_repos_open, args)
SubversionException: ("Wyst\xc4\x85pi\xc5\x82 b\xc5\x82\xc4\x85d bazy danych Berkeley DB dla systemu plik\xc3\xb3w '/var/lib/svn/repo/db' podczas otwierania \xc5\x9brodowiska:\n", 160029)

Attachments (1)

t8024-trap-svn-exc-r7824.patch (1.4 KB ) - added by Christian Boos 11 years ago.
trap this kind of SubversionException

Download all attachments as: .zip

Change History (5)

comment:1 by Christian Boos, 11 years ago

Component: generalversion control
Keywords: svn added
Milestone: 0.11.4

Well, here we see that localizing error messages is a bad idea… could you translate it for us, please?

From the "Berkeley DB" part of it, I guess it's an incompatibility at that level (e.g. the bdb library currently used is older than the one used for creating the svn db; this might happen if you're using httpd and have a different set of apr libraries than svn).

In any case, regardless of the actual svn issue (see TracSubversion#Troubleshooting for help in this area), Trac shouldn't fail with an internal error in this situation.

comment:2 by tkielan@…, 11 years ago

SubversionException: ("Berkeley DB error for filesystem /var/lib/svn/repo/db while opening environment:\n", 160029)

This is subversion bug. I'm using DAV extension to access subversionapache and I can exclude Trac from suspicion. Navigating to http://localhost/svn produces: Error #160029: Could not open the requested SVN filesystem

I've used svnadmin recover /var/lib/svn/repo and everything looks fine, but wont work. svnadmin verify /var/lib/svn/repo confirms all the commited transactions.

I'm using db4.4. apr-utils and subversion are linked against it. Repository format is also compatible with 4.4.

Don't know howto trace this SVN issue, but it's for sure not Trac specific. Please close this ticket as I couldn't do it.

comment:3 by Christian Boos, 11 years ago

Milestone: 0.11.40.11.3
Owner: set to Christian Boos
Status: newassigned

Thanks for the update.

I don't close the ticket yet, as I think we shouldn't let this SubversionException go through.

by Christian Boos, 11 years ago

trap this kind of SubversionException

comment:4 by Christian Boos, 11 years ago

Resolution: fixed
Status: assignedclosed

Applied in r7834.

Modify Ticket

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