Re: [viewvc-users] viewvc-1.1.23 issue

"C. Michael Pilato" <[email protected]> Mon, 08 Dec 2014 15:48:54 -0500
Newsgroups gmane.comp.version-control.cvs.viewcvs.user
Organization CollabNet, Inc.
Message-ID <[email protected]>
The problem might be the parent directories.  Maybe instead of changing
all the directory permissions to 777, it would make sense to add the
Apache user to the rancid user's group?

On 12/08/2014 03:41 PM, annie wrote:
> I already tried to change the directory to 777, but still getting permission error..
>
>> On 12/07/2014 11:14 PM, annie wrote:
>>> Hi Experts,
>>>
>>> I'm a newbie and just installed the latest version 1.1.23 and having an error similar to a previous problem (http://viewvc.tigris.org/ds/viewMessage.do?dsForumId=4255&viewType=browseAll&dsMessageId=3054081#messagefocus)
>>>
>>> viewvc.conf
>>> -------------
>>> root_parents = /home/rancid/var/CVS : cvs
>>> cvs_roots = rancid: /home/rancid/var/CVS
>>> default_root = rancid
>>> svn_roots = router: /home/rancid/var/CVS
>>>
>>> Error when loding localhost/viewvc
>>> -----------------------------------
>>> An Exception Has Occurred
>>> Python Traceback
>>> Traceback (most recent call last):
>>>   File "/usr/local/viewvc-1.1.23/lib/viewvc.py", line 4848, in main
>>>     request.run_viewvc()
>>>   File "/usr/local/viewvc-1.1.23/lib/viewvc.py", line 402, in run_viewvc
>>>     self.view_func(self)
>>>   File "/usr/local/viewvc-1.1.23/lib/viewvc.py", line 2201, in view_roots
>>>     expand_root_parents(request.cfg)
>>>   File "/usr/local/viewvc-1.1.23/lib/viewvc.py", line 4720, in expand_root_parents
>>>     roots = vclib.ccvs.expand_root_parent(pp)
>>>   File "/usr/local/viewvc-1.1.23/lib/vclib/ccvs/__init__.py", line 32, in expand_root_parent
>>>     subpaths = os.listdir(parent_path)
>>> OSError: [Errno 13] Permission denied: '/home/rancid/var/CVS'
>>>
>>> Tried with commenting the root_parents, successfully loading the page but no directory listing.
>> Doesn't this error message pretty much tell you what's wrong?  The
>> ViewVC process is trying to read something in /home/rancid/var/CVS, and
>> can't because the user as which it is running doesn't have the correct
>> filesystem permissions to read that directory.
> ------------------------------------------------------
> http://viewvc.tigris.org/ds/viewMessage.do?dsForumId=4255&dsMessageId=3092413
>
> To unsubscribe from this discussion, e-mail: [[email protected]].


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

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

To unsubscribe from this discussion, e-mail: [[email protected]].