[GH-ISSUE #3271] [BUG] Updating csgoserver: SteamCMD: Unknown error occured #2266

Closed
opened 2026-02-27 03:01:50 +03:00 by kerem · 6 comments
Owner

Originally created by @EvanChrisp on GitHub (Feb 18, 2021).
Original GitHub issue: https://github.com/GameServerManagers/LinuxGSM/issues/3271

User Story

As a user, I want a better error message so that i am able to debug easier.

Basic info

  • Distro: Debian 10
  • Game: CSGO
  • Command: update
  • LinuxGSM version: v21.1.3

Further Information

I have 2 CSGO servers and the maps folder is symlinked so that I can save time and storage. But when I updated the 2nd server i received the error
Connecting anonymously to Steam Public...Logged in OK Waiting for user info...OK Update state (0x3) reconfiguring, progress: 0.00 (0 / 0) Error! App '740' state is 0x606 after update job. Error! Updating csgoserver: SteamCMD: Unknown error occured Failure! Updating csgoserver: SteamCMD: Did not complete the download, too many retrys

It took me a while to debug, but i finally realised it was because the 2nd server user didnt have write permissions to the linked maps folder. I imagine this error would happen with most games if the game files are symlinked.

To Reproduce

Steps to reproduce the behaviour:

  1. Symlink game files
  2. Attempt to update the 2nd server
  3. See error

Expected behaviour

This can be fixed by giving write permissions to the 2nd user. But an error message explaining the permissions issue would help people with this issue in the future.

Originally created by @EvanChrisp on GitHub (Feb 18, 2021). Original GitHub issue: https://github.com/GameServerManagers/LinuxGSM/issues/3271 ## User Story As a user, I want a better error message so that i am able to debug easier. ## Basic info * **Distro:** Debian 10 * **Game:** CSGO * **Command:** update * **LinuxGSM version:** v21.1.3 ## Further Information I have 2 CSGO servers and the maps folder is symlinked so that I can save time and storage. But when I updated the 2nd server i received the error `Connecting anonymously to Steam Public...Logged in OK Waiting for user info...OK Update state (0x3) reconfiguring, progress: 0.00 (0 / 0) Error! App '740' state is 0x606 after update job. Error! Updating csgoserver: SteamCMD: Unknown error occured Failure! Updating csgoserver: SteamCMD: Did not complete the download, too many retrys ` It took me a while to debug, but i finally realised it was because the 2nd server user didnt have write permissions to the linked maps folder. I imagine this error would happen with most games if the game files are symlinked. ## To Reproduce Steps to reproduce the behaviour: 1. Symlink game files 2. Attempt to update the 2nd server 3. See error ## Expected behaviour This can be fixed by giving write permissions to the 2nd user. But an error message explaining the permissions issue would help people with this issue in the future.
Author
Owner

@rconjoe commented on GitHub (Feb 18, 2021):

This isn't a bug in LinuxGSM. As symlinked files to not have independent permissions and inherit the permissions of the files they point to, this behavior is expected.

<!-- gh-comment-id:781122091 --> @rconjoe commented on GitHub (Feb 18, 2021): This isn't a bug in LinuxGSM. As symlinked files to not have independent permissions and inherit the permissions of the files they point to, this behavior is expected.
Author
Owner

@dgibbs64 commented on GitHub (Feb 18, 2021):

This will be an interesting one for the docs. I am compiling a list of errors for steamcmd

https://docs.linuxgsm.com/steamcmd/errors#error-0x606

We have no info on the error itself. If still available @EvanChrisp please can you provide the steamcmd content.log

https://docs.linuxgsm.com/steamcmd/errors#steamcmd-logs

It would suggest that a permissions issue caused the problem. This is normally picked up by LinuxGSM but since there is an edge case of using a symlink it probably missed it.

Re-opening to to gather more info on the error message. Once confirmed LinuxGSM we can update the docs and will be able to output a usage error message here https://github.com/GameServerManagers/LinuxGSM/blob/master/lgsm/functions/core_dl.sh#L89

<!-- gh-comment-id:781152588 --> @dgibbs64 commented on GitHub (Feb 18, 2021): This will be an interesting one for the docs. I am compiling a list of errors for steamcmd https://docs.linuxgsm.com/steamcmd/errors#error-0x606 We have no info on the error itself. If still available @EvanChrisp please can you provide the steamcmd content.log https://docs.linuxgsm.com/steamcmd/errors#steamcmd-logs It would suggest that a permissions issue caused the problem. This is normally picked up by LinuxGSM but since there is an edge case of using a symlink it probably missed it. Re-opening to to gather more info on the error message. Once confirmed LinuxGSM we can update the docs and will be able to output a usage error message here https://github.com/GameServerManagers/LinuxGSM/blob/master/lgsm/functions/core_dl.sh#L89
Author
Owner

@EvanChrisp commented on GitHub (Feb 18, 2021):

Hopefully this helps.

content_log.txt

<!-- gh-comment-id:781179805 --> @EvanChrisp commented on GitHub (Feb 18, 2021): Hopefully this helps. [content_log.txt](https://github.com/GameServerManagers/LinuxGSM/files/6001324/content_log.txt)
Author
Owner

@dgibbs64 commented on GitHub (Feb 18, 2021):

@EvanChrisp thats brilliant thanks.

[2021-02-18 02:23:13] AppID 740 state changed : Update Required,Fully Installed,Update Queued,Update Started, (Disk write failure)

Pretty much confirms the permissions issue.

I'm assuming this is the symlink?

/home/csgoserver3/serverfiles/csgo/maps/cfg
<!-- gh-comment-id:781187786 --> @dgibbs64 commented on GitHub (Feb 18, 2021): @EvanChrisp thats brilliant thanks. ``` [2021-02-18 02:23:13] AppID 740 state changed : Update Required,Fully Installed,Update Queued,Update Started, (Disk write failure) ``` Pretty much confirms the permissions issue. I'm assuming this is the symlink? ``` /home/csgoserver3/serverfiles/csgo/maps/cfg ```
Author
Owner

@EvanChrisp commented on GitHub (Feb 18, 2021):

I'm assuming this is the symlink?

/home/csgoserver3/serverfiles/csgo/maps/cfg

The symlink is just /home/csgoserver3/serverfiles/csgo/maps/, but it appears the file
/maps/cfg/guardian_op10_mirage_b.cfg got updated in todays CSGO update, so i assume that was the reason it was attempting to write to the /cfg/ folder

<!-- gh-comment-id:781191222 --> @EvanChrisp commented on GitHub (Feb 18, 2021): > I'm assuming this is the symlink? > > ``` > /home/csgoserver3/serverfiles/csgo/maps/cfg > ``` The symlink is just /home/csgoserver3/serverfiles/csgo/maps/, but it appears the file `/maps/cfg/guardian_op10_mirage_b.cfg` got updated in todays CSGO update, so i assume that was the reason it was attempting to write to the /cfg/ folder
Author
Owner

@github-actions[bot] commented on GitHub (Dec 21, 2022):

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

<!-- gh-comment-id:1360517265 --> @github-actions[bot] commented on GitHub (Dec 21, 2022): This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Sign in to join this conversation.
No labels
Atomic
Epic
cannot reproduce
command: backup
command: console
command: debug
command: details
command: fast-dl
command: install
command: mods
command: monitor
command: post-details
command: restart
command: send
command: start
command: stop
command: update
command: update-lgsm
command: validate
command: wipe
distro: AlmaLinux
distro: Arch Linux
distro: CentOS
distro: Debian
distro: Fedora
distro: RedHat
distro: Rocky Linux
distro: Ubuntu
distro: openSUSE
engine: goldsrc
engine: source
game: 7 Days to Die
game: ARMA 3
game: Ark: Survival Evolved
game: Assetto Corsa
game: Avorion
game: BATTALION: Legacy
game: Barotrauma
game: Battalion 1944
game: Battlefield 1942
game: Black Mesa: Deathmatch
game: Blade Symphony
game: Call of Duty 2
game: Call of Duty 4
game: Call of Duty: United Offensive
game: Counter-Strike 1.6
game: Counter-Strike 2
game: Counter-Strike: Global Offensive
game: Counter-Strike: Source
game: Day of Infamy
game: Dayz
game: Death Match Classic
game: Don't Starve Together
game: ET: Legacy
game: Eco
game: Factorio
game: Factorio
game: Garry's Mod
game: Half-Life
game: Hurtword
game: Insurgecy
game: Insurgecy
game: Insurgency: Sandstorm
game: Just Cause 3
game: Killing Floor
game: Killing Floor 2
game: Left 4 Dead 2
game: Minecraft
game: Minecraft Bedrock
game: Mordhau
game: Multi Theft Auto
game: Mumble
game: Natural Selection 2
game: No More Room in Hell
game: Pavlov VR
game: Post Scriptum
game: Project Zomboid
game: Quake 3
game: QuakeWorld
game: Red Orchestra: Ostfront 41-45
game: Return to Castle Wolfenstein
game: Rising World
game: Rust
game: San Andreas Multiplayer
game: Satisfactory
game: Soldat
game: Soldier of Fortune 2
game: Squad
game: Squad 44
game: Starbound
game: Stationeers
game: Sven Co-op
game: Team Fortress 2
game: Teamspeak 3
game: Teeworlds
game: Terraria
game: The Front
game: Unreal Tournament 2004
game: Unreal Tournament 3
game: Unreal Tournament 99
game: Unturned
game: Valheim
game: Wurm Unlimited
game: Zombie Master Reborn
game: label missing
good first issue
help wanted
info: alerts
info: dependency
info: docker
info: docs
info: email
info: query
info: steamcmd
info: systemd
info: tmux
info: website
info: website
needs more info
outcome: duplicate
outcome: issue resolved
outcome: issue resolved
outcome: issue unresolved
outcome: pr accepted
outcome: pr rejected
outcome: unconfirmed
outcome: wontfix
outcome: wrong forum
potential-duplicate
priority
pull-request
type: bug
type: feature
type: feature
type: feature request
type: game server request
type: refactor
waiting response
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/LinuxGSM#2266
No description provided.