|
|
|
 |
|

June 19th, 2010, 05:16 AM
|
Private
|
|
Join Date: Apr 2010
Posts: 8
Thanks: 1
Thanked 0 Times in 0 Posts
|
|
Problem: Linux dom3 servers keep dying.
I've set up a linux machine pretty much for the purpose of running Dom3 games.
Unfortunately, Dom3 will not stay running for any length of time. I'm at my wit's end on this one.
Here's an example of what shows up in the log when one of the servers die:
Code:
gameserver got packet 9
tcp_get2hfile: gname:dawnofdominions pl:3
tcp_get2hfile: pl 3 len 5007
tcp_get2hfile: saving as /home/kenlon/dominions3/savedgames/dawnofdominions/early_marverni.2h
/home/kenlon/dominions3/savedgames/dawnofdominions/early_marverni.2h
Ngot gick fel!
savefile: error opening file
Ngot gick fel!
savefile: error opening file
Sound deinited
I also ran strace on one of the dom3 processes, and as far as I can tell, it's losing the ability to read from/write to /home/kenlon/dominions3/savedgames at random - which is weird as hell, because I set the damn directory to 777 so anyone and anything can write to it.
Help!
|

June 19th, 2010, 09:53 AM
|
 |
Shrapnel Fanatic
|
|
Join Date: Oct 2003
Location: Vacaville, CA, USA
Posts: 13,736
Thanks: 341
Thanked 479 Times in 326 Posts
|
|
Re: Problem: Linux dom3 servers keep dying.
I havent seen that one.
Does this work?
file /home/kenlon/dominions3/savedgames/dawnofdominions/*
you might try using the --preexec switch to have a pre.sh save all environmental variables to a text file.
touch env.txt
env >env.txt
set >>env.txt
The above will tell you if its something about files in general or just the 2h
is there a directory quota?
is there a security protection against binary files?
__________________
-- DISCLAIMER:
This game is NOT suitable for students, interns, apprentices, or anyone else who is expected to pass tests on a regular basis. Do not think about strategies while operating heavy machinery. Before beginning this game make arrangements for someone to check on you daily. If you find that your game has continued for more than 36 hours straight then you should consult a physician immediately (Do NOT show him the game!)
|

June 19th, 2010, 11:01 AM
|
 |
Shrapnel Fanatic
|
|
Join Date: Oct 2003
Location: Vacaville, CA, USA
Posts: 13,736
Thanks: 341
Thanked 479 Times in 326 Posts
|
|
Re: Problem: Linux dom3 servers keep dying.
another thought..
is this sporadic? maybe its a clash. Maybe its two player files coming in at once. Does the server have quality controls on the number of streams and instances that one user is allowed to grab?
|

June 19th, 2010, 06:26 PM
|
Private
|
|
Join Date: Apr 2010
Posts: 8
Thanks: 1
Thanked 0 Times in 0 Posts
|
|
Re: Problem: Linux dom3 servers keep dying.
File is able to read all the files in all the game directories.
No quotas of any sort in place. Not sure what you mean by "security protection against binary files".
Something I only just thought of - I've been using a script to kick off all four servers at the same time. Could that have something to do with this? I know that means they end up with the same temp directory, but in any sanely written program that shouldn't matter.
|

June 19th, 2010, 08:47 PM
|
 |
Shrapnel Fanatic
|
|
Join Date: Oct 2003
Location: Vacaville, CA, USA
Posts: 13,736
Thanks: 341
Thanked 479 Times in 326 Posts
|
|
Re: Problem: Linux dom3 servers keep dying.
It shouldnt.
But in general I take great steps to avoid running games at the same time. Just for load sake
|

June 20th, 2010, 05:52 PM
|
Private
|
|
Join Date: Apr 2010
Posts: 8
Thanks: 1
Thanked 0 Times in 0 Posts
|
|
Re: Problem: Linux dom3 servers keep dying.
Excerpt from the tail end of the strace:
Code:
write(1, "uncompressing decomplen = 11260 "..., 54) = 54
write(1, "gameserver got packet 9\n", 24) = 24
write(1, "tcp_get2hfile: gname:itwasadom3g"..., 42) = 42
write(1, "tcp_get2hfile: pl 44 len 11252\n", 31) = 31
open("/home/kenlon/dominions3/savedgames/itwasadom3game", O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("/home/kenlon/dominions3/savedgames/itwasadom3game", O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
mkdir("/home/kenlon/dominions3/savedgames/itwasadom3game", 0755) = -1 ENOENT (No such file or directory)
open("/home/kenlon/dominions3/savedgames", O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
mkdir("/home/kenlon/dominions3/savedgames", 0755) = -1 ENOENT (No such file or directory)
open("/home/kenlon/dominions3", O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
mkdir("/home/kenlon/dominions3", 0755) = -1 EACCES (Permission denied)
open("/home/kenlon", O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY|O_CLOEXEC) = 6
close(6) = 0
open("/home", O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY|O_CLOEXEC) = 6
close(6) = 0
mkdir("/home/kenlon/dominions3", 0755) = -1 EACCES (Permission denied)
open("/home/kenlon", O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY|O_CLOEXEC) = 6
close(6) = 0
open("/home", O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY|O_CLOEXEC) = 6
close(6) = 0
mkdir("/home/kenlon/dominions3/savedgames", 0755) = -1 ENOENT (No such file or directory)
open("/home/kenlon/dominions3", O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
mkdir("/home/kenlon/dominions3", 0755) = -1 EACCES (Permission denied)
open("/home/kenlon", O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY|O_CLOEXEC) = 6
close(6) = 0
open("/home", O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY|O_CLOEXEC) = 6
close(6) = 0
mkdir("/home/kenlon/dominions3", 0755) = -1 EACCES (Permission denied)
open("/home/kenlon", O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY|O_CLOEXEC) = 6
close(6) = 0
open("/home", O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY|O_CLOEXEC) = 6
close(6) = 0
mkdir("/home/kenlon/dominions3/savedgames/itwasadom3game", 0755) = -1 ENOENT (No such file or directory)
write(1, "tcp_get2hfile: saving as /home/k"..., 91) = 91
open("/home/kenlon/dominions3/savedgames/itwasadom3game/mid_bakemono.2h", O_WRONLY|O_CREAT|O_TRUNC, 0666) = -1 ENOENT (No such file or directory)
write(1, "/home/kenlon/dominions3/savedgam"..., 66) = 66
write(2, "N\345got gick fel!\n", 16) = 16
write(2, "savefile: error opening file\n", 29) = 29
write(1, "N\345got gick fel!\n", 16) = 16
write(1, "savefile: error opening file\n", 29) = 29
|

June 20th, 2010, 07:00 PM
|
 |
Shrapnel Fanatic
|
|
Join Date: Oct 2003
Location: Vacaville, CA, USA
Posts: 13,736
Thanks: 341
Thanked 479 Times in 326 Posts
|
|
Re: Problem: Linux dom3 servers keep dying.
Its not supposed to need it but for my scripts (for other reasons) I create the game directory manually with a mkdir command. You might try that.
|

June 20th, 2010, 08:21 PM
|
Private
|
|
Join Date: Apr 2010
Posts: 8
Thanks: 1
Thanked 0 Times in 0 Posts
|
|
Re: Problem: Linux dom3 servers keep dying.
The directories are there, though.
And now a couple of the servers are just looping when people try to get their turns:
tcp_putturn: gname:duskofdominions pl:70
tcp_putturn: no turn file (/home/kenlon/dominions3/savedgames/duskofdominions/late_pythium.trn)
It looks like the same damn thing - it can't read the directory. But I've set dominions3, savedgames, and the individual game directories to 777 and it *still* craps out.
Aagh!
|

June 20th, 2010, 09:13 PM
|
General
|
|
Join Date: Apr 2005
Posts: 3,327
Thanks: 4
Thanked 133 Times in 117 Posts
|
|
Re: Problem: Linux dom3 servers keep dying.
Just a quick thought: Who is the game server running as?
If it's not you (kenlon), try that. Alternately, try changing the owner of the savedgames directory to that user.
Shouldn't be necessary, but it's the only thing I can think of.
|

June 20th, 2010, 10:08 PM
|
Private
|
|
Join Date: Apr 2010
Posts: 8
Thanks: 1
Thanked 0 Times in 0 Posts
|
|
Re: Problem: Linux dom3 servers keep dying.
Quote:
Originally Posted by thejeff
Just a quick thought: Who is the game server running as?
If it's not you (kenlon), try that. Alternately, try changing the owner of the savedgames directory to that user.
Shouldn't be necessary, but it's the only thing I can think of.
|
It's running as me - I'm spawning the servers via a small script.
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is On
|
|
|
|
|