-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Problems with systemd after newest update #3352
Comments
@Ren108 I can't reproduce this, so I'll need more details from you. Somewhere in This is example of what you're looking for in
Please reproduce your issue and let me know, I won't be able to go forward with this issue without that information as I'm unable to reproduce it on my debian machine. |
|
Based on the above log you're running ASF in LXC container and not natively in systemd. Apparently, this is less secure as it requires calls that are normally NOT needed for running ASF, that ASF's systemd service explicitly disallows. You can use ### Editing /etc/systemd/system/[email protected]/override.conf
### Anything between here and the comment below will become the contents of the drop-in file
[Service]
SystemCallFilter=
### Edits below this comment will be discarded
### /etc/systemd/system/[email protected]
# [Install]
# WantedBy=multi-user.target
(...) See https://github.com/JustArchiNET/ArchiSteamFarm/wiki/Management#overriding-part-of-the-service-unit for more details. Since I don't believe disabling additional security measures by ASF is a good idea only to make ASF work in LXC, I believe there isn't anything to improve in this regard. If users want to run ASF in less secure environments, including, additional sandboxes that require additional privileges, then it's expected from them to modify ASF's example systemd unit to suit their needs. And yes, I acknowledge that it could've been working in the past (.NET 8), but it doesn't change the above. |
i am not that familar with linux. I just followed the tutorial on the github wiki and thats the result after updating. How can i enable that security? I have not disabled that knowingly. |
I'd recommend you to just override the unit for your environment instead, Ubuntu is known for doing things differently than all other linux distros, unless you have motivation to change for other linux distro, it's easier to fix ASF to work in this situation than reinstall or fiddle with its differences. Especially considering I can't really provide you ubuntu support since I don't use that distro. |
So everyone with ubuntu distro will face this issue? |
As you can see in the screenshot its 22.04.5 lts |
Okay, but I'm not going to test thousands of different distributions and versions to ensure that ASF works on all of them, and fix their bugs. I tested latest version of Debian, latest version of Ubuntu, on top of latest versions of other distros - ASF works fine there. I do not know why on ubuntu 22.04 LTS ASF doesn't work and since it's not latest version of Ubuntu I don't believe it's a problem on ASF end - likely some bug that got corrected in the newer release (because it works there). I do not provide distro-specific and especially distro-version-specific support here in ASF repo. I presented you above two solutions - either upgrading to latest Ubuntu version, or adding systemd override for your specific environment problem. If you're not satisfied with those solutions then you can ask on ubuntu support why this specific app does not work with systemd shipped there, because I'm not going to dig into distro specific internals to find out why, considering the newer version of the same distro works fine. |
As i stated above i am not that familar with linux. You said you dont know my environment but it was readable in my screenshot. I will try to upgrade my distro to 24 lts and hopefully i will get rid of that bug ;) thx for your help so far. |
this is less of a OS issue and more of a "where did you get this server/machine" issue, you have a LXC container instead of a VM or just running bare metal |
oh ok i see... as its a rented server i should do that. |
FYI I've added a fix for that in V6.1.0.3, since I managed to grab more details and determined even if it's not really ASF issue, there is no reason to have overly aggressive system call filter. |
Thx in the name of others that dont know LXC containers ;) I myself never heard of it. I only knew VM. |
Discussed in #3351
Originally posted by Ren108 December 2, 2024
After Updating DotNet to Version 9 and updating ASF to latest version i am unable to execute start ArchiSteamFarm@asf
however i can still run dotnet /home/asf/ArchiSteamFarm/ArchiSteamFarm.dll with no issues... any suggestions?
For now i will run dotnet /home/asf/ArchiSteamFarm/ArchiSteamFarm.dll in screen...
The text was updated successfully, but these errors were encountered: