From: Robert H. <ro...@ro...> - 2005-08-31 16:05:04
|
William Pool (Puddle) wrote: > Okay, the expect was looking for 'password:' and > Solaris uses "Password:" fixed that, but now I get > the error which relates to the 'cvs server' I always > saw in the end of my ssh commands when doing a ps -ef: > > SandWeb : VCS checkout > > > > > Current filename(s) : flash > > Password: > ksh: cvs: not found > cvs [checkout aborted]: end of file from server > (consult above messages if any) > > This is a CVS/SSH config problem.. CVS needs to be on the path of the shell user you are using CVS/SSH with. You can troubleshoot and fix this from the command line. You'll want CVS to be on the PATH in either this user's .profile or the system /etc/profile. Try setting up your commandline like this for testing: CVS_RSH=ssh CVSROOT=:ext:www@localhost:/var/cvs export CVS_RSH CVSROOT cvs co module Where "www" is your web user, "localhost" is the host, "/var/cvs" is your CVS repo, "module" is a module to try checking out. > > > DEBUG: (main) submenu: > DEBUG: (main) submenu_final: > DEBUG: (main) action: sandbox - submit: Checkout > DEBUG: (main) module_description: flash > DEBUG: (main) loading prefs > DEBUG: (main) > > $VAR1 = bless( { > 'log_obj' => bless( { > 'log_dir' => > '/var/log', > 'toggle' => { > > 'debug' => '1', > > 'log' => '1' > }, > 'debug_msgs' => > [ > > '(main) submenu: > ', > > '(main) submenu_final: > ', > > '(main) action: sandbox - submit: Checkout', > > '(main) module_description: flash > ', > > '(main) loading prefs' > > ] > }, 'SandWeb::Log' > ), > 'repo' => { > 'jboss-flipmotion-server' > => { > > 'connection' => 'local', > > 'username' => 'puddle', > > 'password' => '', > > 'remember_repo_password' => 'on', > > 'type' => 'CVS', > > 'root' => '/export/home/cvsroot/java/', > > 'server' => '192.168.0.100', > > 'module' => {} > > }, > 'flash' => { > 'connection' > => 'SSH', > 'username' > => 'puddle', > 'password' > => 'shrph0rn', > > 'remember_repo_password' => 'on', > 'type' => > 'CVS', > 'root' => > '/export/home/cvsroot/flash/', > 'server' => > '192.168.0.100', > 'module' => > {} > } > }, > 'personal' => { > 'confirm_delete' => > 'on', > 'full_name' => > 'Puddle' > }, > 'config_file' => '.user.cfg', > 'config_dir' => > '/opt/sfw/share/sandweb/users/puddle' > }, 'SandWeb::Config' ); > > > DEBUG: (SandWeb::Config) module_description = 'flash' > DEBUG: (main) write_config() > DEBUG: (main) submenu in vcs_menu : > DEBUG: (main) in vcs_commit > DEBUG: (main) module_name: > DEBUG: (main) username: puddle > DEBUG: (main) location: > DEBUG: (main) main_window_url: > https://192.168.0.100/FlipMotion/devel/cvs/sandweb.cgi?action=sandbox > DEBUG: (main) params: > DEBUG: (main) Repo name: flash > DEBUG: (main) Repo root: /export/home/cvsroot/flash/ > DEBUG: (main) VCS sandbox: > /opt/sfw/share/sandweb/users/puddle/flash// > DEBUG: (main) Repo type: CVS > DEBUG: (main) Filename(s): flash > DEBUG: (SandWeb::Repository) Performing checkout > operation > DEBUG: (SandWeb::Repository) Params: file flash > DEBUG: (SandWeb::Repository::cvs) Performing checkout > operation > DEBUG: (SandWeb::Repository::cvs) Params: checkout -d > flash > DEBUG: (SandWeb::Repository::cvs) File: flash > DEBUG: (SandWeb::Repository::cvs) Creating Shell > object > DEBUG: (SandWeb::Shell) VCS call to Unix shell > DEBUG: (SandWeb::Shell) VCS command is : cd > '/opt/sfw/share/sandweb/users/puddle/flash//' && > MESSAGE_FILE="/opt/sfw/share/sandweb/users/puddle/commitmsg" > && export MESSAGE_FILE && > CVSEDITOR=/opt/sfw/bin/sandweb-editor && export > CVSEDITOR && SSH_BIN=/opt/csw/bin/ssh && export > SSH_BIN && CVS_RSH=/opt/sfw/bin/sandweb-ssh && export > CVS_RSH && /opt/sfw/bin/cvs -q -d > ":ext:puddle@192.168.0.100:/export/home/cvsroot/flash/" > checkout -d flash 'flash' > DEBUG: (SandWeb::Shell) Using VCS username/password > DEBUG: (SandWeb::Shell) Full command is : > /opt/sfw/bin/sandweb-expect vcs > /opt/sfw/share/sandweb/users/puddle/passwd "cd > '/opt/sfw/share/sandweb/users/puddle/flash//' && > MESSAGE_FILE="/opt/sfw/share/sandweb/users/puddle/commitmsg" > && export MESSAGE_FILE && > CVSEDITOR=/opt/sfw/bin/sandweb-editor && export > CVSEDITOR && SSH_BIN=/opt/csw/bin/ssh && export > SSH_BIN && CVS_RSH=/opt/sfw/bin/sandweb-ssh && export > CVS_RSH && /opt/sfw/bin/cvs -q -d > ":ext:puddle@192.168.0.100:/export/home/cvsroot/flash/" > checkout -d flash 'flash'" > DEBUG: (SandWeb::Shell) VCS call to Unix shell > DEBUG: (SandWeb::Shell) VCS command is : rm > "/opt/sfw/share/sandweb/users/puddle/passwd" > DEBUG: (SandWeb::Shell) Not using VCS > username/password > > --- Rob Helmer <ro...@ro...> wrote: > > >> If it's hanging there, the problem is probably in >> our expect script >> sandweb-expect. Can you take a look in there and try >> adjusting the >> password prompt to look like it does in your system? >> >> If you get it working this way please send me the >> sandweb-expect script >> that works for you so I can check it in :) >> >> William Pool (Puddle) wrote: >> >> >>> Okay, created a shell script with /usr/bin/bash -x >>> running the below. It hangs on the password prompt >>> >> as >> >>> you stated. >>> >>> I thought about doing the keyless deal, but cross >>> teaching developers who aren't familar with SSH >>> >> would >> >>> be a PITA. I could make a script probably to go >>> >> out >> >>> and do it for everyone. However, I like the added >>> responsability of you know your own credentials or >>> >> you >> >>> don't get in. Thanks again for all your help. >>> >>> -bash-3.00$ ./sandweb.sh >>> + /opt/sfw/bin/sandweb-expect vcs >>> /opt/sfw/share/sandweb/users/puddle/passwd 'cd >>> '\''/opt/sfw/share/sandweb/users/puddle/flash//'\'' >>> >> && >> >> MESSAGE_FILE=/opt/sfw/share/sandweb/users/puddle/commitmsg >> >>> && export MESSAGE_FILE && >>> CVSEDITOR=/opt/sfw/bin/sandweb-editor && export >>> CVSEDITOR && SSH_BIN=/opt/csw/bin/ssh && export >>> SSH_BIN && CVS_RSH=/opt/sfw/bin/sandweb-ssh && >>> >> export >> >>> CVS_RSH && /opt/sfw/bin/cvs -q -d >>> >> :ext:puddle@192.168.0.100:/export/home/cvsroot/flash/ >> >>> update -P -d '\''flash'\''' >>> spawn /bin/sh -c cd >>> '/opt/sfw/share/sandweb/users/puddle/flash//' && >>> >> MESSAGE_FILE=/opt/sfw/share/sandweb/users/puddle/commitmsg >> >>> && export MESSAGE_FILE && >>> CVSEDITOR=/opt/sfw/bin/sandweb-editor && export >>> CVSEDITOR && SSH_BIN=/opt/csw/bin/ssh && export >>> SSH_BIN && CVS_RSH=/opt/sfw/bin/sandweb-ssh && >>> >> export >> >>> CVS_RSH && /opt/sfw/bin/cvs -q -d >>> >> :ext:puddle@192.168.0.100:/export/home/cvsroot/flash/ >> >>> update -P -d 'flash' >>> Password: >>> >>> --- Rob Helmer <ro...@ro...> wrote: >>> >>> >>> >>> >>>> Hi William, >>>> >>>> Here is the command: >>>> DEBUG: (SandWeb::Shell) Full command is : >>>> /opt/sfw/bin/sandweb-expect vcs >>>> /opt/sfw/share/sandweb/users/puddle/passwd "cd >>>> '/opt/sfw/share/sandweb/users/puddle/flash//' && >>>> >>>> >>>> >>>> >> MESSAGE_FILE="/opt/sfw/share/sandweb/users/puddle/commitmsg" >> >>> >>> >>> >>>> && export MESSAGE_FILE && >>>> CVSEDITOR=/opt/sfw/bin/sandweb-editor && export >>>> CVSEDITOR && SSH_BIN=/opt/csw/bin/ssh && export >>>> SSH_BIN && CVS_RSH=/opt/sfw/bin/sandweb-ssh && >>>> export >>>> CVS_RSH && /opt/sfw/bin/cvs -q -d >>>> >>>> >>>> >>>> >> ":ext:puddle@192.168.0.100:/export/home/cvsroot/flash/" >> >>> >>> >>> >>>> update -P -d 'flash'" >>>> >>>> Yes, it's insanely long :) It might be more sane >>>> >> for >> >>>> us to hide this in >>>> a shell script.. in fact that'd make debugging >>>> easier (we could start it >>>> with #!/bin/sh -x so the output gets into >>>> >> sandweb's >> >>>> debug mode). >>>> >>>> Anyway, try pasting everything after "Full command >>>> is:" into your web >>>> user's shell. Make sure it's all on one line, or >>>> split it into seperate >>>> lines in a shell script (can split on &&, && means >>>> to run the next >>>> command only if the previous succeeded). >>>> >>>> Driving SSH using expect turned out to be very >>>> complex, unfortunately.. >>>> I'd like a future version of sandweb to just use >>>> >> the >> >>>> SSH wire protocol >>>> (I think there are perl modules for this now..). >>>> Would be cool to just >>>> upload your SSH key into sandweb, and not need to >>>> configure this shell >>>> nonsense. >>>> >>>> >>>> -- >>>> Rob >>>> >>>> William Pool (Puddle) wrote: >>>> >>>> >>>> >>>>> Yes, Sun's SSH version is based off of OpenSSH. >>>>> >>>>> Now, I enabled debugging, but when trying to >>>>> >>>>> >>>>> >>>> connect >>>> >>>> >>>> >>>>> to the sandbox repository using SSH. The window >>>>> >>>>> >>>>> >>>> comes >>>> >>>> >>>> >>>>> up, but it's white with no-output. >>>>> >>>>> When I kill the webserver uid sshd sessions then >>>>> >> I >> >>>>> >>>>> >>>>> >>>> get >>>> >>>> >>>> >>>>> error output. >>>>> >>>>> Doesn't provide any ssh commands though. >>>>> >>>>> DEBUG: (main) Repo name: flash >>>>> DEBUG: (main) Repo root: >>>>> >>>>> >>>>> >>>> /export/home/cvsroot/flash/ >>>> >>>> >>>> >>>>> DEBUG: (main) VCS sandbox: >>>>> /opt/sfw/share/sandweb/users/puddle/flash// >>>>> DEBUG: (main) Repo type: CVS >>>>> DEBUG: (main) Filename(s): flash >>>>> DEBUG: (SandWeb::Repository) Performing update >>>>> operation >>>>> DEBUG: (SandWeb::Repository) Params: prune 1 >>>>> >>>>> >>>>> >>>> clobber 0 >>>> >>>> >>>> >>>>> directories 1 file flash >>>>> DEBUG: (SandWeb::Repository::cvs) Performing >>>>> >>>>> >>>>> >>>> update >>>> >>>> >>>> >>>>> operation >>>>> DEBUG: (SandWeb::Repository::cvs) Params: update >>>>> >>>>> >>>>> >>>> -P -d >>>> >>>> >>>> >>>>> DEBUG: (SandWeb::Repository::cvs) File: flash >>>>> DEBUG: (SandWeb::Repository::cvs) Creating Shell >>>>> object >>>>> DEBUG: (SandWeb::Shell) VCS call to Unix shell >>>>> DEBUG: (SandWeb::Shell) VCS command is : cd >>>>> '/opt/sfw/share/sandweb/users/puddle/flash//' && >>>>> >>>>> >>>>> >>>>> >> MESSAGE_FILE="/opt/sfw/share/sandweb/users/puddle/commitmsg" >> >>> >>> >>> >>>>> && export MESSAGE_FILE && >>>>> CVSEDITOR=/opt/sfw/bin/sandweb-editor && export >>>>> CVSEDITOR && SSH_BIN=/opt/csw/bin/ssh && export >>>>> SSH_BIN && CVS_RSH=/opt/sfw/bin/sandweb-ssh && >>>>> >>>>> >>>>> >>>> export >>>> >>>> >>>> >>>>> CVS_RSH && /opt/sfw/bin/cvs -q -d >>>>> >>>>> >>>>> >>>>> >> ":ext:puddle@192.168.0.100:/export/home/cvsroot/flash/" >> >>> >>> >>> >>>>> update -P -d 'flash' >>>>> DEBUG: (SandWeb::Shell) Using VCS >>>>> >>>>> >>>>> >>>> username/password >>>> >>>> >>>> >>>>> DEBUG: (SandWeb::Shell) Full command is : >>>>> /opt/sfw/bin/sandweb-expect vcs >>>>> /opt/sfw/share/sandweb/users/puddle/passwd "cd >>>>> '/opt/sfw/share/sandweb/users/puddle/flash//' && >>>>> >>>>> >>>>> >>>>> >> MESSAGE_FILE="/opt/sfw/share/sandweb/users/puddle/commitmsg" >> >>> >>> >>> >>>>> && export MESSAGE_FILE && >>>>> CVSEDITOR=/opt/sfw/bin/sandweb-editor && export >>>>> CVSEDITOR && SSH_BIN=/opt/csw/bin/ssh && export >>>>> SSH_BIN && CVS_RSH=/opt/sfw/bin/sandweb-ssh && >>>>> >>>>> >>>>> >>>> export >>>> >>>> >>>> >>>>> CVS_RSH && /opt/sfw/bin/cvs -q -d >>>>> >>>>> >>>>> >>>>> >> ":ext:puddle@192.168.0.100:/export/home/cvsroot/flash/" >> >>> >>> >>> >>>>> update -P -d 'flash'" >>>>> DEBUG: (SandWeb::Shell) VCS call to Unix shell >>>>> DEBUG: (SandWeb::Shell) VCS command is : rm >>>>> "/opt/sfw/share/sandweb/users/puddle/passwd" >>>>> DEBUG: (SandWeb::Shell) Not using VCS >>>>> username/password >>>>> >>>>> Now, a ps grep of the ssh processes running from >>>>> sandweb are: >>>>> >>>>> webservd 5885 5884 0 16:58:26 pts/3 >>>>> >> 0:00 >> >>>>> /usr/bin/bash /opt/sfw/bin/sandweb-ssh -l puddle >>>>> 192.168.0.100 cvs server >>>>> >>>>> webservd 5886 5885 0 16:58:26 pts/3 >>>>> >> 0:00 >> >>>>> /opt/csw/bin/ssh -q -oStrictHostKeyChecking no -l >>>>> >>>>> puddle 192.168.0.100 cvs serv >>>>> >>>>> webservd 484 483 0 Aug 24 pts/2 >>>>> >> 0:00 >> >>>>> /usr/bin/bash /opt/sfw/bin/sandweb-ssh -l puddle >>>>> 192.168.0.100 cvs server >>>>> >>>>> webservd 485 484 0 Aug 24 pts/2 >>>>> >> 0:00 >> >>>>> /opt/csw/bin/ssh -q -oStrictHostKeyChecking no -l >>>>> puddle 192.168.0.100 cvs server >>>>> >>>>> When I try to run the ssh command of pid 485 >>>>> >> (that >> >>>>> >>>>> >>>>> >>>> I >>>> >>>> >>>> >>>>> believe is passing the sandweb-ssh commands I >>>>> >> get: >> >>>>> Okay, after doing a man sshd_config and on sshd I >>>>> don't see anything about the >>>>> >>>>> >>>>> >>>> 'StrictHostKeyChecking' >>>> >>>> >>>> >>>>> option. >>>>> >>>>> It was bombing on it as well via the command >>>>> >> line. >> >>>>> >>>>> >>>>> >>>> I >>>> >>>> >>>> >>>>> commented that out (sandweb-ssh) and added just : >>>>> >>>>> # Here's the main action of this script >>>>> # $SSH_BIN -q -o'StrictHostKeyChecking no' >>>>> >>>>> >>>>> >>>> $SSH_ARGS >>>> >>>> >>>> >>>>> $SSH_BIN -q $SSH_ARGS >>>>> >>>>> Try to check-out again, the same problem white >>>>> >> box >> >>>>> comes up no debug/output. Watch the server >>>>> >>>>> >>>>> >>>> processes >>>> >>>> >>>> >>>>> ssh just hangs. >>>>> >>>>> When I do a grep of the processes now I get: >>>>> >>>>> webservd 6051 6050 0 17:15:33 pts/2 >>>>> >> 0:00 >> >>>>> /usr/bin/bash /opt/sfw/bin/sandweb-ssh -l puddle >>>>> 192.168.0.100 cvs server >>>>> >>>>> webservd 6052 6051 0 17:15:33 pts/2 >>>>> >> 0:00 >> >>>>> /opt/csw/bin/ssh -q -l puddle 192.168.0.100 cvs >>>>> >>>>> >>>>> >>>> server >>>> >>>> >>>> >>>>> webservd 6050 6047 0 17:15:33 pts/2 >>>>> >> 0:00 >> >>>>> /opt/sfw/bin/cvs -q -d >>>>> >>>>> >>>>> >>>>> >> :ext:puddle@192.168.0.100:/export/home/cvsroot/flash/ >> >>> >>> >>> >>>>> ch >>>>> >>>>> I try it via the command line: >>>>> >>>>> $ ssh -q -l puddle 192.168.0.100 cvs server >>>>> Password: >>>>> ksh: cvs: not found >>>>> $ >>>>> >>>>> Which I thought looked weird to the 'cvs server' >>>>> >>>>> >>>>> >>>> after >>>> >>>> >>>> >>>>> the ssh command. >>>>> >>>>> Hope this helps some. >>>>> >>>>> --- Rob Helmer <ro...@ro...> wrote: >>>>> >>>>> >>>>> >>>>> >>>>> >>>>>> Hi William, >>>>>> >>>>>> William Pool (Puddle) wrote: >>>>>> >>>>>> >>>>>> >>>>>> >>>>>>> When I setup a local sandbox using SSH to the >>>>>>> >>>>>>> >>>>>>> >>>>>> actual >>>>>> >>>>>> >>>>>> >>>>>> >>>>>>> machine the SSH session brings up the checkout >>>>>>> >>>>>>> >>>>>>> >>> === message truncated === >>> >>> >>> >>> >>> __________________________________ >>> Yahoo! Mail >>> Stay connected, organized, and protected. Take the >>> >> tour: >> >>> http://tour.mail.yahoo.com/mailtour.html >>> >>> >>> >>> >>> >> > > > > > ____________________________________________________ > Start your day with Yahoo! - make it your home page > http://www.yahoo.com/r/hs > > > > ------------------------------------------------------- > SF.Net email is Sponsored by the Better Software Conference & EXPO > September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices > Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA > Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf > _______________________________________________ > Sandweb-users mailing list > San...@li... > https://lists.sourceforge.net/lists/listinfo/sandweb-users > > |