You are an unregistered user, you can register here
Navigation

Information

Site

Donations
If you wish to make a donation you can by clicking the image below.


 
Go Back   The Unreal Admins Page > Forums > Unreal Admins > Unreal Tournament > UT Server - Windows Specific

Reply
Thread Tools Display Modes
  #1  
Unread 21st February, 2011, 07:17 PM
-={SDA}=-Beast's Avatar
-={SDA}=-Beast -={SDA}=-Beast is offline
Dominating
 
Join Date: Oct 2009
Location: California
Posts: 110
Default server migration

hey guys,

not sure if a thread already exists on this i was just wondering if you have any experience with moving a server from one box to another. the redirects are not changing as those are on a completely different location (which is still the same).

thanks,
josh
__________________

Reply With Quote
  #2  
Unread 21st February, 2011, 08:26 PM
iloveut99 iloveut99 is offline
Unstoppable
 
Join Date: Oct 2010
Posts: 207
Default

I only copy the old server files to the new and change the startup script accordingly. (ip, dirs)

btw this is linux, but should be similar in windows.
Reply With Quote
  #3  
Unread 21st February, 2011, 08:51 PM
-={SDA}=-Beast's Avatar
-={SDA}=-Beast -={SDA}=-Beast is offline
Dominating
 
Join Date: Oct 2009
Location: California
Posts: 110
Default

heh nice got it working, that was easier than i thought thank you!
__________________

Reply With Quote
  #4  
Unread 21st February, 2011, 09:07 PM
back4more's Avatar
back4more back4more is offline
Holy Shit!!
 
Join Date: Oct 2008
Location: NextDoor
Posts: 1,908
Arrow

ok lets see if I can help here;

a). linux >> linux

zip or tar up the 'ut-server' folder including subfolder's like so;

in which case you could probably use the following;

Code:
tar -czpf ut-server.tar.gz /ut-server
log into the new server.

wget <path/to/old/server/ut-server.tar.gz>

^ that will transfer at speed the entire server from old server to new server.

*make sure that you have created a non root account on the new server first and have logged into it before transferring the files.

now extract the old_server.zip into your new account retaining file/folder structures. If done correctly you should have a blue folder named 'ut-server' on the new server.

extract ut-server.tar.gz on the new server using the following cmd;

Code:
tar -zxf ut-server.tar.gz
the cmd:
Code:
ls [enter]
will list the files/folders on this server.

change-directory into the 'ut-server' folder by typing: cd ut-server

type again:
Code:
ls [enter]
now you should notice all the file's etc from the old server in tact.

what I do now is basically re-install the ASU (normally the package is still there form the old configuration)

and / or do it from scratch like so;

Code:
wget http://ut-files.com/Entire_Server_Download/server_scripts/asu-0.6.tar.gz
tar -zxf asu-0.6.tar.gz
also note , after typing:ls you will notice different colours for each type of file/folder.

blue = folder's
red = compressed archives
green = executable files
grey = executable files that need to be chmod'ed.
etc

type the following cmds into the console window to ensure that the files will work correctly.

Code:
chmod +x ucc
chmod +x ucc.init
chmod +x asu.sh
^ that will ensure that teh current user has executable rights on the above named files.

next type: cd System [enter]

remove the old symbolic link file with the following cmd;

Code:
rm libSDL-1.2.so.0
then create a new link with the following cmd;

Code:
ln -s libSDL-1.1.so.0 libSDL-1.2.so.0
ok now go back a directory by typing: cd .. [enter]

type: ls [enter]

and you should be inside the 'ut-server' folder.

side-step here;

remove the old ucc.init file by typing the following;

Code:
rm ucc.init
then run ASU like so;

Code:
./asu.sh
select option 'i' and set the path to the current user.

if the path is correct then it will produce the paths to the various other items (.ini's) automatically in which case you just need to press enter , enter, enter.

configure the map/gametype and mutators etc.

for memory you may have to do the option 'd' as well .. STML in my case.

whew think that covers it. There maybe an error or 2 in my explaination but I think you will get the idea.

'Murphy's Law' - 'If shit can happen . it will!' , in which case 9/10 times Murphy will intervene.

in some case's of murphy's law try the following;

Code:
su root
<root password>
chown <non root user name> ut-server
^ Basically assigns all privledges for the ut-server folder and I think subfolder's (maybe add -R for recurseively) to the ut-server folder and subfolders.

then;

Code:
su <user>
^ switch back to non-root user profile.

Last edited by back4more : 22nd February, 2011 at 08:47 PM.
Reply With Quote
  #5  
Unread 21st February, 2011, 09:36 PM
back4more's Avatar
back4more back4more is offline
Holy Shit!!
 
Join Date: Oct 2008
Location: NextDoor
Posts: 1,908
Cool

b). & c).

Windows to Linux and vice versa.

if you are trying to transfer server's between windows/linux then there are only a couple of important things to consider.

windows use's .dll files
linux use's .so files

sometimes in our tiny little minds we think heh! I'm on windows why do I need these linux .so files? - and delete them.

in other cases we install the linux server version which by default removes the .dll files.

what to do here then?

basically the easiest way is to download and install a default server for the platform in which we are migrating to .

for example linux.. we download and install the linux version here

for windows well download that from somewhere else.

then basically extract all (the new server's files/configurations) over the top of the fresh-install being sure not to replace existing files.

that normally works.

the ucc.log in-case of linux will indicate what is causing the problem ie crash error flash flash blink blink. Anthchecker etc.

and /or the server.log incase of windows will do the same.

ask your self this.. do I have the AnthChecker.so file?

aha upload that file and it will then proceed to the next file which needs to be corrected.

in most case's there are only 2 file's which should give you greif;

Code:
AnthCheckerS_v138.so
ServerCrashFix_vXX.so
where XX is the version of ServerCrashFix that you have. either version 10 or 11 at this point in time.

alternatively for windows instead of .so these files will be .dll

think that about covers it.

Last edited by back4more : 21st February, 2011 at 09:57 PM.
Reply With Quote
  #6  
Unread 21st February, 2011, 09:59 PM
back4more's Avatar
back4more back4more is offline
Holy Shit!!
 
Join Date: Oct 2008
Location: NextDoor
Posts: 1,908
Default

also like iLoveUT suggested you can edit the ucc.init file and manually change the path's using vim;

Code:
vi ucc.init
[insert key]
<make changes>
[esc key]
:wq
FYI :wq = cmd prompt > Write > quit


searching in VIM try the following ;

Code:
/search_string [enter] = find search_string from cursor to end of file.
?search_string [enter] = find search_string from cursor to start of file.

Last edited by back4more : 21st February, 2011 at 10:11 PM.
Reply With Quote
  #7  
Unread 22nd February, 2011, 09:34 AM
rork's Avatar
rork rork is offline
Godlike
 
Join Date: Nov 2007
Posts: 265
Default

Also if you still have access to the old server you can do a little advertising to the new IP in the server name and install the redirectplayers mutator.
__________________
Admin of XOL DOG CTF Fun server: 81.169.188.18 - Stats & dU Coop: 85.14.203.180:5555 - Forum
Reply With Quote
  #8  
Unread 22nd February, 2011, 11:19 PM
-={SDA}=-Beast's Avatar
-={SDA}=-Beast -={SDA}=-Beast is offline
Dominating
 
Join Date: Oct 2009
Location: California
Posts: 110
Default

unfortunately dont have access to the old one anymore. new one is up and running nicely now though. (signature)

thanks for your help guys, appreciate it.
__________________

Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 10:02 AM.


 

All pages are copyright The Unreal Admins Page.
You may not copy any pages without our express permission.