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

Version 7.4.1 beta: Program fails with backend server error on first run but always loads ok after I hit reload. #502

Closed
N71ST opened this issue Nov 17, 2023 · 14 comments

Comments

@N71ST
Copy link

N71ST commented Nov 17, 2023

Describe the bug

Please describe the bug in detail to help me understand the scenario

MSFS version:

  • msstore or steam
  • MSFS2020 Version [e.g. 22]

Mod version:

  • Mod version

Device ID

  • Device ID

Screenshots

Please provide me screenshots for the mod and msfs2020 if possible

Additional context
Add any other context about the problem here.

@derekhe
Copy link
Owner

derekhe commented Nov 17, 2023 via email

@N71ST
Copy link
Author

N71ST commented Nov 17, 2023

Seems to be a consistent pattern that the program has a backend server "Reached max retry" error on first load but will run fine after clicking "Reload."
Running Windows 11 23H2 Build (22631-2715).
Seems to be a new behavior since 7.4.

MSFS version: Store
MSFS version: 1.35.15.0 (SU 14 latest beta)
Mod version: 7.4.1
Device ID: 5949GQASBTJ2SA2VATB257N9V8RVCJPNWR4C7C1QBF1V06XH73J0
Screenshot:
image

@N71ST
Copy link
Author

N71ST commented Nov 17, 2023 via email

@richgillin
Copy link

richgillin commented Nov 18, 2023

Same result here. Win11 23H2. with 7.4.4 Pro. Before and after update. Detail: Error: Reached max retry

@derekhe
Copy link
Owner

derekhe commented Nov 19, 2023

Please all try the method here: #361 (comment)
And paste me the result, and I can analysis.

@N71ST
Copy link
Author

N71ST commented Nov 19, 2023 via email

@derekhe
Copy link
Owner

derekhe commented Nov 20, 2023

Where is the screenshots? I can't see them.

@N71ST
Copy link
Author

N71ST commented Nov 20, 2023 via email

@matthewvh
Copy link

My issue, 485,was closed last week even though it wasnt actually fixed. This is theissue I was having and am still having. I took a screenshot of the command prompt. Please see below. This version also causes a lot of bandwidth/offline issues
msfs core

@N71ST
Copy link
Author

N71ST commented Nov 20, 2023 via email

@derekhe
Copy link
Owner

derekhe commented Nov 20, 2023 via email

@N71ST
Copy link
Author

N71ST commented Nov 21, 2023 via email

@matthewvh
Copy link

matthewvh commented Nov 21, 2023 via email

@derekhe
Copy link
Owner

derekhe commented Nov 23, 2023

It would help if you could tell me which port is occupied by which other software?Also, this error occurs EVERY time the program is first executed. (I use Apple Maps) But, every time this error occurs,  clicking on “OK” to ackmowledge the error message and then clicking the “Reload” button on the startup screen ALWAYS resolves it without me doing anything else. So, somehow, the port conflict gets resolved just by clicking “Reload” on the startup screen. This behavior is 100% repeatable.  If clicking “Reload” works every time, then whatever code executes when I click “Reload” makes the error go away without my having to do anything else. This suggests that whatever causes the error and whatever fixes the error are both in your code or there is a timing issue. On Nov 20, 2023, at 5:59 PM, hesicong @.> wrote: Your port is occupied by other software. Please visit the wiki page to find out the solution

