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

Re: SVN Server 1.6.1 access via http

From: Campbell Allan <campbell.allan_at_sword-ciboodle.com>
Date: Mon, 27 Apr 2009 11:09:55 +0100

On Monday 27 Apr 2009, webpost_at_tigris.org wrote:
> I have run the strace by using:
> strace -ffFv -o strace.txt env -i LANG=C
> PATH=/usr/bin:/usr/sbin:/usr/local/bin:/bin
> LD_LIBRARY_PATH=/usr/lib/libgdbm.so.2 /usr/sbin/apachectl start &
>
> I am attaching strace.txt.1041 which shows when I am trying to hit
> http://servername/General/Test3 (one of my repository), it gets Permission
> Denied on /repos/General/Test3/db/rep-cache.db while if I do ls -l
> /repos/General/Test3/db/ following is the output
> -rwxrwxrwx 1 apache apache 2 Apr 24 14:26 current
> -rwxrwxrwx 1 apache apache 22 Apr 24 14:26 format
> -rwxrwxrwx 1 apache apache 1920 Apr 24 14:26 fsfs.conf
> -rwxrwxrwx 1 apache apache 5 Apr 24 14:26 fs-type
> -rwxrwxrwx 1 apache apache 2 Apr 24 14:26 min-unpacked-rev
> -rwxrwxrwx 1 apache apache 4096 Apr 24 14:26 rep-cache.db
> drwxrwxrwx 3 apache apache 4096 Apr 24 14:26 revprops
> drwxrwxrwx 3 apache apache 4096 Apr 24 14:26 revs
> drwxrwxrwx 2 apache apache 4096 Apr 24 14:26 transactions
> -rwxrwxrwx 1 apache apache 2 Apr 24 14:26 txn-current
> -rwxrwxrwx 1 apache apache 0 Apr 24 14:26 txn-current-lock
> drwxrwxrwx 2 apache apache 4096 Apr 24 14:26 txn-protorevs
> -rwxrwxrwx 1 apache apache 37 Apr 24 14:26 uuid
> -rwxrwxrwx 1 apache apache 0 Apr 24 14:26 write-lock
>
> Any ideas?
>

Nothing really jumps out but I'm not familiar with the internals of the server
and it might be better if someone with more knowledge comments on the
following.

The permission denied for rep-cache.db is fine as the first call to open is
trying to create it (O_CREAT flag), the second is opening it for read only
and succeeds with file descriptor 13. Then there are lots of what look like
failed seeks into the rep-cache.db file. When they stop there are the four
error lines you previously posted being written out and then the process
kills itself with a generic http response of 500. So the problem is
definitely with the rep-cache.db file.

I've experimented a little with a local repository, the cache file is about 80
mb. I moved it out the way while the server was stopped and found I could
still access the repository. Could you try something similar and see if that
lets you access it over http. It still doesn't explain what caused the
failure though. I compared strace output from my server and it looked the
same except without the failure.

Campbell
__________________________________________________________________________________
Sword Ciboodle is the trading name of ciboodle Limited (a company
registered in Scotland with registered number SC143434 and whose
registered office is at India of Inchinnan, Renfrewshire, UK,
PA4 9LH) which is part of the Sword Group of companies.

This email (and any attachments) is intended for the named
recipient(s) and is private and confidential. If it is not for you,
please inform us and then delete it. If you are not the intended
recipient(s), the use, disclosure, copying or distribution of any
information contained within this email is prohibited. Messages to
and from us may be monitored. If the content is not about the
business of the Sword Group then the message is neither from nor
sanctioned by us.

Internet communications are not secure. You should scan this
message and any attachments for viruses. Under no circumstances
do we accept liability for any loss or damage which may result from
your receipt of this email or any attachment.
__________________________________________________________________________________
Received on 2009-04-27 12:10:53 CEST

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.