[SOLVED]CVS update failure

Tonton_Fred

Joined: 2005-04-17
Posts: 28
Posted: Thu, 2005-04-28 14:09

Hi,

i just tried my hand at CVSing my gallery install on my Linux server yesterday, and I managed to check out the latest code following the instructions here, but the last part, that is updating after the first check out, keeps failing.

First, when I ran 'cvs update -Pd', I was told that CVSROOT was not defined, so I had to define it with set/export (or put it in the shell profile for permanent effect), which was not specified in the instructions ; now, this is what i get when I try to update :

cvs update -Pd
cvs update: authorization failed: server cvs.sourceforge.net rejected access to /cvsroot/gallery login for user anonymous
cvs update: used empty password; try "cvs login" with a real password

The strange part is everything works if I type :

cvs -d:pserver:anonymous@cvs.sourceforge.net:/cvsroot/gallery login

then

cvs -d:pserver:anonymous@cvs.sourceforge.net:/cvsroot/gallery checkout -P gallery2

and I just have to hit enter after the first command (ie 'empty password') to login... but the authentication fails when using 'cvs update'...

Any idea what I am doing wrong ?

Thanks,

Fred

 
h0bbel
h0bbel's picture

Joined: 2002-07-28
Posts: 13451
Posted: Thu, 2005-04-28 17:14
Quote:
cvs -d:pserver:anonymous@cvs.sourceforge.net:/cvsroot/gallery login

cvs -z3 -d:pserver:anonymous@cvs.sourceforge.net:/cvsroot/gallery co -P gallery2

Should work fine, then all you need to do after that, to update, is cvs update from inside the gallery2 directory.

 
Tonton_Fred

Joined: 2005-04-17
Posts: 28
Posted: Fri, 2005-04-29 08:05

Hi h0bbel, thanks for the reply ; I tried what you suggested, and this is what happens :

cvs -d:pserver:anonymous@cvs.sourceforge.net:/cvsroot/gallery login         
Logging in to :pserver:anonymous@cvs.sourceforge.net:2401/cvsroot/gallery
CVS password:

I just hit Enter, command line goes back to prompt and I type :

cvs -z3 -d:pserver:anonymous@cvs.sourceforge.net:/cvsroot/gallery co -P gallery2

which leads to a lot of "cvs checkout : updating..." messages, so everything is working. But if I type this afterwards :

cvs update

I get :

cvs update: authorization failed: server cvs.sourceforge.net rejected access to /cvsroot/gallery login for user anonymous
cvs update: used empty password; try "cvs login" with a real password

I am in my server's gallery2 directory the whole time, so I really don't know why the SF server is rejecting my 'empty password'...

Fred

 
Tonton_Fred

Joined: 2005-04-17
Posts: 28
Posted: Fri, 2005-04-29 09:21

Ok, after deleting all my gallery directories and restarting from scratch, it worked ! Must have been something borked in my configuration.

Thanks for your help !
Fred

 
h0bbel
h0bbel's picture

Joined: 2002-07-28
Posts: 13451
Posted: Fri, 2005-04-29 14:20

Tonton_Fred, yeah, you needed to do a fresh checkout, with no old CVS dirs around. :)