.com.unity Forums
  The Official e-Store of Shrapnel Games

This Month's Specials

Air Assault Task Force- Save $8.00
Bronze- Save $10.00

   







Go Back   .com.unity Forums > Illwinter Game Design > Dominions 2: The Ascension Wars

Closed Thread
 
Thread Tools Display Modes
  #1  
Old May 22nd, 2004, 08:50 PM
Esben Mose Hansen's Avatar

Esben Mose Hansen Esben Mose Hansen is offline
Second Lieutenant
 
Join Date: Jan 2004
Location: Copenhagen, Denmark
Posts: 410
Thanks: 0
Thanked 0 Times in 0 Posts
Esben Mose Hansen is on a distinguished road
Default Re: New & raw web based Dominion II game server

The abysia.2h file is my fault. It was there until I accidentially deleted it when creating the zip file. Looking through the log file I see 2 strange things, speaking like any Monty fan:

1. The game reports a CD violation?! (Jotunheim, I believe it was)

2. My server scripts had apparantly crashed a number of times. I have since changed the code a bit, so it should be more defensive now. Still, it had been restarted a lot since crashing.

3. There is a known bug which I don't know how to solve. The socket lingers (in TIMEWAIT2, I presume) when the server is killed, which means that the program cannot be restartet before an interval has passed. And the perl script cannot access information on this level. I'm planning on reading up on sudo to solve this problem, though. In practice this means that you HAVE TO CHECK whether the server really restartet. It may state that it was a success, but a reload of the page will reveal that the server instantly crashed. Just restart the server again, and all will be fine.
__________________
"It makes you wonder if there is anything to astrology after all. "Oh, there is," said Susan, "Delusion, wishful thinking and gullibility." (T. Pratchett)
  #2  
Old May 22nd, 2004, 08:59 PM
jimbo's Avatar

jimbo jimbo is offline
Private
 
Join Date: May 2004
Location: Vermont, USA
Posts: 26
Thanks: 0
Thanked 0 Times in 0 Posts
jimbo is on a distinguished road
Default Re: New & raw web based Dominion II game server

I am happy to continue on a new server...just post where...

The Jotunheim CD violation was my friend...I infected him with the game, he ordered it, he took my CD home so he could play it immediately, and when he got his game in the mail he never reinstalled. We found this out when I infected him with this server (hehehe), he signed up in this game as Jotenheim, but when he went to take his turn (on turn one) he CD violated.

Unfortunately he set the position to computer controlled before we back tracked and figured out he never reinstalled his own CD key...which is fixed now of course...live and learn.
  #3  
Old May 22nd, 2004, 09:22 PM

Norfleet Norfleet is offline
Major General
 
Join Date: Jan 2004
Posts: 2,425
Thanks: 0
Thanked 0 Times in 0 Posts
Norfleet is an unknown quantity at this point
Default Re: New & raw web based Dominion II game server

Quote:
Originally posted by Esben Mose Hansen:
The abysia.2h file is my fault. It was there until I accidentially deleted it when creating the zip file. Looking through the log file I see 2 strange things, speaking like any Monty fan:

1. The game reports a CD violation?! (Jotunheim, I believe it was)
That can't be terribly recent, because Jotunheim has been AI for a very long time now, since he staled turn 1 and hasn't returned since. Could by why he staled, though, if he had a pirate copy...

Quote:
2. My server scripts had apparantly crashed a number of times. I have since changed the code a bit, so it should be more defensive now. Still, it had been restarted a lot since crashing.
That's not likely to be the problem, since the game always nagots right when it hosts.

Quote:
3. There is a known bug which I don't know how to solve. The socket lingers (in TIMEWAIT2, I presume) when the server is killed, which means that the program cannot be restartet before an interval has passed.
That's not the problem. All TCP/IP implementations are like that, it's there for a reason. I've come to sort of expect this behavior if the game tries to reuse the same port after live connections were up when the game dropped.

You don't really need sudo to do it, though. Just parsing the contents of netstat -n will tell you if the port is in use or not. Just do a netstat -n | grep :, and if you see anything there, it's not dead yet.

