STEAM GROUP
Steam Client Beta SteamBeta
STEAM GROUP
Steam Client Beta SteamBeta
8,606
IN-GAME
60,834
ONLINE
Founded
January 8, 2013
All Discussions > Bug Reports > Topic Details
This topic has been locked
Larnu Sep 30, 2024 @ 9:43am
Steam keeps forgetting libraries
As of last week, Steam has started forgetting all my libraries, apart from one, when i start it up. This means almost all my games/apps appear not installed as they are in libraries that it has "forgotten".

At the moment, I have a copy of my libraryfolders.vdf file, and everytime I log into Steam, and notice the folders missing, I close Steam, copy the file to the correct directory (cp libraryfolders.vdf ~/.local/share/Steam/steamapps/libraryfolders.vdf), and then restart steam and all my games are back

This isn't a one off; it's probably happened a dozen or more times. For some reason it appears steam is destroying the libraryfolders.vdf or something when I log in, and therefore I lose all my games.

More frustrating is that it causes Steam to have to validate some games, and with large games, that can take some time. If I were on bad internet, it would make the experience untenable.

Is this a known bug, and are there any known workarounds?
Last edited by Larnu; Sep 30, 2024 @ 9:43am
< >
Showing 1-6 of 6 comments
mikela Sep 30, 2024 @ 1:25pm 
Hi, I checked the logs from your Steam install and I noticed a nightly steamcmd instance running to update installed games where the force_install_dir variable was being used to point steamcmd at a particular library.

On Linux both the Steam client and steamcmd share the same configuration directory per-user, so steamcmd overwrites the common libraryfolders.vdf when it runs and is configured to only have the single library resulting in that being written.

We may improve this support in the future but currently the best workaround for this setup would be running steamcmd as a different user which would get its own Steam config and could update a common library shared between them.
Larnu Oct 2, 2024 @ 12:16pm 
Originally posted by mikela:
Hi, I checked the logs from your Steam install and I noticed a nightly steamcmd instance running to update installed games where the force_install_dir variable was being used to point steamcmd at a particular library.

On Linux both the Steam client and steamcmd share the same configuration directory per-user, so steamcmd overwrites the common libraryfolders.vdf when it runs and is configured to only have the single library resulting in that being written.

We may improve this support in the future but currently the best workaround for this setup would be running steamcmd as a different user which would get its own Steam config and could update a common library shared between them.
Thanks, that makes a lot of sense.

I've set up a service account instead and started the service under that user instead and will see how that gets on.
Larnu Oct 14, 2024 @ 5:11am 
Just to report back (somewhat late), switching to a service account to run the `steamcmd` process worked.
Crashed Oct 15, 2024 @ 11:23am 
If you have drives that aren't immediately mounted before you or the operating system starts the Steam Client, then they won't be detected.
Originally posted by mikela:

On Linux both the Steam client and steamcmd share the same configuration directory per-user, so steamcmd overwrites the common libraryfolders.vdf when it runs and is configured to only have the single library resulting in that being written.

Oddly Im getting a similar but backwards behavior...
I have a library at ~/Steam, which is where I install everything. I was playing with running a steamcmd script periodically:

@NoPromptForPassword 1 force_install_dir "/home/USERNAME/Steam/steamapps/common/Gray Zone Warfare" login STEAM_USERNAME STEAM_PASSWORD app_update 2479810 quit

This worked for the first day (I think within a single boot) perfectly. My Steam configuration never changed, and the game (Gray Zone Warfare) updated with no issues.

Then the next day, I think I rebooted... I ran the script, and two things started happening:

1. It knocked my Steam client offline (the docs say it will do this, but it didn't that first day, I swear...)

2. It made Steam forget my library at ~/Steam. Just entirely gone from the "Storage" section of settings. All games were listed as uninstalled. If I added back ~/Steam as a library, Steam would recognize the games, re-download the shader cache, and be fine.

I have no idea why these things didn't happen on the first day... I must have tested that script at least 5 times, no problem. Next day, the two issues made updating the game in that way inconvenient and pointless.

Not sure why I'm writing this, sorry to "necro" an old thread, but, very frustrating.
Last edited by Merc Fredis; Dec 12 @ 2:57pm
Mike Dec 12 @ 10:50pm 
This thread was quite old before the recent post, so we're locking it to prevent confusion.
< >
Showing 1-6 of 6 comments
Per page: 1530 50

All Discussions > Bug Reports > Topic Details