• Please make sure you are familiar with the forum rules. You can find them here: https://forums.tripwireinteractive.com/index.php?threads/forum-rules.2334636/

Server Steam Workshop Server Internal Handles

Feb 25, 2019
11
2
50
I am having an issue with my server. It runs fine for some amount of time, and then spontaneously reboots itself. I've looked at the log files and noticed that the server continues to check Steam for updates to subscribed items. Apparently, every time it does this the server opens up an internal handle. The issue seems to be that the handle isn't closed after the query. There is a limit to the amount of internal handles that can be open at one time I guess - and when this limit is reached the server borks and restarts itself (I'm guessing that it crashes).

There was a thread from last year that kind of touched on this:

HTML:
https://forums.tripwireinteractive.com/forum/killing-floor-2/technical-support-ae/dedicated-server-support-ac/2317619-limit-map-update-checks

In that thread, the OP was asking about limiting the server map checks because it was consuming what they considered too much resources (CPU and disk utilization I imagine). So, that question is at least tangentially related to mine.

I'm told that this is a "known bug". Can anyone confirm this, and if there is a fix refer me to it? Thanks in advance.
 
In that thread the problem was about a bug for workshop in this period current build, on windows servers, but he didn't want to understand and read everything the wrong way and worded things differently, whatever. There is no known bug from what I know with server workshop (unless bug from last year is still in game but I don't think I remember TWI staff saying it was fixed). I know my server can stay up for a month without crashes, with custom maps from workshop. The server workshop in itself does not consume resources in a way you could measure or have any impact on the gameplay during the update checks it is basically a call to steam api or similar operation, basically nothing. As said in the other(s) threads, workshop in itself, outside of potential BUGS, does not consume measurable resources unless it actually does update/download a map. Limiting the map update checks would not stop your server from crashing you need to investigate more to find why it crashes, because for now it is only a guess game with thing you seem to imagine.

If your server crashes it is not because of workshop (unless you have at least one clue leading to that affirmation, beside the log file containing logging of workshop), or there is a bug currently but the information provided does not even contain the OS. We can redo for a third time this story, but workshop for server in itself does not consume heavily resources and/or crash your server, unless as said there is a bug in which case it would need proper report

Also if you server crashes, it does not restart by itself unless you use a script to do that from what I know, so what?

You're missing information, because with the current info it can be everything. Very unclear thread. Give details about everything.
 
Last edited:
Upvote 0
The behavior that I am seeing from the log files shows clearly that the server continues to cycle through the workshop maps checking for updates. Say, as a number there are 50 custom maps. After checking those 50 maps, I would assume that the server would stop checking for updates from the workshop until some pre-defined criteria is met - e.g some amount of time or a manual restart of the server itself.

What is actually happening is that the server continues to loop through the workshop items even after they've been confirmed to not require an update. As I stated earlier, each individual check constitutes an open internal handle when a check against the server map vs. the workshop item. Since the handles are not being closed, they accumulate until the maximum amount of open handles is achieved. The process then terminates itself, which restarts the server. I don't think this is normal behavior. If it is, then you're right in that this wouldn't be the cause of the restarts.

Yes, the server does restart itself when this happens - but I have also seen it go offline when this happens. Those may be two separate issues though I admit.

I didn't have this problem when I was using other third party redirect sites. It is only when I switched over to all Workshop sourced items that this issue presented itself. I can upload a sample of a log file for review if that would help. I examined the logs to see if there was any record of an error occurring like an unhandled exception or something, but I didn't see anything like that. Truth be told, I don't even know if that's something that would happen in the first place. From what I have seen, documentation on this stuff is non-existent.
 
Upvote 0
Yes this is how workshop works, every 60 seconds or so it checks for update, on each item. We can run a test and see, share your workshop list of items I can add it to my config file, tell me about after how many time I should expect a crash and I'll report back, but I doubt it would crash as I said I can keep my server started for month without issue, with custom maps from workshop installed, I have less than 50 but considering the amount of time I can run my server without issue, I have doubt about your theory honestly.

For the log if there are errors you should see them near/at the bottom of the file before it closes.

