Romit 2 Posted June 9, 2022 Posted June 9, 2022 (edited) Emby server starts but it closes automatically after running for a couple of seconds. Then only emby tray keeps running on the background. I've already reinstalled emby on top of the existing installation but no luck. Also tried restarting. So I checked the log files and found out that it's creating an identical error message every time I try to run it. Here it is, Quote 2022-06-09 13:01:05.999 Error Main: Error in appHost.Init *** Error Report *** Version: 4.7.2.0 Command line: C:\Users\tahmi\AppData\Roaming\Emby-Server\system\EmbyServer.dll Operating system: Microsoft Windows 10.0.19042 Framework: .NET 6.0.5 OS/Process: x64/x64 Runtime: C:/Users/tahmi/AppData/Roaming/Emby-Server/system/System.Private.CoreLib.dll Processor count: 4 Data path: C:\Users\tahmi\AppData\Roaming\Emby-Server\programdata Application path: C:\Users\tahmi\AppData\Roaming\Emby-Server\system System.Net.Sockets.SocketException: System.Net.Sockets.SocketException (10013): An attempt was made to access a socket in a way forbidden by its access permissions. at System.Net.Sockets.Socket.UpdateStatusAfterSocketErrorAndThrowException(SocketError error, String callerName) at System.Net.Sockets.Socket.DoBind(EndPoint endPointSnapshot, SocketAddress socketAddress) at System.Net.Sockets.Socket.Bind(EndPoint localEP) at Emby.Server.Implementations.HttpServer.KestrelHost.KestrelListener.CreateBoundSocket(EndPoint endpoint) 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__DisplayClass30_0`1.<<StartAsync>g__OnBind|0>d.MoveNext() --- End of stack trace from previous location --- 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.AnyIPListenOptions.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(IEnumerable`1 listenOptions, AddressBindContext context, CancellationToken cancellationToken) at Microsoft.AspNetCore.Server.Kestrel.Core.KestrelServerImpl.BindAsync(CancellationToken cancellationToken) at Microsoft.AspNetCore.Server.Kestrel.Core.KestrelServerImpl.StartAsync[TContext](IHttpApplication`1 application, CancellationToken cancellationToken) at Microsoft.AspNetCore.Hosting.WebHost.StartAsync(CancellationToken cancellationToken) at Microsoft.AspNetCore.Hosting.WebHost.Start() at Emby.Server.Implementations.HttpServer.KestrelHost.KestrelListener.OnAddPrefixesComplete() at Emby.Server.Implementations.ApplicationHost.StartServer() at Emby.Server.Implementations.ApplicationHost.Init() at EmbyServer.HostedService.StartAsync(CancellationToken cancellationToken) Source: System.Net.Sockets TargetSite: Void UpdateStatusAfterSocketErrorAndThrowException(System.Net.Sockets.SocketError, System.String) So, any possible fix? Thanks. Edit: I don't think it's because of the new update because it was working perfectly yesterday. embyserver-63790376466.txt Edited June 9, 2022 by Romit
Luke 42085 Posted June 12, 2022 Posted June 12, 2022 Hi, do you have any security software that might be causing this? Something appears to be blocking the server from binding to the http ports.
Happy2Play 9784 Posted June 12, 2022 Posted June 12, 2022 Have you tried restarting the host machine? Could there be a conflict on your custom ports? Could it be the VPN? Have you tried changing to default Emby ports or another custom port?
Romit 2 Posted June 13, 2022 Author Posted June 13, 2022 17 hours ago, Luke said: Hi, do you have any security software that might be causing this? Something appears to be blocking the server from binding to the http ports. No, I am not using any security softwares. 15 hours ago, Happy2Play said: Have you tried restarting the host machine? Could there be a conflict on your custom ports? Could it be the VPN? Have you tried changing to default Emby ports or another custom port? Restarting didn't fix it. I figured something was wrong with the ports. After switching to default port from the config file, the server started. But it again started to crash after a couple of hours. Other services that require binding to http ports (like qbittorrent web ui) were having the same problem too. So later I reset my internet settings. Everything is working fine now. I don't know why that happened though.
Solution visproduction 317 Posted June 13, 2022 Solution Posted June 13, 2022 Possibly related based on your log file entry: System.Net.Sockets.SocketException: System.Net.Sockets.SocketException (10013): An attempt was made to access a socket in a way forbidden by its access permissions. https://stackoverflow.com/questions/15619921/an-attempt-was-made-to-access-a-socket-in-a-way-forbidden-by-its-access-permissi
Luke 42085 Posted June 13, 2022 Posted June 13, 2022 6 hours ago, visproduction said: Possibly related based on your log file entry: System.Net.Sockets.SocketException: System.Net.Sockets.SocketException (10013): An attempt was made to access a socket in a way forbidden by its access permissions. https://stackoverflow.com/questions/15619921/an-attempt-was-made-to-access-a-socket-in-a-way-forbidden-by-its-access-permissi @Romit please try the suggestions in this link and let us know if they help. Thanks !
Romit 2 Posted June 16, 2022 Author Posted June 16, 2022 On 6/14/2022 at 4:25 AM, Luke said: @Romit please try the suggestions in this link and let us know if they help. Thanks ! I disabled Hyper-V according to that Stack Overflow thread. Everything is fine so far. I'm going to mark that as solution. Thanks everyone for helping. 1
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now