info-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: cvs not checkout in pwd, but some other strange place.


From: Todd Denniston
Subject: Re: cvs not checkout in pwd, but some other strange place.
Date: Thu, 30 Apr 2009 16:55:15 -0400
User-agent: Thunderbird 2.0.0.19 (X11/20081209)

Troels Kofoed Jacobsen wrote, On 04/29/2009 03:02 AM:
Hi all

I have a problem. My /home and some other folders are automounted nfs shares via autofs. When I try to checkout form any cvs repository in my homefolder ($HOME/tmp) cvs will randomly tell me smomething like: cvs [checkout aborted]: could not chdir to /auto/data/myuser/tmp: No such file or directory
note here that /auto/data is also an automounted nfs share.
My /home is actually also mounted to /auto/home and then symlinked to /home... The strange thing is that this happens rather randomly. It will pick a seemingly random share mounted in /auto, think my user homefolder is under that and try to checkout to that dir. Sometimes it tries /auto/home and the checkout succeeds. If i create it says it is missing (e.g. /auto/data/myuser/tmp) it will checkout into that -- even though I'm in /home/myuser/tmp when writing the command.

Note: if i try from a dir in the root file system (e.g. /tmp) it will always succeed)

Can anyone tell me what's going on?

I agree with Arthur, please provide
Version of CVS?
CVSROOT?
what is the actual message, or be very careful when 'sanitizing' it.

I believe you are using an autofs, which mounts NFS file systems only when they are needed, if the needed file system is already mounted it works ok, if not it does not. to me it looks like the very first access CVS does to the directory causes it to be mounted, but not before CVS gives up on it, which I have seen with many other products.



Why do cvs even try to change dir before pulling the data?

we need more information first.
Version of CVS?
CVSROOT?
is the directory where you are telling it to put your checkout a soft link or contain one?
cd into the directory where you are doing the checkout and execute:
df -h . |awk '{print $6}'
is the second line returned the place that CVS is indicating does not exist?
[the first line should say Mounted]

cd into the directory where you are telling CVS to _put_ (cvs checkout -d ???) the checkout and execute:
df -h . |awk '{print $6}'
is the second line returned the place that CVS is indicating does not exist?


workaround: always cd into the directory where you want to do the checkout, which will cause autofs to have it mounted before you do the checkout.



Best regards
Troels Kofoed Jacobsen





--
Todd Denniston
Crane Division, Naval Surface Warfare Center (NSWC Crane)
Harnessing the Power of Technology for the Warfighter




reply via email to

[Prev in Thread] Current Thread [Next in Thread]