RegisterRegister    Log inLog in    SearchSearch   

Post new topic   Reply to topic
 
View previous topic :: View next topic  
Author Message
AntiVirus



PostPosted: Fri Jun 20, 2008 3:44 am    Post subject: New problems with restarting and creating new servers Reply with quote

OS: Debian 4.0 Etch

I did not have any problems till last time.
Is started like this: I noticed that my server is offline for about 2 days in GameCreate, I see that the gamecreate.x86 is down, the process never crashed before. I started it and after 1-2 hours it crashed again. I placed a bash restarter on it, problem solved.

Then create a server and I hear from people that it's restarting itself every few minutes. I see in console this:
LOG: Thu Jun 19 19:17:27 2008: Check failed on process 19655 (ID: 9408424)
LOG: Thu Jun 19 19:17:30 2008: ** Stop GameCreate Booking: ID 9408424 **

The server did not crash, I started the server manually with the same command line startup and it was working ok. It was occuring to servers which were started or restarted last time. What I need to do if I want GC to stop restarting them is to restart the gamecreate.x86 process when the server is up before the process will do the Check on it. But it is a problem to keep restarting the GC process.

Any suggestions what would help?
Back to top
View user's profile Send private message MSN Messenger
adbot



PostPosted: Thu Mar 31, 2011 3:57 am 

gp



PostPosted: Fri Jun 20, 2008 5:49 am    Post subject: Reply with quote

Which game are you trying to start?
Back to top
View user's profile Send private message
AntiVirus



PostPosted: Fri Jun 20, 2008 5:50 am    Post subject: Reply with quote

cod4
Back to top
View user's profile Send private message MSN Messenger
Steve
Mammoth


PostPosted: Fri Jun 20, 2008 3:34 pm    Post subject: Reply with quote

Is this only happening with CoD4 or are other games being effected the same way?
Back to top
View user's profile Send private message
AntiVirus



PostPosted: Fri Jun 20, 2008 3:49 pm    Post subject: Reply with quote

Now can't check. Since yesterday I've got this here:
http://wired-up.eu.gamecreate.com/admin/Login.aspx

Server Error in '/admin' Application
The request timed out.

Description: HTTP 500. Error processing request.

Stack Trace: System.Web.HttpException: The request timed out.

Version information: Mono Version: 1.1.4322.2032; ASP.NET Version: 1.1.4322.2032


UPDATE: OK timeout problem disappeared.

Now I've checked that ET runs fine, it is a problem with CoD4 servers. I pressed now restart for one of those servers, the gamecreate displayed:
LOG: Fri Jun 20 13:17:12 2008: ** Stop GameCreate Booking: ID 9408584 **
LOG: Fri Jun 20 13:17:12 2008: Could not open pid-file /root/gc/gamecreate/callofduty4/port26877.pid
LOG: Fri Jun 20 13:17:15 2008: Waiting for PID: 4181 failed

And nothing, server went and wasn't starting for about 5 minutes, the panel showed Status: Starting all the time.

After five minutes...
LOG: Fri Jun 20 13:29:28 2008: ** Start GameCreate Booking: ID 9408584 **
LOG: Fri Jun 20 13:29:28 2008: Could not open pid-file /root/gc/gamecreate/callofduty4/port26877.pid
LOG: Fri Jun 20 13:29:28 2008: Launching process: /root/gc/gamecreate/callofduty4/cod4_lnxded 26877 +set dedicated 2 +set net_port 26877 +exec port26877.cfg +map mp_strike +set fs_game "mods/pam4" +set fs_homepath "configs/26877" +set sv_maxclients 12 +set sv_punkbuster 1 from directory /root/gc/gamecreate/callofduty4


Then 3 minutes and again
LOG: Fri Jun 20 13:35:28 2008: ** Start GameCreate Booking: ID 9408584 **
LOG: Fri Jun 20 13:35:28 2008: Could not open pid-file /root/gc/gamecreate/callofduty4/port26877.pid
LOG: Fri Jun 20 13:35:28 2008: Launching process: /root/gc/gamecreate/callofduty4/cod4_lnxded 26877 +set dedicated 2 +set net_port 26877 +exec port26877.cfg +map mp_strike +set fs_game "mods/pam4" +set fs_homepath "configs/26877" +set sv_maxclients 12 +set sv_punkbuster 1 from directory /root/gc/gamecreate/callofduty4


I have 9 call of duty 4 servers, is that too much cod4's on 1 host for this panel?
Back to top
View user's profile Send private message MSN Messenger
AntiVirus



PostPosted: Tue Jun 24, 2008 5:42 pm    Post subject: Reply with quote

A new thing: this panel is causing me 65% CPU system usage even when idle. Top is showing:

Cpu(s): 12.6%us, 23.6%sy, 0.0%ni, 31.6%id, 31.4%wa, 0.0%hi, 0.7%si, 0.0%st
When I kill the panel, CPU usage goes to 1%. The weird thing is this usage is not ascribed to the gamecreate process in top or htop. But this is for sure the cause of cpu high usage, and its not temporary for few minutes after start, it started suddenly about 14 hours ago and since then the cpu had this, now when I restart gamecreate.x86 the same happens.

