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 new warning: Please use force_install_dir before logon! #8298

Closed
ich777 opened this issue Dec 13, 2021 · 11 comments
Closed

SteamCMD new warning: Please use force_install_dir before logon! #8298

ich777 opened this issue Dec 13, 2021 · 11 comments
Labels

Comments

@ich777
Copy link

ich777 commented Dec 13, 2021

Your system information

  • Steam client version (build number or date): Steam Console Client (c) Valve Corporation - version 1637624355
  • Distribution (e.g. Ubuntu): Debian 11
  • Opted into Steam client beta?: No
  • Have you checked for system updates?: Yes

Please describe your issue in as much detail as possible:

Not really sure where to post because it's an "issue" with SteamCMD.
Recently an update from SteamCMD brought up this message: Please use force_install_dir before logon!

Steps for reproducing this issue:

  1. Call steamcmd.sh +login anonymous +force_install_dir ${SERVER_DIR} +app_update ${GAME_ID} +quit
  2. Message Please use force_install_dir before logon! pops up in the logs but game downloads fine

Is this something that needs to be changed to: steamcmd.sh +force_install_dir ${SERVER_DIR} +login anonymous +app_update ${GAME_ID} +quit or is the old command still fine? If it needs to be changed, why? Or can this warning be ignored?

@TTimo
Copy link
Collaborator

TTimo commented Dec 13, 2021

Hello @ich777,

The warning is correct - your scripts should use force_install_dir before logging in, and avoid using it after logging in.

Using force_install_dir used to trigger a forced re-download of a title's content even when no update was necessary. This problem is fixed in steamcmd, but there may be other issues and it's still recommended to use force_install_dir before logon.

@TTimo TTimo closed this as completed Dec 13, 2021
@ich777
Copy link
Author

ich777 commented Dec 13, 2021

@TTimo oh, okay, then I think I have to fix this for my ~64 Docker images... :D

Strange thing is that it never actually triggered a redownload from any game.
Thank you for your time and quick answer! :)

@TTimo
Copy link
Collaborator

TTimo commented Dec 13, 2021

Yeah, that was #8075 - but it only happened under heavy I/O load

@thesweetiger
Copy link

Hi , I use steamCMD since it's first day and I comfirm it's a bug , it should not happen , all the official documentation say clearly to log in first

@thesweetiger
Copy link

thesweetiger commented Dec 22, 2021

Hello @ich777,

The warning is correct - your scripts should use force_install_dir before logging in, and avoid using it after logging in.

Using force_install_dir used to trigger a forced re-download of a title's content even when no update was necessary. This problem is fixed in steamcmd, but there may be other issues and it's still recommended to use force_install_dir before logon.

your wrong , all the documentation are clear , logon first and use force_install_dir in second , all this info are from steam documentation

this also happen in steamcmd shell

@ich777
Copy link
Author

ich777 commented Dec 22, 2021

@thesweetiger I think the person you want to mention is @TTimo or am I wrong?

I see it also like you say it but you things change over time?

@Calingoff
Copy link

Hi, i got the same error (first, i do login anonymous, after i create a file for my server, and after i use force_install_dir and my file in c: and after i got : please use force_install_dir before logon)

can you explaind clearly what i should do ? step by step ?

thx for your help

@TTimo
Copy link
Collaborator

TTimo commented Jan 18, 2022

@Calingoff : simply put the force_install_dir command before the login command in your script.

shadowpanther added a commit to shadowpanther/resonite-headless that referenced this issue Jan 26, 2022
r-pufky added a commit to r-pufky/steam that referenced this issue Feb 6, 2022
Changes:
* base image migrated from 18.04 to 20.04.
* Remove Wine 5.x - <7.0 libfaudio0 patches. These are included in wine by defualt now.
* Reordered force_install_dir to be set before login, preventing execution halt with
  latest steamcmd release. See: ValveSoftware/steam-for-linux#8298
timche pushed a commit to timche/docker-csgo that referenced this issue Mar 25, 2022
SteamCMD will send a warning about using `force_install_dir` before logon because of this issue here: ValveSoftware/steam-for-linux#8298

```
> Installing server ...
+ /home/csgo/Steam/steamcmd.sh +login anonymous +force_install_dir /home/csgo/server +app_update 740 validate +quit
WARNING: setlocale('en_US.UTF-8') failed, using locale: 'C'. International characters may not work.
Redirecting stderr to '/home/csgo/Steam/logs/stderr.txt'
[ 0%] Checking for available updates...
[----] Verifying installation...
[ 0%] Downloading update...
[ 0%] Checking for available updates...
[----] Download complete.
[----] Extracting package...
[----] Extracting package...
[----] Extracting package...
[----] Extracting package...
[----] Installing update...
[----] Installing update...
[----] Installing update...
[----] Installing update...
[----] Installing update...
[----] Installing update...
[----] Installing update...
[----] Installing update...
[----] Cleaning up...
[----] Update complete, launching Steamcmd...
WARNING: setlocale('en_US.UTF-8') failed, using locale: 'C'. International characters may not work.
Redirecting stderr to '/home/csgo/Steam/logs/stderr.txt'
[ 0%] Checking for available updates...
[----] Verifying installation...
Steam Console Client (c) Valve Corporation - version 1647446802
-- type 'quit' to exit --
Loading Steam API...OK
Connecting anonymously to Steam Public...Connectivity test: result=Connected, in progress=0
OK
Waiting for client config...OK
Waiting for user info...OK
Please use force_install_dir before logon!
```
@strawed1
Copy link

@Calingoff : simply put the force_install_dir command before the login command in your script.
I did and it still said the same

@FloppaTest
Copy link

İ tried without logging in, nothing happens.

GrayBoltWolf pushed a commit to Resonite-Community-Projects/resonite-pterodactyl that referenced this issue Oct 5, 2022
klekaelly added a commit to klekaelly/Dedicated_Valheim_Server_Script that referenced this issue Jan 24, 2023
There is a warning in SteamCMD that suggests you use the +force_install_dir command before you log in.

See here:
ValveSoftware/steam-for-linux#8298
klekaelly added a commit to klekaelly/Dedicated_Valheim_Server_Script that referenced this issue Jan 24, 2023
There is a warning in SteamCMD that suggests you use the +force_install_dir command before you log in.

See here:
ValveSoftware/steam-for-linux#8298
klekaelly added a commit to klekaelly/Dedicated_Valheim_Server_Script that referenced this issue Jan 24, 2023
There is a warning in SteamCMD that suggests you use the +force_install_dir command before you log in.

See here:
ValveSoftware/steam-for-linux#8298
@SGZ-Creations
Copy link

having issues getting further than this on doing this new method of installing server files.

Steam>force_install_dir
Usage: force_install_dir

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

8 participants