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

Steam deletes entire game cache if opened twice during update and one is canceled during unpacking. #3677

Open
NolanSyKinsley opened this issue Jan 19, 2015 · 32 comments
Labels

Comments

@NolanSyKinsley
Copy link

This is separate from #3671.

I opened steam twice on accident without realizing it and it was downloading an update. I canceled one of the download windows and let the other continue, the one I canceled popped up with an "unpacking" status window and I canceled that as well, as it was an incomplete download. The other continued as expected. I have a feeling it was the cancelling during this unpacking process that caused the issue.

When it finished it nolonger had my username/password in it, so I put them in and logged in (Steamguard did not proc and it did not send me an e-mail, so it partly recognized my device as authorized). To my surprise my entire steam library was listed as uninstalled. I restarted steam to be sure and it still listed them as not installed, so I went to where they should have been installed (~/.local/share/steam/steamapps/common, or ~/.steam/steam/steamapps/common) and sure enough, the entire common folder was missing/deleted, not just unrecognized, but entirely removed.

I did no moving of the game cache or anything like that, I used the default location steam recommended (I have / and /home as two separate partitions).

Currently running manjaro(arch) 64 bit with xfce4 wm. If you need any more information let me know.

@xDShot
Copy link

xDShot commented Jan 21, 2015

I just wanted to add this issue today. I got the same issue.

Yesterday Steam downloaded update. It installed, and my games were kept.

