Raised This Month: $51 Target: $400
 12% 

Multiple servers from same SRCDS installation => Bad?


Post New Thread Reply   
 
Thread Tools Display Modes
h3bus
AlliedModders Donor
Join Date: Nov 2013
Old 09-26-2014 , 03:28   Re: Multiple servers from same SRCDS installation => Bad?
Reply With Quote #21

I use multiple servers on the same install directory. Only sourcemod dirs are duplicated.

I disabled auto-update and the script takes care of shutting down all the server on the same directory before updating.

I can share that script if needed, it handles:
- Server start according to configuration
- Server status check using a self compiled RCON binary I can share too
- Server restart and stop
- And OFC server update

Last edited by h3bus; 09-26-2014 at 03:28.
h3bus is offline
Neevar
Senior Member
Join Date: Mar 2014
Old 09-26-2014 , 04:20   Re: Multiple servers from same SRCDS installation => Bad?
Reply With Quote #22

maybe i would wanna know how to disable auto-update?

I was wondering about how i can go about shutting down and restarting servers, was looking at cron jobs. should i use cron jobs to shutdown and restart the servers?
Neevar is offline
h3bus
AlliedModders Donor
Join Date: Nov 2013
Old 09-26-2014 , 04:24   Re: Multiple servers from same SRCDS installation => Bad?
Reply With Quote #23

Juste remove -autoupdate from commandline.

I do use Crontab (calling my script) to check/Restart/update server
h3bus is offline
Neevar
Senior Member
Join Date: Mar 2014
Old 09-26-2014 , 23:08   Re: Multiple servers from same SRCDS installation => Bad?
Reply With Quote #24

just some update guys

i googled abit more about the debug.log and one solution said that it was due to corrupted binaries.

So i deleted ~/mastergame/bin and ~/mastergame/left4dead2/bin as instructed and ran a steamcmd app_update with -validate

it's gonna be almost 24hours it's up and running without crash. will continue to monitor.
Neevar is offline
Neevar
Senior Member
Join Date: Mar 2014
Old 09-27-2014 , 00:03   Re: Multiple servers from same SRCDS installation => Bad?
Reply With Quote #25

just as i posted that, i got a crash log.

Code:
Program terminated with signal SIGSEGV, Segmentation fault.
#0  0xb6bcea59 in Sys_Error_Internal(bool, char const*, char*) () from /home/game-server/GS1_PureVanillaVersus/bin/engine_srv.so
#0  0xb6bcea59 in Sys_Error_Internal(bool, char const*, char*) () from /home/game-server/GS1_PureVanillaVersus/bin/engine_srv.so
#1  0xb6bceb20 in Sys_Error(char const*, ...) () from /home/game-server/GS1_PureVanillaVersus/bin/engine_srv.so
#2  0xb6bceb96 in CEngineConsoleLoggingListener::Log(LoggingContext_t const*, char const*) () from /home/game-server/GS1_PureVanillaVersus/bin/engine_srv.so
#3  0xb73a7529 in CLoggingSystem::LogDirect(int, LoggingSeverity_t, Color, char const*) () from bin/libtier0_srv.so
#4  0xb73a5b76 in Error () from bin/libtier0_srv.so
#5  0xb6bc01c4 in SV_PackEntity(int, edict_t*, ServerClass*, CFrameSnapshot*) () from /home/game-server/GS1_PureVanillaVersus/bin/engine_srv.so
#6  0xb6bc1d3d in CParallelProcessor<PackWork_t, CFuncJobItemProcessor<PackWork_t>, 1>::Run(PackWork_t*, unsigned int, int, IThreadPool*) () from /home/game-server/GS1_PureVanillaVersus/bin/engine_srv.so
#7  0xb6bc0d89 in PackEntities_Normal(int, CGameClient**, CFrameSnapshot*) () from /home/game-server/GS1_PureVanillaVersus/bin/engine_srv.so
#8  0xb6bc1208 in SV_ComputeClientPacks(int, CGameClient**, CFrameSnapshot*) () from /home/game-server/GS1_PureVanillaVersus/bin/engine_srv.so
#9  0xb6bb9bd6 in CGameServer::SendClientMessages(bool) () from /home/game-server/GS1_PureVanillaVersus/bin/engine_srv.so
#10 0xb6bb9e71 in SV_SendClientUpdates(bool, bool) () from /home/game-server/GS1_PureVanillaVersus/bin/engine_srv.so
#11 0xb6bba1e3 in SV_Frame(bool) () from /home/game-server/GS1_PureVanillaVersus/bin/engine_srv.so
#12 0xb6b3add7 in _Host_RunFrame_Server(bool) () from /home/game-server/GS1_PureVanillaVersus/bin/engine_srv.so
#13 0xb6b3c4cb in _Host_RunFrame(float) () from /home/game-server/GS1_PureVanillaVersus/bin/engine_srv.so
#14 0xb6b46b50 in CHostState::State_Run(float) () from /home/game-server/GS1_PureVanillaVersus/bin/engine_srv.so
#15 0xb6b46d5e in CHostState::FrameUpdate(float) () from /home/game-server/GS1_PureVanillaVersus/bin/engine_srv.so
#16 0xb6b46e69 in HostState_Frame(float) () from /home/game-server/GS1_PureVanillaVersus/bin/engine_srv.so
#17 0xb6bd2953 in CEngine::Frame() () from /home/game-server/GS1_PureVanillaVersus/bin/engine_srv.so
#18 0xb6bcfa66 in CDedicatedServerAPI::RunFrame() () from /home/game-server/GS1_PureVanillaVersus/bin/engine_srv.so
#19 0xb6e28a7c in RunServerIteration(bool) () from bin/dedicated_srv.so
#20 0xb6e28b18 in RunServer(bool) () from bin/dedicated_srv.so
#21 0xb6bcfb4d in CModAppSystemGroup::Main() () from /home/game-server/GS1_PureVanillaVersus/bin/engine_srv.so
#22 0xb6c20c30 in CAppSystemGroup::Run() () from /home/game-server/GS1_PureVanillaVersus/bin/engine_srv.so
#23 0xb6bcfdef in CDedicatedServerAPI::ModInit(ModInfo_t&) () from /home/game-server/GS1_PureVanillaVersus/bin/engine_srv.so
#24 0xb6e28bf0 in CDedicatedAppSystemGroup::Main() () from bin/dedicated_srv.so
#25 0xb6e47a70 in CAppSystemGroup::Run() () from bin/dedicated_srv.so
#26 0xb6e47a70 in CAppSystemGroup::Run() () from bin/dedicated_srv.so
#27 0xb6df4415 in main () from bin/dedicated_srv.so
#28 0x080486f1 in main ()
I'm going to most likely change OS and see if it does the same thing.
Neevar is offline
Ellie
Senior Member
Join Date: Apr 2013
Old 09-28-2014 , 16:27   Re: Multiple servers from same SRCDS installation => Bad?
Reply With Quote #26

