Skip to content

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

Closed

Description

@killerrabbit

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

Activity

  1. jonlap commented on Jun 20, 2019

    @jonlap

    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

  2. neirenoir commented on Jun 20, 2019

    @neirenoir

    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?

  3. blastermaster77 commented on Jun 20, 2019

    @blastermaster77

    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.

  4. iswritergeek commented on Jun 20, 2019

    @iswritergeek

    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.

  5. killerrabbit commented on Jun 20, 2019

    @killerrabbit
    Author

    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.

  6. MarkDDR commented on Jun 20, 2019

    @MarkDDR

    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.

  7. Xanderful commented on Jun 20, 2019

    @Xanderful

    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.

  8. Hartmnt commented on Jun 20, 2019

    @Hartmnt

    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.

  9. 97 remaining items

  10. sizeofbool commented on Jul 16, 2019

    @sizeofbool

    It looks like some sort of misconfigured anti-DDoS measures on Valve side are preventing Steam Client from connecting properly.
    On my Debian 'stretch' system, kernel version is 4.19 and these connectivity problems are happen sporadically when I launch Steam Client. It complains about obviously working Internet connection, and if I restart Steam Client a few times, without changing or doing anything it will work.
    It is hard to diagnose on user side because some Valve hosts are not responding to ICMP requests (eg. 162.254.198.132) and you can't tell if this host is working or not.

  11. cheloide commented on Jul 20, 2019

    @cheloide

    A workaround for debian (since we won't be getting kernel updates anytime soon) is downloading this kernel image and installing it with dpkg:

    wget https://snapshot.debian.org/archive/debian/20190316T031117Z/pool/main/l/linux-signed-amd64/linux-image-4.19.0-4-amd64_4.19.28-2_amd64.deb -o /tmp/linux-image-4.19.0-4-amd64_4.19.28-2_amd64.deb
    sudo dpkg -i /tmp/linux-image-4.19.0-4-amd64_4.19.28-2_amd64.deb
    

    I recommend installing the kernel headers first if you have nvidia drivers.

    Rebooting and selecting "Advanced options" in Grub menu and boot with the newly installed kernel image
    you will be able to login to steam desktop that way.

    After that you will be able to open steam when booting with the current kernel.

    credits to Laladen

  12. boltronics commented on Jul 21, 2019

    @boltronics

    I upgraded to Buster and got smacked with this. Spent hours trying to debug - I run steam in a Firejail private directory and figured the newer version of Firejail broke it somehow. Then I discovered it would work on a clean install but fail when I added my games library directory, leading me to be even more convinced it was Firejail-related... but nope it was this.

    That's really bad timing to have this hit just as Buster was made stable and everyone is upgrading.

  13. nosoop commented on Jul 22, 2019

    @nosoop

    Latest Debian Buster kernel package (4.19.37-5+deb10u1) includes the upstream commit for this fix.

    Installed on my test VM and SteamCMD's app_update now tells me that the application is up to date instead of timing out on AppInfo update.

  14. aaronfranke commented on Jul 27, 2019

    @aaronfranke

    I'm experiencing this issue on Ubuntu 18.04 with kernel 4.18.0-22-generic.

    Does anyone know what the latest working version of the kernel is?

  15. boltronics commented on Jul 28, 2019

    @boltronics

    I built the latest 5.2.2 kernel, and that's working for me... usually. It still seems to fail every 2nd or 3rd time I try to load Steam, but retrying gets it working.

    Note if you use firejail there is a bug in the default profile that also causes Steam to fail to connect with the same error.

    netblue30/firejail#2860

    But even with that disabled, I'm still getting occasional login issues. Not sure yet if the kernel wasn't 100% fixed, or if there are other issues with the firejail profile, or possibly even Steam itself. Some factors to consider are that I have a large game library (1768 games) and the issue doesn't seem to occur when games are not installed (and I have most installed because my Internet isn't that fast and I have lots of storage). Lots are using Proton. Also, Steam is installed in a private directory so game configurations and saves are not scattered around my actual home directory.

    FWIW, I use:

    $ cat .config/firejail/steam.local 
    private ~/firejail/steam
    
    # Required for Steam to recognise game controllers.
    ignore private-dev
    
    # Prevent Proton freezes.
    # https://github.com/netblue30/firejail/issues/2860
    ignore seccomp
    $
    

    I didn't have an issue before upgrading from Stretch to Buster.

  16. RafneQ commented on Jul 28, 2019

    @RafneQ

    I'm experiencing this issue on Ubuntu 18.04 with kernel 4.18.0-22-generic.

    Does anyone know what the latest working version of the kernel is?

    @aaronfranke for Ubuntu 18.04 it looks like it was fixed in 4.18.0-25 (I'm currently using this one on my machine and Steam runs just fine). It appears the affected kernels were 4.18.0-22 and 4.18.0-24 (version 23 was not published in repos)

  17. jamesdolan commented on Aug 2, 2019

    @jamesdolan

    Hitting this issue with 4.18.0-25-generic on ubuntu 18.04, if user-land software like steam is sensitive to kernel versions that seems REALLY bad, since this issue would just keep coming back. So my guess is kernel version is a red herring, or, I at least hope to god it is.

    Seems to happen on the second launch... first run of steam does the typical initial update/install, then steam loads as expected, if I close steam and try and re-launch it, I hit this issue, nuking my ~/.steam directory and launching again will re-install and run, but that's a pretty horrible workaround. So, seems like some bit is being set when steam is running that when it reloads it blows up on.

    I was able to come up with pretty reliable repro though, made a docker image to contain the problem so I can repeat it. Even if you don't actually try this docker setup, point being it repros on a clean environment.

    Dockerfile

    FROM nvidia/opengl:1.0-glvnd-runtime-ubuntu18.04
    RUN apt update
    RUN apt install -y steam
    

    Launch command

    $ xhost +local:root
    $ nvidia-docker run \
        --interactive --tty \
        --env="DISPLAY" \
        --env="NVIDIA_VISIBLE_DEVICES=all" \
        --env="NVIDIA_DRIVER_CAPABILITIES=all" \
        --volume="/tmp/.X11-unix:/tmp/.X11-unix:rw" \
        steam_image \
        /usr/games/steam && /usr/games/steam # second run will fail
    
  18. draeath commented on Aug 2, 2019

    @draeath

    @jamesdolan I would make a note of the image hash you are referencing in FROM (as a comment) so it's possible to notice a replaced upstream image with the same tag. This is important if reproducing something is the intent.

    I've had this happen to me cough jetty cough - version numbers stayed the same but image was rebuilt and subtly different due to a different further-upstream image.

    Also always chain package manager commands with && with a cache refresh as the first. I would do:

    # FROM abc768152784563789645
    FROM nvidia/opengl:1.0-glvnd-runtime-ubuntu18.04
    RUN apt update && apt install -y steam
    

    If you don't do this, you'll end up getting bitten by docker's cache sooner or later, and try to install packages no longer in the repo (as the metadata is stale in the cached docker layer)

  19. lilianmoraru commented on Aug 3, 2019

    @lilianmoraru

    @cheloide

    I recommend installing the kernel headers first if you have nvidia drivers.

    To add to that(info for other users):
    I recommend running dkms status first to see that the nvidia dkms module was compiled and installed correctly first(before restarting the PC).
    You should see something like this:

    nvidia, 430.40, 5.2.5, x86_64: installed
    

    Instead of 5.2.5, it should be your kernel version.

  20. ignacioPL commented on Sep 28, 2019

    @ignacioPL

    I have the same problem in Linux Mint with kernel 5.0.0-29 I also tried 4.18.0-25 and 4.15.0-64 all the same issue.

  21. kisak-valve commented on Sep 28, 2019

    @kisak-valve
    Member

    As previously noted, this issue was resolved with tcp: refine memory limit test in tcp_fragment() and was backported to the LTS kernels.

    This has gotten into most distro-provided kernels and there's nothing left to investigate here.

    I'm going to lock this issue to avoid spam going to the subscribed participants.

    @ignacioPL, there is an issue with Steam's servers right now, not your system.

  22. locked as resolved and limited conversation to collaborators on Sep 28, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions