When the download of a standard game server fails for 9 times in a row, the error message
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Occurs which hides the original error of why the download was failing.
Seems to relate to install_server_files.sh#L79 as this is clearing the steamcmd and trying to re-extract. More debug is required to find the root cause
Steps to reproduce the behaviour:
Warning! SteamCMD did not complete the download, retrying: Attempt 9
Removing
[ERROR ] Install csgoserver: SteamCMD is missing
mkdir: created directory '/home/ubuntu/csgo/steamcmd'
extracting steamcmd_linux.tar.gz...OK
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
/home/ubuntu/csgo/lgsm/functions/install_server_files.sh: line 102: ./steamcmd.sh: No such file or directory
The steamcmd remove and replace to work successfully, and therefore not hide the original error message.
relates to #2139
Good bug report thank you.
LinxuGSM now has error checking for SteamCMD so this issue is now very unlikely to ever occur
Most helpful comment
Good bug report thank you.