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

Error with Microsoft.AspNetCore.Server.Kestrel #3021

Closed
7 tasks done
timmycodesforfun opened this issue Oct 3, 2023 · 1 comment
Closed
7 tasks done

Error with Microsoft.AspNetCore.Server.Kestrel #3021

timmycodesforfun opened this issue Oct 3, 2023 · 1 comment
Labels
👥 Duplicate Issues marked with this label are duplicate of already existing issues, they serve no purpose.

Comments

@timmycodesforfun
Copy link

timmycodesforfun commented Oct 3, 2023

Checklist

ASF version

Latest pre-release

ASF variant

linux-arm

Bug description

OS: Debian11 bullseye, raspbian. (No bookworm/Debian12 release yet)
Hardware: Raspberry Pi 2B+

After upgrading to 5.4.11.0 bringing up the IPC endpoint throws this error all the time:

2023-10-03 21:23:57|ArchiSteamFarm-1289|ERROR|Microsoft.AspNetCore.Server.Kestrel|Connection id "0HMU48P2UG9DK", Request id "0HMU48P2UG9DK:00000002": An unhandled exception was thrown by the application. Newtonsoft.Json.JsonSerializationException: Error getting value from 'ScopeId' on 'System.Net.IPAddress'.
---> System.Net.Sockets.SocketException (95): Operation not supported
at System.Net.IPAddress.get_ScopeId()
at lambda_method262(Closure, Object)
at Newtonsoft.Json.Serialization.ExpressionValueProvider.GetValue(Object target)
--- End of inner exception stack trace ---
at Newtonsoft.Json.Serialization.ExpressionValueProvider.GetValue(Object target)
at Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.CalculatePropertyValues(JsonWriter writer, Object value, JsonContainerContract contract, JsonProperty member, JsonProperty property, JsonContract& memberContract, Object& memberValue)
at Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.SerializeObject(JsonWriter writer, Object value, JsonObjectContract contract, JsonProperty member, JsonContainerContract collectionContract, JsonProperty containerProperty)
at Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.SerializeObject(JsonWriter writer, Object value, JsonObjectContract contract, JsonProperty member, JsonContainerContract collectionContract, JsonProperty containerProperty)
at Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.SerializeDictionary(JsonWriter writer, IDictionary values, JsonDictionaryContract contract, JsonProperty member, JsonContainerContract collectionContract, JsonProperty containerProperty)
at Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.SerializeObject(JsonWriter writer, Object value, JsonObjectContract contract, JsonProperty member, JsonContainerContract collectionContract, JsonProperty containerProperty)
at Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.Serialize(JsonWriter jsonWriter, Object value, Type objectType)
at Newtonsoft.Json.JsonSerializer.SerializeInternal(JsonWriter jsonWriter, Object value, Type objectType)
at Newtonsoft.Json.JsonSerializer.Serialize(JsonWriter jsonWriter, Object value)
at Microsoft.AspNetCore.Mvc.Formatters.NewtonsoftJsonOutputFormatter.WriteResponseBodyAsync(OutputFormatterWriteContext context, Encoding selectedEncoding)
at Microsoft.AspNetCore.Mvc.Formatters.NewtonsoftJsonOutputFormatter.WriteResponseBodyAsync(OutputFormatterWriteContext context, Encoding selectedEncoding)
at Microsoft.AspNetCore.Mvc.Formatters.NewtonsoftJsonOutputFormatter.WriteResponseBodyAsync(OutputFormatterWriteContext context, Encoding selectedEncoding)
at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.g__Awaited|30_0[TFilter,TFilterAsync](ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Rethrow(ResultExecutedContextSealed context)
at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.ResultNext[TFilter,TFilterAsync](State& next, Scope& scope, Object& state, Boolean& isCompleted)
at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.InvokeResultFilters()
--- End of stack trace from previous location ---
at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.g__Awaited|20_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.g__Awaited|17_0(ResourceInvoker invoker, Task task, IDisposable scope)
at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.g__Awaited|17_0(ResourceInvoker invoker, Task task, IDisposable scope)
at Microsoft.AspNetCore.Routing.EndpointMiddleware.g__AwaitRequestTask|6_0(Endpoint, Task, ILogger)
at ArchiSteamFarm.IPC.Integration.ApiAuthenticationMiddleware.InvokeAsync(HttpContext context, IOptions1 jsonOptions) at Microsoft.AspNetCore.ResponseCompression.ResponseCompressionMiddleware.InvokeCore(HttpContext) at Microsoft.AspNetCore.ResponseCaching.ResponseCachingMiddleware.Invoke(HttpContext httpContext) at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http.HttpProtocol.ProcessRequests[TContext](IHttpApplication1)

IPC is then online, but it's bugged, showing 0 bots everywhere. Didn't try anything else. Farming is working as before. The error is just related to IPC i think.

Expected behavior

It's working like before the update.

Actual behavior

The error keeps throwing up and IPC isn't working as before.

Steps to reproduce

Use a RPI2B+ with Debian11
Put IPC up.
Start with ASF 5.4.11.0

Possible reason/solution

Fix something in IPC/Kestrel-Endpoint - i'm not so sure / no expert there.

Can you help us with this bug report?

Somehow, I can Test and offer feedback, but can't code

Full log.txt recorded during reproducing the problem

2023-10-03 21:22:48|ArchiSteamFarm-1289|INFO|ASF|InitCore() ArchiSteamFarm V5.4.11.0 (linux-arm/adb21341-be6c-44e2-b9a1-eb1e4a3405d5 | .NET 7.0.11; raspbian.11-arm; Linux 6.1.52-v7+ #1679 SMP Fri Sep  8 14:41:14 BST 2023)
2023-10-03 21:22:49|ArchiSteamFarm-1289|INFO|ASF|InitCore() Copyright © 2015-2023 JustArchiNET
2023-10-03 21:23:00|ArchiSteamFarm-1289|INFO|ASF|InitPlugins() Initializing Plugins...
2023-10-03 21:23:02|ArchiSteamFarm-1289|INFO|ASF|InitPlugins() Loading MobileAuthenticatorPlugin V5.4.11.0...
2023-10-03 21:23:02|ArchiSteamFarm-1289|INFO|ASF|InitPlugins() MobileAuthenticatorPlugin has been loaded successfully!
2023-10-03 21:23:02|ArchiSteamFarm-1289|INFO|ASF|InitPlugins() Loading SteamTokenDumperPlugin V5.4.11.0...
2023-10-03 21:23:02|ArchiSteamFarm-1289|INFO|ASF|InitPlugins() SteamTokenDumperPlugin has been loaded successfully!
2023-10-03 21:23:02|ArchiSteamFarm-1289|INFO|ASF|InitPlugins() Loading ItemsMatcherPlugin V5.4.11.0...
2023-10-03 21:23:02|ArchiSteamFarm-1289|INFO|ASF|InitPlugins() ItemsMatcherPlugin has been loaded successfully!
2023-10-03 21:23:02|ArchiSteamFarm-1289|INFO|ASF|UpdateAndRestart() ASF will automatically check for new versions every 1 day.
2023-10-03 21:23:02|ArchiSteamFarm-1289|INFO|ASF|Update() Checking for new version...
2023-10-03 21:23:12|ArchiSteamFarm-1289|INFO|ASF|Update() Local version: 5.4.11.0 | Remote version: 5.4.11.0
2023-10-03 21:23:12|ArchiSteamFarm-1289|INFO|ASF|Load() Loading STD global cache...
2023-10-03 21:23:15|ArchiSteamFarm-1289|INFO|ASF|Load() Validating STD global cache integrity...
2023-10-03 21:23:16|ArchiSteamFarm-1289|INFO|ASF|OnASFInit() SteamTokenDumperPlugin has been initialized successfully, thank you in advance for your help. The first submission will happen in approximately 54 minutes from now.
2023-10-03 21:23:16|ArchiSteamFarm-1289|INFO|ASF|Start() Starting IPC server...
2023-10-03 21:23:23|ArchiSteamFarm-1289|INFO|Microsoft.Hosting.Lifetime|Now listening on: http://[::]:1242
2023-10-03 21:23:23|ArchiSteamFarm-1289|INFO|Microsoft.Hosting.Lifetime|Application started. Press Ctrl+C to shut down.
2023-10-03 21:23:23|ArchiSteamFarm-1289|INFO|Microsoft.Hosting.Lifetime|Hosting environment: Production
2023-10-03 21:23:23|ArchiSteamFarm-1289|INFO|Microsoft.Hosting.Lifetime|Content root path: /home/asf/ArchiSteamFarm
2023-10-03 21:23:23|ArchiSteamFarm-1289|INFO|ASF|Start() IPC server ready!
2023-10-03 21:23:24|ArchiSteamFarm-1289|WARN|ASF|Load() Your Steam password for 'Klaus' seems to be weak. Consider choosing a stronger one for increased security. Details: Add another word or two.  Uncommon words are better.
2023-10-03 21:23:24|ArchiSteamFarm-1289|WARN|ASF|Load() Your Steam password for 'malte' seems to be weak. Consider choosing a stronger one for increased security. Details: Add another word or two.  Uncommon words are better. Capitalization doesn't help very much.
2023-10-03 21:23:25|ArchiSteamFarm-1289|INFO|malte|Start() Starting...
2023-10-03 21:23:25|ArchiSteamFarm-1289|INFO|Klaus|Start() Starting...
2023-10-03 21:23:25|ArchiSteamFarm-1289|INFO|timmyfromspace|Start() Starting...
2023-10-03 21:23:25|ArchiSteamFarm-1289|INFO|donatobotto|Start() Starting...
2023-10-03 21:23:25|ArchiSteamFarm-1289|INFO|Ace|Start() Starting...
2023-10-03 21:23:25|ArchiSteamFarm-1289|INFO|bottoacc1|Start() Starting...
2023-10-03 21:23:25|ArchiSteamFarm-1289|INFO|ilovevolvo669|Start() Starting...
2023-10-03 21:23:25|ArchiSteamFarm-1289|INFO|cardbotto|Start() Starting...
2023-10-03 21:23:25|ArchiSteamFarm-1289|INFO|ilovesteammarket|Start() Starting...
2023-10-03 21:23:25|ArchiSteamFarm-1289|INFO|Sabine|Start() Starting...
2023-10-03 21:23:25|ArchiSteamFarm-1289|INFO|timmyfromspace|Connect() Connecting...
2023-10-03 21:23:30|ArchiSteamFarm-1289|INFO|timmyfromspace|OnConnected() Connected to Steam!
2023-10-03 21:23:30|ArchiSteamFarm-1289|INFO|timmyfromspace|OnConnected() Logging in...
2023-10-03 21:23:31|ArchiSteamFarm-1289|INFO|timmyfromspace|OnLoggedOn() Successfully logged on as 76561198296544024/timmydiesdas.
2023-10-03 21:23:32|ArchiSteamFarm-1289|INFO|timmyfromspace|Init() Logging in to ISteamUserAuth...
2023-10-03 21:23:33|ArchiSteamFarm-1289|DEBUG|timmyfromspace|Refresh() There are no apps that require a refresh on this bot instance.
2023-10-03 21:23:34|ArchiSteamFarm-1289|INFO|timmyfromspace|Init() Success!
2023-10-03 21:23:35|ArchiSteamFarm-1289|INFO|timmyfromspace|IsAnythingToFarm() Checking first badge page...
2023-10-03 21:23:36|ArchiSteamFarm-1289|INFO|malte|Connect() Connecting...
2023-10-03 21:23:36|ArchiSteamFarm-1289|INFO|malte|OnConnected() Connected to Steam!
2023-10-03 21:23:37|ArchiSteamFarm-1289|INFO|malte|OnConnected() Logging in...
2023-10-03 21:23:39|ArchiSteamFarm-1289|INFO|malte|OnLoggedOn() Successfully logged on as 76561198085170893.
2023-10-03 21:23:39|ArchiSteamFarm-1289|INFO|malte|Init() Logging in to ISteamUserAuth...
2023-10-03 21:23:40|ArchiSteamFarm-1289|INFO|malte|IsAnythingToFarm() Checking first badge page...
2023-10-03 21:23:40|ArchiSteamFarm-1289|INFO|malte|Refresh() Retrieving a total of 2 app access tokens...
2023-10-03 21:23:40|ArchiSteamFarm-1289|INFO|malte|Refresh() Retrieving 2 app access tokens...
2023-10-03 21:23:41|ArchiSteamFarm-1289|INFO|malte|Init() Success!
2023-10-03 21:23:41|ArchiSteamFarm-1289|INFO|malte|Refresh() Finished retrieving 2 app access tokens.
2023-10-03 21:23:41|ArchiSteamFarm-1289|INFO|malte|Refresh() Finished retrieving a total of 2 app access tokens.
2023-10-03 21:23:41|ArchiSteamFarm-1289|INFO|malte|Refresh() Retrieving all depots for a total of 2 apps...
2023-10-03 21:23:42|ArchiSteamFarm-1289|INFO|timmyfromspace|StartFarming() We don't have anything to farm on this account!
2023-10-03 21:23:43|ArchiSteamFarm-1289|INFO|malte|StartFarming() We don't have anything to farm on this account!
2023-10-03 21:23:45|ArchiSteamFarm-1289|INFO|malte|Refresh() Retrieving 2 app infos...
2023-10-03 21:23:46|ArchiSteamFarm-1289|INFO|donatobotto|Connect() Connecting...
2023-10-03 21:23:46|ArchiSteamFarm-1289|INFO|malte|Refresh() Finished retrieving 2 app infos.
2023-10-03 21:23:46|ArchiSteamFarm-1289|INFO|malte|Refresh() Successfully retrieved 0 out of 0 depot keys.
2023-10-03 21:23:46|ArchiSteamFarm-1289|INFO|malte|Refresh() Finished retrieving all depot keys for a total of 2 apps.
2023-10-03 21:23:46|ArchiSteamFarm-1289|INFO|donatobotto|OnConnected() Connected to Steam!
2023-10-03 21:23:46|ArchiSteamFarm-1289|INFO|donatobotto|OnConnected() Logging in...
2023-10-03 21:23:47|ArchiSteamFarm-1289|INFO|donatobotto|OnLoggedOn() Successfully logged on as 76561198874834927/donatobotto.
2023-10-03 21:23:47|ArchiSteamFarm-1289|INFO|donatobotto|Init() Logging in to ISteamUserAuth...
2023-10-03 21:23:47|ArchiSteamFarm-1289|INFO|donatobotto|IsAnythingToFarm() Checking first badge page...
2023-10-03 21:23:47|ArchiSteamFarm-1289|DEBUG|donatobotto|Refresh() There are no apps that require a refresh on this bot instance.
2023-10-03 21:23:47|ArchiSteamFarm-1289|INFO|donatobotto|Init() Success!
2023-10-03 21:23:49|ArchiSteamFarm-1289|INFO|donatobotto|StartFarming() We don't have anything to farm on this account!
2023-10-03 21:23:56|ArchiSteamFarm-1289|INFO|Klaus|Connect() Connecting...
2023-10-03 21:23:57|ArchiSteamFarm-1289|INFO|Klaus|OnConnected() Connected to Steam!
2023-10-03 21:23:57|ArchiSteamFarm-1289|INFO|Klaus|OnConnected() Logging in...
2023-10-03 21:23:57|ArchiSteamFarm-1289|ERROR|Microsoft.AspNetCore.Server.Kestrel|Connection id "0HMU48P2UG9DK", Request id "0HMU48P2UG9DK:00000002": An unhandled exception was thrown by the application. Newtonsoft.Json.JsonSerializationException: Error getting value from 'ScopeId' on 'System.Net.IPAddress'.
 ---> System.Net.Sockets.SocketException (95): Operation not supported
   at System.Net.IPAddress.get_ScopeId()
   at lambda_method262(Closure, Object)
   at Newtonsoft.Json.Serialization.ExpressionValueProvider.GetValue(Object target)
   --- End of inner exception stack trace ---
   at Newtonsoft.Json.Serialization.ExpressionValueProvider.GetValue(Object target)
   at Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.CalculatePropertyValues(JsonWriter writer, Object value, JsonContainerContract contract, JsonProperty member, JsonProperty property, JsonContract& memberContract, Object& memberValue)
   at Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.SerializeObject(JsonWriter writer, Object value, JsonObjectContract contract, JsonProperty member, JsonContainerContract collectionContract, JsonProperty containerProperty)
   at Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.SerializeObject(JsonWriter writer, Object value, JsonObjectContract contract, JsonProperty member, JsonContainerContract collectionContract, JsonProperty containerProperty)
   at Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.SerializeDictionary(JsonWriter writer, IDictionary values, JsonDictionaryContract contract, JsonProperty member, JsonContainerContract collectionContract, JsonProperty containerProperty)
   at Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.SerializeObject(JsonWriter writer, Object value, JsonObjectContract contract, JsonProperty member, JsonContainerContract collectionContract, JsonProperty containerProperty)
   at Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.Serialize(JsonWriter jsonWriter, Object value, Type objectType)
   at Newtonsoft.Json.JsonSerializer.SerializeInternal(JsonWriter jsonWriter, Object value, Type objectType)
   at Newtonsoft.Json.JsonSerializer.Serialize(JsonWriter jsonWriter, Object value)
   at Microsoft.AspNetCore.Mvc.Formatters.NewtonsoftJsonOutputFormatter.WriteResponseBodyAsync(OutputFormatterWriteContext context, Encoding selectedEncoding)
   at Microsoft.AspNetCore.Mvc.Formatters.NewtonsoftJsonOutputFormatter.WriteResponseBodyAsync(OutputFormatterWriteContext context, Encoding selectedEncoding)
   at Microsoft.AspNetCore.Mvc.Formatters.NewtonsoftJsonOutputFormatter.WriteResponseBodyAsync(OutputFormatterWriteContext context, Encoding selectedEncoding)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeNextResultFilterAsync>g__Awaited|30_0[TFilter,TFilterAsync](ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Rethrow(ResultExecutedContextSealed context)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.ResultNext[TFilter,TFilterAsync](State& next, Scope& scope, Object& state, Boolean& isCompleted)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.InvokeResultFilters()
--- End of stack trace from previous location ---
   at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeFilterPipelineAsync>g__Awaited|20_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeAsync>g__Awaited|17_0(ResourceInvoker invoker, Task task, IDisposable scope)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeAsync>g__Awaited|17_0(ResourceInvoker invoker, Task task, IDisposable scope)
   at Microsoft.AspNetCore.Routing.EndpointMiddleware.<Invoke>g__AwaitRequestTask|6_0(Endpoint, Task, ILogger)
   at ArchiSteamFarm.IPC.Integration.ApiAuthenticationMiddleware.InvokeAsync(HttpContext context, IOptions`1 jsonOptions)
   at Microsoft.AspNetCore.ResponseCompression.ResponseCompressionMiddleware.InvokeCore(HttpContext)
   at Microsoft.AspNetCore.ResponseCaching.ResponseCachingMiddleware.Invoke(HttpContext httpContext)
   at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http.HttpProtocol.ProcessRequests[TContext](IHttpApplication`1)
2023-10-03 21:23:57|ArchiSteamFarm-1289|INFO|Klaus|OnLoggedOn() Successfully logged on as 76561198870700127/klausrac.
2023-10-03 21:23:57|ArchiSteamFarm-1289|INFO|Klaus|Init() Logging in to ISteamUserAuth...
<-Snip->

Global ASF.json config file

{
  "IPCPassword": "REDACTED",
  "SteamOwnerID": REDACTED,
  "UpdateChannel": 2,
  "SteamTokenDumperPluginEnabled": true
}

BotName.json config of all affected bot instances

{
  "AcceptGifts": true,
  "AutoSteamSaleEvent": true,
  "BotBehaviour": 2,
  "Enabled": true,
  "LootableTypes": [
    1,
    2,
    3,
    4,
    5,
    6,
    7,
    8,
    9,
    10,
    11,
    12,
    13,
    14
  ],
  "MatchableTypes": [
    2,
    3,
    4,
    5
  ],
  "OnlineStatus": 0,
  "SteamLogin": "REDACTED",
  "SteamMasterClanID": REDACTED,
  "SteamPassword": "REDACTED",
  "SteamTradeToken": "REDACTED",
  "SteamUserPermissions": {
    "REDACTED": 3
  },
  "TradingPreferences": 3,
  "TransferableTypes": [
    1,
    2,
    3,
    4,
    5,
    6,
    7,
    8,
    9,
    10,
    11,
    12,
    13,
    14
  ]
}

Additional info

IPC.config:

{
"Kestrel": {
"Endpoints": {
"HTTP": {
"Url": "http://*:1242"
}
}
}
}

IPC-Config

^- the bug form corrected the IPC.config like that. Of course it looks like it is intended.

@timmycodesforfun timmycodesforfun added 🐛 Bug Issues marked with this label indicate unintended program behaviour that needs correction. 👀 Evaluation Issues marked with this label are currently being evaluated if they're going to be considered. labels Oct 3, 2023
@JustArchi JustArchi added 👥 Duplicate Issues marked with this label are duplicate of already existing issues, they serve no purpose. and removed 🐛 Bug Issues marked with this label indicate unintended program behaviour that needs correction. 👀 Evaluation Issues marked with this label are currently being evaluated if they're going to be considered. labels Oct 3, 2023
@JustArchi
Copy link
Member

Duplicate of #3020

Thanks for report nonetheless!

@JustArchi JustArchi closed this as not planned Won't fix, can't repro, duplicate, stale Oct 3, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Dec 3, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
👥 Duplicate Issues marked with this label are duplicate of already existing issues, they serve no purpose.
Projects
None yet
Development

No branches or pull requests

2 participants