RE: CVS commit failure and lock files (under windows with cygwin)

2002-11-04 Thread David Marshburn

To add a data point to the collected experience of CVS over AFS (a friend
discovered the following):

The cvs.exe binary from the last release of WinCVS (1.2.2a?) works just
fine for me to commit to an AFS-mounted "local" repository (you may recall
that I'd had problems, similar to or the same as Seth, when trying to
commit from a few computers to an AFS-mounted repository).  I just copied
WinCVS' cvs.exe binary over the one in Cygwin's /usr/bin (after making a
backup of the original).  All was dandy after I changed my classpath from
something the Cygwin-CVS expected (/afs/) to what WinCVS-CVS
expected (:local:U:\\).

(I have to credit Mark Foskey with this discovery, who googled on the
problem and came up with my original question :)

cheers,
-david


On Thu, 12 Sep 2002, Seth Copen Goldstein wrote:

> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
> 
> The file does not seem to exist after the failure, so either
> - - it was created, the error occurred, and then it was deleted, or
> - - it was not able to be created.
> 
> Not sure how to tell which it is.
> 
> - -seth
> 
> BTW: Is there a short doc on how to use client/server securely from windows
> (client) to unix (server) and also to use pcl-cvs for all the above?
> 
> - ---
> [EMAIL PROTECTED]7122 Wean Hall
> www.cs.cmu.edu/~seth   School of Computer Science
> phone: 412-268-3828Carnegie Mellon University
> fax:   412-268-4801Pittsburgh, PA 15213
> 
> > -Original Message-
> > From: [EMAIL PROTECTED] [mailto:lawrence.jones@;eds.com]
> > Sent: Thursday, September 12, 2002 12:04 PM
> > To: [EMAIL PROTECTED]
> > Cc: [EMAIL PROTECTED]
> > Subject: Re: CVS commit failure and lock files (under windows with
> > cygwin)  
> > 
> > David Marshburn writes:
> > >
> > > If I may draw this point out slightly (I've had the same problem), can 
> > you
> > > tell us what CVS would be doing at the time?  In what way does it try
> > > to create this lock file?  Is there anything special or different about
> > that?
> > > Any clue as to what would make this fail?  I believe (from private
> > > corresopndence) that Seth is using AFS, as am I.  This is the only case
> > > I've found in which AFS fails to correctly create a file.  What I'm
> > > looking for is any suggestions or guesses as to what may be different
> > > in CVS' case...
> > 
> > "Lock file" is a bit of a misnomer in this case -- it's actually the new
> > RCS file.  RCS uses the existence of the new file to prevent multiple
> > updates at the same time and thus accurately calls it a lock file.  CVS
> > uses the same terminology even though it uses a completely different
> > locking scheme.  It does, however, create the file the same way that RCS
> > does so that it will act as a lock against updating the file with RCS
> > and CVS at the same time.  (Because of the different locking schemes,
> > however, it is extremely dangerous to use RCS on a CVS file.  Since RCS
> > doesn't honor CVS's locks, it's possible for CVS to wipe out RCS's
> > changes.)
> > 
> > What makes this error interesting is that *creating* the file is
> > apparently successful; it's writing to it afterwards that fails
> > somewhere along the way.  If would be interesting to know from one of
> > you that has the problem whether the file is actually created and, if
> > so, what size it is.  The relevant code is rcs_internal_lockfile() and
> > rcs_internal_unlockfile() in src/rcs.c  My guess is that the problem is
> > that the file is opened for write, but the permissions are set to read
> > only -- that should allow the opened file to be written to but not allow
> > any subsequent opens to write to it, but perhaps that doesn't work right
> > in AFS.  Alternatively, the permissions of the open file are set
> > immediately after opening it (provided your system has the fchmod()
> > function); perhaps that has some unusual affect in AFS.
> > 
> > -Larry Jones
> > 
> > I stand FIRM in my belief of what's right!  I REFUSE to
> > compromise my principles! -- Calvin
> > 
> > 
> > ___
> > Info-cvs mailing list
> > [EMAIL PROTECTED]
> > http://mail.gnu.org/mailman/listinfo/info-cvs
> 
> -BEGIN PGP SIGNATURE-
> Version: 6.5.8ckt http://www.ipgpp.com/
> 
> iQA/AwUBPYDHOdqJMFyynoRZEQIAzACaA7ooTdu0Awek61rNirBK7fGmXqUAoPCk
> D8wWsTJ0/iRAMORn59srVnOU
> =/w03
> -END PGP SIGNATURE-
> 
> 
> ___
> Info-cvs mailing list
> [EMAIL PROTECTED]
> http://mail.gnu.org/mailman/listinfo/info-cvs
> 



___
Info-cvs mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/info-cvs



Re: can't add with wincvs

2002-11-04 Thread Steve Buehler
Ok.  I was able to get a private key setup and running so that it logs me 
in.  Now I am running into another problem.  I can connect to the 
server.  In fact, in WinCVS, I can even do a create which gives me the 
following reply in WinCVS:
cvs init

*CVS exited normally with code 0*

Now.  When I go again and click on a file to add (testz.php), then click on 
the "Add Selected" button, I get this:
cvs add testz.php (in directory C:\ijobs\cvs\)
cvs add: in directory .:
cvs [add aborted]: *PANIC* administration files missing

*CVS exited normally with code 1*

Is there something else that I have to do to get administration files into 
the directory?  What are the administration files?  As it is, here are the 
files that are in the CVSROOT directory that I am trying to access:
.#checkoutlist  .#rcsinfo   config loginfo,v  taginfo,v
.#commitinfo.#taginfo   config,v   modulesval-tags
.#config.#verifymsg cvswrappersmodules,v  verifymsg
.#cvswrappers   Emptydir/   cvswrappers,v  notify verifymsg,v
.#editinfo  checkoutlisteditinfo   notify,v
.#loginfo   checkoutlist,v  editinfo,v rcsinfo
.#modules   commitinfo  historyrcsinfo,v
.#notifycommitinfo,vloginfotaginfo

Any help would be appreciated.

Thanks
Steve

At 03:26 PM 11/4/2002 -0800, you wrote:
Steve Buehler wrote:

I am not sure if this got through to the list or not since I didn't see 
it come back to me.  So I am sending it again in the hopes that someone 
can help me.
---original message
I am hoping that someone might be able to help me.  My customer can't do 
without a GUI to work with cvs.  I am not knowledgeable with either 
wincvs or cvs.  Anyway, I get the following error when trying to click on 
the "Add Selected" button in wincvs.
(The [EMAIL PROTECTED] is not what I have entered.  I changed it here 
for security reasons).
---snip-
cvs add testz.php (in directory C:\ijobs\cvs\)
cvs add: warning: unrecognized response `Password:
' from cvs server
cvs add: warning: unrecognized response `[EMAIL PROTECTED]'s password:
' from cvs server
cvs add: warning: unrecognized response `Password:
' from cvs server
cvs [add aborted]: end of file from server (consult above messages if any)
*CVS exited normally with code 1*
---snip-
In the WinCVS preferences, I have:
General
Enter the CVSROOT
[EMAIL PROTECTED]:/usr/local/cvsroot
Authentication
SSH Server
Ports
Check for an alternate rsh name (checked)
c:\putty\plink.exe
I know they can login to the server with SSH manually.  Actually, I am 
testing it with my account.

Yes, but when you log in to the account, you have to enter 
username/password, don't you?  What you need to do is set up plink with a 
key for the account that you wish to log in with.  You will need to 
consult the plink instructions/manual to determine how to do this.  Note 
that you will then need to take appropriate measures to guard that key, 
which will be stored in plaintext in a file on your Windows machine.


HTH,

/|/|ike



--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
ow3



--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
ow3



___
Info-cvs mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/info-cvs



Re: restricted shell for cvs/ssh access only

2002-11-04 Thread Kaz Kylheku
On 4 Nov 2002, Neil Dombrowski wrote:
> I have to allow some clients access to our company's cvs repository via
> ssh, but I don't want to give them a prompt, only access to cvs
> commands. How might I accomplish this?

You replace their login shell with a script which performs command
filtering. 



___
Info-cvs mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/info-cvs



Re: restricted shell for cvs/ssh access only

2002-11-04 Thread Noel Yap
--- Neil Dombrowski <[EMAIL PROTECTED]> wrote:
> I have to allow some clients access to our company's
> cvs repository via
> ssh, but I don't want to give them a prompt, only
> access to cvs
> commands. How might I accomplish this?

The subject of your email implies you have an inkling.

There's a way in SSH2 (I've heard the same can be done
in SSH) to specify one and only one executable per key
to be executed.  Since I haven't done it in a while,
you'll have to consult another source (eg O'Reilly's
SSH book) for the details.

Once you have SSH set up, it's easy:
1. Users execute CVS the same way except their CVSROOT
will specify using ssh.
2. Users who try to use ssh directly will wind up
executing the cvs server.

HTH,
Noel

__
Do you Yahoo!?
HotJobs - Search new jobs daily now
http://hotjobs.yahoo.com/


___
Info-cvs mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/info-cvs



CVS, emacs, shh, cygwin

2002-11-04 Thread Seth Copen Goldstein
I am having trouble using cvs, emacs, bash, etc. on my windows XP machine.
My configuration is:

CVS: Concurrent Versions System (CVS) 1.11 (client/server)
Emacs: GNU Emacs 21.2.1 (i386-msvc-nt5.1.2600)\n of 2002-03-19 on buffy
Cygwin: not sure version, cygwin1.dll is dated: 2/25/2002
Ssh: (from cygwin): OpenSSH_3.2.3p1, SSH protocols 1.5/2.0, OpenSSL
0x0090604f

I have afs (version 1.2.2b), but would also be ok with using SSH.
However:

If I can't set a CVSROOT to :local:f:/path (it complains about path not
being absolute)
I can't set CVS_RSH=SSH, because cvs replies:
cvs [checkout aborted]: end of file from server (consult above messages if
any)

(there are no error messages)

Note: I can't get ssh to work either (it replies: setgid 1: Invalid
argument)

So, I am basically in deep trouble.  Can anyone help.  Thanks.

-seth

---
[EMAIL PROTECTED]7122 Wean Hall
www.cs.cmu.edu/~seth   School of Computer Science
phone: 412-268-3828Carnegie Mellon University
fax:   412-268-4801Pittsburgh, PA 15213

> -Original Message-
> From: Riechers, Matthew W [mailto:Matthew.Riechers@;gd-ais.com]
> Sent: Monday, November 04, 2002 10:03 AM
> To: Nuno Branco
> Cc: [EMAIL PROTECTED]
> Subject: Re: Multiple CVSROOT
> 
> Nuno Branco wrote:
> >
> > What I am looking for is a way to put several CVSROOT in the same CVS
> > server.
> 
> Repositories are usually configured in [x]inetd.conf. I'm not familiar
> with configuring Mandrake, so YMMV. The manual describes how to handle
> multiple repositories:
> 
>   
> 
> -Matt
> 
> 
> ___
> Info-cvs mailing list
> [EMAIL PROTECTED]
> http://mail.gnu.org/mailman/listinfo/info-cvs


___
Info-cvs mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/info-cvs



Re: Newbie Problem: About repositiory

2002-11-04 Thread Mike Ayers
Noel Yap wrote:

There're several things (with varying pro's and con's)
you can do:
1. move back the repo until you've checked in
everything you need (and don't checkout another
working directory until it's moved back)
2. create a symlink (or mount the new repo) to the
location of the old repo
3. modify all your CVS/R* files to point to the new
repo

1 and 2 may not be possible in your environment.  3 is
intrusive and error-prone.


	What about...?

	4.  Run a script which deletes all the CVS/Root directories and then 
`cvs -d /new/path/to/repository update`

	Won't this do the trick?


/|/|ike




___
Info-cvs mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/info-cvs


Re: can't add with wincvs

2002-11-04 Thread Mike Ayers
Steve Buehler wrote:

I am not sure if this got through to the list or not since I didn't see 
it come back to me.  So I am sending it again in the hopes that someone 
can help me.
---original message
I am hoping that someone might be able to help me.  My customer can't do 
without a GUI to work with cvs.  I am not knowledgeable with either 
wincvs or cvs.  Anyway, I get the following error when trying to click 
on the "Add Selected" button in wincvs.
(The [EMAIL PROTECTED] is not what I have entered.  I changed it here 
for security reasons).
---snip-
cvs add testz.php (in directory C:\ijobs\cvs\)
cvs add: warning: unrecognized response `Password:
' from cvs server
cvs add: warning: unrecognized response `[EMAIL PROTECTED]'s password:
' from cvs server
cvs add: warning: unrecognized response `Password:
' from cvs server
cvs [add aborted]: end of file from server (consult above messages if any)

*CVS exited normally with code 1*
---snip-

In the WinCVS preferences, I have:
General
Enter the CVSROOT
[EMAIL PROTECTED]:/usr/local/cvsroot
Authentication
SSH Server
Ports
Check for an alternate rsh name (checked)
c:\putty\plink.exe

I know they can login to the server with SSH manually.  Actually, I am 
testing it with my account.

	Yes, but when you log in to the account, you have to enter 
username/password, don't you?  What you need to do is set up plink 
with a key for the account that you wish to log in with.  You will 
need to consult the plink instructions/manual to determine how to do 
this.  Note that you will then need to take appropriate measures to 
guard that key, which will be stored in plaintext in a file on your 
Windows machine.


	HTH,

/|/|ike




___
Info-cvs mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/info-cvs


Re: Newbie Problem: About repositiory

2002-11-04 Thread Larry Jones
Xicheng Jia writes:
> 
> Then I can not checkin or do some other cvs operations correctly on
> the files I checkouted out several weeks before, b/c the CVS root had been
> changed. Can anyone tell me what I should do to recover the relationship
> between my files and the modules. Also, shall I re-import the modules???
> Thanks a lot for your kind help.

CVS remembers the root for each working directory in the CVS/Root file
-- you can edit those files as required.  You can also use the -d global
option to override what's in the CVS/Root files, but that's much less
convenient for the long term.

-Larry Jones

Hey Doc, for 10 bucks I'll make sure you see those kids in the
waiting room again real soon! -- Calvin


___
Info-cvs mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/info-cvs



restricted shell for cvs/ssh access only

2002-11-04 Thread Neil Dombrowski
I have to allow some clients access to our company's cvs repository via
ssh, but I don't want to give them a prompt, only access to cvs
commands. How might I accomplish this?

Thanks,
Neil





___
Info-cvs mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/info-cvs



Re: Newbie Problem: About repositiory

2002-11-04 Thread Noel Yap
There're several things (with varying pro's and con's)
you can do:
1. move back the repo until you've checked in
everything you need (and don't checkout another
working directory until it's moved back)
2. create a symlink (or mount the new repo) to the
location of the old repo
3. modify all your CVS/R* files to point to the new
repo

1 and 2 may not be possible in your environment.  3 is
intrusive and error-prone.

HTH,
Noel
--- Xicheng Jia <[EMAIL PROTECTED]> wrote:
> 
> I have several modules in my repository under the
> following
> directory:
> 
>   /users/t1/CVSROOT
> 
> But recently, our system administrator transfered
> all my data to another
> directory, say:
> 
>   /users/005/t3/CVSROOT
> 
> Then I can not checkin or do some other cvs
> operations correctly on
> the files I checkouted out several weeks before, b/c
> the CVS root had been
> changed. Can anyone tell me what I should do to
> recover the relationship
> between my files and the modules. Also, shall I
> re-import the modules???
> Thanks a lot for your kind help.
> 
> Have a nice day, :)
> 
> Xicheng
> 
> 
> 
> ___
> Info-cvs mailing list
> [EMAIL PROTECTED]
> http://mail.gnu.org/mailman/listinfo/info-cvs


__
Do you Yahoo!?
HotJobs - Search new jobs daily now
http://hotjobs.yahoo.com/


___
Info-cvs mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/info-cvs



Re: Newbie Problem: About repositiory

2002-11-04 Thread Riechers, Matthew W
Xicheng Jia wrote:
> 
> I have several modules in my repository under the following
> directory:
> 
>   /users/t1/CVSROOT
> 
> But recently, our system administrator transfered all my data to another
> directory, say:
> 
>   /users/005/t3/CVSROOT
> 
> Then I can not checkin or do some other cvs operations correctly on
> the files I checkouted out several weeks before, b/c the CVS root had been
> changed.

The CVS/Root files in your sandbox(en) need to be updated to reflect the
new repository path. The following will generate a script to do the
conversion:

find . -type d -name CVS \
|awk '{print "echo $CVSROOT >\"" $1 "/Root\""}'

You can tweak the output if need be, then just run the script from the
top of a sandbox. $CVSROOT needs to be set to the new location. Use at
your own risk!

-Matt


___
Info-cvs mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/info-cvs



Newbie Problem: About repositiory

2002-11-04 Thread Xicheng Jia

I have several modules in my repository under the following
directory:

  /users/t1/CVSROOT

But recently, our system administrator transfered all my data to another
directory, say:

  /users/005/t3/CVSROOT

Then I can not checkin or do some other cvs operations correctly on
the files I checkouted out several weeks before, b/c the CVS root had been
changed. Can anyone tell me what I should do to recover the relationship
between my files and the modules. Also, shall I re-import the modules???
Thanks a lot for your kind help.

Have a nice day, :)

