Closed Gilrain closed 11 months ago
I can't reproduce this on my Debian with systemd 254.1. Everything works like before with the service file.
Can you check if adding AF_NETLINK
instead of AF_UNIX
works for you? This will be required starting from .NET 8, perhaps it'll also fix the issue "by the way" for you @Gilrain
BTW I also had some login issues today, but unrelated to this, I'm wondering if this isn't purely a coincidence from Steam side. Please check if AF_NETLINK
instead of AF_UNIX
works for you, and then if removing both still causes the problems, systemd is pretty unified so I'd expect my debian to suffer from the same issue if that was something global.
Just chiming in to tell you I was unable to reproduce it either.
AF_NETLINK throws the same exceptions. Steam would be pretty selective since logins never failed when manually launching the binary. Must be specific to either systemd 254.4 or arch. If no one can reproduce this, I'll just patch the aur/asf package.
I don't buy it, distro patches shouldn't be required to run ASF and ASF should come with the default setting that "just works" for majority if not all of the people, and eventual stuff that I'd disagree with would be only if arch did something completely different than every other distro and cost of supporting it would be unrealistically high compared to everybody else.
Since those are security options, and you found out at least one situation where our security settings are too closed, I'm going to relax it since there is no reason for our security settings to break some valid and popular setup. I'll add a fix myself :+1:
Done, systemd unit which comes with 5.4.10.3 should no longer cause you issues as it includes AF_UNIX
, and I also added AF_NETLINK
while doing that.
Naturally it'll be needed to reload systemd for changes to happen, so users after upgrade are advised to either reboot the machine, or systemctl daemon-reload && systemctl restart 'ArchiSteamFarm@*'
. That's required only if the above problem affects your setup, since otherwise nothing changes for majority of people.
Thank you for being so open minded. Keep up the good work.
Checklist
ASF version
Latest pre-release
ASF variant
linux-x64
Bug description
After upgrading to 5.4.10.2, ArchiSteamFarm@.service can no longer connect to api.steampowered.com and gets into an infinite login loop. Manually starting ArchiSteamFarm.dll works as expected.
Expected behavior
Successful connections to the steam accounts using the service file.
Actual behavior
Connections are initiated but never completed due to a System.Net.Http.HttpRequestException immediatly followed by a System.Net.Sockets.SocketException
Steps to reproduce
Start asf using with ArchiSteamFarm@.service
Possible reason/solution
Adding AF_UNIX to the RestrictAddressFamilies in the service file solves the problem and logins can complete. This allow asf to use unix sockets which appear to be needed as of 5.4.10.
Can you help us with this bug report?
Yes, I can code the solution myself and send a pull request
Full log.txt recorded during reproducing the problem
Global ASF.json config file
No response
BotName.json config of all affected bot instances
No response
Additional info
No response