STEAM GROUP
Archi's SC Farm Archi-ASF
STEAM GROUP
Archi's SC Farm Archi-ASF
88,902
IN-GAME
463,659
ONLINE
Founded
October 29, 2015
Language
English
Khale Jan 27, 2024 @ 4:43pm
Exit on startup with "nonzero error code"
Hey, just hoping someone can direct me to a fix here. First time using ASF in a solid few years here, and so I downloaded new versions of it and .net and did my configs, but it's immediately exiting when I try to start it up and never even getting to running a bot config. Looks to be an issue with MsQuicApi, whatever that is. Skipping over all the successful startups in the log, I seem to first have failures on the latest version check communication to github, but then a fatal exception with System.Net.Quic.MsQuicApi, and it finishes with "Exiting with nonzero error code!"
I initially started with 5.5.1.4, but after a restart I decided to try the newest 5.5.2.1 and get the same exact issue, so it seems like it's got to be something wrong on my side that isn't unique to any newer versions. I never had problems before, but it's been probably at least 2-3 years since I last had ASF running.. If someone can tell me what and how I'm screwing up, that'd be great.

Full dump of my log file:

2024-01-27 16:23:02|ArchiSteamFarm-20268|INFO|ASF|InitCore() ArchiSteamFarm V5.5.2.1 (win-x64/9e7e62c2-dee1-48c5-a9e8-92df233cd6bb | .NET 8.0.1; win-x64; Microsoft Windows 10.0.22621)
2024-01-27 16:23:02|ArchiSteamFarm-20268|INFO|ASF|InitCore() Copyright © 2015-2024 JustArchiNET
2024-01-27 16:23:02|ArchiSteamFarm-20268|WARN|ASF|InitCore() You're attempting to run ASF as the administrator (root). This causes a significant security risk to your machine, and as ASF does not require root access for its operation, we recommend to run it as non-administrator user if possible.
2024-01-27 16:23:07|ArchiSteamFarm-20268|INFO|ASF|InitPlugins() Initializing Plugins...
2024-01-27 16:23:07|ArchiSteamFarm-20268|INFO|ASF|InitPlugins() Loading ItemsMatcherPlugin V5.5.2.1...
2024-01-27 16:23:07|ArchiSteamFarm-20268|INFO|ASF|InitPlugins() ItemsMatcherPlugin has been loaded successfully!
2024-01-27 16:23:07|ArchiSteamFarm-20268|INFO|ASF|InitPlugins() Loading MobileAuthenticatorPlugin V5.5.2.1...
2024-01-27 16:23:07|ArchiSteamFarm-20268|INFO|ASF|InitPlugins() MobileAuthenticatorPlugin has been loaded successfully!
2024-01-27 16:23:07|ArchiSteamFarm-20268|INFO|ASF|InitPlugins() Loading SteamTokenDumperPlugin V5.5.2.1...
2024-01-27 16:23:07|ArchiSteamFarm-20268|INFO|ASF|InitPlugins() SteamTokenDumperPlugin has been loaded successfully!
2024-01-27 16:23:07|ArchiSteamFarm-20268|INFO|ASF|UpdateAndRestart() ASF will automatically check for new versions every 1 day.
2024-01-27 16:23:07|ArchiSteamFarm-20268|INFO|ASF|Update() Checking for new version...
2024-01-27 16:23:07|ArchiSteamFarm-20268|WARN|ASF|UrlGetToStream() Request failed after 1 attempts!
2024-01-27 16:23:07|ArchiSteamFarm-20268|DEBUG|ASF|UrlGetToStream() Request failing: https://api.github.com/repos/JustArchiNET/ArchiSteamFarm/releases/latest
2024-01-27 16:23:07|ArchiSteamFarm-20268|WARN|ASF|UrlGetToStream() Request failed after 1 attempts!
2024-01-27 16:23:07|ArchiSteamFarm-20268|DEBUG|ASF|UrlGetToStream() Request failing: https://api.github.com/repos/JustArchiNET/ArchiSteamFarm/releases/latest
2024-01-27 16:23:07|ArchiSteamFarm-20268|WARN|ASF|UrlGetToStream() Request failed after 1 attempts!
2024-01-27 16:23:07|ArchiSteamFarm-20268|DEBUG|ASF|UrlGetToStream() Request failing: https://api.github.com/repos/JustArchiNET/ArchiSteamFarm/releases/latest
2024-01-27 16:23:07|ArchiSteamFarm-20268|WARN|ASF|UrlGetToStream() Request failed after 1 attempts!
2024-01-27 16:23:07|ArchiSteamFarm-20268|DEBUG|ASF|UrlGetToStream() Request failing: https://api.github.com/repos/JustArchiNET/ArchiSteamFarm/releases/latest
2024-01-27 16:23:07|ArchiSteamFarm-20268|WARN|ASF|UrlGetToStream() Request failed after 1 attempts!
2024-01-27 16:23:07|ArchiSteamFarm-20268|DEBUG|ASF|UrlGetToStream() Request failing: https://api.github.com/repos/JustArchiNET/ArchiSteamFarm/releases/latest
2024-01-27 16:23:07|ArchiSteamFarm-20268|WARN|ASF|UrlGetToJsonObject() Request failed after 5 attempts!
2024-01-27 16:23:07|ArchiSteamFarm-20268|DEBUG|ASF|UrlGetToJsonObject() Request failing: https://api.github.com/repos/JustArchiNET/ArchiSteamFarm/releases/latest
2024-01-27 16:23:07|ArchiSteamFarm-20268|WARN|ASF|Update() Could not check latest version!
2024-01-27 16:23:07|ArchiSteamFarm-20268|INFO|ASF|OnASFInit() SteamTokenDumperPlugin is currently disabled according to your configuration. If you'd like to help SteamDB in data submission, please check out our wiki.
2024-01-27 16:23:07|ArchiSteamFarm-20268|INFO|ASF|StartInteractiveConsole() Interactive console is now active, type 'c' in order to enter command mode.
2024-01-27 16:23:07|ArchiSteamFarm-20268|INFO|ASF|Start() Starting IPC server...
2024-01-27 16:23:07|ArchiSteamFarm-20268|FATAL|ASF|OnUnhandledException() System.TypeInitializationException: The type initializer for 'System.Net.Quic.MsQuicApi' threw an exception.
---> System.EntryPointNotFoundException: Entry point was not found.
at System.Runtime.InteropServices.NativeLibrary.<GetSymbol>g____PInvoke|4_0(IntPtr, UInt16*, Int32)
at System.Runtime.InteropServices.NativeLibrary.GetSymbol(IntPtr, String, Boolean )
at System.Runtime.InteropServices.NativeLibrary.GetExport(IntPtr, String)
at System.Net.Quic.MsQuicApi..cctor()
--- End of inner exception stack trace ---
at System.Net.Quic.MsQuicApi.get_IsQuicSupported()
at System.Net.Quic.QuicListener.get_IsSupported()
at Microsoft.AspNetCore.Hosting.WebHostBuilderQuicExtensions.UseQuic(IWebHostBuilder)
at Microsoft.AspNetCore.Hosting.WebHostBuilderQuicExtensions.UseQuic(IWebHostBuilder, Action`1)
at Microsoft.AspNetCore.Hosting.WebHostBuilderKestrelExtensions.UseKestrel(IWebHostBuilder)
at Microsoft.AspNetCore.Hosting.WebHostBuilderKestrelExtensions.UseKestrel(IWebHostBuilder, Action`2)
at Microsoft.AspNetCore.WebHost.ConfigureWebDefaults(IWebHostBuilder)
at Microsoft.Extensions.Hosting.GenericHostBuilderExtensions.<>c__DisplayClass1_0.<ConfigureWebHostDefaults>b__0(IWebHostBuilder webHostBuilder)
at Microsoft.Extensions.Hosting.GenericHostWebHostBuilderExtensions.ConfigureWebHost(IHostBuilder, Func`3, Action`1, Action`1)
at Microsoft.Extensions.Hosting.GenericHostWebHostBuilderExtensions.ConfigureWebHost(IHostBuilder, Action`1, Action`1)
at Microsoft.Extensions.Hosting.GenericHostBuilderExtensions.ConfigureWebHostDefaults(IHostBuilder, Action`1, Action`1)
at Microsoft.Extensions.Hosting.GenericHostBuilderExtensions.ConfigureWebHostDefaults(IHostBuilder, Action`1)
at ArchiSteamFarm.IPC.ArchiKestrel.Start()
at ArchiSteamFarm.Core.ASF.Init()
at ArchiSteamFarm.Program.InitASF()
at ArchiSteamFarm.Program.Init(IReadOnlyCollection`1 args)
at ArchiSteamFarm.Program.Main(String[] args)
at ArchiSteamFarm.Program.<Main>(String[] args)
2024-01-27 16:23:07|ArchiSteamFarm-20268|ERROR|ASF|Exit() Exiting with nonzero error code!
Originally posted by Archi:
The log file you posted suggests some heavy networking-related dependency issues on your machine. The alone fact that ASF can't even check for updates is an issue on its own, but the moment IPC is about to start, everything just blows up at you due to that - there is no way for ASF to function in such environment.

I have no clue what might be the issue in your specific case, as the exception doesn't point to any single source of problem. You can try to enable Debug: true and see what ASF says about that failed request to GitHub, as that might point you to the right direction. If I was about to blindly suggest anything, then that looks either like some heavy sandboxed environment that doesn't allow ASF to do what it should (Antivirus? Sandboxing tool?), or your Windows is in some way castrated out of core libraries and dependencies that it should be bundled with. It's impossible to say which changes you've exactly applied to your OS, but it's definitely nothing that comes by default or can be just flipped in Windows settings.

As an alternative, you can try running generic version (after installing .NET SDK as per the wiki in setting up section) and see if you can reproduce there. Perhaps that will magically bring back some of those missing dependencies and allow you to run, but it's not guaranteed.

If nothing else helps, OS reinstall is the definitive answer that will for sure.
< >
Showing 1-3 of 3 comments
A moderator of this forum has indicated that this post answers the original topic.
Archi Jan 29, 2024 @ 8:08am 
The log file you posted suggests some heavy networking-related dependency issues on your machine. The alone fact that ASF can't even check for updates is an issue on its own, but the moment IPC is about to start, everything just blows up at you due to that - there is no way for ASF to function in such environment.

I have no clue what might be the issue in your specific case, as the exception doesn't point to any single source of problem. You can try to enable Debug: true and see what ASF says about that failed request to GitHub, as that might point you to the right direction. If I was about to blindly suggest anything, then that looks either like some heavy sandboxed environment that doesn't allow ASF to do what it should (Antivirus? Sandboxing tool?), or your Windows is in some way castrated out of core libraries and dependencies that it should be bundled with. It's impossible to say which changes you've exactly applied to your OS, but it's definitely nothing that comes by default or can be just flipped in Windows settings.

As an alternative, you can try running generic version (after installing .NET SDK as per the wiki in setting up section) and see if you can reproduce there. Perhaps that will magically bring back some of those missing dependencies and allow you to run, but it's not guaranteed.

If nothing else helps, OS reinstall is the definitive answer that will for sure.
Khale Jan 30, 2024 @ 3:00pm 
No clue what's up there Archi, but thanks for the info and for making ASF.
I'm not running anything weird, I don't do sandboxing or VMs or anything. I'm just running Win11 "upgrade" from Win10 and nothing special going on. The only type of Windows customization I've done in most of a decade at this point is basic bitch stuff having a clean desktop with mildly customized Rainmeter layouts and using RocketDock lol, so I have no idea what's up.

I can tell you that the connection issue is unique to new versions of ASF. I went back in releases to something close to when I figured the last time I used ASF was, and downloaded 5.1.3.5 from Aug '21 and it was totally able to talk to GitHub and ran the download and install of the new version. Unfortunately as soon as it updated, it broke in the exact same way, so I had a log file of it updating and then a new log file of exactly the same issue as above (just without being run in Administrator that time) as soon as it went back to 5.5.1.4 again...

I'm having no issues with anything else on my system not working properly, so I'm just going to go ahead and leave it here... No offence intended because I appreciate you and ASF immensely, but there's no way in which my lazy ass is going to fully reinstall Windows just to solve running this specific thing to idle my Steam cards. Already spent like 2 hours trying to troubleshoot this issue. It then took about 3 minutes total to download Idle Master Extended instead, pop into Chrome to quickly grab Steam cookie info, and have it up and running. I'd have preferred to keep using ASF, but like I said, I'm absolutely too lazy to spend hours doing a clean Windows install and having to re-do all my configuration and layout stuff, reinstall programs, etc. just to get ASF going when literally no other program I've used has is having any issues.

Anyhow, thanks again for the response, and for making ASF. It's awesome, even if it won't work for me anymore. Keep up the good work, you're a benefit to the community. I'll check back on ASF again next time I stop being lazy and do a fresh Windows install and see if it fixes the problem for me then.
Archi Feb 1, 2024 @ 1:30am 
That's not only ASF, that will be any app on .NET 8. It just happens that ASF is so well maintained and updated that it's up-to-date with latest features, while other apps usually catch up much later. But it's understandable, it's not like I can do anything with it anyway, as it's totally runtime/OS issue and nothing I have direct control over.
< >
Showing 1-3 of 3 comments
Per page: 1530 50