However, none of this addresses the current problem. So it looks like since the cause of this cannot be determined, Pascentiful on Mosehansen is dead.

The game has thus been moved using the files I received to: kludgemush.com 10345
  #4  
Old May 22nd, 2004, 10:17 PM
Esben Mose Hansen's Avatar

Esben Mose Hansen Esben Mose Hansen is offline
Second Lieutenant
 
Join Date: Jan 2004
Location: Copenhagen, Denmark
Posts: 410
Thanks: 0
Thanked 0 Times in 0 Posts
Esben Mose Hansen is on a distinguished road
Default Re: New & raw web based Dominion II game server

Re Jotunheim: That illustrates why I really should get some timestamps in that log file

Re the netstat: I can see why you would think that would be the solution. I actually wrote the entire script to do it, and it was first when I attempted to use it I was shown the error of my ways. The problem is that the apache server runs under restricted priviledges, for obvious reasons. One of the things it cannot do is access /proc/net, which is the source of the netstat info. Thinking about the info that resides in /proc/net, I think that this is a good thing. In conclusion, I need sudo
__________________
"It makes you wonder if there is anything to astrology after all. "Oh, there is," said Susan, "Delusion, wishful thinking and gullibility." (T. Pratchett)
  #5  
Old May 22nd, 2004, 11:10 PM

Norfleet Norfleet is offline
Major General
 
Join Date: Jan 2004
Posts: 2,425
Thanks: 0
Thanked 0 Times in 0 Posts
Norfleet is an unknown quantity at this point
Default Re: New & raw web based Dominion II game server

Well, /proc/net and netstat are normally world-readable...so unless the thing has been chrooted into being unable to see any of that at all, I'm not entirely sure how you managed to break that.

Then again, I don't futz with Apache much. I should try my hand at messing with your server code, though.
  #6  
Old May 23rd, 2004, 08:22 AM

rabelais rabelais is offline
Second Lieutenant
 
Join Date: Nov 2003
Location: houston TX
Posts: 493
Thanks: 32
Thanked 1 Time in 1 Post
rabelais is on a distinguished road
Default Re: New & raw web based Dominion II game server

Is there any way for mere Users to clear out their old stopped games on mose?

I'd like to clean up after myself, but the mechanism is not obvious.

Also if one can successfully start a game, but it autostops instantly (and again upon "successful" restart)does this imply the server is at its limit?

My new instance of Pain_of_Human is exhibiting this behavior... have I done something bizarre or is the failure message mildly FUBARed?

Thanks to Mose for his lovely site.
Quite the Mensch.


Rabe the Awkward Admin
  #7  
Old May 23rd, 2004, 09:20 AM
Esben Mose Hansen's Avatar

Esben Mose Hansen Esben Mose Hansen is offline
Second Lieutenant
 
Join Date: Jan 2004
Location: Copenhagen, Denmark
Posts: 410
Thanks: 0
Thanked 0 Times in 0 Posts
Esben Mose Hansen is on a distinguished road
Default Re: New & raw web based Dominion II game server

As for clearing out old games, you can disown them from the welcome page, if you havn't already. At some point, I'll make a prober cleanup method that hides the old games, and maybe even deletes them.

Norfleet: Obviously, your Linux setup isn't hardened. I'm not running an unhardened linux on the open net As for the permissions for /proc/net, these are mine (provided by the Gentoo hardened folks)

code:
ravn root # ls -ld /proc/net/
dr-xr-x--- 4 root wheel 0 May 23 10:10 /proc/net/

And no, the apache user does NOT belong to the wheel group. The wheel group is of course the special group that can e.g. su to root.
__________________
"It makes you wonder if there is anything to astrology after all. "Oh, there is," said Susan, "Delusion, wishful thinking and gullibility." (T. Pratchett)
Closed Thread

Bookmarks


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

BB code is On
Smilies are On
[IMG] code is On
HTML code is On

Forum Jump


All times are GMT -4. The time now is 10:26 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©1999 - 2025, Shrapnel Games, Inc. - All Rights Reserved.