From: Rob H. <ro...@ro...> - 2003-02-04 20:48:07
|
Hmm.. I still can't reproduce this. You are fully up-to-date in your CVS checkout of SandWeb, correct? Extreme measures are called for to debug this I guess :) Try this ( "su -" to the user running Apache and run it from the shell ) : -- echo cvs123 > /usr/local/share/sandweb/users/admin/passwd /usr/local/bin/sandweb-expect vcs /usr/local/share/sandweb/users/admin/passwd "cd /usr/local/share/sandweb/users/admin/local/doclib//Clients/Jo && CVS_RSH=/usr/bin/ssh && export CVS_RSH && /usr/local/bin/cvs -q -d :ext:cvs@freak:/db/cvs commit -m 'Zoly changed it' 'IT Mission Company Profile1.doc'" -- Does this work? This is exactly what SandWeb is trying to run as the user running Apache. Thanks, Rob On Tue, Feb 04, 2003 at 10:29:12AM -0500, Zoltan Farkas wrote: > I have problems with commit, here is the error: > > I think the following fails : cd > /usr/local/share/sandweb/users/admin/local/doclib//Clients/Jo > > There is a // in there > > > SandWeb : VCS commit > > > > > > > Zoly changed it > > Current filename(s) : IT Mission Company Profile1.doc > > > An error occurred. A call to the shell gave us this error code : 1 > > > > > > DEBUG: (main) action: vcs - submit: 1 > DEBUG: (main) module_description: > DEBUG: (main) loading prefs > DEBUG: (main) > $VAR1 = bless( { > 'log_obj' => bless( { > 'log_dir' => '/var/log', > 'toggle' => { > 'debug' => '1', > 'log' => '1' > }, > 'debug_msgs' => [ > '(main) action: > vcs - submit: 1', > '(main) > module_description: > ', > '(main) loading > prefs' > ] > }, 'SandWeb::Log' ), > 'repo' => { > 'local' => { > 'password' => 'cvs123', > 'connection' => 'SSH', > 'remember_repo_password' => > 'on', > 'name' => 'local', > 'server' => 'freak', > 'type' => 'CVS', > 'root' => '/db/cvs', > 'module' => { > 'doclib' => { > 'name' > => 'doclib', > > 'description' => '' > } > }, > 'username' => 'cvs' > } > }, > 'personal' => { > 'confirm_delete' => 'on', > 'full_name' => 'Zoltan Farkas' > }, > 'config_file' => '.user.cfg', > 'config_dir' => '/usr/local/share/sandweb/users/admin' > }, 'SandWeb::Config' ); > > DEBUG: (main) module_name: doclib > DEBUG: (main) username: admin > DEBUG: (main) location: /Clients/Jo > DEBUG: (main) main_window_url: > DEBUG: (main) Repo name: local > DEBUG: (main) Repo root: /db/cvs > DEBUG: (main) VCS sandbox: > /usr/local/share/sandweb/users/admin/local/doclib//Clients/Jo > DEBUG: (main) Repo type: CVS > DEBUG: (main) Filename(s): IT Mission Company Profile1.doc > DEBUG: (SandWeb::Repository) Performing commit operation > DEBUG: (SandWeb::Repository) Params: message Zoly changed it file IT > Mission Company Profile1.doc > DEBUG: (SandWeb::Repository::cvs) Performing commit operation > DEBUG: (SandWeb::Repository::cvs) Params: commit -m 'Zoly changed it' > DEBUG: (SandWeb::Repository::cvs) File: IT Mission Company Profile1.doc > 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/doclib//Clients/Jo && > CVS_RSH=/usr/bin/ssh && export CVS_RSH && /usr/local/bin/cvs -q -d > :ext:cvs@freak:/db/cvs commit -m 'Zoly changed it' 'IT Mission Company > Profile1.doc' > 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/doclib//Clients/Jo && > CVS_RSH=/usr/bin/ssh && export CVS_RSH && /usr/local/bin/cvs -q -d > :ext:cvs@freak:/db/cvs commit -m 'Zoly changed it' 'IT Mission Company > Profile1.doc'" > 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 : > > > > > > > > > > > > > Zoltan Farkas > Manager of Software Products > Dax Technologies Corp, www.daxtechnologies.com > Phone: 732 203 1784 ext 106 > Fax: 732 203 1786 > Email: zo...@da... > > > -----Original Message----- > From: Rob Helmer [mailto:ro...@ro...] > Sent: Saturday, February 01, 2003 2:03 AM > To: Zoltan Farkas > Cc: san...@li... > Subject: Re: [Sandweb-users] module checkout problem > > Hmm... I went to fix this, but I cannot reproduce it. > > The current CVS checkout of SandWeb is working for me, and when > I look at the command it looks ok ( the extra '/' looks silly but > it won't hurt anything ). > > I an completely up-to-date, and I'm able to checkout. > > CVS gives a "1" in quite a few situations, I'm wondering if you can > do another update and see if it happens again? > > Can you help me debug this on your setup? It works ok for me. > > On Fri, Jan 31, 2003 at 12:47:16PM -0500, Zoltan Farkas wrote: > > I made the update with the latest version: > > > > And I am getting the error: An error occurred. A call to the shell > gave > > us this error code : 1 > > > > I see the command : > > > > cd /usr/local/share/sandweb/users/admin/local// && > CVS_RSH=/usr/bin/ssh > > && export CVS_RSH && /usr/local/bin/cvs -q -d :ext:cvs@freak:/db/cvs > > checkout -d doclib 'doclib' > > > > The cd command looks like has a / that it shouldn't be there at the > end. > > > > Here is the entire log entry: > > > > Current filename(s) : doclib > > > > > > An error occurred. A call to the shell gave us this error code : 1 > > > > > > > > > > > > DEBUG: (main) action: sandbox - submit: Checkout > > DEBUG: (main) module_description: > > DEBUG: (main) loading prefs > > DEBUG: (main) > > $VAR1 = bless( { > > 'log_obj' => bless( { > > 'log_dir' => '/var/log', > > 'toggle' => { > > 'debug' => '1', > > 'log' => '1' > > }, > > 'debug_msgs' => [ > > '(main) > action: > > sandbox - submit: Checkout', > > '(main) > > module_description: > > ', > > '(main) > loading > > prefs' > > ] > > }, 'SandWeb::Log' ), > > 'repo' => { > > 'local' => { > > 'password' => 'cvs123', > > 'connection' => 'SSH', > > 'remember_repo_password' => > > 'on', > > 'name' => 'local', > > 'root' => '/db/cvs', > > 'type' => 'CVS', > > 'server' => 'freak', > > 'module' => {}, > > 'username' => 'cvs' > > } > > }, > > 'personal' => { > > 'confirm_delete' => 'on', > > 'full_name' => 'Zoltan Farkas' > > }, > > 'config_file' => '.user.cfg', > > 'config_dir' => > '/usr/local/share/sandweb/users/admin' > > }, 'SandWeb::Config' ); > > > > DEBUG: (SandWeb::Config) module_description = '' > > DEBUG: (main) write_config() > > DEBUG: (main) module_name: > > DEBUG: (main) username: admin > > DEBUG: (main) location: > > DEBUG: (main) main_window_url: http://freak/cgi-bin/sandweb.cgi > > 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=/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=/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 : > > > > > > > > --zoly > > > > -----Original Message----- > > From: Rob Helmer [mailto:ro...@ro...] > > Sent: Friday, January 31, 2003 12:20 PM > > To: Zoltan Farkas > > Cc: san...@li... > > Subject: RE: [Sandweb-users] module checkout problem > > > > Excellent :) I'm glad it's working for you. > > > > I made a couple checkins last night, one of them fixes a bug with > > commit, and the other was obscuring some cvs error messages. > > > > You should do a "cvs update" on the sandweb codebase and do another > > "make install". > > You shouldn't have to reconfigure anything, it should "just work". > > > > Right now I don't know of any bugs in the latest cvs version of > SandWeb, > > > > let me know if you find anything. I'd like to release the beta soon. > > > > On Fri, 31 Jan 2003 8:33AM -0800, Zoltan Farkas wrote: > > > > > > 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. > > > > > > So I corrected this and now everything seems to work. > > > > > > thanks > > > > > > > > > -----Original Message----- > > > From: Rob Helmer [mailto:ro...@ro...] > > > 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=ssh > > > 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 > > >> > > >> $ ssh cvs@freak > > >> cvs@freak's password: > > >> 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 > > >> > > >> and it holds term ..... > > >> > > >> > > >> --zoly > > >> > > >> > > >> -----Original Message----- > > >> From: Rob Helmer [mailto:ro...@ro...] > > >> Sent: Thursday, January 30, 2003 7:16 PM > > >> To: Zoltan Farkas > > >> Subject: Re: [Sandweb-users] module checkout problem > > >> > > >> 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. > > >> > > >> > > >> On Thu, Jan 30, 2003 at 07:03:10PM -0500, Zoltan Farkas wrote: > > >> > This is what happens: > > >> > > > >> > $ ssh cvs@freak cvs server > > >> > cvs@freak's password: > > >> > $ > > >> > > > >> > > > >> > --zoly > > >> > > > >> > > > >> > -----Original Message----- > > >> > From: Rob Helmer [mailto:ro...@ro...] > > >> > Sent: Thursday, January 30, 2003 7:06 PM > > >> > To: Zoltan Farkas > > >> > Subject: Re: [Sandweb-users] module checkout problem > > >> > > > >> > hmm.. very strange. What if you do "ssh cvs@freak cvs server"? > > >> > > > >> > > > >> > 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 > > >> > > > > >> > > --zoly > > >> > > > > >> > > > > >> > > -----Original Message----- > > >> > > From: Rob Helmer [mailto:ro...@ro...] > > >> > > Sent: Thursday, January 30, 2003 6:43 PM > > >> > > To: Zoltan Farkas > > >> > > Subject: Re: [Sandweb-users] module checkout problem > > >> > > > > >> > > type "which ssh" > > >> > > > > >> > > > > >> > > On Thu, Jan 30, 2003 at 06:08:28PM -0500, Zoltan Farkas wrote: > > >> > > > SSH seems to work: > > >> > > > > > >> > > > $ ssh cvs@freak > > >> > > > cvs@freak's password: > > >> > > > Last login: Thu Jan 30 05:04:39 2003 from 192.168.0.8 > > >> > > > Sun Microsystems Inc. SunOS 5.9 Generic May 2002 > > >> > > > $ > > >> > > > > > >> > > > --zoly > > >> > > > > > >> > > > -----Original Message----- > > >> > > > From: Rob Helmer [mailto:ro...@ro...] > > >> > > > Sent: Thursday, January 30, 2003 6:11 PM > > >> > > > To: Zoltan Farkas > > >> > > > Subject: Re: [Sandweb-users] module checkout problem > > >> > > > > > >> > > > It's definitely an SSH-related problem. > > >> > > > > > >> > > > > > >> > > > On Thu, Jan 30, 2003 at 06:04:17PM -0500, Zoltan Farkas > wrote: > > >> > > > > > > >> > > > > The following line works: > > >> > > > > $ /usr/local/bin/cvs -q -d /db/cvs checkout -d doclib > > >> 'doclib' > > >> > > > > > > >> > > > > U doclib/test > > >> > > > > U doclib/test.txt > > >> > > > > > > >> > > > > But the following : > > >> > > > > > > >> > > > > $ export CVS_RSH=/usr/bin/ssh > > >> > > > > $ /usr/local/bin/cvs -q -d :ext:cvs@freak:/db/cvs checkout > > -d > > >> > doclib > > >> > > > > 'doclib' > > >> > > > > cvs@freak's password: > > >> > > > > cvs [checkout aborted]: end of file from server (consult > > >> above > > >> > > > messages > > >> > > > > if any) > > >> > > > > > > >> > > > > and I am entering the correct password ... > > >> > > > > > > >> > > > > --zoly > > >> > > > > > > >> > > > > > > >> > > > > > > >> > > > > -----Original Message----- > > >> > > > > From: Rob Helmer [mailto:ro...@ro...] > > >> > > > > Sent: Thursday, January 30, 2003 5:44 PM > > >> > > > > To: Zoltan Farkas > > >> > > > > Cc: san...@li... > > >> > > > > Subject: Re: [Sandweb-users] module checkout problem > > >> > > > > > > >> > > > > On Thu, Jan 30, 2003 at 04:59:17PM -0500, Zoltan Farkas > > >> wrote: > > >> > > > > > I have problems checking out a module from CVS using SSH > > >> > > > > > > > >> > > > > > I have here the debug message dump: > > >> > > > > > > >> > > > > > > >> > > > > Hello, > > >> > > > > > > >> > > > > > > >> > > > > > Current filename(s) : doclib > > >> > > > > > > > >> > > > > > cvs [checkout aborted]: end of file from server (consult > > > above > > >> > > > > messages > > >> > > > > > if any) > > >> > > > > > > >> > > > > > > >> > > > > Either CVS can't talk to SSH, or the SSH server is not > > > accepting > > >> > > > > connections. > > >> > > > > > > >> > > > > Which OS is this BTW? > > >> > > > > > > >> > > > > Looks like this is your full command : > > >> > > > > > > >> > > > > 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=/usr/bin/ssh > > >> > > > && > > >> > > > > export CVS_RSH && /usr/local/bin/cvs -q -d > > >> :ext:cvs@freak:/db/cvs > > >> > > > > checkout -d doclib 'doclib'" > > >> > > > > > > >> > > > > Make sure that "/usr/bin/ssh" is the correct path for SSH, > > > this > > >> is > > >> > > set > > >> > > > > upon install and is configured in sandweb.cfg > > >> > > > > > > >> > > > > Also, try running this from the command line in your > regular > > >> user > > >> > > > > account : > > >> > > > > > > >> > > > > CVS_RSH=/usr/bin/ssh && export CVS_RSH && > /usr/local/bin/cvs > > > -q > > >> -d > > >> > > > > :ext:cvs@freak:/db/cvs checkout -d doclib 'doclib' > > >> > > > > > > >> > > > > Let us know if that works. > > >> > > > > > > >> > > > > > > >> > > > > > > >> > > > > Thanks, > > >> > > > > Rob > > >> > > > > > > > >> > > > > > > > >> > > > > > DEBUG: (main) action: sandbox - submit: Checkout > > >> > > > > > DEBUG: (main) module_description: > > >> > > > > > DEBUG: (main) loading prefs > > >> > > > > > DEBUG: (main) > > >> > > > > > $VAR1 = bless( { > > >> > > > > > 'log_obj' => bless( { > > >> > > > > > 'log_dir' => > > >> '/var/log', > > >> > > > > > 'toggle' => { > > >> > > > > > > > >> 'debug' > > >> => > > >> > > '1', > > >> > > > > > > 'log' > > > => > > >> > '1' > > >> > > > > > }, > > >> > > > > > 'debug_msgs' => [ > > >> > > > > > > > >> '(main) > > >> > > > > action: > > >> > > > > > sandbox - submit: Checkout', > > >> > > > > > > > >> '(main) > > >> > > > > > module_description: > > >> > > > > > ', > > >> > > > > > > > >> '(main) > > >> > > > > loading > > >> > > > > > prefs' > > >> > > > > > ] > > >> > > > > > }, 'SandWeb::Log' > ), > > >> > > > > > 'repo' => { > > >> > > > > > 'local' => { > > >> > > > > > 'password' => > > >> 'cvs123', > > >> > > > > > 'connection' => > > > 'SSH', > > >> > > > > > > > >> 'remember_repo_password' > > >> > > => > > >> > > > > > 'on', > > >> > > > > > 'name' => > 'local', > > >> > > > > > 'root' => > > >> '/db/cvs', > > >> > > > > > 'type' => 'CVS', > > >> > > > > > 'server' => > > >> 'freak', > > >> > > > > > 'module' => {}, > > >> > > > > > 'username' => > > 'cvs' > > >> > > > > > } > > >> > > > > > }, > > >> > > > > > 'personal' => { > > >> > > > > > 'confirm_delete' => 'on', > > >> > > > > > 'full_name' => 'Zoltan > > > Farkas' > > >> > > > > > }, > > >> > > > > > 'config_file' => '.user.cfg', > > >> > > > > > 'config_dir' => > > >> > > > > '/usr/local/share/sandweb/users/admin' > > >> > > > > > }, 'SandWeb::Config' ); > > >> > > > > > > > >> > > > > > DEBUG: (SandWeb::Config) module_description = '' > > >> > > > > > DEBUG: (main) write_config() > > >> > > > > > DEBUG: (main) module_name: > > >> > > > > > DEBUG: (main) username: admin > > >> > > > > > DEBUG: (main) location: > > >> > > > > > DEBUG: (main) main_window_url: > > >> > > > > > http://freak/cgi-bin/sandweb.cgi?action=sandbox > > >> > > > > > 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=/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=/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 : > > >> > > > > > > > >> > > > > > > > >> > > > > > > > >> > > > > > > > >> > > > > > Anybody knows why? > > >> > > > > > > > >> > > > > > --zoly > > >> > > > > > > >> > > > > > >> > > > > >> > > > >> > > > > > ------------------------------------------------------- > This SF.NET email is sponsored by: > SourceForge Enterprise Edition + IBM + LinuxWorld http://www.vasoftware.com > _______________________________________________ > Sandweb-users mailing list > San...@li... > https://lists.sourceforge.net/lists/listinfo/sandweb-users > |