[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Repository corrupting when commiting from windows client to linux server

From: Saimon Moore <saimonmoore_at_yahoo.co.uk>
Date: 2003-11-28 21:58:58 CET

Hi,

I've just installed subversion and have managed to successfully get a
webdav svn server going via apache (v. 2.0.48) on my gentoo linux box
at home. (I installed version 0.32.1 via the gentoo ebuild).

I've only been working for a short time but on my linux box I have had
no problems working with the repository.

I have apache set up to use the 'apache' user when accessing the
repository. The repository is owned by the 'apache' user and the 'svn'
group with r/w rights for the user/group.

However, I want to be able to write to my repository remotely so I
installed the windows client
(http://subversion.tigris.org/files/documents/15/8398/svn-0.33.1-setup.exe)
on my machine at work (Windows XP).

As I'm behind a firewall and go through an MS Proxy I access my
repository via https. I access via a user (not root) set in htpasswd.

As far as I have determined, read access is not a problem. However, if I
commit anything from the windows client, the commit is done succesfully
but when I get back to the linux box at home and do a
'svn update' I get the following error:

saimonm@nefeli survey $ svn update
svn: Berkeley DB error
svn: Berkeley DB error while checkpointing after Berkeley DB transaction
for filesystem /opt/svn/repository/db:
DB_RUNRECOVERY: Fatal error, run database recovery
Aborted

So I then run 'svnadmin recover /opt/svn/repository'
and that completes succesfully (after shutting down apache)

If I then look at the repo/db directory I notice that some of the db
files are now owned by:

-rw-r--r-- 1 root root 8192 Nov 28 19:29 __db.001

If I now try and access the repository from the linux client e.g

'svn update' I get:

saimonm@nefeli survey $ svn update
svn: Couldn't open a repository.
svn: Unable to open an ra_local session to URL
svn: Unable to open repository 'file:///opt/svn/repository/trunk/survey'
svn: Berkeley DB error
svn: Berkeley DB error while opening environment for filesystem
/opt/svn/repository/db:
Permission denied

After chowning all files in the repository back to apache:svn and
allowing group write access I can successfully perform an 'svn update'
and things are back to normal.

It seems to me that when the windows client accesses the repository it
appears to be accessing it as root or the web dav svn module is using
root and leaving the db files in a read only sate.

When editing files in windows I make sure that the files have any
extraneous windows line-feeds removed.

Has anyone come across this before?

I've tried to find info on this in the mailing lists but with no luck...

Thanks,

Saimon

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Fri Nov 28 22:07:52 2003

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.