1. Hey Guest, is it this your first time on the forums?

    Visit the Beginner's Box

    Introduce yourself, read some of the ins and outs of the community, access to useful links and information.

    Dismiss Notice

Windows Token auth + Sending file crash

Discussion in 'Help' started by Vamist, Dec 7, 2016.

Mods: makmoud98, Mazey
  1. Vamist

    Vamist THD Team THD Team Tester

    Messages:
    544
    Okay so,

    When a player joins
    Code:
    [18:59:59] Token validation status: Token found
    this happens
    all good, all normal
    Except this is what crashes the server.
    From what I have noticed, every time the server has crashed due to token validation, it is because it post's this two times, instead of once. I'm not sure why. it just does, and crashes the server.

    Here are some logs as of today, descending order.

    Code:
    [22:35:52] Token validation status: Token found
    [22:35:52] Token validation status: Token found
    Code:
    [19:46:41] Token validation status: Token found
    [19:46:41] Token validation status: Token found
    Code:
    [19:43:35] Token validation status: Token found
    [19:43:35] Token validation status: Token found
    
    Code:
    [18:40:49] Token validation status: Token found
    [18:40:49] Token validation status: Token found
    It happens randomly when a player joins, and it just freezes the server. So as of right now, I'm going to find another way to edit the keep alive script

    It also looks like it's happening to linux servers. @merser433 seems to be having a similar problem with freezes, but not 100% sure if its the same problem i am having.

    Other point:
    It seems the server is now crashing when players join, with-out the token validation posting.
    Code:
    [22:35:14] File outside of /Mods: Entities/Vehicles/Catapult/Catapult.as
    [22:35:14] File outside of /Mods: Entities/Vehicles/Common/Vehicle.as
    [22:35:14] File outside of /Mods: Rules/CommonScripts/KAG.as
    [22:35:14] File outside of /Mods: Rules/CommonScripts/UseFakeTechs.as
    [22:35:14] SENDING 735 FILES
    That's the last thing in the console log, Does not look like it's related to the mod as much, but my guess is it has a lot of files to send.

    All of these errors are Linked to the recent update.
     
    Anszej likes this.
  2. Geti

    Geti Please avoid PMing me (poke a mod instead) THD Team Administrator Global Moderator

    Messages:
    3,730
    @merser433 can you please follow the instructions here but post the logs in this thread? We're looking into it but it'd be much simpler if we could see exactly where it's locked up - we haven't been able to reproduce it yet.
     
  3. cameron

    cameron THD Team THD Team Tester
    1. Practitioners of War Extreme Revolution - POWER

    Messages:
    77
    We finding that there isn't enough information yet to properly debug this, so I have built a separate version of kag to test with.
    I have attached a zip of the Juxta.dll and KAG.exe, so if you could add these files to your server in place of the current ones that would be great. This build has lots more status reporting, so the logs and console will be spammed quite a lot.
    When/If the server crashes please post the logs. I am mostly interested in what these logs look like right before the server crashes, but please post more than a few lines in case there is something happening earlier on. It might be easiest to just share the whole log file, then nothing will be missed.

    It is important that you disable auto update when you add these files, otherwise it will detect they are different and override them. Auto update is disabled by adding the command line argument "noautoupdate" (with no quotes).

    Can you confirm in this thread when you have made the changes to your server just so I know progress?
    Thanks!
     

    Attached Files:

  4. Vamist

    Vamist THD Team THD Team Tester

    Messages:
    544
    Question, where do I put noautupdate (I just want to check if I placed it in the right file.)

    If i placed it right, this is what I am currently getting.

    I'll post more logs in about 3-4 hours,
     

    Attached Files:

  5. cameron

    cameron THD Team THD Team Tester
    1. Practitioners of War Extreme Revolution - POWER

    Messages:
    77
    From your lot it looks like you added noautoupdate correctly, as if you didn't it would have reverted to the current release version of kag and would not have the extra status info printed in the logs.

    I assume the server didn't freeze in this log?

    I should also mention that it is possible the issue is fixed or less frequent in this version, as there were a few small changes made to potential causes of it. How often was it crashing before?
     
    Gurin likes this.
  6. Vamist

    Vamist THD Team THD Team Tester

    Messages:
    544
    The server has not crashed yet. Which is better then normal, the log I gave you before was just a test to see if it was right, I closes it down.

    Il post logs when the server does crash, thanks.
    --- Double Post Merged, Dec 8, 2016, Original Post Date: Dec 8, 2016 ---
    Okay, server crashed. Will post logs when I get home.
    --- Double Post Merged, Dec 8, 2016 ---
    Uploaded 4 console logs, all 4 ended in a crash. Enjoy :)
     

    Attached Files:

  7. merser433

    merser433 Shark Slayer

    Messages:
    5
    sry for delay, i don't visit forums very often.
    Same problem, actually. I too had 2 lines of errors about token validation in log every time server was about to freeze.
    Just turned the server on with gdb, not sure how long it'll take for it to freeze. Last time it was working for 20 hrs non stop, before that - 3 or so. Gonna wait........
    --- Double Post Merged, Dec 8, 2016, Original Post Date: Dec 8, 2016 ---
    @Geti Welp, it froze. Got this. The error seems to be obvious, but i already downloaded these missing debuginfos and started it again, in case it's not.[​IMG]
    [​IMG]
     
  8. cameron

    cameron THD Team THD Team Tester
    1. Practitioners of War Extreme Revolution - POWER

    Messages:
    77
    Thanks, looking into these logs now
    --- Double Post Merged, Dec 9, 2016, Original Post Date: Dec 8, 2016 ---
    We have made a potential fix for the freeze, and would like to see if it works any better.
    I have attached a new version of the Juxta.dll and KAG.exe if you could replace them again @Vamist.

    @merser433 I didn't build a linux version, but your gdb output is very useful, so if you can get any more crashes with it that would be great (assuming its not fixed with these changes).
     

    Attached Files:

    Gurin and Vamist like this.
  9. Vamist

    Vamist THD Team THD Team Tester

    Messages:
    544
    Replaced them, i'l post logs when i wake up tomorrow.
     
    cameron likes this.
  10. merser433

    merser433 Shark Slayer

    Messages:
    5
    Apparently i need debuginfos with exact names that's shown in the logs, but yum-utils' debuginfo-install doesn't have those.
    I installed some by just typing "debuginfo install glibc libgcc libstdc++", but that didn't help, and i got literally the same error trace this night.
    Hoping to get a linux fix as soon as possible, some people are already trying to rehost my mod when server's offline. .-.
     
  11. Vamist

    Vamist THD Team THD Team Tester

    Messages:
    544
    2 logs, 2 crashes.
    --- Double Post Merged, Dec 9, 2016, Original Post Date: Dec 9, 2016 ---
    With the current version, it freezes/locks up more often then the last one.
     

    Attached Files:

  12. cameron

    cameron THD Team THD Team Tester
    1. Practitioners of War Extreme Revolution - POWER

    Messages:
    77
    @merser433 the log is still useful how it is now. You say the backtrace is identical, so it froze in THDAPIClient::waitForResponse() called from CSecurity::getPlayerBanflags()?

    @Vamist use this one next? Thanks
     

    Attached Files:

    Gurin likes this.
  13. Vamist

    Vamist THD Team THD Team Tester

    Messages:
    544
    Added.
     
    Last edited: Dec 9, 2016
  14. merser433

    merser433 Shark Slayer

    Messages:
    5
    ye, every line was identical.
     
  15. Vamist

    Vamist THD Team THD Team Tester

    Messages:
    544
    4 logs, 4 crashes.
     

    Attached Files:

  16. merser433

    merser433 Shark Slayer

    Messages:
    5
    sooooooooo?....
     
  17. cameron

    cameron THD Team THD Team Tester
    1. Practitioners of War Extreme Revolution - POWER

    Messages:
    77
    Still working on it, but having trouble tracking down the remaining issues.
    --- Double Post Merged, Dec 14, 2016, Original Post Date: Dec 13, 2016 ---
    We expect that this issue has been resolved in build 2067
     
    Gurin and Vamist like this.
Mods: makmoud98, Mazey