Raised This Month: $32 Target: $400
 8% 

Linux Auto Update


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
chaithresh
Member
Join Date: Oct 2016
Location: Mangalore
Old 03-30-2018 , 03:49   Linux Auto Update
Reply With Quote #1

I have 5 CSGO game servers running on a same machine and running a auto update script to autoupdate server.

Every time a new update comes only 1 out of 5 server gets auto updated and rest of the servers will be crashing infinity.

Server Operating System : Debian 8.7

Auto Update Script:

Update.sh file
PHP Code:
login anonymous
force_install_dir 
/mnt/vol1/ds/ts1/csgo
app_update 740
quit 
Start.sh
PHP Code:
Screen -"Server" ./srcds_run -game csgo -autoupdate -steam_dir "/mnt/vol1/ds/ts1" -steamcmd_script "/mnt/vol1/ds/ts1/Update.sh" -console -usercon -maxplayers_override 12 +net_public_adr 00.00.00.00 +ip 0.0.0.0 -port 0000 +game_type 0 +game_mode 1 +mapgroup mg_active +map de_inferno -tickrate 128 +sv_setsteamaccount XXXXX -net_port_try 1 +tv_port 000 +rcon_password Arandomgenericpassword 
chaithresh is offline
Kurtan
AlliedModders Donor
Join Date: Feb 2016
Location: Sweden
Old 03-30-2018 , 05:13   Re: Linux Auto Update
Reply With Quote #2

Have you pointed at each instance?

I've made the mistake in the past that the update.sh script contains the same directory path as another server, therefor not updating the server I think it is.
__________________
Kurtan is offline
chaithresh
Member
Join Date: Oct 2016
Location: Mangalore
Old 03-30-2018 , 05:45   Re: Linux Auto Update
Reply With Quote #3

Quote:
Originally Posted by Kurtan View Post
Have you pointed at each instance?

I've made the mistake in the past that the update.sh script contains the same directory path as another server, therefor not updating the server I think it is.
ts1 will change according to the server

ts1, ts2 , ts3, ts4, ts5

May be i might have made some mistakes on that, i will recheck and update it here..
chaithresh is offline
Cooky
Veteran Member
Join Date: Jun 2010
Location: 127.0.0.1
Old 03-30-2018 , 07:18   Re: Linux Auto Update
Reply With Quote #4

So, what contains Update.sh per server?
Cooky is offline
chaithresh
Member
Join Date: Oct 2016
Location: Mangalore
Old 03-31-2018 , 06:44   Re: Linux Auto Update
Reply With Quote #5

Quote:
Originally Posted by Cooky View Post
So, what contains Update.sh per server?
Update.sh file.

PHP Code:
login anonymous
force_install_dir 
/mnt/vol1/ds/ts1/csgo
app_update 740
quit 
I checked all the Update.sh and start.sh files i have written correct directories in all.
chaithresh is offline
ghostofmybrain
Veteran Member
Join Date: Mar 2010
Old 03-31-2018 , 06:59   Re: Linux Auto Update
Reply With Quote #6

Your update files should be a text file. I don't know how those files could possibly be allowing the first to update but not the rest, but it's definitely worth checking if that's the issue.

Here is an example of my files.

startup.sh to run the server
Code:
#!/bin/bash

screen -X -S deathaim quit
sleep 4
cd /home/csgouser/go/aimdm
/usr/bin/screen -dmS deathaim ./srcds_run -game csgo +game_type 0 +game_mode 0 +host_workshop_collection 549960078 +workshop_start_map 125995702 -authkey xx -ip xx +port 27024 +sv_disable_motd 0 -usercon -nowatchdog -tickrate 128 -nohltv -autoupdate -steam_dir /home/csgouser/go/steamcmd -steamcmd_script aimdm.txt

update.txt to update the server (although I name it something besides update.txt)
Code:
login anonymous
force_install_dir /home/csgouser/go/aimdm/
app_update 740
exit
__________________
Boycott ESEA
My servers

Last edited by ghostofmybrain; 03-31-2018 at 07:13.
ghostofmybrain is offline
chaithresh
Member
Join Date: Oct 2016
Location: Mangalore
Old 03-31-2018 , 08:24   Re: Linux Auto Update
Reply With Quote #7

Quote:
Originally Posted by ghostofmybrain View Post
Your update files should be a text file. I don't know how those files could possibly be allowing the first to update but not the rest, but it's definitely worth checking if that's the issue.

Here is an example of my files.

startup.sh to run the server
Code:
#!/bin/bash

screen -X -S deathaim quit
sleep 4
cd /home/csgouser/go/aimdm
/usr/bin/screen -dmS deathaim ./srcds_run -game csgo +game_type 0 +game_mode 0 +host_workshop_collection 549960078 +workshop_start_map 125995702 -authkey xx -ip xx +port 27024 +sv_disable_motd 0 -usercon -nowatchdog -tickrate 128 -nohltv -autoupdate -steam_dir /home/csgouser/go/steamcmd -steamcmd_script aimdm.txt

update.txt to update the server (although I name it something besides update.txt)
Code:
login anonymous
force_install_dir /home/csgouser/go/aimdm/
app_update 740
exit
I used to use .txt before had the same issue so read in some thread about having a .sh file and both are working same way.
chaithresh is offline
Mikado
Senior Member
Join Date: Nov 2012
Location: don't know where :/
Old 03-31-2018 , 09:29   Re: Linux Auto Update
Reply With Quote #8

i suggest you to use Linux GSM, it has all features that you need and more ;)
Mikado is offline
ghostofmybrain
Veteran Member
Join Date: Mar 2010
Old 03-31-2018 , 14:52   Re: Linux Auto Update
Reply With Quote #9

Quote:
Originally Posted by chaithresh View Post
I used to use .txt before had the same issue so read in some thread about having a .sh file and both are working same way.
Well whatever thread you thread you read that in was wrong.

What happens if you just run each line of the failing update scripts? (ie, open the steam cmd and type in those lines, preferably copy/paste)

Have you noticed any random CSGO directories in a root directory somewhere that would indicate that the file paths aren't being correctly followed?

Does the one that doesn't work include this in the command line?

Code:
-steam_dir "/mnt/vol1/ds/ts2" -steamcmd_script "/mnt/vol1/ds/ts2/Update.sh"
EDIT: It would be nice if you actually just posted what they are, instead of basically saying, "They're exactly the same, but different, but they don't work even though they're identical, except different."
__________________
Boycott ESEA
My servers

Last edited by ghostofmybrain; 03-31-2018 at 15:44.
ghostofmybrain is offline
chaithresh
Member
Join Date: Oct 2016
Location: Mangalore
Old 04-21-2018 , 04:30   Re: Linux Auto Update
Reply With Quote #10

I figured out some thing. The reason why the server was not auto updating because i set sv_hibernate_when_empty to 0 and the server was not hibernating nor changing the map so it couldn't run the update script.

So this error was popping out.

Your server is out of date and will be shutdown during hibernation or change level, whichever comes first.

So i had to do change level and it ran the script and updated the server and started.

_____________________________________________ _________________________

I have one more question the command sv_hibernate_when_empty, if i change it on the go, i mean between the game, will it work?

Last edited by chaithresh; 04-21-2018 at 04:38.
chaithresh 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:15.


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