------------------ Original ------------------ From: N71ST @.
> Date: Tue,Nov 21,2023 4:42 AM To: derekhe @.> Subject: Re: [derekhe/msfs2020-map-enhancement] Version 7.4.1 beta: Programfails with backend server error on first run but always loads ok after I hitreload. (Issue #502) Here is the output from core.exe: C:\Program Files\MSFS2020 Map Enhancement\resources\core\release>core [15:31:28 INF] App started ver=7.4.4.0 device id=5949GQASBTJ2SA2VATB257N9V8RVCJPNWR4C7C1QBF1V06XH73J0 [15:31:28 INF] Starting server [15:31:28 INF] Configuring YARP WebProxyConfig { Address = , BypassOnLocal = , UseDefaultCredentials = } [15:31:49 INF] Device Information {"OS": {"Name": "Microsoft Windows 11 Pro", "VersionString": "10.0.22631"}, "CPU": {"NumberOfCores": 24, "NumberOfLogicalProcessors": 32, "Name": "13th Gen Intel(R) Core(TM) i9-13900K"}, "Memory": {"TotalPhysical": 34114117632, "AvailablePhysical": 17533911040}, "VideoController": {"Name": "USB Mobile Monitor Virtual Display", "DriverVersion": "2.0.0.1", "Manufacturer": "Amyuni"}, "DriveList": [{"Caption": "ST6000DM004-2EH11C", "Size": 6001172513280}, {"Caption": "Samsung SSD 980 PRO 2TB", "Size": 2000396321280}, {"Caption": "Seagate FireCuda 520 SSD ZP2000GM30002", "Size": 2000396321280}, {"Caption": "Samsung SSD 970 EVO Plus 2TB", "Size": 2000396321280}, {"Caption": "Samsung SSD 870 EVO 2TB", "Size": 2000396321280}]} [15:31:50 ERR] Hosting failed to start System.IO.IOException: Failed to bind to address http://0.0.0.0:42098: address already in use.
---> Microsoft.AspNetCore.Connections.AddressInUseException: Only one usage of each socket address (protocol/network address/port) is normally permitted.
---> System.Net.Sockets.SocketException (10048): Only one usage of each socket address (protocol/network address/port) is normally permitted. at System.Net.Sockets.Socket.UpdateStatusAfterSocketErrorAndThrowException(SocketError error, Boolean disconnectOnFailure, String callerName) at System.Net.Sockets.Socket.DoBind(EndPoint endPointSnapshot, SocketAddress socketAddress) at System.Net.Sockets.Socket.Bind(EndPoint localEP) at Microsoft.AspNetCore.Server.Kestrel.Transport.Sockets.SocketTransportOptions.CreateDefaultBoundListenSocket(EndPoint endpoint) at Microsoft.AspNetCore.Server.Kestrel.Transport.Sockets.SocketConnectionListener.Bind()
--- End of inner exception stack trace --- at Microsoft.AspNetCore.Server.Kestrel.Transport.Sockets.SocketConnectionListener.Bind() at Microsoft.AspNetCore.Server.Kestrel.Transport.Sockets.SocketTransportFactory.BindAsync(EndPoint endpoint, CancellationToken cancellationToken) at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Infrastructure.TransportManager.BindAsync(EndPoint endPoint, ConnectionDelegate connectionDelegate, EndpointConfig endpointConfig, CancellationToken cancellationToken) at Microsoft.AspNetCore.Server.Kestrel.Core.KestrelServerImpl.<>c__DisplayClass28_01.<<StartAsync&gt;g__OnBind|0&gt;d.MoveNext() --- End of stack trace from previous location --- at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.AddressBinder.BindEndpointAsync(ListenOptions endpoint, AddressBindContext context, CancellationToken cancellationToken) --- End of inner exception stack trace --- at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.AddressBinder.BindEndpointAsync(ListenOptions endpoint, AddressBindContext context, CancellationToken cancellationToken) at Microsoft.AspNetCore.Server.Kestrel.Core.ListenOptions.BindAsync(AddressBindContext context, CancellationToken cancellationToken) at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.AddressBinder.EndpointsStrategy.BindAsync(AddressBindContext context, CancellationToken cancellationToken) at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.AddressBinder.BindAsync(ListenOptions[] listenOptions, AddressBindContext context, Func2 useHttps, CancellationToken cancellationToken) at Microsoft.AspNetCore.Server.Kestrel.Core.KestrelServerImpl.BindAsync(CancellationToken cancellationToken) at Microsoft.AspNetCore.Server.Kestrel.Core.KestrelServerImpl.StartAsync[TContext](IHttpApplication1 application, CancellationToken cancellationToken) at Microsoft.AspNetCore.Hosting.GenericWebHostService.StartAsync(CancellationToken cancellationToken) at Microsoft.Extensions.Hosting.Internal.Host.<StartAsync&gt;b__15_1(IHostedService service, CancellationToken token) at Microsoft.Extensions.Hosting.Internal.Host.ForeachService[T](IEnumerable1 services, CancellationToken token, Boolean concurrent, Boolean abortOnFirstException, List1 exceptions, Func3 operation) [15:31:50 FTL] Image server unexpected error System.IO.IOException: Failed to bind to address http://0.0.0.0:42098: address already in use.
---> Microsoft.AspNetCore.Connections.AddressInUseException: Only one usage of each socket address (protocol/network address/port) is normally permitted.
---> System.Net.Sockets.SocketException (10048): Only one usage of each socket address (protocol/network address/port) is normally permitted. at System.Net.Sockets.Socket.UpdateStatusAfterSocketErrorAndThrowException(SocketError error, Boolean disconnectOnFailure, String callerName) at System.Net.Sockets.Socket.DoBind(EndPoint endPointSnapshot, SocketAddress socketAddress) at System.Net.Sockets.Socket.Bind(EndPoint localEP) at Microsoft.AspNetCore.Server.Kestrel.Transport.Sockets.SocketTransportOptions.CreateDefaultBoundListenSocket(EndPoint endpoint) at Microsoft.AspNetCore.Server.Kestrel.Transport.Sockets.SocketConnectionListener.Bind()
--- End of inner exception stack trace --- at Microsoft.AspNetCore.Server.Kestrel.Transport.Sockets.SocketConnectionListener.Bind() at Microsoft.AspNetCore.Server.Kestrel.Transport.Sockets.SocketTransportFactory.BindAsync(EndPoint endpoint, CancellationToken cancellationToken) at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Infrastructure.TransportManager.BindAsync(EndPoint endPoint, ConnectionDelegate connectionDelegate, EndpointConfig endpointConfig, CancellationToken cancellationToken) at Microsoft.AspNetCore.Server.Kestrel.Core.KestrelServerImpl.<>c__DisplayClass28_01.<<StartAsync&gt;g__OnBind|0&gt;d.MoveNext() --- End of stack trace from previous location --- at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.AddressBinder.BindEndpointAsync(ListenOptions endpoint, AddressBindContext context, CancellationToken cancellationToken) --- End of inner exception stack trace --- at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.AddressBinder.BindEndpointAsync(ListenOptions endpoint, AddressBindContext context, CancellationToken cancellationToken) at Microsoft.AspNetCore.Server.Kestrel.Core.ListenOptions.BindAsync(AddressBindContext context, CancellationToken cancellationToken) at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.AddressBinder.EndpointsStrategy.BindAsync(AddressBindContext context, CancellationToken cancellationToken) at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.AddressBinder.BindAsync(ListenOptions[] listenOptions, AddressBindContext context, Func2 useHttps, CancellationToken cancellationToken) at Microsoft.AspNetCore.Server.Kestrel.Core.KestrelServerImpl.BindAsync(CancellationToken cancellationToken) at Microsoft.AspNetCore.Server.Kestrel.Core.KestrelServerImpl.StartAsync[TContext](IHttpApplication1 application, CancellationToken cancellationToken) at Microsoft.AspNetCore.Hosting.GenericWebHostService.StartAsync(CancellationToken cancellationToken) at Microsoft.Extensions.Hosting.Internal.Host.<StartAsync&gt;b__15_1(IHostedService service, CancellationToken token) at Microsoft.Extensions.Hosting.Internal.Host.ForeachService[T](IEnumerable1 services, CancellationToken token, Boolean concurrent, Boolean abortOnFirstException, List1 exceptions, Func3 operation) at Microsoft.Extensions.Hosting.Internal.Host.StartAsync(CancellationToken cancellationToken) at Microsoft.Extensions.Hosting.HostingAbstractionsHostExtensions.Start(IHost host) at core.ImageServer.ImageServer.StartServer() in D:\dev\msfs2020-map-enhancement-dotnet\core\ImageServer\ImageServer.cs:line 37 at core.Program.Main(String[] args) in D:\dev\msfs2020-map-enhancement-dotnet\core\Program.cs:line 37 C:\Program Files\MSFS2020 Map Enhancement\resources\core\release> From: hesicong @.
> Sent: Monday, November 20, 2023 7:06 AM To: derekhe/msfs2020-map-enhancement @.> Cc: N71ST @.>; Author @.> Subject: Re: [derekhe/msfs2020-map-enhancement] Version 7.4.1 beta: Program fails with backend server error on first run but always loads ok after I hit reload. (Issue #502) Where is the screenshots? I can't see them. — Reply to this email directly, view it on GitHub <#502 (comment)> , or unsubscribe <https://github.com/notifications/unsubscribe-auth/AT5YNIAVT5EWUEX7KDJ6EATYFNBTBAVCNFSM6AAAAAA7P423M6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMJYHE2DCNRXGA> . You are receiving this because you authored the thread. <https://github.com/notifications/beacon/AT5YNIDOKWN4X6SRSWWKPXTYFNBTBA5CNFSM6AAAAAA7P423M6WGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTTMNLMOM.gif> Message ID: @. @.> > — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.Message ID: @.> —Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you authored the thread.Message ID: @.***>

I guess the core.exe starts slow so the software report error. I will add more logs to help me investigate why.

@derekhe derekhe closed this as completed Dec 30, 2023
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

4 participants