Forum

ASSIST, AMERICA'S ARMY COMMUNITY - RELIVE THE GLORY DAYS OF AMERICA'S ARMY 2.5

Author Topic: Mangled aa25srv.ini on start-up (linux 2.6.32-358.0.1.el6.x86_64 #1 SMP)  (Read 3574 times)

0 Members and 1 Guest are viewing this topic.

Offline OICURMT2!

Mangled aa25srv.ini on start-up (linux 2.6.32-358.0.1.el6.x86_64 #1 SMP)
« on: Thursday, April 25, 2013, 08:12:09 AM »
O/S: CentOS 6.4 (linux 2.6.32-358.0.1.el6.x86_64 #1 SMP)

I noticed that the [URL] Section of the aa25srv.ini file (located in System/server) get severly mangled after server start-up.  The server apparently takes the server information section of the System/aa25.ini and for some reason inserts it at the top of the aa25srv.ini file.

I've deleted the offending lines and restarted the server, the lines reappear.

Is there any reason why server-bin (the 25assist wrapper) would do this?

CheerS!
OIC!

BTW: I'm writing an installation guide for Linux, hope to have it done by the end of May.  It's going to be fairly comprehensive and will include some hacks to work around some of the problem with the way that 25assist handles some of the files (such as date stamped log files, PBSS, configuration files etc...).  I don't know if anyone is interested in a document like this or not.  If so, I'll post it, if not, I'll keep it for my own reference.


aa25srv.ini
Code: [Select]
[URL]
Pro^[ÿÿ<80>Teamspeak: 3cr.teamspeak3.com.au
Pro^[ÿÿ<80>Coming Soon -> www.AUSAAO25.com
Pro^[ÿÿ<80>^[ÿÿ^A Welcome to the Aus AAO25 Community Server
[email protected]
ProOICURMT2!
Protocol=unreal
ProtocolDescription=Unreal Protocol
Name=Recruit
Map=Entry.aao
LocalMap=Entry.aao
Host=
Portal=
MapExt=aao
EXEName=uw.exe
SaveExt=usa
Port=1716
Class=AGP_Characters.AGP_Character


aa25.ini
Code: [Select]
// SERVER INFORMATION, repeatmessage(1 for yes, 0 for no), repeatminutes(minutes)
// Server name and messages colour can be set with colour=Red,Green,Blue (0 - 255)
colour=255,255,128
servername=Aus AAO25 Community Server
motd1=Welcome to the Aus AAO25 Community Server
motd2=Coming Soon -> www.AUSAAO25.com
motd3=Teamspeak: 3cr.teamspeak3.com.au
adminname=OICURMT2!
[email protected]
repeatmessage=1
repeatminutes=5
--
Oh, I See You Are Empty Too !

Offline BiG_SerGiO

  • Administrator
  • Epic Poster
  • *
  • Posts: 2,232
  • "I got soul but i'm not a soldier..."
    • View Profile
    • Portuguese Warriors
  • AA: [PTwars]b!6
Re: Mangled aa25srv.ini on start-up (linux 2.6.32-358.0.1.el6.x86_64 #1 SMP)
« Reply #1 on: Thursday, April 25, 2013, 12:55:36 PM »
bring it on then, Everything that help players out. :up:
"Three things can not hide for long: the Moon, the Sun and the Truth"?
Hmm?

https://vortexservers.com/clients/aff.php?aff=406

Offline ELiZ

Re: Mangled aa25srv.ini on start-up (linux 2.6.32-358.0.1.el6.x86_64 #1 SMP)
« Reply #2 on: Thursday, April 25, 2013, 16:44:23 PM »
At startup System/aa25srv.ini gets deleted and Server/aa25srv.ini is copied into it's place.
Assist then makes changes to System/aa25srv.ini

To get to the Bottom of this, can you post or pm me the Server/aa25srv.ini

Remember to remove any password you have added to the file.


Offline OICURMT2!

Re: Mangled aa25srv.ini on start-up (linux 2.6.32-358.0.1.el6.x86_64 #1 SMP)
« Reply #3 on: Friday, April 26, 2013, 21:11:14 PM »
At startup System/aa25srv.ini gets deleted and Server/aa25srv.ini is copied into it's place.
Assist then makes changes to System/aa25srv.ini

To get to the Bottom of this, can you post or pm me the Server/aa25srv.ini

Remember to remove any password you have added to the file.

Thanks for the clarification.

Now it's my turn to clafiy ... I do not use 25Assist to run this server, I use a custom bash script (a whopping 368 lines long :o), which ultmately initiates the normal server-bin start-up sequence, based on http://aa25assist.sourceforge.net/Data/LReadme.txt.  Because of this, we can deduce that server-bin (downloaded from http://downloads.sourceforge.net/project/aa25assist/Binaries/ldedisrv.tar.gz) is the culprit, unless there is some sort of problem with file mangling in CentOS 6.4 (which I doubt).

Once I delete the lines in the System/server/aa25srv.ini file, they reappear just before the file gets copied to the System directory.

The following is the first 10 lines of the file prior to server startup, taken from armyops/System/server/aa25srv.ini

Code: [Select]
[URL]
Protocol=unreal
ProtocolDescription=Unreal Protocol
Name=Recruit
Map=Entry.aao
LocalMap=Entry.aao
Host=
Portal=
MapExt=aao
EXEName=uw.exe

the following is the first 10 lines of the file after server start-up... (in the server directory, which is obviously, based on your post, copied to system)
Code: [Select]
[URL]
ProÿTeamspeak: 3cr.teamspeak3.com.au
ProÿComing Soon -> www.AUSAAO25.com
ProÿWelcome to the Aus AAO25 Community Server
[email protected]
ProOICURMT2!
Protocol=unreal
ProtocolDescription=Unreal Protocol
Name=Recruit
Map=Entry.aao
LocalMap=Entry.aao

Can't seem to find a way to send files via PM... you got an e-mail?

OIC!
« Last Edit: Friday, April 26, 2013, 21:15:39 PM by OICURMT2! »
--
Oh, I See You Are Empty Too !

Offline BiG_SerGiO

  • Administrator
  • Epic Poster
  • *
  • Posts: 2,232
  • "I got soul but i'm not a soldier..."
    • View Profile
    • Portuguese Warriors
  • AA: [PTwars]b!6
Re: Mangled aa25srv.ini on start-up (linux 2.6.32-358.0.1.el6.x86_64 #1 SMP)
« Reply #4 on: Saturday, April 27, 2013, 00:34:32 AM »
You can host them at https://www.dropbox.com/ and link after ;)
"Three things can not hide for long: the Moon, the Sun and the Truth"?
Hmm?

https://vortexservers.com/clients/aff.php?aff=406

Offline OICURMT2!

Re: Mangled aa25srv.ini on start-up (linux 2.6.32-358.0.1.el6.x86_64 #1 SMP)
« Reply #5 on: Saturday, April 27, 2013, 02:41:19 AM »
You can host them at https://www.dropbox.com/ and link after ;)

Created my own "DropBox" on my server... PM'd the location.

OIC!
--
Oh, I See You Are Empty Too !

Offline ELiZ

Re: Mangled aa25srv.ini on start-up (linux 2.6.32-358.0.1.el6.x86_64 #1 SMP)
« Reply #6 on: Saturday, April 27, 2013, 04:46:43 AM »
I got it the files.

your script copies

Code: [Select]
${IniFiles}/aa25srv.template ${SysDir}/server/aa25srv.iniLook in /aa25srv.template to see if the fault is in there.

Second possible problem with script:
You start server-bin with more parameters than it accepts. From reading your script, you already noticed the same thing.

Code: [Select]
VirtScrnExec="${SysDir}/server-bin ${ServerType} $mapgame -nohomedir -log=${LogDir}/${LogName}"
try this instead;

Code: [Select]
VirtScrnExec="${SysDir}/server-bin ${ServerType} $mapgame
Im not a linux person, so take these instructions as such.

Offline OICURMT2!

Re: Mangled aa25srv.ini on start-up (linux 2.6.32-358.0.1.el6.x86_64 #1 SMP)
« Reply #7 on: Saturday, April 27, 2013, 05:43:52 AM »
I got it the files.

your script copies

Code: [Select]
${IniFiles}/aa25srv.template ${SysDir}/server/aa25srv.iniLook in /aa25srv.template to see if the fault is in there.

Second possible problem with script:
You start server-bin with more parameters than it accepts. From reading your script, you already noticed the same thing.

Code: [Select]
VirtScrnExec="${SysDir}/server-bin ${ServerType} $mapgame -nohomedir -log=${LogDir}/${LogName}"
try this instead;

Code: [Select]
VirtScrnExec="${SysDir}/server-bin ${ServerType} $mapgame
Im not a linux person, so take these instructions as such.

Thanks for the quick look..

1) the aa25srv.ini file is a direct copy of the aa25srv.template file.  I just renamed it for your convenience.  I've checked the file way too many times, as I original thought there was a problem with my script.  It wasn't until I actually tracked the file i/o processes that I discovered that server-bin modifies during server startup.

2) Never thought of this, good catch... I started the script way back in 2003 and used date stamped logfiles, so the -log argument is a holdover (I noticed that server-bin uses the arguement when it calls serverx, the original AA server program). Don't know why that should even affect anything, as I assume that you rip through the argument list when main(int argc, char **argv) is called.  I don't know what language is being used in the wrapper, but I'm assuming it's C.

Code: [Select]
aa       24173     1  0 11:00 ?        00:00:00 /usr/bin/SCREEN -d -m -S 3CR_Server /home/aa/armyops/System/server-bin GLOBAL Bridge -nohomedir -log=/home/aa/Logs/Sat_Apr_27_11_00_40_EST_2013
aa       24175 24173  0 11:00 pts/1    00:04:10 /home/aa/armyops/System/server-bin GLOBAL Bridge -nohomedir -log=/home/aa/Logs/Sat_Apr_27_11_00_40_EST_2013
aa       27978 27977  3 18:46 pts/1    00:02:11 /home/aa/armyops/System/serverx LAN MP_Rummage -nohomedir ini=aa25srv.ini log=aa25srv.log -multihome=203.143.83.172

People are on the server this evening (the mangled file doesn't affect the server), so I'll do more testing in the morning when it's quiet here in the Land Down Under...

Thanks again for the quick response, greatly appreciated.
OIC!
--
Oh, I See You Are Empty Too !

Offline OICURMT2!

Re: Mangled aa25srv.ini on start-up (linux 2.6.32-358.0.1.el6.x86_64 #1 SMP)
« Reply #8 on: Saturday, April 27, 2013, 21:40:52 PM »

I've confirmed this remains a problem (from an aesthetics point of view, as the server still runs).

1) Eliminated the use of template files and confirmed the aa25srv.ini file is correct and in System/server.
2) Eliminated the superfluous command-line argument when calling server-bin (25assist wrapper).
3) Also tried a manual start of the server... piped the output to a file, which I've placed in the directory I PM'd you (startup.out).

In all cases, on server startup, the aa25srv.ini file in the System/server directory still gets mangled and then it copied to the System directory just before server startup.

I'll try some low-ish level debugging through kernel services to see if I can trackdown what is going on... (don't feel like recompiling the kernel, so this is the best I can offer)

I've got to ask.. any chance the developer of the wrapper included a DEBUG switch?  would sure be helpful...

As stated previously, this problem doesn't hamper the server.  My concern is that if the wrapper has a memory leak, this could be an entry point for a server-side exploit.

Last note: Because my script deletes all relavant files and then places template files in the appropriate areas, the top of my aa25srv.ini file only gets mangled once.  When I perform a manual startup, since I'm not cleaning the file everytime, the aa25srv.ini file get mangled time and time again...

After three manual starts of the server..

Code: [Select]
Pro^[ÿÿ<80>Teamspeak: 3cr.teamspeak3.com.au
Pro^[ÿÿ<80>Coming Soon -> www.AUSAAO25.com
Pro^[ÿÿ<80>Welcome to the Aus AAO25 Community Server
[email protected]
ProOICURMT2!
Pro^[ÿÿ<80>Teamspeak: 3cr.teamspeak3.com.au
Pro^[ÿÿ<80>Coming Soon -> www.AUSAAO25.com
Pro^[ÿÿ<80>Welcome to the Aus AAO25 Community Server
[email protected]
ProOICURMT2!
Pro^[ÿÿ<80>Teamspeak: 3cr.teamspeak3.com.au
Pro^[ÿÿ<80>Coming Soon -> www.AUSAAO25.com
Pro^[ÿÿ<80>Welcome to the Aus AAO25 Community Server
[email protected]
ProOICURMT2!
Protocol=unreal
ProtocolDescription=Unreal Protocol
Name=Recruit
Map=Entry.aao
LocalMap=Entry.aao
Host=
Portal=
MapExt=aao
EXEName=uw.exe
SaveExt=usa
Port=1716
Class=AGP_Characters.AGP_Character

[FirstRun]
FirstRun=250000
OIC!
--
Oh, I See You Are Empty Too !

Offline OICURMT2!

Re: Mangled aa25srv.ini on start-up (linux 2.6.32-358.0.1.el6.x86_64 #1 SMP)
« Reply #9 on: Saturday, May 18, 2013, 04:33:57 AM »

UPDATE

I'm in the process of writing a setup guide for the Linux installation.  During this process, I had the need to create step by step instruction on my home server.

During this process, I noticed that the aa25srv.ini file does not get mangled when the server runs on Fedora.  I now suspect that the mangling is somehow occuring on CentOS.  I will continue to try to debug the problem and submit updates as I narrow down the search.

BTW: Linux Guide is taking shape.  Primary document is 26 pages with 40 pages of Appendices (mainly server outputs).

OIC!
--
Oh, I See You Are Empty Too !

Offline OICURMT2!

Re: Mangled aa25srv.ini on start-up (linux 2.6.32-358.0.1.el6.x86_64 #1 SMP)
« Reply #10 on: Wednesday, May 22, 2013, 07:53:45 AM »

Rev0 of the Linux Guide is ready, but I see no way to attach a PDF file to a post... and no file area to upload.

Suggestions?
OIC!

--
Oh, I See You Are Empty Too !

Offline kinetiks

Re: Mangled aa25srv.ini on start-up (linux 2.6.32-358.0.1.el6.x86_64 #1 SMP)
« Reply #11 on: Wednesday, May 22, 2013, 08:03:50 AM »
Use dropbox or something like that  :)

 

Download Assist

×

Download Game Client

Important: Battletracker no longer exists. However, old Battletracker accounts may still work. You can create a new 25Assist account here

Download Server Manager