What I would think is more simple, you have issues in your map list and/or map configs, and server switches to non existent map, and crashes or switches to the default map (Biotics Lab I think). Post a full log here (search and remove in your log for things like your PASSWORDS or sensitive things you don't want to share with the forum), maybe post multiple logs from the crashes you're talking about maybe it is simple to find why.
 
Upvote 0
The number of times the server restarts is random. It's done it at least 5 times today. It may or may not do it when people are playing on it. I've noticed that it happens less when the server is in active use. Doesn't make sense to me, but that's what I've observed.

So, that's normal behavior for the workshop to continuously query the subscribed items? I wouldn't have expected that.

Also, on a side note I can't see where to edit a post is on this site. Noobish, I know.
 
Upvote 0
First I see you have problems in your files straight away:

[0002.90] Error: Error, Ambiguous package name: Resolved using 'c:\games\66_55_137_219_23000\1363688\kf2\KFGame\B rewedPC\Packages\Weapons\Medic_Knife\Wep_1P_Medic_ Knife_MAT.upk', not 'c:\games\66_55_137_219_23000\1363688\kf2\KFGame\B rewedPC\Packages\Weapons\Knife\Wep_1P_Medic_Knife_ MAT.upk'
[0002.90] Error: Error, Ambiguous package name: Resolved using 'c:\games\66_55_137_219_23000\1363688\kf2\KFGame\B rewedPC\Packages\Weapons\Medic_Knife\Wep_1P_Medic_ Knife_MESH.upk', not 'c:\games\66_55_137_219_23000\1363688\kf2\KFGame\B rewedPC\Packages\Weapons\Knife\Wep_1P_Medic_Knife_ MESH.upk'
[0002.90] Error: Error, Ambiguous package name: Resolved using 'c:\games\66_55_137_219_23000\1363688\kf2\KFGame\B rewedPC\Packages\Weapons\Medic_Knife\WEP_1P_Medic_ Knife_SKIN_MAT.upk', not 'c:\games\66_55_137_219_23000\1363688\kf2\KFGame\B rewedPC\Packages\Weapons\Knife\WEP_1P_Medic_Knife_ SKIN_MAT.upk'
[0002.90] Error: Error, Ambiguous package name: Resolved using 'c:\games\66_55_137_219_23000\1363688\kf2\KFGame\B rewedPC\Packages\Weapons\Medic_Knife\WEP_1P_Medic_ Knife_SKIN_TEX.upk', not 'c:\games\66_55_137_219_23000\1363688\kf2\KFGame\B rewedPC\Packages\Weapons\Knife\WEP_1P_Medic_Knife_ SKIN_TEX.upk'
[0002.90] Error: Error, Ambiguous package name: Resolved using 'c:\games\66_55_137_219_23000\1363688\kf2\KFGame\B rewedPC\Packages\Weapons\Medic_Knife\Wep_1P_Medic_ Knife_TEX.upk', not 'c:\games\66_55_137_219_23000\1363688\kf2\KFGame\B rewedPC\Packages\Weapons\Knife\Wep_1P_Medic_Knife_ TEX.upk'
[0002.90] Error: Error, Ambiguous package name: Resolved using 'c:\games\66_55_137_219_23000\1363688\kf2\KFGame\B rewedPC\Packages\Weapons\Medic_Knife\Wep_3P_Medic_ Knife_MAT.upk', not 'c:\games\66_55_137_219_23000\1363688\kf2\KFGame\B rewedPC\Packages\Weapons\Knife\Wep_3P_Medic_Knife_ MAT.upk'
[0002.90] Error: Error, Ambiguous package name: Resolved using 'c:\games\66_55_137_219_23000\1363688\kf2\KFGame\B rewedPC\Packages\Weapons\Medic_Knife\Wep_3P_Medic_ Knife_MESH.upk', not 'c:\games\66_55_137_219_23000\1363688\kf2\KFGame\B rewedPC\Packages\Weapons\Knife\Wep_3P_Medic_Knife_ MESH.upk'
[0002.90] Error: Error, Ambiguous package name: Resolved using 'c:\games\66_55_137_219_23000\1363688\kf2\KFGame\B rewedPC\Packages\Weapons\Medic_Knife\Wep_3P_Medic_ Knife_TEX.upk', not 'c:\games\66_55_137_219_23000\1363688\kf2\KFGame\B rewedPC\Packages\Weapons\Knife\Wep_3P_Medic_Knife_ TEX.upk'
[0002.90] Error: Error, Ambiguous package name: Resolved using 'c:\games\66_55_137_219_23000\1363688\kf2\KFGame\B rewedPC\Packages\Weapons\Medic_Knife\WEP_Medic_Kni fe_ARCH.upk', not 'c:\games\66_55_137_219_23000\1363688\kf2\KFGame\B rewedPC\Packages\Weapons\Knife\WEP_Medic_Knife_ARC H.upk'

So maybe start fresh or fix the errors first before investigating on other issues.


I also notice your startup command line is weirdly written:

Init: Command line: SERVER kf-bioticslab?MaxPlayers=6 multihome=66.55.137.219 port=23000 queryport=23001 -nohomedir log=GameServers.log -gtgameip 66.55.137.219 -gtgameport 23001


And that's a hundred items you have there, I'll add this to my server and see what happens.

ServerSubscribedWorkshopItems=945068622

ServerSubscribedWorkshopItems=1498677457

ServerSubscribedWorkshopItems=1545119022

ServerSubscribedWorkshopItems=872561694

ServerSubscribedWorkshopItems=785576438

ServerSubscribedWorkshopItems=1285074158

ServerSubscribedWorkshopItems=747826742

ServerSubscribedWorkshopItems=767211397

ServerSubscribedWorkshopItems=764145987

ServerSubscribedWorkshopItems=643383080

ServerSubscribedWorkshopItems=851455817

ServerSubscribedWorkshopItems=1258411772

ServerSubscribedWorkshopItems=1126487682

ServerSubscribedWorkshopItems=787605372

ServerSubscribedWorkshopItems=1343393833

ServerSubscribedWorkshopItems=948746887

ServerSubscribedWorkshopItems=709003594

ServerSubscribedWorkshopItems=644237239

ServerSubscribedWorkshopItems=1414800769

ServerSubscribedWorkshopItems=859997535

ServerSubscribedWorkshopItems=1171160129

ServerSubscribedWorkshopItems=803559396

ServerSubscribedWorkshopItems=642526083

ServerSubscribedWorkshopItems=785275912

ServerSubscribedWorkshopItems=1095633118

ServerSubscribedWorkshopItems=810350239

ServerSubscribedWorkshopItems=860731788

ServerSubscribedWorkshopItems=1136822851

ServerSubscribedWorkshopItems=1629999304

ServerSubscribedWorkshopItems=1115862210

ServerSubscribedWorkshopItems=933278648

ServerSubscribedWorkshopItems=652058206

ServerSubscribedWorkshopItems=1130264785

ServerSubscribedWorkshopItems=1638909363

ServerSubscribedWorkshopItems=912257997

ServerSubscribedWorkshopItems=1449325690

ServerSubscribedWorkshopItems=1201851852

ServerSubscribedWorkshopItems=650252240

ServerSubscribedWorkshopItems=1536001719

ServerSubscribedWorkshopItems=902676703

ServerSubscribedWorkshopItems=1150705478

ServerSubscribedWorkshopItems=772927125

ServerSubscribedWorkshopItems=770595119

ServerSubscribedWorkshopItems=1184172406

ServerSubscribedWorkshopItems=652710100

ServerSubscribedWorkshopItems=889441862

ServerSubscribedWorkshopItems=1151830494

ServerSubscribedWorkshopItems=643840752

ServerSubscribedWorkshopItems=1194298302

ServerSubscribedWorkshopItems=643269874

ServerSubscribedWorkshopItems=642421282

ServerSubscribedWorkshopItems=809848323

ServerSubscribedWorkshopItems=1385644777

ServerSubscribedWorkshopItems=1097832055

ServerSubscribedWorkshopItems=682290186

ServerSubscribedWorkshopItems=733191110

ServerSubscribedWorkshopItems=1560030802

ServerSubscribedWorkshopItems=1078152123

ServerSubscribedWorkshopItems=900540985

ServerSubscribedWorkshopItems=1210703659

ServerSubscribedWorkshopItems=828888529

ServerSubscribedWorkshopItems=773497728

ServerSubscribedWorkshopItems=643152606

ServerSubscribedWorkshopItems=840754106

ServerSubscribedWorkshopItems=642652221

ServerSubscribedWorkshopItems=904557127

ServerSubscribedWorkshopItems=863095088

ServerSubscribedWorkshopItems=857015700

ServerSubscribedWorkshopItems=642932553

ServerSubscribedWorkshopItems=642519803

ServerSubscribedWorkshopItems=1552908532

ServerSubscribedWorkshopItems=642437554

ServerSubscribedWorkshopItems=820046643

ServerSubscribedWorkshopItems=642348804

ServerSubscribedWorkshopItems=857129803

ServerSubscribedWorkshopItems=761183700

ServerSubscribedWorkshopItems=1111727089

ServerSubscribedWorkshopItems=645143066

ServerSubscribedWorkshopItems=1086468006

ServerSubscribedWorkshopItems=652844921

ServerSubscribedWorkshopItems=650235202

ServerSubscribedWorkshopItems=644247342

ServerSubscribedWorkshopItems=840419962

ServerSubscribedWorkshopItems=1379747486

ServerSubscribedWorkshopItems=1459063164

ServerSubscribedWorkshopItems=1349608011

ServerSubscribedWorkshopItems=1629586785

ServerSubscribedWorkshopItems=1576022361

ServerSubscribedWorkshopItems=1363355300

ServerSubscribedWorkshopItems=1270120351

ServerSubscribedWorkshopItems=824698748

ServerSubscribedWorkshopItems=1634556813

ServerSubscribedWorkshopItems=1617286052

ServerSubscribedWorkshopItems=643292527

ServerSubscribedWorkshopItems=1102122008

ServerSubscribedWorkshopItems=1207415072


As I see the path structure on installation I guess it is not your private server and you rent it somewhere?
 
Last edited:
Upvote 0
Correct, the server is leased from a third party. I have full admin privileges on it.

I did have a server in the past here at my home, but it was a pain to maintain it (the PC I hosted it on was one of my HTPC in my house), so I decided a third party option was a better solution.

I don't understand the nature of the errors above. To me it seems to indicate a missing texture or something, but there's no in-game issue that I can see from it.

Also, thanks for taking some of your personal time to help. I appreciate it.
 
Upvote 0