I have no idea why it started. I wasn't changing a thing. Are there problems with eu gamecreate servers or something?
Back to top
View user's profile Send private message MSN Messenger
Kybber



PostPosted: Tue Jun 24, 2008 8:28 pm    Post subject: Reply with quote

Which processes cause the high CPU usage, if it's not gamecreate.x86? You
should see it/them in top.

Note that it's the system usage that's high, which may indicate that there's
something with the network (this could also explain your other problems) or
some other mechanism related to the kernel. You are not running gamecreate
as root, are you?
Back to top
View user's profile Send private message
AntiVirus



PostPosted: Tue Jun 24, 2008 10:24 pm    Post subject: Reply with quote

Kybber wrote:
Which processes cause the high CPU usage, if it's not gamecreate.x86? You
should see it/them in top.

Note that it's the system usage that's high, which may indicate that there's
something with the network (this could also explain your other problems) or
some other mechanism related to the kernel. You are not running gamecreate
as root, are you?

Top and Htop are not showing thich process is causing such cpu usage but when I have gamecreate on it has the high system usage. Actually I am running it as root.
Back to top
View user's profile Send private message MSN Messenger
Kybber



PostPosted: Tue Jun 24, 2008 10:39 pm    Post subject: Reply with quote

Try to run GC as non-root and see if that fixes the problem.

Never ever ever ever ever ever run a process as root that doesn't have to be
run as root. Especially not a service that is accessible from the outside world.
If there's a security bug in GC, then someone may use it to break into your
server and potentially gain full control.
Back to top
View user's profile Send private message
AntiVirus



PostPosted: Wed Jun 25, 2008 7:34 pm    Post subject: Reply with quote

When tried to run as user:

gc@Wired-Up_DE1:/gc$ ./gamecreate.x86 -f
==GAMECREATE CLIENT 5.2.0 STARTUP==
LOG: Wed Jun 25 11:35:24 2008: Starting GameCreate Client 5.2.0
LOG: Wed Jun 25 11:35:24 2008: Hostname: Wired-Up_DE1. IP: 88.198.47.100.
LOG: Wed Jun 25 11:35:24 2008: Master: eu1.master.gamecreate.com,eu2.master.gamecreate.com
LOG: Wed Jun 25 11:35:24 2008: Starting FTP server thread
LOG: Wed Jun 25 11:35:24 2008: SSL pipe not connected, attempting to connect
LOG: Wed Jun 25 11:35:24 2008: Master address(es): eu1.master.gamecreate.com,eu2.master.gamecreate.com
LOG: Wed Jun 25 11:35:24 2008: Could not chmod(/root/gc/gamecreate/gamecreate.x86): (Error: 1)
Terminated


I need to give user 'gc' rights for chmoding ?
Back to top
View user's profile Send private message MSN Messenger
Kybber



PostPosted: Wed Jun 25, 2008 8:15 pm    Post subject: Reply with quote

All files associated with GC need to be given the
correct permissions for the user. The easiest way
to do that is:
Code:
chown -R gc /root/gc/

This will change ownership of all files and folders
from /root/gc and down. Then try to re-run with the
gc user.
Back to top
View user's profile Send private message
AntiVirus



PostPosted: Wed Jun 25, 2008 8:45 pm    Post subject: Reply with quote

Ok it started on gc user but still the same.


I'll restart in the night the server, maybe it helps. Ive got 138 days uptime so maybe its too long Razz
Back to top
View user's profile Send private message MSN Messenger
AntiVirus



PostPosted: Thu Jun 26, 2008 2:26 pm    Post subject: Reply with quote

I've got it! The restart didn't help but thanks to it I figured out what is the problem. I had so many CoD2 servers that the logs ans pbscreens were soooooooo heavy, so when the panel was doing

LOG: Thu Jun 26 06:17:48 2008: ** Create directory: /root/gc/gamecreate/callofduty4/pbscreens/easy_Makers_ **
LOG: Thu Jun 26 06:17:48 2008: ** Remove file: /root/gc/gamecreate/callofduty4/pb/sv_cheat.log **
LOG: Thu Jun 26 06:17:48 2008: ** Remove file: /root/gc/gamecreate/callofduty4/pb/sv_viol.log **
LOG: Thu Jun 26 06:17:48 2008: ** Copy directory: /root/gc/gamecreate/callofduty4/pb -to- /root/gc/gamecreate/callofduty4/configs/26877/pb **


It was just causing system usage because it was copying. Smile
To Mammoth - can't this be disabled? :/
Back to top
View user's profile Send private message MSN Messenger
Kybber



PostPosted: Thu Jun 26, 2008 4:33 pm    Post subject: Reply with quote

Nice find!

What you should consider doing, however, is to use one PB dir for each
individual server. That way you don't have to copy everything each time a
server starts, since the server will have all pbscreens, logs etc. in its own
local dir. Try to add [i]+pbPath "configs/%server:port%/pb" (or something
similar) to the command line, and remove all logs/screens/cruft from the
primary pb dir.
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
Page 1 of 1

 
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.