RegisterRegister    Log inLog in    SearchSearch   

Post new topic   Reply to topic
Goto page Previous  1, 2, 3, 4  Next 
View previous topic :: View next topic  
Author Message
Reality
Guest


PostPosted: Tue Sep 26, 2006 5:04 pm    Post subject: Reply with quote

[root@server bf2]# ./start.sh +config "configs/16567/serversettings.con" +mapList "configs/16567/maplist.con" +pbPath "configs/16567/pb"
Battlefield II Dedicated Server v1.1.2963-795.0(IA-32)
"Battlefield 2 Server" Average FPS: 33 [d:0, o:15]
IP: 81.19.219.142 Port: 16567 (PB) Map: wake_island_2007
Game mode: gpm_cq/64 Mod: bf2
Players: 0/16 (0 r) (0 connecting) Round: 1/2 Status: [playing]
-------------------------------------------------------------------------------
PunkBuster Server: pb_sv_LogSync = 0 (0=No, 1=Yes)
PunkBuster Server: pb_sv_LogCeiling = 100 (10 to 999999)
PunkBuster Server: pb_sv_SsFloor = 1 (1 to 999999)
PunkBuster Server: pb_sv_SsCeiling = 100 (1 to 999999)
PunkBuster Server: pb_sv_SsCmd = pbscreens.bat
PunkBuster Server: Setting pb_sv_sscmd value override [pb/creens.bat]
PunkBuster Server: pb_sv_SsWidth = 800 (10 to 4096)
PunkBuster Server: pb_sv_SsHeight = 600 (10 to 4096)
PunkBuster Server: pb_sv_SsXpct = 85 (-1 to 100)
PunkBuster Server: pb_sv_SsYpct = 25 (-1 to 100)
PunkBuster Server: pb_sv_SsSrate = 2 (0 to 4)
PunkBuster Server: pb_sv_SsDelay = 0 (0 to 60)
PunkBuster Server: pb_sv_SsPath = /root/gamecreate/bf2\pbscreens\Battlefield_2_Server
PunkBuster Server: pb_sv_AutoSsFrom = 60 (30 to 300)
PunkBuster Server: pb_sv_AutoSsTo = 1200 (300 to 1500)
PunkBuster Server: pb_sv_AutoSs = 0 (0=No, 1=Yes)
PunkBuster Server: pb_sv_Sleep = 60 (20 to 100)
PunkBuster Server: pb_sv_PowerMin = 10 (1 to 1000)
PunkBuster Server: pb_sv_PowerDef = 1 (0 to 10)
PunkBuster Server: pb_sv_PowerKickLen = 5 (0 to 60)
PunkBuster Server: pb_sv_HttpPort = 16579 (0 to 65535)
PunkBuster Server: pb_sv_HttpAddr = 81.19.219.142
PunkBuster Server: pb_sv_HttpRefresh = 30 (10 to 999)
PunkBuster Server: pb_sv_HttpKey = *****
PunkBuster Server: pb_sv_HttpMaps =
PunkBuster Server: pb_sv_ChangePeriod = 999 (1 to 999)
PunkBuster Server: pb_sv_ChangeMax = 1 (1 to 50)
PunkBuster Server: pb_sv_DupNameGrace = 30 (0 to 90)
PunkBuster Server: pb_sv_ExtChar = 1 (0 to 1)
PunkBuster Server: pb_sv_GuidRelax = 2 (0 to 7)
PunkBuster Server: File Not Found: pbsvlog.cfg
PunkBuster Server: Cvar List (in Memory) has been Emptied
PunkBuster Server: Attempting to resolve master3.evenbalance.com
PunkBuster Server: Resolved to [216.240.146.139]
PunkBuster Server: Listening for HTTP
PunkBuster Server: PunkBuster Server (v1.241 | A1310 C1.110) Enabled
PunkBuster Server: Game Version [1.1.2963-795.0]
Back to top
adbot



PostPosted: Thu Mar 31, 2011 3:57 am 

Reality
Guest


PostPosted: Tue Sep 26, 2006 5:08 pm    Post subject: Reply with quote

really really strange tbh
Back to top
Andrew
Mammoth


PostPosted: Tue Sep 26, 2006 5:16 pm    Post subject: Reply with quote

Its failing because the process ID is changing for gamecreate client when it launches it (and thinks its failed, because its not running anymore).

Ill see what I can do about it tomorrow.
Back to top
View user's profile Send private message
Reality
Guest


PostPosted: Tue Sep 26, 2006 5:17 pm    Post subject: Reply with quote

ok thnx dude, whatever you can do will be a help :p

Just leave a msg here if you think you have a fix for it and ill continue to test some other games tommorow also.
Back to top
Kybber



PostPosted: Tue Sep 26, 2006 6:25 pm    Post subject: Reply with quote

On a sidenote: Please please please don't run the
server as root. Make a dedicated user to run
gamecreate and its associated games.
Back to top
View user's profile Send private message
Reality
Guest


PostPosted: Wed Sep 27, 2006 12:33 am    Post subject: Reply with quote

without sounding stupid - why? Very Happy
Back to top
Kybber



PostPosted: Fri Sep 29, 2006 8:00 am    Post subject: Reply with quote

Running processes as non-root is general advice
for all server processes. Any security flaw in a
process running as root will mean that the whole
system can get compromised. By running the process
with the privileges of a normal user, you effectively
limit any such compromise to the user's own
permissions, thus preventing an attacker from
obtaining full control of your host.
Back to top
View user's profile Send private message
Kybber



PostPosted: Thu Oct 05, 2006 8:59 am    Post subject: Reply with quote

Actually, I've been experiencing the exact same
problem with BF2 as described above for one of
my subdomains. start.sh includes the exec-line,
yet the server won't start when launched via GC,
but starts just fine if run from the command-line.

