You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Trevor Allred <ta...@remedymd.com> on 2004/10/25 20:56:57 UTC
DB error while opening 'copies'
I am getting an error when running recover or any other command from svn.
Here is the output from svnadmin recover.
svnadmin recover /usr/local/svn/
Please wait; recovering the repository may take some time...
Recovery completed.
svn: Berkeley DB error while opening 'copies' table for filesystem
/usr/local/svn/db:
Invalid argument
In addition to this error we have had two cases where a process locked svn
and everything hung indefinitely including svnadmin restore. The first time
I rebooted, the second time I was able to find the svn look command that was
locking it and kill it.
I am using SVN 1.0.9 on a Red Hat installation. Our repository is located on
/usr/loca/svn/ that is a local drive (not NFS). We have about 4 developers
using working copies that are mounted via samba to their Windows machines.
The working copies reside on the server in /home/[username]/ This is
important because our code is not very portable to Windows and we want to be
able to run right from Linux without moving it first. Only the webuser (for
apache) accesses the repository so I don't think we have a problem with
permissions here.
We also installed TortoiseSVN and use it from Windows to check in files. If
this is causing the problem then we could commit only from Linux command
line.
I don't have a backup right now but we do have an up to date "staging" area
that has all of the latest checkins. I don't care about history (yet), so if
I need to rebuild that's OK. But I don't want to rebuild only to have a
problem tomorrow again.
For now I just need to figure out the problem with the "Invalid argument" on
the copies table.
Trevor Allred
Re: DB error while opening 'copies'
Posted by Ben Collins-Sussman <su...@collab.net>.
On Oct 25, 2004, at 3:56 PM, Trevor Allred wrote:
> I am getting an error when running recover or any other command from
> svn. Here is the output from svnadmin recover.
>
>
>
> svnadmin recover /usr/local/svn/
>
> Please wait; recovering the repository may take some time...
>
>
>
> Recovery completed.
>
> svn: Berkeley DB error while opening 'copies' table for filesystem
> /usr/local/svn/db:
>
> Invalid argument
>
>
'Invalid argument' is a generic catch-all for a zillion different
errors that are happening within BDB. In svnadmin 1.1, the 'recover'
command actually tries to print the true error. You might want to try
using that tool for more information.
Regardless, the next thing I'd try is:
* copy the repository somewhere
* run 'db_recover -vech repos_copy/db/'
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org