[GH-ISSUE #704] Check free space on install & whenever required #567

Closed
opened 2026-02-27 02:02:21 +03:00 by kerem · 13 comments
Owner

Originally created by @UltimateByte on GitHub (Feb 18, 2016).
Original GitHub issue: https://github.com/GameServerManagers/LinuxGSM/issues/704

I saw quite a few people failing to install because of not enough free space.
Would be cool to set some space requirements for all of the servers, warning the user before installing if LGSM thinks there is not enough free space.
@dgibbs64 Please, assign one of us if you want this function.

I wish we could put this as a message :
"You can't even install that game server onto your machine because you're a jerk that has less than X GB free space in 2016. Unless required server files has gone down (which is quite unlikely) since the last time we updated server sizes in LGSM, you won't be able to install it. Do you want to continue anyway ?"

Originally created by @UltimateByte on GitHub (Feb 18, 2016). Original GitHub issue: https://github.com/GameServerManagers/LinuxGSM/issues/704 I saw quite a few people failing to install because of not enough free space. Would be cool to set some space requirements for all of the servers, warning the user before installing if LGSM thinks there is not enough free space. @dgibbs64 Please, assign one of us if you want this function. I wish we could put this as a message : "You can't even install that game server onto your machine because you're a jerk that has less than X GB free space in 2016. Unless required server files has gone down (which is quite unlikely) since the last time we updated server sizes in LGSM, you won't be able to install it. Do you want to continue anyway ?"
Author
Owner

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

lol. Well there is no way for me to do this as such. If we can catch the steamCMD error code for not enough disk space then we can output the error.

<!-- gh-comment-id:185863370 --> @dgibbs64 commented on GitHub (Feb 18, 2016): lol. Well there is no way for me to do this as such. If we can catch the steamCMD error code for not enough disk space then we can output the error.
Author
Owner

@UltimateByte commented on GitHub (Feb 18, 2016):

The errors codes are :

Displayed to the user :

Error! App '232250' state is 0x202 after update job.

And in Steam/logs/content_log.txt:

[2016-02-14 16:14:14] AppID 232250 update canceled : Not enough disk space available in "/home/tf2server/serverfiles/steamapps/downloading/232250", 5969 MB needed, 5845 MB available (Not enough disk space)

We could add typical disk space usage into the code for every server, and make a check using :

df -h --block-size=1GB ${rootdir}

Then we could substract the server size to that result, and Warn if needed :

[WARNING] After the installation, you will only have around X GB disk space left on your partition
Continue ? yN

Or if disk space won't be enough :

[WARNING] It seems like you don't have enough disk space to install that server
Available : X GB
Required : XX GB
Continue ? yN

Then, if it encounters the typical steam error, stop the installer with an error

[ERROR] Not enough free space

@dgibbs64 This method would be applied to SteamCMD only, but it would also be great to manage the lack of free space before downloading a new server or file using an archive format, if you get what i suggest. ^^

<!-- gh-comment-id:185931650 --> @UltimateByte commented on GitHub (Feb 18, 2016): The errors codes are : Displayed to the user : `Error! App '232250' state is 0x202 after update job.` And in Steam/logs/content_log.txt: `[2016-02-14 16:14:14] AppID 232250 update canceled : Not enough disk space available in "/home/tf2server/serverfiles/steamapps/downloading/232250", 5969 MB needed, 5845 MB available (Not enough disk space)` We could add typical disk space usage into the code for every server, and make a check using : `df -h --block-size=1GB ${rootdir}` Then we could substract the server size to that result, and Warn if needed : ``` [WARNING] After the installation, you will only have around X GB disk space left on your partition Continue ? yN ``` Or if disk space won't be enough : ``` [WARNING] It seems like you don't have enough disk space to install that server Available : X GB Required : XX GB Continue ? yN ``` Then, if it encounters the typical steam error, stop the installer with an error `[ERROR] Not enough free space` @dgibbs64 This method would be applied to SteamCMD only, but it would also be great to manage the lack of free space before downloading a new server or file using an archive format, if you get what i suggest. ^^
Author
Owner

@dgibbs64 commented on GitHub (Apr 24, 2016):

I like this idea I would like to confirm SteamCMD exit code for this it may be 202 im guessing. however its easy to simulate lack of disk space so this is very possible. I think this will be a feature to add after the current development branch is released

<!-- gh-comment-id:214055671 --> @dgibbs64 commented on GitHub (Apr 24, 2016): I like this idea I would like to confirm SteamCMD exit code for this it may be 202 im guessing. however its easy to simulate lack of disk space so this is very possible. I think this will be a feature to add after the current development branch is released
Author
Owner

@dgibbs64 commented on GitHub (May 21, 2016):

would also like to add a disk check for updates and if the installer fails during install

Warning! SteamCMD did not complete the download, retrying: Attempt 8
Removing
Redirecting stderr to '/home/lgsm/Steam/logs/stderr.txt'
[----] Verifying installation...
[----] !!! Fatal Error: Steam needs 250MB of free disk space to update.
Steam Console Client (c) Valve Corporation
-- type 'quit' to exit --
Loading Steam API...Created shared memory when not owner SteamController_Shared_mem
OK.

<!-- gh-comment-id:220805265 --> @dgibbs64 commented on GitHub (May 21, 2016): would also like to add a disk check for updates and if the installer fails during install Warning! SteamCMD did not complete the download, retrying: Attempt 8 Removing Redirecting stderr to '/home/lgsm/Steam/logs/stderr.txt' [----] Verifying installation... [----] !!! Fatal Error: Steam needs 250MB of free disk space to update. Steam Console Client (c) Valve Corporation -- type 'quit' to exit -- Loading Steam API...Created shared memory when not owner SteamController_Shared_mem OK.
Author
Owner

@chriszo111 commented on GitHub (Jun 4, 2017):

image

I just ran into this error, rather unknowingly. I could not find a proper, simple answer to error 0x202. Eventuelly I stumbled across this issue. Google the error will show you desperate hosters trying to fix it. I think its a minor fix to just put in at least an error message, just my 2 cents. But add this to support pages or make it searchable for users would definately help.

<!-- gh-comment-id:306065446 --> @chriszo111 commented on GitHub (Jun 4, 2017): ![image](https://cloud.githubusercontent.com/assets/7249742/26765156/7b5724f6-4976-11e7-9eb4-bf0ea1f441b9.png) I just ran into this error, rather unknowingly. I could not find a proper, simple answer to **error 0x202**. Eventuelly I stumbled across this issue. Google the error will show you desperate hosters trying to fix it. I think its a minor fix to just put in at least an error message, just my 2 cents. But add this to support pages or make it searchable for users would definately help.
Author
Owner

@UltimateByte commented on GitHub (Jun 4, 2017):

@chriszo111 Since you seem to like wikis, please use ours to provide relevant info.
https://github.com/GameServerManagers/LinuxGSM/wiki/Support#required-information-for-support
Postdetails will help us knowing about your system and possible causes of issues.

<!-- gh-comment-id:306073085 --> @UltimateByte commented on GitHub (Jun 4, 2017): @chriszo111 Since you seem to like wikis, please use ours to provide relevant info. https://github.com/GameServerManagers/LinuxGSM/wiki/Support#required-information-for-support Postdetails will help us knowing about your system and possible causes of issues.
Author
Owner

@dgibbs64 commented on GitHub (Jun 5, 2017):

Yeah I think we could do with a wiki page with known steam errors. Sadly cable are not the best at this. If there is anyone who wants to research errors and put them together in a nice page that would be great!

<!-- gh-comment-id:306215898 --> @dgibbs64 commented on GitHub (Jun 5, 2017): Yeah I think we could do with a wiki page with known steam errors. Sadly cable are not the best at this. If there is anyone who wants to research errors and put them together in a nice page that would be great!
Author
Owner

@chriszo111 commented on GitHub (Jun 5, 2017):

@dgibbs64 Maybe just add a headline "Known issues" to your wiki similar to Valves Dev wiki and whenever an error pops just add the error code with a small explanation, I don't think this is to much effort. However, my purpose was solely to indicate to it.

<!-- gh-comment-id:306218128 --> @chriszo111 commented on GitHub (Jun 5, 2017): @dgibbs64 Maybe just add a headline "Known issues" to your wiki similar to Valves Dev wiki and whenever an error pops just add the error code with a small explanation, I don't think this is to much effort. However, my purpose was solely to indicate to it.
Author
Owner

@dgibbs64 commented on GitHub (Jun 5, 2017):

@chriszo111 no worry. We will look at doing something like this in the future when someone gets some free time

<!-- gh-comment-id:306265739 --> @dgibbs64 commented on GitHub (Jun 5, 2017): @chriszo111 no worry. We will look at doing something like this in the future when someone gets some free time
Author
Owner

@exetico commented on GitHub (Jan 6, 2018):

Any free-time meet by?

<!-- gh-comment-id:355780841 --> @exetico commented on GitHub (Jan 6, 2018): Any free-time meet by?
Author
Owner

@UltimateByte commented on GitHub (Jan 6, 2018):

Unfortunately, not much.

<!-- gh-comment-id:355781342 --> @UltimateByte commented on GitHub (Jan 6, 2018): Unfortunately, not much.
Author
Owner

@dgibbs64 commented on GitHub (Oct 6, 2020):

Some improvements to this relating to SteamCMD. LinuxGSM will now detect if SteamCMD finds a lack of disk space and print a message stating there is not enough disk space available. I believe this will satisfy this issue for most servers (apart from non-steam). I will close this and if we get reports of issues with non-steam servers then we can look at this again

relates to #719

<!-- gh-comment-id:704191239 --> @dgibbs64 commented on GitHub (Oct 6, 2020): Some improvements to this relating to SteamCMD. LinuxGSM will now detect if SteamCMD finds a lack of disk space and print a message stating there is not enough disk space available. I believe this will satisfy this issue for most servers (apart from non-steam). I will close this and if we get reports of issues with non-steam servers then we can look at this again relates to #719
Author
Owner

@github-actions[bot] commented on GitHub (Oct 7, 2021):

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:937333907 --> @github-actions[bot] commented on GitHub (Oct 7, 2021): 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#567
No description provided.