zeropingheroes / lancache-autofill

Automatically fill a Lancache with content
GNU General Public License v3.0
132 stars 24 forks source link

steam downloads broken after last steamcmd update #26

Closed billthecatt closed 5 years ago

billthecatt commented 5 years ago

So... this was working last week and isn't now.. Not sure if the latest update of steamcmd nuked the no prompt for password functionality, but you'll notice it's asking me for a password even though I just authorzed the account:

./lancache-autofill steam:authorise-account Please enter your Steam username:

billyinthebarn Authorising account billyinthebarn Please enter your password:

Please enter your Steam Guard code (optional) []:

Redirecting stderr to '/home/user1/Steam/logs/stderr.txt' Looks like steam didn't shutdown cleanly, scheduling immediate update check [ 0%] Checking for available updates... [----] Download complete. Steam Console Client (c) Valve Corporation-- type 'quit' to exit -- Loading Steam API...OK. Logging in user 'billyinthebarn' to Steam Public... Logged in OKWaiting for user info... OK"@NoPromptForPassword" = "1" Successfully authorised Steam account billyinthebarn

<Everything should be good to go here because the auth worked, right??>

user1@srv02:~/lancache-autofill$ ./lancache-autofill steam:start-downloading Checking all Steam accounts are authorised Checking Steam account billyinthebarn... Redirecting stderr to '/home/user1/Steam/logs/stderr.txt' [ 0%] Checking for available updates... [----] Download complete. Steam Console Client (c) Valve Corporation-- type 'quit' to exit -- Loading Steam API...OK. Logging in user 'billyinthebarn' to Steam Public...password:

<Why is it asking me for a password if I've already authorized and/or @NoPromptForPassword 1 is set?>

In Process.php line 1342:

The process "unbuffer /steamcmd/steamcmd.sh +login billyinthebarn +@NoPromptForPassword 1 +quit " exceeded the timeout of 60 seconds.

ilumos commented 5 years ago

Hi there, thanks for sending this in. Annoying that SteamCMD isn't respecting @NoPromptForPassword 1

I've added a check and abort if a password prompt is detected, and added the useful message:

If this error persists, empty the ~/steam/userdata directory

which will force re-authing and re-caching of credentials.

billthecatt commented 5 years ago

Thanks this should be perfect. I was able to work around this by nuking my steamcmd folder which appeared to force the re-auth and re-cache creds.

Thanks for the fix!

jalada commented 5 years ago

I believe @NoPromptForPassword 1 is ignored if a Steam License Server is running on the local network. I've found I need to switch that off for lancache-autofill to work reliably.

ilumos commented 5 years ago

Thanks for the heads up @jalada - have added a note to the error message