Thread: [SourceJammer-users] Moving to new server
Brought to you by:
robertmacgrogan
From: John F. S. I. <js...@ma...> - 2005-11-09 09:46:03
|
Hello, My old server died so I am trying to move my sourcejammer installation to a new server...But I'm having problems. Here is what I did... 1) I Saved a copy of the old installation both the servlet and the directory where source jammer puts its data. 2) Installed the 2.1.0.0 sourcejammer server on my server. 3) Told it where to put its files. 4) Put copies of the old files into the new location. (archives etc) 5) Now when I try to connect to the archive, it does not recognize any of my users, nor will it allow me to maintain the archives. What step am I missing? Thank you for any advice you might have. John Schank |
From: Albert M. <amo...@ev...> - 2005-11-09 10:16:49
|
Hello, John. I don't remember much problems when we recently suffered a similar situation. As long as the two server versions are the same, copying the old files in the new directories is enough, provided you configure the new paths. How did you do this step? Was the old one a 2.1.0 version too? Can you look at the application server logs? At start up (or when the first user logs in, I don't remember), the path where the users.xml file is looked up is printed. Albert. ----- Original Message ----- From: "John F. Schank III" <js...@ma...> To: <sou...@li...> Sent: Wednesday, November 09, 2005 10:45 AM Subject: [SourceJammer-users] Moving to new server > Hello, > My old server died so I am trying to move my sourcejammer > installation to a new server...But I'm having problems. > Here is what I did... > 1) I Saved a copy of the old installation both the servlet and the > directory where source jammer puts its data. > 2) Installed the 2.1.0.0 sourcejammer server on my server. > 3) Told it where to put its files. > 4) Put copies of the old files into the new location. (archives etc) > 5) Now when I try to connect to the archive, it does not recognize > any of my users, nor will it allow me to maintain the archives. > What step am I missing? > Thank you for any advice you might have. > John Schank > > > ------------------------------------------------------- > SF.Net email is sponsored by: > Tame your development challenges with Apache's Geronimo App Server. Download > it for free - -and be entered to win a 42" plasma tv or your very own > Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php > _______________________________________________ > SourceJammer-users mailing list > Sou...@li... > https://lists.sourceforge.net/lists/listinfo/sourcejammer-users > |
From: Albert M. <amo...@ev...> - 2005-11-09 11:35:27
|
Hum, then I guess the version was the same, but Robert will give you a better answer anyway. The truth is that the proper way to copy the files would be using the installation scripts that come with SJ, but the method you used should have worked as well. Check the values inside <<SOURJAMMER_CONTEXT_PATH>>/WEB-INF/conf/serverconf.xml are properly set, and then edit with a text editor the s.ja files inside the folder referred to in the FileSysDirectory tag of the above XML. This last verification of the paths in the sja files, though, has nothing to do with the users.xml file that is not found, but will be necessary after that is fixed. About the server logs, it depends which one you are running. If Tomcat, they are placed in <<TOMCAT_HOME>>/logs, and depending on the specific version and OS they'll be written into catalina.out, or stout_<<DATE>>.log, or similar files. Old versions of Tomcat running on Windows, however, will not save them in a file if running as a service, which I hope is not your case. Hoping this helps rather than confuses, Albert. ----- Original Message ----- From: "John F. Schank III" <js...@ma...> To: "Albert Moliner" <amo...@ev...> Sent: Wednesday, November 09, 2005 12:06 PM Subject: Re: [SourceJammer-users] Moving to new server > Hi Albert, > Unfortunately, I don't remember what the server version was when we > used this last. > I think we are using the same version...I looked in the project > folder and it says that the files were created with 2.1.0.0, so I > think we're up to date. > As far as the sever logs are concerned, I can't seem to find them. > I tried re-copying the files again. And this time I get an > "Unable to access file information.null" message. > John Schank > > > > On Nov 9, 2005, at 5:16 AM, Albert Moliner wrote: > > > > > Hello, John. > > > > I don't remember much problems when we recently suffered a similar > > situation. As > > long as the two server versions are the same, copying the old files > > in the new > > directories is enough, provided you configure the new paths. How > > did you do this > > step? Was the old one a 2.1.0 version too? Can you look at the > > application > > server logs? At start up (or when the first user logs in, I don't > > remember), the > > path where the users.xml file is looked up is printed. > > > > Albert. |
From: Albert M. <amo...@ev...> - 2005-11-09 12:39:08
|
Oh, yes, I was wrongly assuming that you were copying all the server files, including the users.xml. The files must be writable by the user that runs tomcat (or the app. server you use). New files will be created by him, so I'd assign to him the existing ones as well, to avoid confusions caused by having different owners for different files. Therefore, the group would be irrelevant. I would, as a general rule, avoid running the server under the root user, but that's up to you. The only important thing is that it is always started by the same user, and that all the files belong to him. Albert. ----- Original Message ----- From: "John F. Schank III" <js...@ma...> To: "Albert Moliner" <amo...@ev...> Sent: Wednesday, November 09, 2005 12:48 PM Subject: Re: [SourceJammer-users] Moving to new server > Hi Albert, > Thanks for the reply... I'm following the directions for the import/ > move of archives I found in an answer to another question. It appears > that I need to recreate my users, but that I can copy over the files. > By the way, do you know what the permissions should be on the files > that get created (I mean the owner and group) - I believe my old > files might have the wrong owner and group. > Thanks, > John Schank > |
From: Robert M. <rob...@ya...> - 2005-11-09 15:38:28
|
John, Did you read the doc here that explains how to do this: http://www.sourcejammer.org/importExportArchive.html I think the step you missed was adding an archive with the same name as the archive you want to copy to your new server. This is a goofy process, but if you do this, it will work. Also, not mentioned in the doc, is the fact that you have to re-create all of your users on the new server. Or you could copy the users.xml from your old server into place on your new server. Good luck. --Rob --- Albert Moliner <amo...@ev...> wrote: > Oh, yes, I was wrongly assuming that you were copying all the server files, > including the users.xml. > > The files must be writable by the user that runs tomcat (or the app. server you > use). New files will be created by him, so I'd assign to him the existing ones > as well, to avoid confusions caused by having different owners for different > files. Therefore, the group would be irrelevant. > I would, as a general rule, avoid running the server under the root user, but > that's up to you. The only important thing is that it is always started by the > same user, and that all the files belong to him. > > Albert. > > > > ----- Original Message ----- > From: "John F. Schank III" <js...@ma...> > To: "Albert Moliner" <amo...@ev...> > Sent: Wednesday, November 09, 2005 12:48 PM > Subject: Re: [SourceJammer-users] Moving to new server > > > > Hi Albert, > > Thanks for the reply... I'm following the directions for the import/ > > move of archives I found in an answer to another question. It appears > > that I need to recreate my users, but that I can copy over the files. > > By the way, do you know what the permissions should be on the files > > that get created (I mean the owner and group) - I believe my old > > files might have the wrong owner and group. > > Thanks, > > John Schank > > > > > > > ------------------------------------------------------- > SF.Net email is sponsored by: > Tame your development challenges with Apache's Geronimo App Server. Download > it for free - -and be entered to win a 42" plasma tv or your very own > Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php > _______________________________________________ > SourceJammer-users mailing list > Sou...@li... > https://lists.sourceforge.net/lists/listinfo/sourcejammer-users > __________________________________ Yahoo! FareChase: Search multiple travel sites in one click. http://farechase.yahoo.com |