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

Solved [Debian & Ubuntu] steamcmd auto-update broken since latest update?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
asdfxD
Veteran Member
Join Date: Apr 2011
Old 01-23-2018 , 22:23   [Debian & Ubuntu] steamcmd auto-update broken since latest update?
Reply With Quote #1

hi,

my steamcmd is not auto-updating my go servers anymore.

it just say in log:

Updating server using Steam.
---------------------------------
./srcds_run: 1: eval: ./steam.sh: not found
---------------------------------

linux debian 9

command line is:
./srcds_run -game csgo ... -autorestart -autoupdate -steam_dir /home/steamcmd -steamcmd_script /home/steamcmd/27015.txt

it was working fine always but for some reason it doesnt work anymore even after a clean debian installation.

edit:

i tried a different server with ubuntu and there is the same issue!!!

Last edited by asdfxD; 01-24-2018 at 13:44.
asdfxD is offline
Kurtan
AlliedModders Donor
Join Date: Feb 2016
Location: Sweden
Old 01-24-2018 , 12:27   Re: [Debian & Ubuntu] steamcmd auto-update broken since latest update?
Reply With Quote #2

My updates are just fine. Can you show your file structur and the content of 27015.txt?
__________________
Kurtan is offline
asdfxD
Veteran Member
Join Date: Apr 2011
Old 01-24-2018 , 12:42   Re: [Debian & Ubuntu] steamcmd auto-update broken since latest update?
Reply With Quote #3

its all correct.

gameservers are here:

/home/gameserver/..

steamcmd here:

/home/steamcmd

content of 27015.txt

@ShutdownOnFailedCommand 1
@NoPromptForPassword 1
login anonymous
force_install_dir /home/gameserver/csgo27015
app_update 740
quit

as i said it was working fine in the past but after the latest csgo update it doesnt.

steamcmd self works fine (manually updates & new installs)

cd /home/steamcmd
./steamcmd.sh
login anonymous
force_install_dir /home/gameserver/csgo27015
app_update 740

all these commands are working fine.

edit: i installed opengamepanel on second ubuntu server and auto update works with ogp. srsly ...

edit 2: i think the srcds_run file is wrong by default.

PHP Code:
updatesingle() {
    
# Run the steam update
    # exits on failure if STEAMERR is set

    
if test -"$AUTO_UPDATE"then
        
if test -"$STEAM_DIR"then
            
echo "Updating server using Steam."
            
echo "----------------------------"
            
OLDWD=$(pwd)
            eval 
"cd $STEAM_DIR"
            
eval "STEAMEXE=steamcmd ./steam.sh +runscript $STEAMCMD_SCRIPT"
            
eval "cd $OLDWD"
            
echo "----------------------------"
        
else
            if 
test -"$STEAMERR"then
                
echo "ERROR: Could not locate steam dir:$STEAM_DIR, exiting.";
                
quit 1
            
else
                echo 
"WARNING: Could not locate steam dir:$STEAM_DIR, ignoring."
                
return 0
            fi
        fi
    fi

    
return 1

so i changed this line:

PHP Code:
eval "STEAMEXE=steamcmd ./steam.sh +runscript $STEAMCMD_SCRIPT
to

PHP Code:
eval "STEAMEXE=steamcmd ./steamcmd.sh +runscript $STEAMCMD_SCRIPT
and it works now, wtf? dunno why they use steam.sh when it's steamcmd.sh .... i can't even start steam with this command "STEAMEXE=steamcmd ./steam.sh" only "STEAMEXE=steamcmd ./steamcmd.sh" or simply "./steamcmd.sh" works.




Last edited by asdfxD; 01-24-2018 at 13:49.
asdfxD 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 12:46.


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