Page 1 of 1

[227g33] Crash with incomplete log end

Posted: Fri Jul 23, 2010 2:38 pm
by Hyper
My custom map server crashed with an incomplete log end. While 227g33 is far more stable than the previous versions it still occurred once:

Code: Select all

JCoopZ: InitGame: ?Name=Player?Class=UnrealI.FemaleOne?Game=jCoopZ1.JCoopZGame?mutator=CMapFixM.CMapFixMutator,DZMapM.DZMapMutator,WMutate2.PawnReplacer,FactoryFix.FactoryFix,bfix.bfix,MarineHUDJCZ.MHUDMutator?difficulty=3?LastMap=0?LastWasSoledad=0?can-you-believe-this-all-was-one-level1?peernalic2
JCoopZ: Difficulty 3
JCoopZ: Base Mutator is cryox.jczUMutator0
Log: 1631960875.0ms Loading: Package JCoopZ1GRP
JCoopZ: Mutators CMapFixM.CMapFixMutator,DZMapM.DZMapMutator,WMutate2.PawnReplacer,FactoryFix.FactoryFix,bfix.bfix,MarineHUDJCZ.MHUDMutator
JCoopZ: Add mutator CMapFixM.CMapFixMutator
Log: 1631960875.0ms Loading: Package CMapFixM
JCoopZ: Add mutator DZMapM.DZMapMutator
Log: 1631960875.0ms Loading: Package DZMapM
DZMapM: =======================================================================
DZMapM: DZ Map Mutator v2.2 copyright 2003-2008 By -Zombie (Of DZ) unrzombie@yahoo.com
DZMapM: DZ Map Mutator Now Running...
DZMapM: =======================================================================
JCoopZ: Add mutator WMutate2.PawnReplacer
Log: 1631961250.0ms Loading: Package WMutate2
PawnReplacer: ***************************************************************************
PawnReplacer: WMutator - Pawn Replacer activated and invoked
PawnReplacer: version 1.0 by (:~WïÑGéÐ_ÜñîçøRÑ~:)
PawnReplacer: ***************************************************************************
JCoopZ: Add mutator FactoryFix.FactoryFix
Log: 1631961375.0ms Loading: Package FactoryFix
JCoopZ: Add mutator bfix.bfix
Log: 1631961375.0ms Loading: Package bfix
JCoopZ: Add mutator MarineHUDJCZ.MHUDMutator
JCoopZ: thisMap: cryox
UdpServerQuery: Bound to port 5556.
Log: Resolving master0.gamespy.com...
Log: Resolving master.gamespy.com...
Log: Resolving unreal.epicgames.com...
Log: Resolving master.qtracker.com...
Log: Resolving master.thenerdnetwork.com...
Log: Resolving master.oldunreal.com...
Log: Resolving hyper.dnsalias.net...
Log: Resolving master.hlkclan.net...
Log: UdpBeacon cryox.UdpBeacon (Function IpDrv.UdpBeacon.BeginPlay:000E) BindPort: bind failed
ScriptLog: ServerBeacon failed: Could not bind port 7775
ScriptLog: Broadcasting Beacon
Log: UdpBeacon cryox.UdpBeacon (Function IpDrv.UdpBeacon.BroadcastBeacon:0096) SentText: sendto failed
JCoopZ: ======================================================================================
JCoopZ: JCoopZ v1.0 | jCoopZ1SSF Build 130 copyright 2005-2009 by Zombie (Of DZ) unrzombie@yahoo.com
JCoopZ: Original JCoop v1-5 coding by Joss Liu, September 2002 - March 2003
JCoopZ: JCoopZ ==> Special thanks to: Zora, WingedUnicorn - For Nephthys developer interface support
JCoopZ:         Oblivion[CW], Hyper.nl - For ideas, suggestions, and feedback
JCoopZ: JCoop v1-5 ==> Special thanks to: Maniac, Cherokee, Teela, (DarkSW)Wolf
JCoopZ:      Zora, Zombie, digital zynthetic, Koopa888, }TCP{Wolf - for ideas and feedback making JCoop better game
JCoopZ: ======================================================================================
JCoopZ: Current password settings:
JCoopZ: PrimaryAdmin[0].AdminPassword=password
JCoopZ: PrimaryAdmin[1].AdminPassword=
JCoopZ: PrimaryAdmin[2].AdminPassword=
JCoopZ: PrimaryAdmin[3].AdminPassword=
JCoopZ: PrimaryAdmin[4].AdminPassword=
JCoopZ: SecondaryAdmin[0].AdminPassword=
JCoopZ: SecondaryAdmin[1].AdminPassword=
JCoopZ: SecondaryAdmin[2].AdminPassword=
JCoopZ: SecondaryAdmin[3].AdminPassword=
JCoopZ: SecondaryAdmin[4].AdminPassword=
JCoopZ: GamePassword:
JCoopZ: TimeLimit=60 minutes, Next Map: FHub5 (timer starts after a player login)
JCoopZ: ********** JCZLogger PreBeginPlay **********
ScriptLog: [~] starting Server Advertisements version 101
DevNet: NotifyAcceptingConnection: Server MyLevel accept
NetComeGo: Open MyLevel 07/22/10 15:36:32 83.160.149.225:1683
DevNet: NotifyAcceptingChannel Control 0 server Level cryox.MyLevel: Accepted
DevNet: Login request: :5555/cryox?Password=388?Class=UnrealShare.MaleThree?Name=henk?Skin=Male3Skins.Bane?Team=255#cryoxentry
DevNet: Initializing security.
JCoopZ: -- Prelogin attempt by player henk -- POSSIBLE IPAddress: 83.160.149.225
JCoopZ: ** TIME LEVEL: 1
jCoopZGame: Pre: 'henk' 83.160.149.225: henk
Log: Resolved master0.gamespy.com (207.38.11.174)
UdpServerUplink: Master Server is master0.gamespy.com:27900 on server port 5557
Log: Resolved master.gamespy.com (207.38.11.174)
UdpServerUplink: Master Server is master.gamespy.com:27900 on server port 5558
Lo

Re: [227g33] Crash with incomplete log end

Posted: Fri Jul 23, 2010 3:29 pm
by Smirftsch
With the given information at the moment its impossible to say. We'll have to wait until we can see a pattern in it, same map, same mod, etc...

I guess it can't be always prevented, doesn't matter what version.

Re: [227g33] Crash with incomplete log end

Posted: Fri Jul 23, 2010 7:51 pm
by Pravin
Couldn't the incomplete log scenario be fixed by changing apprequestexit() such that it flushes all output streams? This is obviously a buffering issue.

Re: [227g33] Crash with incomplete log end

Posted: Sat Jul 24, 2010 5:19 am
by Smirftsch
of course it is, but if it would end in a controlled way it would flush the buffer- or did I miss something?

Alternative it could be tried to run it from a cmd dosbox with ucc and read what it logs there.

While, it seems I found already one possible cause...

Re: [227g33] Crash with incomplete log end

Posted: Sat Jul 24, 2010 5:38 am
by []KAOS[]Casey
If you use UCC and pipe the output to a new log it should work.

Untested Modification of hypernl's UServer batch file :

Code: Select all

@echo off
rem =============================
rem Change the "Server.log" to the name of your log file.
rem Standard is "Unreal.log", I recommend "Server.log".
rename server.log old.log
rem =============================

rem =============================
rem ADVANCED: Date and time format are changable. See NameDate.txt for more info.
NAMEDATE /Z:"Y-m-d H-M-S" "old.log"
rem =============================

move *.log ..\Logs
pause
cls
echo.
echo De server was started at %date% %time%.
echo.
:crashed

rem =============================
rem This is the server command line. Change it to your needs.
UCC.exe Server NyLeve?game=Unreali.coopgame?difficulty=3  INI=server.ini >> Server.log
rem =============================

rem =============================
rem Change the "Server.log" to the name of your log file.
rename server.log servercrash.log
rem =============================

NAMEDATE /Z:"Y-m-d H-M" "servercrash.log"
echo.
echo The server crashed and restarted at %date% %time%. See server log for details.
echo.
goto crashed

Note : you will not be able to see or input commands remotely from your console. I suggest using WebAdmin in conjunction with this for full control.

Re: [227g33] Crash with incomplete log end

Posted: Fri Jul 30, 2010 9:52 pm
by Hyper
Okay, I now use ucc.exe server instead of Unreal.exe -server.

It did give me TWO log files, ucc.log and the piped CMD output.

For now I only save the CMD log output and delete the ucc.log.