Xicheng



___
Info-cvs mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/info-cvs



Re: can't add with wincvs

2002-11-04 Thread Eric Siegerman
On Sun, Nov 03, 2002 at 08:38:57AM -0600, Steve Buehler wrote:
> I get the following error when trying to click on the "Add 
> Selected" button in wincvs.
> (The [EMAIL PROTECTED] is not what I have entered.  I changed it here for 
> security reasons).
> ---snip-
> cvs add testz.php (in directory C:\ijobs\cvs\)
> cvs add: warning: unrecognized response `Password:
> ' from cvs server
> [and more similar]
> ---snip-
> 
> In the WinCVS preferences, I have:
> General
>  Enter the CVSROOT
>  [EMAIL PROTECTED]:/usr/local/cvsroot
> Authentication
>  SSH Server
> Ports
>  Check for an alternate rsh name (checked)
>  c:\putty\plink.exe
> 
> I know they can login to the server with SSH manually.  Actually, I am 
> testing it with my account.

I've only had fair-to-middling success getting WinCVS and SSH to
get along.  But for what it's worth...

When you log in manually with SSH, is it asking you for a
password?  I suspect it is.  The error message looks like SSH's
password prompt.  I'd guess that the ssh client is prompting for
a password, but WinCVS doesn't know how to supply it.

Try generating an SSH key pair, and using ssh-agent (or the local
equivalent) to get things into a state where you can ssh into the
server without typing a password.  Then try WinCVS again.

Obviously, doing that opens up a security hole -- anyone can walk
up to the your Windows box and ssh into the server.  I suspect,
though, that unlike with "cvs login" under pserver, the hole will
close on its own when you log out of Windows, because the
ssh-agent will terminate at that point.  But that's just a guess,
so please *DON'T* take my word for it; test it for yourself!

Depending on your circumstances, that (or working around it by
putting a password on the Windows screen saver) may or may not be
acceptable.

--

|  | /\
|-_|/  >   Eric Siegerman, Toronto, Ont.[EMAIL PROTECTED]
|  |  /
Just Say No to the "faceless cannonfodder" stereotype.
- http://www.ainurin.net/ (an Orc site)


___
Info-cvs mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/info-cvs



Re: Multiple CVSROOT

2002-11-04 Thread Larry Jones
Nuno Branco writes:
> 
> What I am looking for is a way to put several CVSROOT in the same CVS
> server. I am currently using mandrake 9.0 which comes with CVS server
> installed and a cvs.conf file where i should put the CVSROOT.
> Unfortunately for me, I didn't found a way to put more than one CVSROOT
> working at a time.

I suggest you read the relevant section of the CVS manual:



The best thing to do is to give every user a login username/password on
the server if they don't already have them and then use the :ext: method
with rsh or ssh -- that doesn't require any configuration on the server
at all.  If you insist on using pserver, the manual tells you what needs
to be done, you just need to figure out how to fit that into whatever it
is that Mandrake has done to make it "easy" for you to set up a server. 
If you can't, that's a Mandrake question, not a CVS question.

-Larry Jones

Geez, I gotta have a REASON for everything? -- Calvin


___
Info-cvs mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/info-cvs



Re: Multiple CVSROOT

2002-11-04 Thread Riechers, Matthew W
Nuno Branco wrote:
>
> What I am looking for is a way to put several CVSROOT in the same CVS
> server.

Repositories are usually configured in [x]inetd.conf. I'm not familiar
with configuring Mandrake, so YMMV. The manual describes how to handle
multiple repositories:



-Matt


___
Info-cvs mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/info-cvs



Multiple CVSROOT

2002-11-04 Thread Nuno Branco

I am quite new to CVS and I hope you people can help me with a problem.

I recently found out that (almost) everyone around my company uses CVS
to help with their projects, unfortunately this has become a sysadmin
nightmare to have so many CVS's around my network.

What I am looking for is a way to put several CVSROOT in the same CVS
server. I am currently using mandrake 9.0 which comes with CVS server
installed and a cvs.conf file where i should put the CVSROOT.
Unfortunately for me, I didn't found a way to put more than one CVSROOT
working at a time.

/cvsroot/root1/Project1
/cvsroot/root1/Project4
/cvsroot/root1/Project5
/cvsroot/root2/Project2 
/cvsroot/root3/Project3
... etc

I've been looking trough the ML archives but I didn't found anything
yet.

Could someone share some light?

-- 


Atentamente, 
Nuno Branco





signature.asc
Description: This is a digitally signed message part


Re: Providing the functionality of CVS as a library

2002-11-04 Thread Martin Fuzzey
For Java the jcvs project provides both a CVS client (with UI) and a 
package implementing the CVS client/server protocol that you can use to 
build your own CVS aware applications.
http://www.jcvs.org/

I don't know if anyone has done this in other languages

Martin Fuzzey


Message: 5
Subject: Re: Providing the functionality of CVS as a library
To: [EMAIL PROTECTED] (Alex Taler)
Date: Fri, 1 Nov 2002 10:55:11 -0500 (EST)
Cc: [EMAIL PROTECTED]
From: [EMAIL PROTECTED] (Larry Jones)

Alex Taler writes:
>
> My incentive for this comes from my experience with writing tools
> that wrap CVS.  I found the parsing of the CVS output quite
> cumbersome, and prone to failure when I brought it to a new site.
> I know I'm not the only one who would benefit from such a
> library, so it seemed like a good idea.

That's one of the motivations for the CVS client/server protocol -- the
intent was the people should write new clients rather than trying to
wrap the existing command-line client.  Librarifying CVS would likely
require a complete re-write.

-Larry Jones




___
Info-cvs mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/info-cvs