protonscr

Steam keeps forgetting it ever saved my account every two days

steamclosed Steam client
ValveSoftware/steam-for-linux#5035 · opened 2017-06-18 by neirenoir · updated 2021-02-16 · 32 comments · github
Nneirenoir 2017-06-18 github

System information

  • Steam client version: Jun 8 2017
  • Distribution: Debian Sid
  • Opted into Steam client beta?: No
  • Have you checked for system updates?: Yes

Issue:

Ever since a Steam update I had around half a month ago, if I stop logging in on Steam for two days, the client will simply "forget" I had ever logged in to Steam, and will prompt me with the "Create new account or Log In to an existing account" screen when booting Steam.

It is really weird, since it seems to be time-based and not reboot based. The computer does seem to keep information about previous logins, since I have two accounts authorized in this PC for family share, and one of them remembered this as the same computer, but the second one (my main account) required me to use Steam Guard to authorize this as a new computer.

It is not much of a problem, but it is really, really annoying. I have already tried using the tick-untick "remember my account" fix, but it doesn't work. Also tried reinstalling Steam by deleting ~/.steam, one time keeping the steamapps folder and the other deleting the whole thing, but it still doesn't work. Is there anything I can do to fix this?

Steps for reproducing this issue:

  1. Login into account
  2. Steam will keep remembering the account for more than 24 hours but approximately less than 48 hours after the first login without any problem
  3. Wait two days
  4. Steam will prompt you with the "Create new account or Log In to an existing account" window
DDamianu 2017-06-21 github

Happens to me after steam updates only.

Kkmaterka 2017-07-13 github

The same for me, very annoying. It keeps forgetting credentials every few days, usually after computer restart (Steam is autostarting on my system). Ubuntu 16.04 (Neon).

Is is also connected to issue #5060 because language setting (and other probably to) are lost.

?ghost 2017-07-17 github

Arch Linux, Not steam beta (but also happens there), system updates everyday on login.

I'm getting this issue on almost every reboot/startup. Extremely annoying having to do to 2FA every single day.

DDea1993 2017-08-24 github

same problem on debian 9, forgets login and language every time i restart pc.
some months ago there wasn't this problem, please fix if because is really annoying.

I've also tried beta channel but the problem still present.
instead on windows there aren't problems

?ghost 2017-08-26 github

@Dea1993 #5060 darealshinji's solution worked for me.

Llecbee 2017-10-17 github

I have the same issue with Steam and French language.
I'm on Fedora 25.

NNivelfacile 2017-11-19 github

I have the same issue with Steam loggin and Spanish language
Mint 18.3

Bbpopejoy 2017-11-25 github

Same issue with being logged out and getting login or create account every few days. Ubuntu 16.04, Steam Beta and non-beta.

Jjackwickham 2017-12-30 github

I'm having the same issue with Steam on Fedora 27. I've tried the beta and release versions.

PPatola 2018-01-22 github

I am not sure if that is the same issue, but steam keeps forgetting I am logged in while I am logged in. Like, I am using steam and reading and responding to a bunch of forum messages, suddenly I can't reply, and I see that I am somehow logged out. Steam "tries to login" again but fails. To fix that is easy, I just need to exit steam and call it again, but it is annoying as hell.

Lliuseemin 2018-03-05 github

I got both problems. It used to log me in automatically, but I have to login again sometimes like steam was "occasionally" forgetting my password. and when I get in, the language is reset to English from Chinese.
I'm using ubuntu gnome 16.04.

Ttonehrk 2018-03-14 github

I've same issue.

Build 12/15/2017

Nnightsky30 2018-04-21 github

I saw this back with Ubuntu 16.04. I've not experienced this on 17.10. In fact I think I haven't seen this issue in over a year. Though many other users with many different distributions report the problem. Very random.

Bbrianinthered 2018-07-06 github

I've had this problem for a long time, months at least. Online or Offline Steam will forget the password and I have to keep re-entering it.
This is very frustrating when I have 6 PCs running Mint 18.3 and do LAN Parties
I hope Valve fixes it soon.

Ttonehrk 2018-07-10 github

Login and...

chmod 444 $HOME/.steam/registry.vdf

Ssellth 2018-07-10 github

That's a hotfix at best, as Steam cannot save any changed settings with those permissions.

Am 10. Juli 2018 02:18:41 MESZ schrieb tonehrk [email protected]:

Login and...

chmod 444 $HOME/.steam/registry.vdf

Nnightsky30 2018-07-10 github

Checked the normal permissions and they seem to be 664. Yes, nothing more than a workaround when it kills normal write functionality.

So strange that it didn't affect me for almost a year, and then once I built a new system...it appears again. I never needed to mess with that file's permissions values before. The switch of hardware makes me think it is related to that. Complete and utter speculation.

It doesn't appear to be distro or desktop environment specific given the variety of systems affected. It would be nice if they could determine the cause.

RReonu 2018-08-30 github

This still happens.

TTheSHEEEP 2018-09-04 github

Indeed it does. Quite the nuisance.

TTacoDelPaco 2018-09-19 github

I've been having this happen to me for the past few weeks out of the blue, was working fine until I believe an upgrade (may have been the deb upgrade not from Steam). registry.vdf was set to read only and had AutoLogin, I'm experimenting now but very frustrating since I too have F2A and every time I restart/reopen Steam I have to grab my phone... I honestly thought the Flatpak version got swapped somehow but that doesn't seem to be the case.

Edit: Experimenting with registery.vdf doesn't seem to do anything, pls halp.

Thanks

Vvfjpl 2018-10-15 github

Maybe this bug is related to "Don't save account credentials on this computer" check box?
https://www.reddit.com/r/Steam/comments/2g9wo6/steam_keeps_forgetting_my_login_details/

TTheSHEEEP 2018-10-16 github

I wouldn't even say it is exactly every two days. I should probably start making notes, but I am relatively certain that sometimes as much as 3-4 days pass without that happening.

Llemmy04 2018-11-09 github

same here, openSUSE Leap 15.0, none of the workarounds help.
Additional detauil, my ~ is on nfs - game library is not

Bbormolino 2018-11-25 github

Still happens under Ubuntu 16.04 LTS with Steam-Client build Nov 10 2018.

Llemmy04 2018-12-23 github

is there actually anyone from valve reading this?

Bbrianinthered 2019-01-25 github

There are several other github posts about Steam password without any long term solution.
Apparently you can run this command in Terminal to fix it, but I have a feeling this will need to run after every Steam update...
chmod -w ~/.steam/registry.vdf

Aaaronfranke 2019-01-25 github

What kind of system configuration causes this bug? I've never experienced this issue on any of my computers. Ubuntu 18.04 and previously 16.04, 64-bit, some dual-boots and some not, I run this script on all new installs (includes some libs for Steam and Steam games).

Hhhirsch 2019-01-26 github

Same problem on current Manjaro (Jan 2019). But I've had this problem on other distributions, too. For years.

FFabianK-Dev 2019-03-16 github

@tonehrk's solution worked for me:

Login and...

chmod 444 $HOME/.steam/registry.vdf

Thanks! :smiley:

Kkisak-valve maintainer 2020-08-01 github

Hello everybody, it looks like we're at the point that this issue should be closed. Follow up issues should be tracked separately.

LLuticus 2021-02-16 github

I put this on a related issue (#6527) but posting here too in case someone else is googling to find a solution and ends up here like I did.

Just thought I'd throw my 2cents in on this because I've been dealing with this issue for, god, maybe years now and it's been driving me crazy.

I thought it was a steam bug that would eventually get fixed so I kind of just left it alone and never bothered fixing it. Anyway I happened to notice it doesn't happen on a new laptop I got so I figured I'd take a second look.

The registry.vdf.old being the culprit is probably right. However I couldn't think of a good clean way to prevent file deletion without messing with the file ownership and setting a sticky bit on the directory above, or making the file immutable via chattr +i, or by setting the permissions to remove write. None of those sat well with me as I thought they might mess up other things with steam, possibly break updating, or have some side effect or unintended consequence. Fortunately I noticed that the registry.vdf.old file had a file size of '0' and that to me looked... not right. I used cat to view the file's content and sure enough, it was blank. So I deleted the registry.vdf.old file and simply started steam. This seems to have resolved the issue for me.

You can verify this by watching the files change as you launch steam. Use the watch -n 1 "ls -al registry.*" command from inside the ~/.steam directory and launch steam. You can see it create a file registry.vdf000000000 where the 0's represent some random number, it seems. The file will show up and disappear a few times. That's the behavior that was happening when it WORKED, so that's what you want. For some reason the .old file was preventing that... some how.

I have also confirmed that having a symlink for the ~/.steam in my home to create a non hidden version (~/steam) for easy access does cause this problem to occur again for some god awful reason I can't understand. So if you have that, then use unlink ~/steam in your home directory to remove that as well. You should only have a ~/.steam.

I hope this advice helps anyone else facing this issue as it was driving me crazy!