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 cannot connect to friends network #44254

Closed
mat8913 opened this issue Jul 31, 2018 · 19 comments
Closed

Steam cannot connect to friends network #44254

mat8913 opened this issue Jul 31, 2018 · 19 comments

Comments

@mat8913
Copy link
Contributor

mat8913 commented Jul 31, 2018

Issue description

The Steam client cannot connect to the friends network. I'm still able to browse the Steam store and download games. I tried disabling the firewall, that had no effect.

Steps to reproduce

  1. Install Steam: nix-env -iA nixos.steam

  2. Open Steam and log in

  3. Wait a little bit, and a new window will open attempting to connect to Steam friends network

  4. Get message:

    FRIENDS NETWORK UNREACHABLE
    This failure may indicate that your local network is offline or that the Steam Friends servers are currently offline.
    

Technical details

$ nix-shell -p nix-info --run "nix-info -m"
 - system: `"x86_64-linux"`
 - host os: `Linux 4.14.56, NixOS, 18.03.132915.d6c6c7fcec6 (Impala)`
 - multi-user?: `yes`
 - sandbox: `no`
 - version: `nix-env (Nix) 2.0.4`
 - channels(matthew): `"nixos-18.03"`
 - channels(root): `"nixos-18.03.132915.d6c6c7fcec6"`
 - nixpkgs: `/nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs`
@puffnfresh
Copy link
Member

Yeah, I can confirm the new friends feature doesn't work on NixOS.

@Enzime
Copy link
Member

Enzime commented Aug 1, 2018

Temporary fix is to launch steam with the flags -nochatui -nofriendsui, Steam should launch and use the old Friends list system.

@TomSmeets
Copy link
Contributor

I can't reproduce this issue on my machine tracking the nixos-unstable channel.
Everything works fine here.

$ nix-shell -p nix-info --run "nix-info -m"
 - system: `"x86_64-linux"`
 - host os: `Linux 4.14.54, NixOS, 18.09pre145679.dae9cf6106d (Jellyfish)`
 - multi-user?: `yes`
 - sandbox: `no`
 - version: `nix-env (Nix) 2.0.4`
 - channels(root): `"nixos-18.09pre145679.dae9cf6106d"`
 - nixpkgs: `/nix/var/nix/profiles/per-user/root/channels/nixos`

@mat8913
Copy link
Contributor Author

mat8913 commented Aug 3, 2018

I've been experimenting with nixos-rebuild build-vm and discovered that the problem only occurs when I have this line in my configuration.nix:

time.timeZone = "Australia/Sydney";

Temporary workaround: launch Steam as TZ=UTC steam.

@vcunat
Copy link
Member

vcunat commented Aug 3, 2018

I wonder if this could be something like #38991 but with the timezone format instead of locale.

@Vodurden
Copy link
Contributor

Vodurden commented Aug 5, 2018

As an Australian who uses steam on NixOS I can confirm I'm experiencing the same issue on nixpkgs 18.03. And that using TZ=UTC steam fixes the issue.

I've modified steam in my local nixpkgs to apply the workaround by adding TZ=UTC to the profile used by the chroot: Vodurden@2a7f0a4

I also noticed that this workaround only solves the issue if I launch steam through steam & on the command line or with Command Line: run steam in the plasma application launcher. If I launch steam through the Applications shortcut it doesn't seem to work. Not sure if that helps with diagnosing the root cause but I figure every detail helps :)

@mat8913
Copy link
Contributor Author

mat8913 commented Aug 5, 2018

Perhaps I should've tried this earlier, but launching Steam as TZ="Australia/Sydney" steam also works for me.

I have a theory that when TZ is not set, Steam figures out the timezone by doing the equivalent of readlink /etc/localtime.

On NixOS, this results in:

/nix/store/sf38jy6fka7w2h06gjlxfh8z122j2v5r-steam-usr-target/etc/localtime

and Steam isn't able to figure anything out. However, on Debian (where Steam chat still works), this results in:

/usr/share/zoneinfo/Australia/Sydney

and Steam can figure out the timezone.


I just tested my theory on NixOS by doing this as root:
(Probably don't do this on your own system because it messes with the store)

cd /nix/store/r9qphv5nsab91a8ap2jknwyfbigqkq9y-steam-fhs/etc
mount -o remount,rw /nix/store/
rm localtime 
ln -s /host/etc/zoneinfo/Australia/Sydney localtime

and now Steam chat works!

mat8913 added a commit to mat8913/nixpkgs that referenced this issue Aug 7, 2018
Workaround for issue NixOS#44254 (Steam cannot connect to friends network)
mat8913 added a commit to mat8913/nixpkgs that referenced this issue Aug 7, 2018
Workaround for issue NixOS#44254 (Steam cannot connect to friends network)
@instantepiphany
Copy link

@mat8913 Maybe open a PR to get your fix into the main repo? Nice work on figuring it out guys!

@instantepiphany
Copy link

@mat8913's fix works on my machine. Just copied it to my local checkout of nixpkgs, did nixos-rebuild switch, opened steam and the new friends chat UI loaded and works fine!

@mat8913
Copy link
Contributor Author

mat8913 commented Sep 16, 2018

@instantepiphany

If you're referring to the steam: Set TZ to detected timezone on startup commit, I've opened a PR at #44602.

@GreatBigWhiteWorld
Copy link

Any progress? Have had this problems for months and no fix coming?

@vcunat
Copy link
Member

vcunat commented Oct 2, 2018

@GreatBigWhiteWorld: did you try that PR and failed? (I know it's not merged yet.)

@instantepiphany
Copy link

@GreatBigWhiteWorld That PR by @mat8913 worked for me - #44602
After applying that patch I have had no problems so far!

@GreatBigWhiteWorld
Copy link

Sorry I don't know how to apply a PR. I ain't no programmer....

@rthoo
Copy link

rthoo commented Oct 20, 2018

I've changed the Download Region in Settings -> Downloads to US - Boston and it's fine now.

image

@instantepiphany
Copy link

@GreatBigWhiteWorld Knowing how to apply patches and having basic git skills will help if you want to use NixOS.

But look at @rthoo's response, try that and see if it helps.

@cpages
Copy link
Contributor

cpages commented Oct 22, 2018

I'm unable to reproduce this (on unstable and with steam beta). Should we only apply the patch to 18.09?

@GreatBigWhiteWorld
Copy link

@Enzime So adding -nochatui -nofriendsui after the command worked until the last update, which broke it again. Good job valve.
@instantepiphany Change download region to Boston doesn't work for me.

@infinisil
Copy link
Member

Closed with #44602

infinisil pushed a commit that referenced this issue Nov 10, 2018
…#44602)

* steam: Set TZ to detected timezone on startup

Workaround for issue #44254 (Steam cannot connect to friends network)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests