From: Zoltan F. <zo...@da...> - 2003-01-31 16:29:39
|
I found the problem: .profile is not loaded when cvs is calling ssh, so my PATH was not set to where cvs was (usr/local/bin). When a user does a login ssh the profile is loaded.=20 So I corrected this and now everything seems to work. thanks -----Original Message----- From: Rob Helmer [mailto:ro...@ro...]=20 Sent: Thursday, January 30, 2003 7:48 PM To: Zoltan Farkas Subject: Re: [Sandweb-users] module checkout problem hmm.. ok, I am not really sure why CVS isn't working then. It's saying the the server is giving it EOF, if doing : CVS_RSH=3Dssh export CVS_RSH and a CVS command on the command line doesn't work, it's definitely not going to work in sandweb :) On Thu, Jan 30, 2003 at 07:15:57PM -0500, Zoltan Farkas wrote: > That's what happens >=20 > $ ssh cvs@freak > cvs@freak's password:=20 > Last login: Thu Jan 30 08:48:28 2003 from freak.daxtechno > Sun Microsystems Inc. SunOS 5.9 Generic May 2002 > $ which cvs > /usr/local/bin/cvs > $ cvs server >=20 > and it holds term ..... >=20 >=20 > --zoly > =20 >=20 > -----Original Message----- > From: Rob Helmer [mailto:ro...@ro...]=20 > Sent: Thursday, January 30, 2003 7:16 PM > To: Zoltan Farkas > Subject: Re: [Sandweb-users] module checkout problem >=20 > what if you "ssh cvs@freak" and at the prompt try "which cvs", > "cvs server" should put the CVS on the other side into server > mode and hold that term until you hang up. >=20 >=20 > On Thu, Jan 30, 2003 at 07:03:10PM -0500, Zoltan Farkas wrote: > > This is what happens: > >=20 > > $ ssh cvs@freak cvs server > > cvs@freak's password:=20 > > $ > >=20 > >=20 > > --zoly > > =20 > >=20 > > -----Original Message----- > > From: Rob Helmer [mailto:ro...@ro...]=20 > > Sent: Thursday, January 30, 2003 7:06 PM > > To: Zoltan Farkas > > Subject: Re: [Sandweb-users] module checkout problem > >=20 > > hmm.. very strange. What if you do "ssh cvs@freak cvs server"? > >=20 > >=20 > > On Thu, Jan 30, 2003 at 06:42:31PM -0500, Zoltan Farkas wrote: > > > (127)oracle@/opt/oracle/product/8.1.7/dbs>which ssh > > > /usr/bin/ssh > > >=20 > > > --zoly > > > =20 > > >=20 > > > -----Original Message----- > > > From: Rob Helmer [mailto:ro...@ro...]=20 > > > Sent: Thursday, January 30, 2003 6:43 PM > > > To: Zoltan Farkas > > > Subject: Re: [Sandweb-users] module checkout problem > > >=20 > > > type "which ssh" > > >=20 > > >=20 > > > On Thu, Jan 30, 2003 at 06:08:28PM -0500, Zoltan Farkas wrote: > > > > SSH seems to work: > > > >=20 > > > > $ ssh cvs@freak > > > > cvs@freak's password:=20 > > > > Last login: Thu Jan 30 05:04:39 2003 from 192.168.0.8 > > > > Sun Microsystems Inc. SunOS 5.9 Generic May 2002 > > > > $ > > > >=20 > > > > --zoly > > > >=20 > > > > -----Original Message----- > > > > From: Rob Helmer [mailto:ro...@ro...]=20 > > > > Sent: Thursday, January 30, 2003 6:11 PM > > > > To: Zoltan Farkas > > > > Subject: Re: [Sandweb-users] module checkout problem > > > >=20 > > > > It's definitely an SSH-related problem. > > > >=20 > > > >=20 > > > > On Thu, Jan 30, 2003 at 06:04:17PM -0500, Zoltan Farkas wrote: > > > > >=20 > > > > > The following line works:=20 > > > > > $ /usr/local/bin/cvs -q -d /db/cvs checkout -d doclib 'doclib' > > > > >=20 > > > > > U doclib/test > > > > > U doclib/test.txt > > > > >=20 > > > > > But the following : > > > > >=20 > > > > > $ export CVS_RSH=3D/usr/bin/ssh > > > > > $ /usr/local/bin/cvs -q -d :ext:cvs@freak:/db/cvs checkout -d > > doclib > > > > > 'doclib' > > > > > cvs@freak's password:=20 > > > > > cvs [checkout aborted]: end of file from server (consult above > > > > messages > > > > > if any) > > > > >=20 > > > > > and I am entering the correct password ... > > > > >=20 > > > > > --zoly > > > > >=20 > > > > >=20 > > > > >=20 > > > > > -----Original Message----- > > > > > From: Rob Helmer [mailto:ro...@ro...]=20 > > > > > Sent: Thursday, January 30, 2003 5:44 PM > > > > > To: Zoltan Farkas > > > > > Cc: san...@li... > > > > > Subject: Re: [Sandweb-users] module checkout problem > > > > >=20 > > > > > On Thu, Jan 30, 2003 at 04:59:17PM -0500, Zoltan Farkas wrote: > > > > > > I have problems checking out a module from CVS using SSH > > > > > > =20 > > > > > > I have here the debug message dump: > > > > >=20 > > > > >=20 > > > > > Hello, > > > > >=20 > > > > >=20 > > > > > > Current filename(s) : doclib=20 > > > > > >=20 > > > > > > cvs [checkout aborted]: end of file from server (consult above > > > > > messages > > > > > > if any) > > > > >=20 > > > > >=20 > > > > > Either CVS can't talk to SSH, or the SSH server is not accepting > > > > > connections.=20 > > > > >=20 > > > > > Which OS is this BTW? > > > > >=20 > > > > > Looks like this is your full command : > > > > >=20 > > > > > DEBUG: (SandWeb::Shell) Full command is : > > > > /usr/local/bin/sandweb-expect > > > > > vcs /usr/local/share/sandweb/users/admin/passwd "cd > > > > > /usr/local/share/sandweb/users/admin/local// && > > CVS_RSH=3D/usr/bin/ssh > > > > && > > > > > export CVS_RSH && /usr/local/bin/cvs -q -d > :ext:cvs@freak:/db/cvs > > > > > checkout -d doclib 'doclib'" > > > > >=20 > > > > > Make sure that "/usr/bin/ssh" is the correct path for SSH, this > is > > > set > > > > > upon install and is configured in sandweb.cfg > > > > >=20 > > > > > Also, try running this from the command line in your regular > user > > > > > account : > > > > >=20 > > > > > CVS_RSH=3D/usr/bin/ssh && export CVS_RSH && /usr/local/bin/cvs -q > -d > > > > > :ext:cvs@freak:/db/cvs checkout -d doclib 'doclib' > > > > >=20 > > > > > Let us know if that works. > > > > >=20 > > > > >=20 > > > > >=20 > > > > > Thanks, > > > > > Rob > > > > > > =20 > > > > > > =20 > > > > > > DEBUG: (main) action: sandbox - submit: Checkout > > > > > > DEBUG: (main) module_description:=20 > > > > > > DEBUG: (main) loading prefs > > > > > > DEBUG: (main)=20 > > > > > > $VAR1 =3D bless( { > > > > > > 'log_obj' =3D> bless( { > > > > > > 'log_dir' =3D> > '/var/log', > > > > > > 'toggle' =3D> { > > > > > > 'debug' > =3D> > > > '1', > > > > > > 'log' =3D> > > '1' > > > > > > }, > > > > > > 'debug_msgs' =3D> [ > > > > > > > '(main) > > > > > action: > > > > > > sandbox - submit: Checkout', > > > > > > > '(main) > > > > > > module_description:=20 > > > > > > ', > > > > > > > '(main) > > > > > loading > > > > > > prefs' > > > > > > ] > > > > > > }, 'SandWeb::Log' ), > > > > > > 'repo' =3D> { > > > > > > 'local' =3D> { > > > > > > 'password' =3D> > 'cvs123', > > > > > > 'connection' =3D> 'SSH', > > > > > > > 'remember_repo_password' > > > =3D> > > > > > > 'on', > > > > > > 'name' =3D> 'local', > > > > > > 'root' =3D> = '/db/cvs', > > > > > > 'type' =3D> 'CVS', > > > > > > 'server' =3D> = 'freak', > > > > > > 'module' =3D> {}, > > > > > > 'username' =3D> = 'cvs' > > > > > > } > > > > > > }, > > > > > > 'personal' =3D> { > > > > > > 'confirm_delete' =3D> 'on', > > > > > > 'full_name' =3D> 'Zoltan Farkas' > > > > > > }, > > > > > > 'config_file' =3D> '.user.cfg', > > > > > > 'config_dir' =3D> > > > > > '/usr/local/share/sandweb/users/admin' > > > > > > }, 'SandWeb::Config' ); > > > > > >=20 > > > > > > DEBUG: (SandWeb::Config) module_description =3D ''=20 > > > > > > DEBUG: (main) write_config() > > > > > > DEBUG: (main) module_name:=20 > > > > > > DEBUG: (main) username: admin > > > > > > DEBUG: (main) location:=20 > > > > > > DEBUG: (main) main_window_url: > > > > > > http://freak/cgi-bin/sandweb.cgi?action=3Dsandbox > > > > > > DEBUG: (main) Repo name: local > > > > > > DEBUG: (main) Repo root: /db/cvs > > > > > > DEBUG: (main) VCS sandbox: > > > > > /usr/local/share/sandweb/users/admin/local// > > > > > > DEBUG: (main) Repo type: CVS > > > > > > DEBUG: (main) Filename(s): doclib > > > > > > DEBUG: (SandWeb::Repository) Performing checkout operation > > > > > > DEBUG: (SandWeb::Repository) Params: file doclib > > > > > > DEBUG: (SandWeb::Repository::cvs) Performing checkout > operation > > > > > > DEBUG: (SandWeb::Repository::cvs) Params: checkout -d doclib > > > > > > DEBUG: (SandWeb::Repository::cvs) File: doclib > > > > > > DEBUG: (SandWeb::Repository::cvs) Creating Shell object > > > > > > DEBUG: (SandWeb::Shell) VCS call to Unix shell > > > > > > DEBUG: (SandWeb::Shell) VCS command is : cd > > > > > > /usr/local/share/sandweb/users/admin/local// && > > > CVS_RSH=3D/usr/bin/ssh > > > > > && > > > > > > export CVS_RSH && /usr/local/bin/cvs -q -d > > :ext:cvs@freak:/db/cvs > > > > > > checkout -d doclib 'doclib' > > > > > > DEBUG: (SandWeb::Shell) Using VCS username/password > > > > > > DEBUG: (SandWeb::Shell) Full command is : > > > > > /usr/local/bin/sandweb-expect > > > > > > vcs /usr/local/share/sandweb/users/admin/passwd "cd > > > > > > /usr/local/share/sandweb/users/admin/local// && > > > CVS_RSH=3D/usr/bin/ssh > > > > > && > > > > > > export CVS_RSH && /usr/local/bin/cvs -q -d > > :ext:cvs@freak:/db/cvs > > > > > > checkout -d doclib 'doclib'" > > > > > > DEBUG: (SandWeb::File) removing file : > > > > > > /usr/local/share/sandweb/users/admin/passwd > > > > > > DEBUG: (SandWeb::File::Unix) removing file : > > > > > > /usr/local/share/sandweb/users/admin/passwd > > > > > > DEBUG: (SandWeb::Shell) VCS call to Unix shell > > > > > > DEBUG: (SandWeb::Shell) VCS command is : rm > > > > > > "/usr/local/share/sandweb/users/admin/passwd" > > > > > > DEBUG: (SandWeb::Shell) Not using VCS username/password > > > > > > DEBUG: (SandWeb::File::Unix) error code : > > > > > > =20 > > > > > > =20 > > > > > > =20 > > > > > > =20 > > > > > > Anybody knows why? > > > > > > =20 > > > > > > --zoly > > > > >=20 > > > >=20 > > >=20 > >=20 >=20 |