• New Gmod Update Broke ULib: Cannot Start Server Need Help
    3 replies, posted
After the Garry's Mod Update my server cannot start due to the following error and I need help understanding how to fix this: [ERROR] unable to find CNetChan::IsValidFileForTransfer   1. unknown - [C]:-1    2. require - [C]:-1     3. fn - lua/autorun/server/sv_a2scache.lua:2      4. unknown - addons/ulib-master/lua/ulib/shared/hook.lua:109 hook.lua -- Called by the engine -- function Call( name, gm, ... )     --     -- Run hooks     --     local HookTable = Hooks[ name ]     if ( HookTable != nil ) then         for i=-2, 2 do             for k, v in pairs( HookTable[ i ] ) do                 if ( v.isstring ) then                     --                     -- If it's a string, it's cool                     --                     local a, b, c, d, e, f = v.fn( ... ) --Line 109 (Error)                     if ( a != nil && i > -2 && i < 2 ) then                         return a, b, c, d, e, f                     end                 else --Snipped to save chatacters.                 end             end         end     end     --     -- Call the gamemode function     --     if ( !gm ) then return end     local GamemodeFunction = gm[ name ]     if ( GamemodeFunction == nil ) then return end     return GamemodeFunction( gm, ... ) end sv_a2scache.lua hook.Add('Initialize', 'serversecure initialization', function() require('serversecure.core') --Line 2 (Error) serversecure.EnableThreadedSocket(true) -- receives packets from the game socket on another thread (as well as analyzing it) serversecure.EnablePacketValidation(true) -- validates packets for having correct types, size, content, etc. serversecure.EnableInfoCache(true) -- enable A2S_INFO response cache serversecure.SetInfoCacheTime(5) -- seconds for cache to live (default is 5 seconds) serversecure.EnableQueryLimiter(false) -- enable query limiter (similar to Source's one but all handled on the same place) serversecure.SetMaxQueriesWindow(60) -- timespan over which to average query counts from IPs (default is 30 seconds) serversecure.SetMaxQueriesPerSecond(2) -- maximum queries per second from a single IP (default is 1 per second) serversecure.SetGlobalMaxQueriesPerSecond(120) -- maximum total queries per second (default is 60 per second) serversecure.RefreshInfoCache() print('Loaded A2S Cache') end) local highestcount = 0 timer.Create('PlayerStatCache', 10, 0, function() if serversecure and (#player.GetAll() > highestcount) then highestcount = #player.GetAll() print('A2S Cache: buffing stats') serversecure.RefreshInfoCache() end end) I'm not sure where to look for serversecure.core. I cannot locate it in any includes or module folder. What is going here to prevent the server from starting? The game update logs are found here: https://gmod.facepunch.com/blog/october-2018-update/
ULib isn't broken, whatever is using gmsv_serversecure is broken. It's broken because it can't find CNetChan::IsValidFileForTransfer, report it on the github (https://github.com/danielga/gmsv_serversecure).
What about if you take that as2 module out from your server, it's your host who needs to fix this, not you
I've commented out sv_a2scache.lua and restarted the server successfully. There seems to be an update to A2S available from the host now. Thanks to the both of you for the help.
Sorry, you need to Log In to post a reply to this thread.