From: Steve F. <st...@co...> - 2003-06-03 05:12:19
|
I installed Sandweb 1.0RC2. After a bit of fidling and stuff I managed to get it running except it doesnt run quite as I expected. I am running the Sandweb CGI script on the same server as the CVS repositories. Thru Sandweb I created a repository item for the CVS repository I wanted to access, firstly I am confused that I have to enter a Username/Password into the repository creation fields, why do I have to login as a user and then specify a repository user aswell ? Anyway I used my login for the repository, it seemed to accept it. I went to the Sandbox link expecting to see a list of modules in my repository, I dont. I enter a module name ('dataset' I know it exists in the repository) into the appropriate field and click Checkout (with my repository selected) it opens a new window with the following output SandWeb : VCS checkout Current filename(s) : dataset An error occurred. A call to the shell gave us this error code : 1 The module now appears in the list (even though an error occured). Clicking the link brings up another window (where the files are supposed to be) but with no files (and they do exist in the module). So, it appears its sort of working, but not. Any help anyone ? Steve F |
From: Battaje S. R. <be...@re...> - 2003-06-05 05:40:22
|
Hi Robert, I am unable to comeout of the problem of checkout. I am unable to login as apache and login as sandweb user as u have mentioned in the last reply. How else (using SSH) i can checkout modules from repository. PLz reply Thanks a lot Sharath ___________________________________________________ Get www. mycompany .com and 5 matching email ids. Just Rs. 1499/ year. Click here http://www.rediffmailpro.com |
From: Rob H. <ro...@ro...> - 2003-06-05 05:48:07
|
On Thu, Jun 05, 2003 at 05:40:11AM -0000, Battaje Sharath Rao wrote: > I am unable to comeout of the problem of checkout. > I am unable to login as apache and login as sandweb user as u have > mentioned in the last reply. > How else (using SSH) i can checkout modules from repository. Hmm.. last we spoke, I gave you instructions on how to intialize pserver manually. What came of that? You mention here that you are "unable to login as apache", what do you mean? Does "su - www" (or whatever your apache user is) fail? Please send any error messages along. To use SSH, just select it in the repository menu in SandWeb ( I'm confused from the above, are you able to log into SandWeb via the web interface? ). -- Rob |
From: Rob H. <ro...@ro...> - 2003-06-03 07:59:02
|
On Tue, Jun 03, 2003 at 03:03:19PM +1000, Steve Fillingham wrote: > I installed Sandweb 1.0RC2. After a bit of fidling and stuff I managed to > get it running except it doesnt run quite as I expected. What kind of fiddling did you have to do (out of curiosity)? We have some fixes waiting in CVS for the next RC release ( in the release-1_0-branch), I'm curious to know if it's something new. Please include what OS/version you are using. > Thru Sandweb I created a repository item for the CVS repository I wanted to > access, firstly I am confused that I have to enter a Username/Password into > the repository creation fields, why do I have to login as a user and then > specify a repository user aswell ? Anyway I used my login for the > repository, it seemed to accept it. Short answer: If it's a local repository, username/password isn't really needed. Long answer: SandWeb is a multi-user CVS client, capable of using local as well as remote CVS repositories (authenticated through SSH). SandWeb uses it's own authentication system that is totally seperate from any version control system. Let's say I have : Server A -- SandWeb server Server B -- CVS repository server Server C -- CVS repository server I can authenticate as many users into SandWeb as I want, but they will probably need seperate credentials to use the repositories on Server B and Server C. > > I went to the Sandbox link expecting to see a list of modules in my > repository, I dont. I enter a module name ('dataset' I know it exists in > the repository) into the appropriate field and click Checkout (with my > repository selected) it opens a new window with the following output SandWeb is a client, it does everything that e.g. the command line "cvs" does (it actually uses the command line "cvs" to do it's job). What you are doing is the usual behaviour (e.g. "cvs checkout dataset"). <offtopic> It would be a neat extension to SandWeb and I would like to pull a list of modules like this sometime post-1.0 (I've investigated it, it's kind of a hack if you don't maintain CVSROOT/modules manually on the server side. But it's doable). Anyway, if you want a repository browser, I recommend : http://viewcvs.sf.net I find it quite useful in addition to a CVS client. </offtopic> > SandWeb : VCS checkout > > > Current filename(s) : dataset > > > An error occurred. A call to the shell gave us this error code : 1 > > > The module now appears in the list (even though an error occured). Clicking Yeah, that's an open bug. It's confusing that an empty module appears when an error occurs. I hope to have it fixed it before the next RC release. > the link brings up another window (where the files are supposed to be) but > with no files (and they do exist in the module). Ok, so we got back an error level of "1". Unfortunately that does not tell us very much :) This error may have come from "cvs" or from "expect", or something else (maybe the Apache user does not have a shell?). Did you read the included INSTALL file, and make sure you have all needed software? Make sure your repository is set up correctly in SandWeb (look in the "repository" menu). Here is how you can really figure out what's going on, if all else fails : edit sandweb.cfg (/usr/local/etc/sandweb.cfg by default, but it's configurable by you at "make install" time) Turn "debug=0" to "debug=1" Retry. Send us the output (just copy&paste all text on the error page). !WARNING! - this debug output contains your password, sanitize it before you send it :) HTH, Rob |
From: Steve F. <st...@co...> - 2003-06-04 00:00:10
|
Hi Rob, Thanks for the quick reply. > What kind of fiddling did you have to do (out of curiosity)? Well I read the INSTALL and README files and did the fiddling (probably bad word to use) required to get it installed .. downloaded various Perl modules, set permissions for 'apache' user, edited 'sandweb.cfg' > Please include what OS/version you are using. Linux version 2.4.9-31 (RH 7.1 2.96-98) > Short answer: > If it's a local repository, username/password isn't really needed. It is a local repository, so your saying it doesnt matter what username/password I use > SandWeb is a client, it does everything that e.g. the command line "cvs" > does (it actually uses the command line "cvs" to do it's job). What > you are doing is the usual behaviour (e.g. "cvs checkout dataset"). Where does it 'checkout' to then ? > Yeah, that's an open bug. Ok > Did you read the included INSTALL file, and make sure you have all > needed software? Make sure your repository is set up correctly > in SandWeb (look in the "repository" menu). Read the INSTALL file, followed everything as best I know how to Here is the output from a checkout SandWeb : VCS checkout Current filename(s) : dataset An error occurred. A call to the shell gave us this error code : 1 DEBUG: (main) action: sandbox - submit: Checkout DEBUG: (main) module_description: Wow 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: Wow ', '(main) loading prefs' ] }, 'SandWeb::Log' ), 'repo' => { 'Albury Computers' => { 'password' => '', 'connection' => 'local', 'remember_repo_password' => 'on', 'root' => '/cvs/alburycomputers', 'server' => 'cdserver2', 'type' => 'CVS', 'module' => { 'website' => { 'name' => 'website', 'description' => 'AC WebSite' }, 'business' => { 'name' => 'business', 'description' => '' }, 'name' => '', 'description' => '' }, 'username' => 'stevef' }, 'macedon' => { 'connection' => 'pserver', 'username' => 'stevef', 'password' => '??????', 'remember_repo_password' => 'on', 'root' => '/cvs/macedon', 'type' => 'CVS', 'server' => 'cdserver2', 'module' => { 'Horsekeep' => { 'name' => 'Horsekeep', 'description' => '' } } } }, 'personal' => { 'confirm_delete' => 'on', 'full_name' => 'Steve Fillingham' }, 'config_file' => '.user.cfg', 'config_dir' => '/usr/local/share/sandweb/users/stevef' }, 'SandWeb::Config' ); DEBUG: (SandWeb::Config) module_description = 'Wow' DEBUG: (main) write_config() DEBUG: (main) module_name: DEBUG: (main) username: stevef DEBUG: (main) location: DEBUG: (main) main_window_url: http://cdserver2:8080/cgi-bin/sandweb.cgi?action=sandbox DEBUG: (main) Repo name: Albury Computers DEBUG: (main) Repo root: /cvs/alburycomputers DEBUG: (main) VCS sandbox: /usr/local/share/sandweb/users/stevef/Albury Computers// DEBUG: (main) Repo type: CVS DEBUG: (main) Filename(s): dataset DEBUG: (SandWeb::Repository) Performing checkout operation DEBUG: (SandWeb::Repository) Params: file dataset DEBUG: (SandWeb::Repository::cvs) Performing checkout operation DEBUG: (SandWeb::Repository::cvs) Params: checkout -d dataset DEBUG: (SandWeb::Repository::cvs) File: dataset 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/stevef/Albury Computers// && MESSAGE_FILE="/usr/local/share/sandweb/users/stevef/commitmsg" && export MESSAGE_FILE && CVSEDITOR=/usr/local/bin/sandweb-editor && export CVSEDITOR && SSH_BIN=/usr/bin/ssh && export SSH_BIN && CVS_RSH=/usr/local/bin/sandweb-ssh && export CVS_RSH && /usr/bin/cvs -q -d /cvs/alburycomputers checkout -d dataset 'dataset' DEBUG: (SandWeb::Shell) Not using VCS username/password I am guessing the last line does not look Ok, but I have set the correct username/password for the repository. Thanks Steve F |
From: Rob H. <ro...@ro...> - 2003-06-04 01:11:42
|
On Wed, Jun 04, 2003 at 09:50:48AM +1000, Steve Fillingham wrote: > > Short answer: > > If it's a local repository, username/password isn't really needed. > > It is a local repository, so your saying it doesnt matter what > username/password I use Exactly. You should select "save password" though, because then it won't bug you everytime you perform a CVS operation. Hmm.. this is kind of bad user interface design I think, we should make those fields "greyed out" if it's a local repository probably.. I'll file a bug on it. > > Where does it 'checkout' to then ? SandWeb maintains a SandWeb user home directory, by default it is /usr/local/share/sandweb/users (from the output below, you'll see it's checking out to "/usr/local/share/sandweb/users/stevef/Albury Computers", where "Albury Computers" is the selected repository and everything before it is your SandWeb home directory). > DEBUG: (SandWeb::Shell) VCS command is : cd > /usr/local/share/sandweb/users/stevef/Albury Computers// && > MESSAGE_FILE="/usr/local/share/sandweb/users/stevef/commitmsg" && export > MESSAGE_FILE && CVSEDITOR=/usr/local/bin/sandweb-editor && export CVSEDITOR > && SSH_BIN=/usr/bin/ssh && export SSH_BIN && > CVS_RSH=/usr/local/bin/sandweb-ssh && export CVS_RSH && /usr/bin/cvs -q -d > /cvs/alburycomputers checkout -d dataset 'dataset' Huh.. it's not escaping the space in "Albury Computers". Hey, can try this : -- go to repository menu delete the "Albury Computers" entry (don't worry, this is just a SandWeb setting, it won't delete the real repo :)) create a new repo, but don't put a space in the name try to checkout dataset through the sandbox menu -- Because it's not escaping that space, it's trying to "cd" to "/usr/local/share/sandweb/users/stevef/Albury", which doesn't exist ( it's "/usr/local/share/sandweb/users/stevef/Albury Computers" ). Technically this is a SandWeb bug, if this fixes your problem then I'll fix it in SandWeb... |
From: Steve F. <st...@co...> - 2003-06-04 01:58:01
|
Hi Rob, Again thanks for the quick reply, your either in my time zone or up late at night !! Removing the space from the rep name fixed the problem, I can now checkout modules and get at the files inside etc. I am however finding it difficult to use since it checks out to the server path '/usr/local/share/sandweb/users/stevef/AC' now, and I know I can download the files thru the browser (individually) but this is a very time consuming operation, downloading each file 1 at time so I can edit them and then presumably upload each 1 at a time. I know Sandweb is not fully released yet but is there anyway to make it download files in bulk or something. This might be a limitation of the browser technique. Fortunately I am using TortoiseCVS for development inhouse, I was wanting to use Sandweb so I could CVS from outside, I have not yet managed to get CVS working over SSH so I thought Sandweb would be a good alternative. Thanks heaps anyway. Steve F |
From: Rob H. <ro...@ro...> - 2003-06-04 18:31:49
|
On Wed, Jun 04, 2003 at 11:48:52AM +1000, Steve Fillingham wrote: > Again thanks for the quick reply, your either in my time zone or up late at > night !! Probably both :) I'm on the west coast. > Removing the space from the rep name fixed the problem, I can now checkout > modules and get at the files inside etc. Cool. That's really a bug though, spaces should be allowed in the names. I'll file it. > I am however finding it difficult to use since it checks out to the server > path '/usr/local/share/sandweb/users/stevef/AC' now, and I know I can > download the files thru the browser (individually) but this is a very time > consuming operation, downloading each file 1 at time so I can edit them and > then presumably upload each 1 at a time. I know Sandweb is not fully > released yet but is there anyway to make it download files in bulk or > something. This might be a limitation of the browser technique. It's a limitation of SandWeb.. we were given a patch that implemented batch uploads/downloads, but it was at an odd place in our release cycle so I was unable to incorporate it :/ ( between Alpha and Beta ). Well, I'm glad you have it working. I really want a batch upload/download feature too, it would make SandWeb so much easier to use. We are in Release Candidate status though, trying to avoid the urge to add new features until our bugs are fixed :) I don't think it'd be too hard though. I'll try to get it in a post-1.0 release.. maybe I will work on it in the trunk. Thanks, Rob |