Quote:
Originally Posted by joropito View Post
Use linux.
Make a common repository (steamcmd installation), then make 1 folder for each server, COPY instance specific files and make symbolic links to common files.

I've used this layout and it works very well.
Also you get IO improved because of disk cache. (Remember you load big files once on disk cache this way).
Does anyone know how to do this on Windows? I've seen some youtube videos on people running CSS, TF2 and L4D2 and have multiple servers run with only one installation of the game server, and each server has different configurations. All this was done on Windows. I'd love to read up on how it's done so I can try it. Anyone know? I'm surprised this info is not more readily available, or at least I can't find anything on it, for Windows anyway.

Last edited by Ellie; 09-28-2014 at 16:32.
Ellie is offline
Neevar
Senior Member
Join Date: Mar 2014
Old 09-28-2014 , 22:44   Re: Multiple servers from same SRCDS installation => Bad?
Reply With Quote #27

the command you're looking for is mklink

There's also a gui method of which I have used before when I hosted in windows server. (drop as symbolic link, not hard link)
Neevar is offline
Neevar
Senior Member
Join Date: Mar 2014
Old 09-29-2014 , 10:28   Re: Multiple servers from same SRCDS installation => Bad?
Reply With Quote #28

so now, only 1 server crashes constantly.
the tank server
today's crash debug

Code:
#0  0xe45393e2 in ?? ()
#0  0xe45393e2 in ?? ()
#1  <signal handler called>
#2  0xf6c24a59 in Sys_Error_Internal(bool, char const*, char*) () from /home/game-server/GS4_TankMod/bin/engine_srv.so
#3  0xf6c24b20 in Sys_Error(char const*, ...) () from /home/game-server/GS4_TankMod/bin/engine_srv.so
#4  0xf6b8fa10 in Host_Error(char const*, ...) () from /home/game-server/GS4_TankMod/bin/engine_srv.so
#5  0xf6c3ad60 in CVEngineServer::PrecacheModel(char const*, bool) () from /home/game-server/GS4_TankMod/bin/engine_srv.so
#6  0xe8f9d178 in PrecacheModel(SourcePawn::IPluginContext*, int const*) () from /home/game-server/GS4_TankMod/left4dead2/addons/sourcemod/bin/sourcemod.2.l4d2.so
#7  0x09f59d74 in ?? ()
#8  0xe8e428e1 in JITX86::InvokeFunction(BaseRuntime*, JitFunction*, int*) () from /home/game-server/GS4_TankMod/left4dead2/addons/sourcemod/bin/sourcepawn.jit.x86.so
#9  0xff966f64 in ?? ()
EDIT: Crash was result of an outdated gamedata file. So far there isn't any crash on any servers.

Basically what i did was to reinstall the OS and setup everything from scratch once again. No problem so far.

Last edited by Neevar; 09-30-2014 at 05:06.
Neevar is offline
Neevar
Senior Member
Join Date: Mar 2014
Old 10-02-2014 , 22:34   Re: Multiple servers from same SRCDS installation => Bad?
Reply With Quote #29

Hi guys,

I'm currently looking into crontabs and was wondering,

should I setup as such that my server is shut down and re-started every day in the wee hours of morning (usually 3am where there is no one in the server)

Is restarting the servers daily a good or a bad thing?
Neevar is offline
Ellie
Senior Member
Join Date: Apr 2013
Old 10-02-2014 , 22:40   Re: Multiple servers from same SRCDS installation => Bad?
Reply With Quote #30

Quote:
Originally Posted by Neevar View Post
the command you're looking for is mklink

There's also a gui method of which I have used before when I hosted in windows server. (drop as symbolic link, not hard link)

Cool. I'll be sure to look into it. Thanks.

Oh and BTW, that message about "server_message quit" did that happen when you restarted the server or did you manually enter the quit command? If it happened on it's own,, that is not normal.


Quote:
Originally Posted by Neevar View Post
Is restarting the servers daily a good or a bad thing?
I've heard people saying it's beneficial to do that, but I call BS on that. I've had one server running for 2 months right now with out a single restart and it's still running right now with no issues. I guess restarting is good for those servers that are not stable when you have too many player slots or mods being used at once (and there's a lot of those out there) or possible bad configuration or conflicts between mods.

Last edited by Ellie; 10-02-2014 at 22:44.
Ellie is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 21:57.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode