fahad92 7 Posted October 18, 2023 Posted October 18, 2023 (edited) Hello , First of All thank you for your amazing works on Emby as I know you probably just receiving complains, issues and reminders .. but hey not all people are blind I always wonder how hard it is to build such application and keep it smooth.. it's just amazing. Thank you! My issue has started few weeks ago and I will do my best to explain it as it's driving me crazy and I have no idea why it's happening. Not even sure is it Emby issue or something els. Every few days I find Emby crashed and throwing proxy error (screenshot is attached) trying to restart it or re-upadting to latest release multiple times would fix it but with light reset to (welcome to Emby page) and the server name being changed to some code name and some deleted plugins are reinstalled like DLNA, webhook... Everything els is just the same. (screenshot is attached) this is happening everytime Emby crashes with that proxy error. Even if it was after one minute. (Maybe because I'm updating instead of restarting?) The issue is, restarting is not sufficient to get Emby back online after the prox error. other side affect I'm no longer able to watch my high end contents ( 70,000 kbps bitrate ) as emby crashing after few minutes of playing (on Sony Android TV) by crashing I mean spinning to blackscreen then throwing me back to the home screen in Emby while the server itself is running (no proxy error). This wasn't an issue ever for one year till recently. My friends on their ipads are no longer able to watch anything in the server as the videos just keeps spinning without ever playing to them. Only on iPad - ios 16 and latest emby version. I end up deleting those friends because if they kept trying all my server is crashing with that proxy error again. Finally, after any crash with proxy error I will find more than 100 logs being generated within few minutes. At some point I found 478 logs. So it's very difficult to choose what to attach but I will attach the logs before the crash, during and after. Thank you and sorry for such a long topic but I want to list everything I know. embyserver-63833256960.txt hardware_detection-63833256983.txt embyserver-63833256975.txt ffmpeg-directstream-2b15849e-7210-4ff0-afba-942851f79083_1.txt embyserver.txt Edited October 18, 2023 by fahad92
Luke 42077 Posted October 18, 2023 Posted October 18, 2023 Hi, Emby isn't throwing a proxy error, it's throwing a general 500 error due to this: System.OutOfMemoryException: System.OutOfMemoryException: Exception of type 'System.OutOfMemoryException' was thrown. at System.Threading.Thread.StartInternal(ThreadHandle t, Int32 stackSize, Int32 priority, Char* pThreadName) at System.Threading.Thread.StartCore() at System.Threading.Thread.Start(Object parameter, Boolean captureContext) at System.Threading.Thread.Start(Object parameter) 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.Init() at EmbyServer.HostedService.StartAsync(CancellationToken cancellationToken) Source: System.Private.CoreLib TargetSite: Void StartInternal(System.Threading.ThreadHandle, Int32, Int32, Char*) Whatever you have in front of Emby Server (Ubuntu server?), reverse proxy, etc, may be interpreting it as that, but I'm not sure. Can you try rebooting your machine?
fahad92 7 Posted October 18, 2023 Author Posted October 18, 2023 9 minutes ago, Luke said: Hi, Emby isn't throwing a proxy error, it's throwing a general 500 error due to this: System.OutOfMemoryException: System.OutOfMemoryException: Exception of type 'System.OutOfMemoryException' was thrown. at System.Threading.Thread.StartInternal(ThreadHandle t, Int32 stackSize, Int32 priority, Char* pThreadName) at System.Threading.Thread.StartCore() at System.Threading.Thread.Start(Object parameter, Boolean captureContext) at System.Threading.Thread.Start(Object parameter) 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.Init() at EmbyServer.HostedService.StartAsync(CancellationToken cancellationToken) Source: System.Private.CoreLib TargetSite: Void StartInternal(System.Threading.ThreadHandle, Int32, Int32, Char*) Whatever you have in front of Emby Server (Ubuntu server?), reverse proxy, etc, may be interpreting it as that, but I'm not sure. Can you try rebooting your machine? Would you please elaborate on this, do you think the issue is related to whatever I have front emby excuse my complete ignorant on this but during this error is emby supposed to be accessible locally? Or it's completely crashing because of it and causing all these logs within few minutes. The server is not in my country but I have VNC access to control that server, never occurred to me till now to check if it's running locally.
Luke 42077 Posted October 18, 2023 Posted October 18, 2023 This looks like an internal error. I don't think what you have in front of Emby matters unless it's somehow hammering Emby with traffic. Is this a VM?
fahad92 7 Posted October 18, 2023 Author Posted October 18, 2023 9 minutes ago, Luke said: This looks like an internal error. I don't think what you have in front of Emby matters unless it's somehow hammering Emby with traffic. Is this a VM? It's a dedicated seedbox without root access, all setup are done by the provider and they were unable to find any issues at their end. If you feels this is not related to emby and caused by something else then I have to refer back to the provider but not sure what to tell them or what to highlight on this issue. Thank you for your prompt responses.
Luke 42077 Posted October 18, 2023 Posted October 18, 2023 Are you able to try a fresh install, making sure to delete the data folder /config Only this time, please do not add any plugins. That would be a helpful test. Thanks.
fahad92 7 Posted October 19, 2023 Author Posted October 19, 2023 21 hours ago, Luke said: Are you able to try a fresh install, making sure to delete the data folder /config Only this time, please do not add any plugins. That would be a helpful test. Thanks. For now I have removed my friends who are using the iPad application because they cause this error everytime they try to play something and removed my flaresolver application because it seems related somehow. Will test for few days and see how it goes.
Luke 42077 Posted October 19, 2023 Posted October 19, 2023 33 minutes ago, fahad92 said: For now I have removed my friends who are using the iPad application because they cause this error everytime they try to play something and removed my flaresolver application because it seems related somehow. Will test for few days and see how it goes. Let us know how that goes. Thanks.
fahad92 7 Posted October 22, 2023 Author Posted October 22, 2023 On 10/20/2023 at 1:06 AM, Luke said: Let us know how that goes. Thanks. Found the reason to be my friends with iPads. Wonder why, all other devices are OK. The issue is when they try to watch anything it's just keeps spinning without ever being played. If they kept trying they will cause this proxy error while at my end the video is playing normaly to them. I tried to block transcoding in their profile and they did uninstalled Emby and try again but nothing changes. They are on iOS 16. Using the website is fine it's just the application.
Luke 42077 Posted October 22, 2023 Posted October 22, 2023 HI, can we please look at an example? How to Report a Problem Thanks.
fahad92 7 Posted October 22, 2023 Author Posted October 22, 2023 9 hours ago, Luke said: HI, can we please look at an example? How to Report a Problem Thanks. Attached from the last time I had the error. embyserver-63833256960.txt ffmpeg-directstream-2b15849e-7210-4ff0-afba-942851f79083_1.txt
fahad92 7 Posted October 23, 2023 Author Posted October 23, 2023 23 hours ago, Luke said: This could be causing a playback problem: I already tried with and without these options. However my proxy error didn't happen for days now so I'm guessing the issue is more complicated and not directly related to Emby. Just hope it's never happen again. Thank you @Lukeit's immersive how you are always here doing your thing so calmly. Keep it up really appreciate your work. 1
fahad92 7 Posted October 30, 2023 Author Posted October 30, 2023 On 10/24/2023 at 12:25 AM, Luke said: Let us know what you find. Thanks ! Just to update my issue for your reference. Root cause of this error : wrong configuration or corruption in another application (flaresolverr) Which was using the same front as Emby (reverse proxy) That application was hammering the traffic and causing a carsh to all applications using the same front. in emby's logs will be mentioned as (system out of memory) as you highlighted in previous comment. 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