When launching from GC, the server process is
immediately marked as defunct (zombie). Since
this has been working for another of my subdomains
which uses a custom start.sh, I went ahead and
modified it for this subdomain as well. So now it
works, but it seems as if the default installation
won't work unless we jump through a few loops.

I am also having problems with CS 1.6 and Q4, but that's
a different story for a possibly different thread...
Back to top
View user's profile Send private message
Andrew
Mammoth


PostPosted: Thu Oct 05, 2006 9:09 am    Post subject: Reply with quote

If you have a 'fix' for the start.sh file we could use, that would be great.

Hopefully get time later on down the track to not need a fix and just have gamecreate work around any issues like this.
Back to top
View user's profile Send private message
Kybber



PostPosted: Thu Oct 05, 2006 9:16 am    Post subject: Reply with quote

Well, it's not a very straightforward fix, but it seems
to be working okay:
1. Rename start.sh to start_orig.sh
2. Create a new start.sh like this:
Code:
#!/bin/bash
STARTSCREEN=1
# exec and -D since we can't spawn a new process when using GameCreate
if [ ${STARTSCREEN} == "1" ]; then
    screen -wipe >/dev/null # Make sure all dead screens are removed
    exec screen -m -D -A ./start_orig.sh $@
else
    exec ./start_orig.sh $@
fi

Like I mentioned above, this is just a very trimmed
down version of our custom-script which does quite
a bit more. But this seems to work. _and_ it has the
added bonus of putting the server into a screened
session.

i haven't tried with $STARTSCREEN != 0, but it should
also work.

Funny thing is that in essence this approach causes
two execs to happen. By just using the original one,
GC barfs.

I am afraid I don't have time to look for a cleaner
solution to this - the subdomain in question is for
compos for a LAN with 2500+ people and USD 80k
in prizes which start in another day or so, so I'd
better get cracking on getting Q4 and CS1.6 to
behave Shocked

Edit: The problem with CS 1.6 was a " at the end of
the command-line. This caused only the first port
to be used according to netstat. Since GC was unable
to detect the server as running when querying it, it
restarted the server. Since it was working fine when
I ran the command manually, naturally neglecting
the ", this was very confusing! But it seems to be
working fine now. On to Quake 4!

Edit2: Q4 is working too. Just one of those wow-it-
just-suddenly-worked-experiences. Now we're all
set, I hope.
Back to top
View user's profile Send private message
Kybber



PostPosted: Mon Oct 30, 2006 8:42 am    Post subject: Reply with quote

It seems like BF2142 needs a similar solution to
the one above for BF2. Running the original start.sh
directly doesn't start the server, and GC keeps
retrying, even though it works perfectly from the
command-line. Renaming start.sh to e.g. start_orig.sh
and creating a new start.sh containing the following
works just fine:
Code:
#!/bin/bash
exec screen -m -D -A ./start_orig.sh $@

It seems to me that there's something fishy about
the way GC detects running processes, and it's related
to the forking/exec'ing, though I won't try to guess
at the exact mechanism at work here.

As far as I can remember, using the original start.sh
used to work some months ago, but since I've been
using a modified version like the one above for
ages, I can't really say when the problems started.

Hope you will be able to sort this one out, since it
really shouldn't be necessary to use a hack like this
to start the game - at the very best it will confuse
a lot of users Smile
Back to top
View user's profile Send private message
allstats.de



PostPosted: Thu Aug 07, 2008 5:28 am    Post subject: Reply with quote

Is this problem solved?

I think i have the same problem now.
Back to top
View user's profile Send private message Send e-mail
halvors



PostPosted: Mon Aug 16, 2010 12:48 am    Post subject: Reply with quote

This scripts does not svolve the issue.

Quote:
#!/bin/bash
STARTSCREEN=1
# exec and -D since we can't spawn a new process when using GameCreate
if [ ${STARTSCREEN} == "1" ]; then
screen -wipe >/dev/null # Make sure all dead screens are removed
exec screen -m -D -A ./start_orig.sh $@
else
exec ./start_orig.sh $@
fi


Quote:
#!/bin/bash
exec screen -m -D -A ./start_orig.sh $@


I have the problem now too, can anyone help me?
Back to top
View user's profile Send private message
Kybber



PostPosted: Mon Aug 16, 2010 6:09 pm    Post subject: Reply with quote

We are still using the same solution as mentioned above without any problems.

1. Exactly what happens when you try to start the server from GC?

2. Have you run the exact commandline listed on the server's overview page from the shell (substituting start.sh with start_orig.sh)? It should look like "start_orig.sh +config "configs/16567/serversettings.con" +mapList "configs/16567/maplist.con" +pbPath ..."

3. Is start_orig.sh executable?
Code:
chmod +x start_orig.sh


4. Have you turned off support for screen on /admin/EditGameConfiguration.aspx?id=119 ?
Back to top
View user's profile Send private message
halvors



PostPosted: Tue Aug 17, 2010 8:59 am    Post subject: Reply with quote

At first, who Linux distro and release does you use? At Multigamer.no.
Also now i am running from orginal start.sh from GC.

1. When try start gameserver from GC it start, but i cant join ingame Sad

2. Here is a screenshot.



3. Yes its executable.

4. Support for screen is turned off.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic All times are GMT + 10 Hours
Goto page Previous  1, 2, 3, 4  Next
Page 3 of 4

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Forum powered by phpBB © 2001, 2005 phpBB Group
GameCreate Service Terms | Privacy Policy | © Copyright Mammoth Media 2001-2007
GameCreate™ is a trademark of Mammoth Media Pty Ltd. GameCreate® is a registered trademark in Australia.