Re: [viewvc-users] Annotation error
"C. Michael Pilato" <[email protected]>
| Newsgroups | gmane.comp.version-control.cvs.viewcvs.user |
|---|---|
| Organization | CollabNet, Inc. |
| Message-ID | <[email protected]> |
C. Michael Pilato wrote: > John Beranek wrote: >> John Beranek wrote: >>> C. Michael Pilato wrote: >>>> John Beranek wrote: >>>>> I have ViewVC 1.1.0-beta1 installed on a Linux server using: >>>>> >>>>> Apache 2.2.3 >>>>> Subversion 1.5.6 >>>>> Python 2.4.3 >>>>> >>>>> It's a fairly new installation, and I've only just noticed that whenever >>>>> an annotation of a file in a local Subversion repository is requested >>>>> the error: >>>>> >>>>> Error occurred while calculating annotation data. >>>>> >>>>> is shown, and no annotation is provided. >>>> Have you configured the svn_config_dir parameter in viewvc.conf, pointing it >>>> to a directory that is accessible to the user as whom ViewVC is running (the >>>> Apache user)? >>> OK, so your advice worked perfectly...until I upgraded the server to >>> Subversion 1.6.1. >> Just a further note, I've now upgraded from 1.1.0-beta1 to 1.1.0 to >> check if this solves the problem - it doesn't. > > Thanks for the update. I'm not aware of any changes in Subversion's Python > modules that would account for this, but I'll look into it. Having just reviewed all the changes to the Python bindings between 1.5.x and 1.6.x, I don't see anything suspect. Further, I just tried an experiment on svn.collab.net (which is running Subversion 1.6.2 and ViewVC 1.1.0), and it appears to me that ViewVC is honoring the svn_config_dir configuration. I start Apache as 'root', but it switches to another UID. Without svn_config_dir set at all, ViewVC uses $HOME/.subversion of that Apache user. It doesn't reference the (non-existant) /root/.subversion directory; and when I create /root/.subversion but mark it unreadable, I still see no errors. If I point svn_config_dir to a new location, my requests fail for lack of auth credentials. But if I then use the 'svn' client (with --config-dir /path/to/new/directory) to read the remote repository, and allows Subversion to cache those creds, stuff works again. Sorry, but I can't seem to reproduce the problem. :-( Is there anything particularly interesting about your setup or configuration? Does Apache run as 'root' on your system or as something else (like 'httpd')? (Your previous mails seem to indicate that it runs as something else.) -- C. Michael Pilato <[email protected]> CollabNet <> www.collab.net <> Distributed Development On Demand ------------------------------------------------------ http://viewvc.tigris.org/ds/viewMessage.do?dsForumId=4255&dsMessageId=2301344 To unsubscribe from this discussion, e-mail: [[email protected]].
signature.asc
(application/pgp-signature, 197 B)
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) iEYEARECAAYFAkoRiwkACgkQokEGqRcG/W60OACeMwCPKSTbDW7Z9heTRVYndQVu hHgAmwfwYkttamjnGxaWUV4e6VnCPc2Y =O9WA -----END PGP SIGNATURE-----