Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SteamCMD exit codes #719

Closed
dgibbs64 opened this issue Feb 26, 2016 · 15 comments · Fixed by #2959
Closed

SteamCMD exit codes #719

dgibbs64 opened this issue Feb 26, 2016 · 15 comments · Fixed by #2959

Comments

@dgibbs64
Copy link
Member

dgibbs64 commented Feb 26, 2016

SteamCMD has exit codes to go with its failure errors. However, there is no documentation anywhere telling us what they mean. I may have to contact Valve to see if they would be willing to provide details of there exit codes

for example

Error! App '237410' state is 0x602 after update job.

gave me exit code 8

@dgibbs64 dgibbs64 added the type: feature request New feature or request label Feb 26, 2016
@UltimateByte
Copy link
Contributor

Where/how do you get the exit code ?

@dgibbs64
Copy link
Member Author

You will see exit codes scattered across LGSM. they are very useful in detected issues with other commands. Here is some example on catching an exit code

steamcmd.sh
if [ $? -ne 0 ]; then
    echo "FAIL
else
    echo "OK"
fi

basically if you run a command in shell then echo $? straight after you will see the previous commands exit code.

exitcode 0 is everything is OK and any other code is a failure. Some commands do have specific meanings. This allows us to trap the errors and handle them in our code, If we are lucky and the command has specific exit codes we know about I can get LGSM to handle a specific issue.

For example dealing with steamcmd issues. Since its hard to replicate all of the steamcmd issues its hard to tell what all the codes mean

@dgibbs64
Copy link
Member Author

Just posted here. Hopefully I get something back

ValveSoftware/steam-for-linux#4341

@UltimateByte
Copy link
Contributor

That's cool, i didn't notice that into the code yet.

Should i harrass Gaben to get error codes and their meanings ?

Having a look at steam.sh i found

# Backward compatibility for server operators
if [ "$STEAMEXE" = "steamcmd" ]; then
        echo "***************************************************"
        echo "The recommended way to run steamcmd is: steamcmd.sh $*"
        echo "***************************************************"
        exec "$STEAMROOT/steamcmd.sh" "$@"
        echo "Couldn't find steamcmd.sh" >&1
        exit 255

253 more and we got them all.

Edit : Well, i'm late for the party, hopefully they'll give some piece of information.

@dgibbs64
Copy link
Member Author

dgibbs64 commented Sep 19, 2017

current known error codes

0: Success!
1: ERROR! Timed out waiting for AppInfo update.
5: Login Failure: Two-factor code mismatch (88)
5: Login Failure: Rate Limit Exceeded (84)
8: ERROR! Failed to install (No subscription).
8: Error! State is 0x402 after update job.
8: Error! State is 0x602 after update job.
8. Error! App '376030' state is 0x202 after update job
Error Possible Reason
ERROR! Timed out waiting for AppInfo update. Unknown
Login Failure: Rate Limit Exceeded (84) Unknown
ERROR! Failed to install (No subscription) Game not owned by any authorised accounts
Error! State is 0x202 after update job. Not enough space to download game
Error! State is 0x402 after update job. An update is required and that the update has been started previously.
Error! State is 0x602 after update job. Update required but not completed - check network
Error! App '255850' state is is 0x2 after update job.

@dgibbs64
Copy link
Member Author

dgibbs64 commented Jul 22, 2018

Adding support to to a fatal exit if no subscription

@dgibbs64
Copy link
Member Author

@Bourne-ID since you have been doing some work with steamcmd would it be possible for you to look at causing the install to fail if no subscription?

@dgibbs64 dgibbs64 removed this from the Next Release milestone Dec 15, 2018
@dgibbs64
Copy link
Member Author

dgibbs64 commented Apr 1, 2019

Error! App '232130' state is 0x202 after update job. Is low on disk space

@dgibbs64
Copy link
Member Author

dgibbs64 commented Mar 10, 2020

new error #2684
https://gaming.stackexchange.com/questions/321270/error-app-255850-state-is-is-0x2-after-update-job

Arqade
This issue has been solved. I was having an issue with my local CDN after a major internet outage that spanned over two weeks.

I am trying to create a new Rust server for my friend and I to play o...

@ToeiRei
Copy link

ToeiRei commented Apr 27, 2020

Steamcmd errors out stating ERROR! Timeout downloading item 1380777369 while still giving error code 0.

@JamesHawkinss
Copy link

JamesHawkinss commented Feb 19, 2021

Hi @dgibbs64,

I understand that this issue is closed, but I can't find any other information on SteamCMD exit codes.

I'm having issues where if some (but not all) files are deleted in the game's directory, the preinstall (steamcmd) seems to peacefully exit with code 254 before failing to run the game. -validate parameter is passed into the command, but doesn't seem to make any difference.

Have you had any experience with exit code 254? I can't find any other information about it.

Many thanks,
James

@dgibbs64
Copy link
Member Author

Hi @JamesHawkinss good question. Over the past few years, any info I have gathered for steamcmd error codes can be found here.

https://docs.linuxgsm.com/steamcmd/errors

I don't however have any specific info on exit codes

@Bourne-ID
Copy link
Contributor

Out of interest, are you getting this error code from steam (IE 0x254) or as an application exit code (IE echo $? == 254)? Wondering it it could be something else that's that is giving an application exit code, instead of it being a steam error code?

@JamesHawkinss
Copy link

@Bourne-ID Definitely a steam exit code, as it's the SteamCMD process that's being quit with 254.

Thanks to @dgibbs64 and their research, I've found that it seems to be an issue with the Steam folder being corrupt (specifically /Steam/package/steam_cmd_linux). Upon deleting this file, the install runs with no issue. I really appreciate the help, thank you!

@github-actions
Copy link
Contributor

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.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 21, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants