steam-for-linux icon indicating copy to clipboard operation
steam-for-linux copied to clipboard

Steam does not connect on kernels newer than 2019-06-17

Open killerrabbit opened this issue 7 years ago • 117 comments

Your system information

  • Steam client version (build number or date): Latest, can't determine exact version
  • Distribution (e.g. Ubuntu): Debian 9 Stable
  • Opted into Steam client beta?: No
  • Have you checked for system updates?: Yes

Please describe your issue in as much detail as possible:

Describe what you expected should happen and what did happen. Please link any large code pastes as a Github Gist

When starting steam, after logging in and authenticating past steam guard, it hangs on "Connecting to steam account: (account name)." Sometimes it will change to "Updating Steam information" with an empty progress bar.

After a while, it will give a dialog box saying that says "Could not connect to Steam network."

Output of console: https://gist.github.com/killerrabbit/94419ec85564e248c044d21e0fd961b3

Steps for reproducing this issue:

  1. Install Steam
  2. Attempt to log in

killerrabbit avatar Jun 19 '19 23:06 killerrabbit

I have this same problem in Arch Linux with the exception that I am opted into Steam client beta. This issue started few days ago, after system update, on installation where Steam client has been working OK before.

I have removed my ~/.steam and ~/.local/share/Steam and tried again with no luck. I also tested with flatpak current stable, same results. Meanwhile, Steam (flatpak stable) is running fine on my laptop with Void Linux. Both of these machines are in same network.

Console output

jonlap avatar Jun 20 '19 00:06 jonlap

Having a very similar issue here on NixOS after the latest system update. Main difference is, in my case, it manages to log in around 10% of the times. It also says "Updating User Configuration..." without an empty progress bar in the second prompt, which appears 100% of the time if it does not manage to connect. Keep trying to log in, maybe even kill the process while it is booting so it attempts to check the integrity of the installation (it probably is irrelevant, but the times it has worked for me, this was the case)

EDIT: rolling back to a previous NixOS generation (kernel 5.1.5) makes Steam work well. Executing previous versions of the Steam package within the latest NixOS generation (kernel 5.1.11) does not work. This makes me think there is some kind of library, or the kernel itself, interacting erroneously with the same Steam package. @killerrabbit, @jonlap, did you update your system as of lately? Are you using any wrapper programs when launching Steam?

neirenoir avatar Jun 20 '19 00:06 neirenoir

Same problem with ubuntu 19.04 after update, Could not connect to Steam network. I tried on my laptop and same thing sad... my console output

EDIT: woke up today and tried to long in on my laptop and it did log in, tried on my desktop and same error. weird.

blastermaster77 avatar Jun 20 '19 01:06 blastermaster77

I am also experiencing this problem on both Arch Linux and Kubuntu. Both OS run on the same exact hardware. Meanwhile, a Windows 10 PC on the same network works fine with Steam.

On both Kubuntu and Arch Linux, I was able to login and receive a Steam Guard password through email to authenticate on a new machine. At this point the error occurs.

EDIT: I also tried setting up and using steam-native, but got the same results.

ghost avatar Jun 20 '19 01:06 ghost

I also have this problem on my Arch install. Been happening for two days now, ever since I rolled over to the new kernel. There also seems to be a problem with the Breeze plasma theme and the way the new kernel does networking, as can be seen here in my console output.

I'm running the arch linux-lts, btw. I've had no problems connecting up till today using the steam package.

iswritergeek avatar Jun 20 '19 02:06 iswritergeek

I downgraded my kernel from 4.9.0-9 to 4.9.0-8 and steam is now working correctly.

Something in the kernel update broke it.

killerrabbit avatar Jun 20 '19 02:06 killerrabbit

I had this same problem on my Arch Linux as well, but I was able to actually start steam by directly launching a game I had installed, with the command steam steam://rungameid/440 (which launches Team Fortress 2). I would test this further but after this I seem to be able to launch steam normally without any issues.

MarkDDR avatar Jun 20 '19 03:06 MarkDDR

Same issue here, steam started fine until I purged and re-installed for another issue on Ubuntu 19.04 vanilla edition. Same computer, steam on Widnows starts fine and on another edition of Ubuntu running Mate 19.04 same. I am running 5.0.0-17-generic on the version that is not working.

Xanderful avatar Jun 20 '19 05:06 Xanderful

I have the same problem running Ubuntu 19.04. The issue apparently started after the upgrade to kernel version 5.0.0-17-generic a few days ago for me as well.

I maybe have another insight though:

I'm running a strict multi-user setup which basically means that every major application has its own user or user group (leaving some details out). This also applies to steam in my case. One of the first thing I tried was starting steam from my main desktop user, since the actual steam installation is user-specific in the respective $HOME folder. Steam downloaded its bootstrap or whatever and asked me to login and provide the Steam Guard Email authentication thingy. And it worked. And it continues to work consistently with that user.

This of course means that i have no games or custom configuration in that steam instance but Steam at least starts. It seems like a complete purge and re-installation could possibly fix the problem, but I'm not sure about that. I really don't want to reinstall Steam and/or the Steam games for my steam-user and I'm not sure that would even work, so I'm hoping there will be another solution.

Edit: Another thing: If you go into your ~/.steam/steam/config folder and edit the loginusers.vdf using a text editor, you can force steam to start in offline mode, allowing you to at least play the steam games not requiring you to be online.

Hartmnt avatar Jun 20 '19 10:06 Hartmnt

Same here on Debian Unstable with mainline (not Debian) kernel 5.1.12 (and 5.1.11 also). NVidia drivers 430.26. Login works, but after that I get "Could not connect to Steam network.". I also get that when starting it with the parameter "-tcp". And I also deleted steam (except steamapps) and reinstalled. No avail.

My assumption is that some security-upgrade, probably in the kernel, which was important enough to get backported might be the trigger for steam not working anymore.

I think it's the networking in the kernel:

linux (4.9.168-1+deb9u3) stretch-security; urgency=high

[ Salvatore Bonaccorso ]

  • tcp: limit payload size of sacked skbs (CVE-2019-11477)
  • tcp: tcp_fragment() should apply sane memory limits (CVE-2019-11478)
  • tcp: add tcp_min_snd_mss sysctl (CVE-2019-11479)
  • tcp: enforce tcp_min_snd_mss in tcp_mtu_probing()
  • tcp: fix fack_count accounting on tcp_shift_skb_data()

[ Ben Hutchings ]

  • tcp: Avoid ABI change for DoS fixes
  • mm/mincore.c: make mincore() more conservative (CVE-2019-5489)
  • brcmfmac: add length checks in scheduled scan result handler
  • brcmfmac: assure SSID length from firmware is limited (CVE-2019-9500)
  • brcmfmac: add subtype check for event handling in data path (CVE-2019-9503)
  • tty: mark Siemens R3964 line discipline as BROKEN (CVE-2019-11486)
  • coredump: fix race condition between mmget_not_zero()/get_task_mm() and core dumping (CVE-2019-11599)
  • net: rds: force to destroy connection if t_sock is NULL in rds_tcp_kill_sock(). (CVE-2019-11815) (Closes: #928989)
  • ext4: zero out the unused memory region in the extent tree block (CVE-2019-11833)
  • Bluetooth: hidp: fix buffer overflow (CVE-2019-11884)
  • mwifiex: Fix possible buffer overflows at parsing bss descriptor (CVE-2019-3846)
  • mwifiex: Abort at too short BSS descriptor element
  • mwifiex: Don't abort on small, spec-compliant vendor IEs
  • mwifiex: Fix heap overflow in mwifiex_uap_parse_tail_ies() (CVE-2019-10126)

Sun, 16 Jun 2019 15:38:39 +0100

Seegras avatar Jun 20 '19 15:06 Seegras

The weird thing is that both my laptop and desktop have the latest updates and one connects now and the desktop does not. Yesterday both could not connect to steam network. I dont know what is going on. Hope they fix it soon, its driving me nutz!

Same here on Debian Unstable with mainline (not Debian) kernel 5.1.12 (and 5.1.11 also). NVidia drivers 430.26. Login works, but after that I get "Could not connect to Steam network.". I also get that when starting it with the parameter "-tcp". And I also deleted steam (except steamapps) and reinstalled. No avail.

My assumption is that some security-upgrade, probably in the kernel, which was important enough to get backported might be the trigger for steam not working anymore.

I think it's the networking in the kernel:

linux (4.9.168-1+deb9u3) stretch-security; urgency=high [ Salvatore Bonaccorso ]

  • tcp: limit payload size of sacked skbs (CVE-2019-11477)
  • tcp: tcp_fragment() should apply sane memory limits (CVE-2019-11478)
  • tcp: add tcp_min_snd_mss sysctl (CVE-2019-11479)
  • tcp: enforce tcp_min_snd_mss in tcp_mtu_probing()
  • tcp: fix fack_count accounting on tcp_shift_skb_data()

[ Ben Hutchings ]

  • tcp: Avoid ABI change for DoS fixes
  • mm/mincore.c: make mincore() more conservative (CVE-2019-5489)
  • brcmfmac: add length checks in scheduled scan result handler
  • brcmfmac: assure SSID length from firmware is limited (CVE-2019-9500)
  • brcmfmac: add subtype check for event handling in data path (CVE-2019-9503)
  • tty: mark Siemens R3964 line discipline as BROKEN (CVE-2019-11486)
  • coredump: fix race condition between mmget_not_zero()/get_task_mm() and core dumping (CVE-2019-11599)
  • net: rds: force to destroy connection if t_sock is NULL in rds_tcp_kill_sock(). (CVE-2019-11815) (Closes: #928989)
  • ext4: zero out the unused memory region in the extent tree block (CVE-2019-11833)
  • Bluetooth: hidp: fix buffer overflow (CVE-2019-11884)
  • mwifiex: Fix possible buffer overflows at parsing bss descriptor (CVE-2019-3846)
  • mwifiex: Abort at too short BSS descriptor element
  • mwifiex: Don't abort on small, spec-compliant vendor IEs
  • mwifiex: Fix heap overflow in mwifiex_uap_parse_tail_ies() (CVE-2019-10126)

Sun, 16 Jun 2019 15:38:39 +0100

blastermaster77 avatar Jun 20 '19 16:06 blastermaster77

I copied the .steam folder from my laptop that does login and it fixed the problem this is weird.

EDIT: I stoped working again

blastermaster77 avatar Jun 20 '19 17:06 blastermaster77

I have same problem with fresh installed 64-bit Ubuntu 18.04. Edit: It works with 4.18.0-15 kernel no problem but with newest 4.18.0-22 version not work.

jkaart avatar Jun 20 '19 19:06 jkaart

Downgraded kernel from 5.1.11-arch1-1-ARCH to 5.1.8-arch1-1-ARCH (which is the latest previous version I had in pacman cache) and Steam now works again. Changed nothing else so yeah, something kernel related.

jonlap avatar Jun 20 '19 19:06 jonlap

Valve, please fix steam. Going back to a kernel which has at least 13 known security vulnerabilites (all the changes denoted with CVE's are security fixes) is not an option.

Seegras avatar Jun 20 '19 20:06 Seegras

Running steam from terminal with -tcp param fixed this problem for me:

$ steam -tcp

YevPo avatar Jun 20 '19 20:06 YevPo

I'm on Pop!_OS 19.04 (desktop optimized Ubuntu) with a 5.x kernel and haven't had any problems with steam. Been on this kernel for a few weeks now.

dhollinger avatar Jun 20 '19 20:06 dhollinger

It's not just a 5.x kernel, but probably 5.1.11 or newer (or an earlier one with some security fixes backported). Apparently 5.1.8 works, 5.1.9 and 5.1.10 might also.

Seegras avatar Jun 20 '19 20:06 Seegras

Linux arch 5.1.11-arch1-1-ARCH Steam: Jun 17 2019, at 23:31:27 Steam works fine. Also 1 or 2 days earlier, steam asked me to log-in manually.

XakepSDK avatar Jun 20 '19 21:06 XakepSDK

I'm glad people are starting to notice this. It's been happening to me since Monday when I got the 5.0.0-17 kernel update and I hadn't seen anyone comment on it and thought I was the only one.

As others have said, rolling back to an earlier kernel version works (in my case to 5.0.0-16) resolves this issue.

My console output ends at

Running Steam on linuxmint 19.1 64-bit
STEAM_RUNTIME is enabled automatically
Pins up-to-date!
[2019-06-18 19:48:15] Startup - updater built Jun 17 2019 23:31:08
[2019-06-18 19:48:15] Verifying installation...
[2019-06-18 19:48:15] Verification complete
STEAM_RUNTIME_HEAVY: ./steam-runtime-heavy
[2019-06-18 19:48:41] Shutdown

The google results for issues with not being able to connect suggest deleting ~/.steam, which resulting in Steam re-downloading and installing and successfully connecting. But after closing Steam and trying to login again, it starts failing again.

Another suggestion was to run steam --reset. Not sure if it's related, but I get Error: Couldn't find bootstrap, it's not safe to reset Steam. Please contact technical support.

Running Steam through Wine also connects successfully.

ugly95 avatar Jun 20 '19 21:06 ugly95