However, in this morning when I launched steam, 'first-time login' window were popped up. It 'forgot' my log/pass so I re-typed them. And after login I found my games were removed :(

What is very interesting, I use Manjaro x64 with Xfce too! Is it possible that this is a package maintainers' problem?

P.S. I did not canceled anything durin update. I just were waiting until everything will be installed.

@jazztickets
Copy link

Has happened to me twice now. One thing you could do in case it happens again is just create a hardlink to your common directory. Something like "cp -rl ~/.local/share/steam/steamapps/common .common_backup". That way if steam deletes it you'll still have the files without any additional hard drive space being used. Although i guess you'd still have to keep recreating the hardlink when a game gets updated with new files.

@garciabruno
Copy link

I can confirm this, I was logged out after an update occurred. My entire game library was missing, although it still exists in ~/.local/share/Steam/steamapps

Quick edit: Restarted Steam, asked me to login again and my game library re-appeared.

@neilsh
Copy link

neilsh commented Jan 23, 2015

I've run into this twice (2nd time was in the past couple of days), having to re-install my entire game cache each time is really unfortunate. I'm running on Ubuntu 14.10 64-bit.

@Skiski
Copy link

Skiski commented Jan 23, 2015

I has the same problem than Garciabruno happened to me at least 4 or 5 times after updates. When I launch Steam, it asks me to log in, the when I get to my library nothing was installed and even the non-steam games links were removed. Restarting Steam solves the problem. Nothing was deleted.

@NolanSyKinsley
Copy link
Author

Ok, this just happened AGAIN today. I turn my computer on and lo and behold, steam is asking for my username/password, even though I have it set to keep it. I entered it, it came up with a quick display of "updating information" and BAM all my games wiped. I even tried to backup my game files beforehand, but steam's backup tool kept locking up, so I have no possibility of preventing this.

Seriously, this is one of the worst bugs I could imagine for a gaming platform, I don't want to have to keep going through 3 days of downloading and dealing with slow internet every 5 days because steam keeps wiping the folders on my hard drive, under NO circumstances should steam be deleting the ENTIRE game cache.

Just to make this perfectly clear, this is not steam refusing to recognize games on my hard drive, this is steam DELETING 130gb of games and removing ANY trace of them.

@slagerfin
Copy link

this happened to me yesterday

@Fuyukai
Copy link

Fuyukai commented Jan 24, 2015

Happened to me too.

@descrip
Copy link

descrip commented Jan 24, 2015

This also happened to me. Luckily, it was a new machine and I only had one game installed.

@lbaile200
Copy link

I have had this issue as well. Exact same conditions as posted. I'm severely bandwidth capped where I am and I lost my entire library (close to 30 games). Luckily I had backups of a few of my favorite games, but this is still inconvenient.

@kon14
Copy link

kon14 commented Jan 31, 2015

Do count me in as well, this has already happened more than 3 times to me. The distro and setup shouldn't really make any difference but here it is anyway: I'm running Gentoo
Steps to reproduce:
The steam client starts, then tries to update, fails unpacking on first attempt (I believe there was a "you have to be online", while I was online, comment last time), I then try to launch steam, updates fine, asks for user login, steam guard partially recognizes my computer, all library deleted :/

@bjwest
Copy link

bjwest commented Jan 31, 2015

What are you people doing?
After, I assume, a Steam update today, (I had to reboot due to a system update and didn't stick around for the reboot) I come back from getting a cup of coffee and I see the Steam login screen asking for my password. Remembering seeing this thread in my inbox, I decide to look around before logging in. I see a newly created ~/Steam directory containing 'appcache' and 'logs' sub directories. I also see a newly created ~/.steam directory with the folllowing structure:

drwxrwxr-x   2 bjwest bjwest  4096 Jan 31 07:25 .
drwxr-xr-x 120 bjwest bjwest 12288 Jan 31 07:25 ..
lrwxrwxrwx   1 bjwest bjwest    25 Jan 31 07:25 bin -> /home/bjwest/.steam/bin32
lrwxrwxrwx   1 bjwest bjwest    43 Jan 31 07:25 bin32 -> /home/bjwest/.local/share/Steam/ubuntu12_32
lrwxrwxrwx   1 bjwest bjwest    43 Jan 31 07:25 bin64 -> /home/bjwest/.local/share/Steam/ubuntu12_64
-rw-rw-r--   1 bjwest bjwest  2550 Jan 31 07:25 registry.vdf
lrwxrwxrwx   1 bjwest bjwest    31 Jan 31 07:25 root -> /home/bjwest/.local/share/Steam
lrwxrwxrwx   1 bjwest bjwest    39 Jan 31 07:25 sdk32 -> /home/bjwest/.local/share/Steam/linux32
lrwxrwxrwx   1 bjwest bjwest    39 Jan 31 07:25 sdk64 -> /home/bjwest/.local/share/Steam/linux64
lrwxrwxrwx   1 bjwest bjwest    31 Jan 31 07:25 steam -> /home/bjwest/.local/share/Steam
-rwxr-xr-x   1 bjwest bjwest  8860 May 22  2014 steam_install_agreement.txt
-rw-rw-r--   1 bjwest bjwest     5 Jan 31 07:25 steam.pid
prw-------   1 bjwest bjwest     0 Jan 29 09:30 steam.pipe

Needless to say, I'm copying my entire ~./local/share/Steam directory to a backup drive before I log in. I have no faith Steam will not screw something up as soon as I enter my password.

Why do I now have three directories for Steam, and why is one of them a muddled up symlink mess of the original ~/.local/share/Steam?

Do you guys have any quality control going on over there, or do you just push out any old crap to us without testing? With reports of home directories being wiped, I'm getting very leery of any update, and am wondering if I should forget about Steam for a while and return to my PS3.

You seriously need to get this under control. Steam is not a stand-alone console. Most of us run it on our primary computers, and you guys are sending out updates that are wiping out personal data.

@bjwest
Copy link

bjwest commented Jan 31, 2015

After backing up my original Steam directory, I entered my password and here's what happened.

I had no games installed, so selected to install 'Don't Starve' because it's small and wouldn't take too long. Steam asked me where I wanted to install my SteamLibs directory. Fearing what would happen, I installed a blank USB drive and chose that. It complained it needed an empty directory (lost+found is in the root), so I created a directory SteamLibrary and selected that. Steam created a steamapps subdirectory and created a libraryfolders.vdf file in there. It then continued to install Don't Starve in ~/Seam/steamapps/common.

All my games were still in ~/.local/share/Steam/SteamApps/common, so I copied one of the games into ~/Steam/steamapps/common to see if Steam would pick it up. It didn't imediatly, so I exited Steam and restarted it. It asked me for my password AGAIN, then low and behold all my games were there.

I unmounted the USB drive, restarted Steam again with no complaints, and not asking for my password this time. Whatever this library directory is for, it's not needed. I also deleted the dont_starve and Civ V directories from the ~/Steam/steamapps/common directory, restarted Steam and there was no change. It's using the old common directory where all the games are stored.

My only conclusion is that there is absolutely no quality assurance going on in the Steam development department, and they are pushing out incomplete, buggy and sometimes extremely dangerous code, and we are left wondering if our systems will be completely destroyed in the process.

tl:dr You may not need to reinstall all your games. Just shut down Steam and restart it a couple of times and it may pick them back up.

@kspangsege
Copy link

This happened to me today.

@kspangsege
Copy link

Please see #3722 for details.

@alexpaknix
Copy link

I have a similar situation.
ticket 4756-WKLX-3055 from 23rd Feb 2015

Support recommended this solution https://support.steampowered.com/kb_article.php?ref=3134-TIAL-4638&l=russian

steam --reset
this action removes the installed games, setting and authorization data

@NolanSyKinsley
Copy link
Author

Tested latest linux client, cannot reproduce original bug, nor is the bug present while using steam --reset anymore. It looks like it has been fixed, so I am closing this ticket.

@gogromat
Copy link

gogromat commented May 8, 2016

Just happened to me (March 8 2016) on Linux Debian (Linux 3.16.0-4-amd64 x86_64).

  • Steam updated
  • Forced me to re-login
  • All games were missing in Steam - Steam asked to choose location for games to download.
  • ls ~/.local/share/Steam/steamapps/common/ showed that they are all intact.
  • Found this post.
  • Cancelled to choose new location for games
  • Rebooted the machine
  • Loaded Steam again
  • All games are present again

@NolanSyKinsley
Copy link
Author

NolanSyKinsley commented May 8, 2016

@gogromat That was not the original issue here. The original issue was full deletion of the files, not just them missing from the list in steam. The entire game cache folder was being wiped. That is moot as that bug has been fixed, thus why I closed this issue.

If you are experiencing a new issue with them vanishing from your list on update but still being present on your drive then I would look for that issue, and if it is not present, open a new one.

@gogromat
Copy link

gogromat commented May 8, 2016

@NolanSyKinsley Thanks man, I couldn't find the same exact issue where there is no delete.
I was reading comments by garciabruno, Skiski and bjwest in this thread - they seem to have exactly the same issue as me, that's why I posted here.

@AntyMew
Copy link

AntyMew commented May 19, 2017

This occurred to me today. All games are now completely missing from my SSD

Like the OP, I also accidentally opened steam multiple times.

@NolanSyKinsley
Copy link
Author

NolanSyKinsley commented May 20, 2017

@Anty-Lemon A bug similar to this one, but not this bug, did happen to me as well the other day. Check your root steam folder for a .save folder, your game cache may very well still exist in that folder, it was where mine was.

In this original bug report they game files were completely wiped, not moved to a .save folder, so it is a different issue if that is what happened to you as well.

@AntyMew
Copy link

AntyMew commented May 20, 2017

There is no .save directory. Additionally, ~20 gigs of space were freed in /home.

@NolanSyKinsley
Copy link
Author

Ah, then it may be a similar bug, but this issue was fixed over 2 years ago. It may be a regression or a new bug entirely. I would open a new issue with full system specs and such. Might link to this closed issue just in case.

@AntyMew
Copy link

AntyMew commented May 20, 2017

I'm skeptical, considering no commit was pushed to fix this bug, and your description of it matches my experience to a tee. I'm more liable to believe there's a race condition.

EDIT: Whoops, just realized which repo I'm on. Less likely, then

@na1pir
Copy link

na1pir commented Jul 16, 2017

I can confirm this! Lost all my games when on vacation with almost no internet access. so no gaming for me for entire weak.

@josealvim
Copy link

josealvim commented Nov 19, 2017

It just happened to me, it's the 3rd time already, so it's quite reproducible.
(edit) I'm on ubuntu 16.04 LTS 64-bit with a partitioned disk

@NolanSyKinsley
Copy link
Author

NolanSyKinsley commented Sep 28, 2019

This bug just reared it's ugly head again. I saw the steam client say no connection and I thought it was my system messing up, so I restarted steam but steam could not start due to network being down, then my torrent manager suddenly said that all my torrents were missing. I had steam using a secondary drive as my steam library and steam decided to delete ALL files on that drive, including files outside the steam library path.

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