Re: [viewvc-users] root_parents get errno 13, svn_roots don't display

"C. Michael Pilato" <[email protected]> Fri, 28 Jun 2013 20:31:38 -0400
Newsgroups gmane.comp.version-control.cvs.viewcvs.user
Organization CollabNet, Inc.
Message-ID <[email protected]>
On 06/28/2013 04:39 PM, Gary Beckmann wrote:
> viewvc 1.1.11 on Fedora 12 was functioning. That machine died and so I
> moved viewvc to a CentOS 6.4 system. The config file used svn_roots and
> cvs_roots, on the new system nothing displays. I tried using
> root_parents, and when I visit the site I get
> 
> An Exception Has Occurred
> Python Traceback
> 
> Traceback (most recent call last):
>   File "/var/www/html/viewvc-1.1.20/lib/viewvc.py", line 4827, in main
>     request.run_viewvc()
>   File "/var/www/html/viewvc-1.1.20/lib/viewvc.py", line 402, in run_viewvc
>     self.view_func(self)
>   File "/var/www/html/viewvc-1.1.20/lib/viewvc.py", line 2176, in view_roots
>     expand_root_parents(request.cfg)
>   File "/var/www/html/viewvc-1.1.20/lib/viewvc.py", line 4700, in expand_root_parents
>     roots = vclib.svn.expand_root_parent(pp)
>   File "/var/www/html/viewvc-1.1.20/lib/vclib/svn/__init__.py", line 72, in expand_root_parent
>     subpaths = os.listdir(parent_path)
> OSError: [Errno 13] Permission denied: '/var/www/html/svn'
> 
> 
> Note that /var/www/html/svn is a symbolic link to where the repository
> actually is: /yoke/repository/projects/subversion.
> 
> When I use "standalone.py" then everything functions as expected. The
> repository directories are have 777 permissions.
> 
> Other postings and the on-line FAQ say that I should "make sure
> permissions are correct" without any indication of which permissions are
> meant.

The error message is pretty clear about the directory on which read
permission is being denied ("/var/www/html/svn").  You've stated the
repository directories are all 777, but what about this parent directory?

Also, I don't use CentOS myself, but my understanding is that by default
Apache HTTP Server runs as a user called 'apache'.  My guess is that when
you invoked standalone.py, you were running it as your own userid.  So there
could be disparity in the permissions granted by the OS to those two
different users which would account for the different behaviors you see.

-- 
C. Michael Pilato <[email protected]>
CollabNet   <>   www.collab.net   <>   Enterprise Cloud Development

------------------------------------------------------
http://viewvc.tigris.org/ds/viewMessage.do?dsForumId=4255&dsMessageId=3059413

To unsubscribe from this discussion, e-mail: [[email protected]].
signature.asc (application/pgp-signature, 836 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)

iQIcBAEBCAAGBQJRzirqAAoJEPXg8AH+aBMz9HQP/1rMdP6LpghkxPPXAKEHZxVR
ZF0dn0bOKwR0I2LBa2WO/vXH56di0GpX2RWqoSQVIVMaKaT7HTathnyVh64CMnc9
vWjMZP10GATPt6JOJ5fpciJ1uVyuaz6N5VkhdHXH5t41K3SeukG4iZXx5A9szouB
nvJqqHss/frLmu50x+XbwDEYWq1ft+nyWE6zqpxSPBwBOlN9GZWWT/oGG3Us1U74
S0knUrVEFTHWgvhTLAQpQfxm2vZ34qU+HoEE2WIPEm16zrNlDDSBpQHnzpvX7aRS
gM57v2Q8Flz36LI5OChC23YT+0P8j3Kif8vDa/0OKhwZwoqUMIl75RYbcoRWupTq
k4tq58Lpw4/I+sQH/xvYy4dIAP1XTrxxddgpMGkfnvSZxr5CfZ9/W779K1J3LNu8
pFLyV+OwHrgADrz2Mivl7oms0/v7kfjxUgo2+eqDmdoj3Kpb++mz19zJ9MSlZsFl
H7n/DFNVR4IFuLgIfTz6VJPh5ZOomsnscQZq0+ZeKeFQPEJuDSwFvYsTdgoNhngJ
b7NVbZ8R7jdeQI4AM9lP2OGZKKJZauMoPX95PFoHgLTXPXs1NxjqOSuylfZj2sA8
MWzCNyg5Mp9Rd2ix1YnHtY0oxhLChRSpSndAvmJqvXc3J6zd5dWbtYqUHy/sagAw
pQRRoEX9+hInlqe1RlYf
=lKgR
-----END PGP SIGNATURE-----