Jump to content

Live TV - IPTV Recording - Crashes EMBY and losing recording


Recommended Posts

Posted

Hey everyone, was hoping someone could see my log file and give me some thoughts on why lately i'm getting my scheduled recordings failing.

This log file was from Feb 20th where a hockey game was set to record. 6pm MST i had setup 2 seperate TV channels to record as backup. Later in the logs you will see i manually tried again.

First recording seems to have lasted 45 mins than errored out. Next ones didn't even last that long and errored again.

Channel to reference is 336022 CA| SPORTSNET EAST FHD

 

embyserver 732pm.txt

sa2000
Posted
On 21/02/2025 at 18:25, mrhat said:

This log file was from Feb 20th where a hockey game was set to record. 6pm

I can see a recording started at 17:58 for this 

2025 4 Nations Face-Off 2025_02_20_18_00_00 - Championship Team Canada vs. Team USA

and at 18:14 there was a request coming to the to cancel the scheduled recording - the request was from an iPhone

2025-02-20 18:14:57.009 Info Server: http/1.1 POST http://emby_remote_ip/emby/LiveTv/Timers/25ecd91792e24064bdb5e5784a7fb20c/Delete?X-Emby-Client=Emby for iOS&X-Emby-Device-Name=iPhone&X-Emby-Device-Id=CDF69962-D52C-4863-9610-1185B3282198&X-Emby-Client-Version=2.2.35&X-Emby-Token=x_secret3_x&X-Emby-Language=en-ca. Source Ip: host43, UserAgent: Mozilla/5.0 (iPhone; CPU iPhone OS 18_3_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148

2025-02-20 18:14:57.025 Info VideoEncoder: ProcessRun 'Encoding bb20d0': Stopping ffmpeg process with q command for C:\recordings\2025 4 Nations Face-Off\2025 4 Nations Face-Off 2025_02_20_18_00_00 - Championship Team Canada vs. Team USA.ts
2025-02-20 18:14:57.025 Info Server: http/1.1 Response 204 to host43. Time: 17ms. POST http://emby_remote_ip/emby/LiveTv/Timers/25ecd91792e24064bdb5e5784a7fb20c/Delete?X-Emby-Client=Emby for iOS&X-Emby-Device-Name=iPhone&X-Emby-Device-Id=CDF69962-D52C-4863-9610-1185B3282198&X-Emby-Client-Version=2.2.35&X-Emby-Token=x_secret3_x&X-Emby-Language=en-ca

Were you making changes for recordings at that time?

As far as I can tell, it was in progress at the time. Would need also the related ffmpeg log file

Were you watching the Live TV stream whilst it was being recorded ?

The raw log file would show which IP address the request was from -

 

Posted

Hi! so i may have been starting and stopping recordings too but you should see in the log files some events where there was a crash or something and the recording stopped on its own?

 

i know the first recording starting at 6pm MST only lasted around 45 mins and then stopped on its own.

sa2000
Posted
13 hours ago, mrhat said:

Hi! so i may have been starting and stopping recordings too but you should see in the log files some events where there was a crash or something and the recording stopped on its own?

i know the first recording starting at 6pm MST only lasted around 45 mins and then stopped on its own

Thanks. Yes - one of the recordings you stopped.

So at 17:58 2 recordings started of the same program on 2 different channels

Channel OpenCircle Telus  
Recording into "2025 4 Nations Face-Off 2025_02_20_18_00_00 - Championship Team Canada vs. Team USA.ts"

Channel SPORTSNET EAST FHD
Recording into "2025 4 Nations Face-Off 2025_02_20_18_00_00 - Championship Team Canada vs. Team USA - 1.ts"

At 18:14 you cancelled the first from an iPhone connection. The second recording continued to record until there was a failure at 18:44.

The error was 
System.IO.IOException: System.IO.IOException: The response ended prematurely.

The full raw log file will show the stream source and what the url that aborted was. It looks like an issue with the stream from the remote end

2025-02-20 17:58:06.973 Info SharedHttpPipelineSource: Start copying from response stream: Http-http://host42/x_path8_x/x_path9_x/x_path17_x/x_path15_x
. . . 
2025-02-20 18:42:58.936 Error SharedHttpPipelineSource: Give up retries copying live stream http://host42/x_path8_x/x_path9_x/x_path17_x/x_path15_x No more retries allowed.
	*** Error Report ***
	Version: 4.8.10.0
	Command line: C:\Users\Jason\AppData\Roaming\Emby-Server\system\EmbyServer.dll
	Operating system: Microsoft Windows 10.0.19045
	Framework: .NET 6.0.33
	OS/Process: x64/x64
	Runtime: C:/Users/Jason/AppData/Roaming/Emby-Server/system/System.Private.CoreLib.dll
	Processor count: 4
	Data path: C:\Users\Jason\AppData\Roaming\Emby-Server\programdata
	Application path: C:\Users\Jason\AppData\Roaming\Emby-Server\system
	System.IO.IOException: System.IO.IOException: The response ended prematurely.
	   at System.Net.Http.HttpConnection.FillAsync(Boolean async)
	   at System.Net.Http.HttpConnection.ChunkedEncodingReadStream.ReadAsyncCore(Memory`1 buffer, CancellationToken cancellationToken)
	   at Emby.Server.Implementations.IO.StreamHelper.CopyToAsync(Stream source, PipeWriter destination, Int32 bufferSize, CancellationToken cancellationToken)
	   at Emby.LiveTV.TunerHosts.SharedHttpPipelineSource.<>c__DisplayClass45_0.<<StartStreamingWithLegacyTsProcessor>b__0>d.MoveNext()
	Source: System.Net.Http
	TargetSite: Void MoveNext()
	
2025-02-20 18:42:58.939 Error SharedHttpPipelineSource: Error copying live stream.
	*** Error Report ***
	Version: 4.8.10.0
	Command line: C:\Users\Jason\AppData\Roaming\Emby-Server\system\EmbyServer.dll
	Operating system: Microsoft Windows 10.0.19045
	Framework: .NET 6.0.33
	OS/Process: x64/x64
	Runtime: C:/Users/Jason/AppData/Roaming/Emby-Server/system/System.Private.CoreLib.dll
	Processor count: 4
	Data path: C:\Users\Jason\AppData\Roaming\Emby-Server\programdata
	Application path: C:\Users\Jason\AppData\Roaming\Emby-Server\system
	System.IO.IOException: System.IO.IOException: The response ended prematurely.
	   at System.Net.Http.HttpConnection.FillAsync(Boolean async)
	   at System.Net.Http.HttpConnection.ChunkedEncodingReadStream.ReadAsyncCore(Memory`1 buffer, CancellationToken cancellationToken)
	   at Emby.Server.Implementations.IO.StreamHelper.CopyToAsync(Stream source, PipeWriter destination, Int32 bufferSize, CancellationToken cancellationToken)
	   at Emby.LiveTV.TunerHosts.SharedHttpPipelineSource.<>c__DisplayClass45_0.<<StartStreamingWithLegacyTsProcessor>b__0>d.MoveNext()
	--- End of stack trace from previous location ---
	   at Emby.LiveTV.TunerHosts.SharedHttpPipelineSource.<>c__DisplayClass45_0.<<StartStreamingWithLegacyTsProcessor>b__0>d.MoveNext()
	Source: System.Net.Http
	TargetSite: Void MoveNext()
	
2025-02-20 18:42:58.939 Info SharedHttpPipelineSource: SharedHttpPipelineSource is done streaming.
2025-02-20 18:44:59.048 Info SharedHttpPipelineSource: Live Stream ended.
. . .
2025-02-20 18:44:59.049 Info LiveTV: Recording completed to: C:\recordings\2025 4 Nations Face-Off\2025 4 Nations Face-Off 2025_02_20_18_00_00 - Championship Team Canada vs. Team USA - 1.ts

The same error happened at 19:14 on recording that started at 19:13 on channel SPORTSNET EAST HD

Recording into "2025 4 Nations Face-Off 2025_02_20_18_00_00 - Championship Team Canada vs. Team USA - 2.ts"

This time there was some further errors probing the stream from the channel. and then the same error as the one at 18:44

It looks like an issue with the remote IPTV stream.

With regards to other errors in the log - 

You had stream limit reached errors logged between 12:11 and 12:21 for recording of Drain the Oceans

There are some errors relating to RSA - debug logging may give some clues on what requests they relate

2025-02-20 17:58:05.135 Error SessionManager: Error sending message
	*** Error Report ***
	Version: 4.8.10.0
	Command line: C:\Users\Jason\AppData\Roaming\Emby-Server\system\EmbyServer.dll
	Operating system: Microsoft Windows 10.0.19045
	Framework: .NET 6.0.33
	OS/Process: x64/x64
	Runtime: C:/Users/Jason/AppData/Roaming/Emby-Server/system/System.Private.CoreLib.dll
	Processor count: 4
	Data path: C:\Users\Jason\AppData\Roaming\Emby-Server\programdata
	Application path: C:\Users\Jason\AppData\Roaming\Emby-Server\system
	System.ObjectDisposedException: System.ObjectDisposedException: Cannot access a disposed object.
	Object name: 'RSA'.
	   at System.Security.Cryptography.RSAImplementation.RSACng.ThrowIfDisposed()
	   at System.Security.Cryptography.RSAImplementation.RSACng.GetDuplicatedKeyHandle()
	   at System.Security.Cryptography.RSAImplementation.RSACng.SignHash(Byte[] hash, HashAlgorithmName hashAlgorithm, RSASignaturePadding padding)
	   at Microsoft.IdentityModel.Tokens.AsymmetricAdapter.SignRsa(Byte[] bytes)
	   at Microsoft.IdentityModel.Tokens.AsymmetricSignatureProvider.Sign(Byte[] input)
	   at Microsoft.IdentityModel.JsonWebTokens.JwtTokenUtilities.CreateEncodedSignature(String input, SigningCredentials signingCredentials)
	   at System.IdentityModel.Tokens.Jwt.JwtSecurityTokenHandler.WriteToken(SecurityToken token)
	   at Emby.Server.Implementations.Session.FirebaseSessionController.GenerateJwtToken(StringDictionary unicodeEnc)
	   at Emby.Server.Implementations.Session.FirebaseSessionController.RequestAccessToken()
	   at Emby.Server.Implementations.Session.FirebaseSessionController.SendMessage[T](ReadOnlyMemory`1 name, String messageId, T data, CancellationToken cancellationToken)
	   at Emby.Server.Implementations.Session.SessionManager.SendMessageToSession[T](SessionInfo session, Boolean requireUserInterface, ReadOnlyMemory`1 name, T data, CancellationToken cancellationToken)
	Source: System.Security.Cryptography.Algorithms
	TargetSite: Void ThrowIfDisposed()
	
2025-02-20 17:58:05.135 Error SessionManager: Error sending message
	*** Error Report ***
	Version: 4.8.10.0
	Command line: C:\Users\Jason\AppData\Roaming\Emby-Server\system\EmbyServer.dll
	Operating system: Microsoft Windows 10.0.19045
	Framework: .NET 6.0.33
	OS/Process: x64/x64
	Runtime: C:/Users/Jason/AppData/Roaming/Emby-Server/system/System.Private.CoreLib.dll
	Processor count: 4
	Data path: C:\Users\Jason\AppData\Roaming\Emby-Server\programdata
	Application path: C:\Users\Jason\AppData\Roaming\Emby-Server\system
	System.ObjectDisposedException: System.ObjectDisposedException: Cannot access a disposed object.
	Object name: 'RSA'.
	   at System.Security.Cryptography.RSAImplementation.RSACng.ThrowIfDisposed()
	   at System.Security.Cryptography.RSAImplementation.RSACng.GetDuplicatedKeyHandle()
	   at System.Security.Cryptography.RSAImplementation.RSACng.SignHash(Byte[] hash, HashAlgorithmName hashAlgorithm, RSASignaturePadding padding)
	   at Microsoft.IdentityModel.Tokens.AsymmetricAdapter.SignRsa(Byte[] bytes)
	   at Microsoft.IdentityModel.Tokens.AsymmetricSignatureProvider.Sign(Byte[] input)
	   at Microsoft.IdentityModel.JsonWebTokens.JwtTokenUtilities.CreateEncodedSignature(String input, SigningCredentials signingCredentials)
	   at System.IdentityModel.Tokens.Jwt.JwtSecurityTokenHandler.WriteToken(SecurityToken token)
	   at Emby.Server.Implementations.Session.FirebaseSessionController.GenerateJwtToken(StringDictionary unicodeEnc)
	   at Emby.Server.Implementations.Session.FirebaseSessionController.RequestAccessToken()
	   at Emby.Server.Implementations.Session.FirebaseSessionController.SendMessage[T](ReadOnlyMemory`1 name, String messageId, T data, CancellationToken cancellationToken)
	   at Emby.Server.Implementations.Session.SessionManager.SendMessageToSession[T](SessionInfo session, Boolean requireUserInterface, ReadOnlyMemory`1 name, T data, CancellationToken cancellationToken)
	Source: System.Security.Cryptography.Algorithms
	TargetSite: Void ThrowIfDisposed()

and

2025-02-20 19:13:39.911 Error SessionManager: Error sending message
	*** Error Report ***
	Version: 4.8.10.0
	Command line: C:\Users\Jason\AppData\Roaming\Emby-Server\system\EmbyServer.dll
	Operating system: Microsoft Windows 10.0.19045
	Framework: .NET 6.0.33
	OS/Process: x64/x64
	Runtime: C:/Users/Jason/AppData/Roaming/Emby-Server/system/System.Private.CoreLib.dll
	Processor count: 4
	Data path: C:\Users\Jason\AppData\Roaming\Emby-Server\programdata
	Application path: C:\Users\Jason\AppData\Roaming\Emby-Server\system
	System.ObjectDisposedException: System.ObjectDisposedException: Cannot access a disposed object.
	Object name: 'RSA'.
	   at System.Security.Cryptography.RSAImplementation.RSACng.ThrowIfDisposed()
	   at System.Security.Cryptography.RSAImplementation.RSACng.GetDuplicatedKeyHandle()
	   at System.Security.Cryptography.RSAImplementation.RSACng.SignHash(Byte[] hash, HashAlgorithmName hashAlgorithm, RSASignaturePadding padding)
	   at Microsoft.IdentityModel.Tokens.AsymmetricAdapter.SignRsa(Byte[] bytes)
	   at Microsoft.IdentityModel.Tokens.AsymmetricSignatureProvider.Sign(Byte[] input)
	   at Microsoft.IdentityModel.JsonWebTokens.JwtTokenUtilities.CreateEncodedSignature(String input, SigningCredentials signingCredentials)
	   at System.IdentityModel.Tokens.Jwt.JwtSecurityTokenHandler.WriteToken(SecurityToken token)
	   at Emby.Server.Implementations.Session.FirebaseSessionController.GenerateJwtToken(StringDictionary unicodeEnc)
	   at Emby.Server.Implementations.Session.FirebaseSessionController.RequestAccessToken()
	   at Emby.Server.Implementations.Session.FirebaseSessionController.SendMessage[T](ReadOnlyMemory`1 name, String messageId, T data, CancellationToken cancellationToken)
	   at Emby.Server.Implementations.Session.SessionManager.SendMessageToSession[T](SessionInfo session, Boolean requireUserInterface, ReadOnlyMemory`1 name, T data, CancellationToken cancellationToken)
	Source: System.Security.Cryptography.Algorithms
	TargetSite: Void ThrowIfDisposed()
	

 

Posted

@mrhatdoes that make sense, that you cancelled the recording?

mrhat
Posted

Hey, not really as I know for certain the initial scheduled recording did fail after 45 mins and I still have no clear understanding why or how i can prevent it. 

Next time it happens should I then grab the FFMPEG log files too?

  • Like 1
Posted
3 hours ago, mrhat said:

Hey, not really as I know for certain the initial scheduled recording did fail after 45 mins and I still have no clear understanding why or how i can prevent it. 

Next time it happens should I then grab the FFMPEG log files too?

Yes that would be great, thanks!

mrhat
Posted

Hey guys, fresh error log here with a scheduled channel recording at 19:00

You can see the failures. I don't understand why

FFMPEG logs i only transcode and remux and neither seem to have logs of this recording.

embyserver-mar6.txt

Posted
1 minute ago, mrhat said:

Hey guys, fresh error log here with a scheduled channel recording at 19:00

You can see the failures. I don't understand why

FFMPEG logs i only transcode and remux and neither seem to have logs of this recording.

embyserver-mar6.txt 183.93 kB · 0 downloads

Hi, did you see this in the log:

	Source: 
	TargetSite: 
	No Stack Trace Available
	InnerException: System.Net.Http.HttpRequestException: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond. (line.trx-ott.com:80)

Is the server hosting the live stream down? It doesn't appear to be responding.

mrhat
Posted

#derp... of course this one had to be straight forward... sorry about that. I guess that channel is in fact not working.

 

Ill reply again if it happens but i can prove the channel is up and operational.

Posted

Is it your own server hosting the stream or someone else?  The "not responding" treatment could also be a way of them blocking your emby server. If this is true, then you may need to fiddle with the user-agent and/or referrer values on the m3u tuner to try and disguise the server.

Also are you using a vpn? That could also be playing a role.

mrhat
Posted

No VPN service here and its a hosted IPTV 'provider' - turns out my subscription did expire so i'm renewing and will try again some other day.

Would be a whicked feature if Emby could fire an alert if a scheduled recording failed :)

Posted
1 minute ago, mrhat said:

 

Would be a whicked feature if Emby could fire an alert if a scheduled recording failed :)

The notifications feature in Emby can help with that.

  • 2 weeks later...
mrhat
Posted

Hey all, ok another NHl game and attempted scheduled recording. Game time was 17:00

I cleaned up the log file to only show the events i think that pertain to this event. The recording failed and instead of a 3 hour recording I got 43 mins.

I mean, if emby is recording or i'm watching in real time, I would assume the IPTV host/server would see the same info/headers? Why would one way work but recording seem to fail out around the 40ish mark.

any insights would be great!

emby-march16.txt

sa2000
Posted
6 hours ago, mrhat said:

The recording failed and instead of a 3 hour recording I got 43 mins.

So recording started at 16:58

2025-03-16 16:58:08.400 Info LiveTV: Copying recording stream to file C:\recordings\Live NHL Hockey\Live NHL Hockey 2025_03_16_17_00_00.ts

We have some windows RSA related errors logged at the time of this starting. I do not know the relevance of these errors

Log shows recording in progress until an error related to the stream at 17:40. The error was 

"System.IO.IOException: System.IO.IOException: The response ended prematurely." which suggests that the remote end stopped.

2025-03-16 17:40:24.387 Error SharedHttpPipelineSource: Give up retries copying live stream http://host4/x_path6_x/x_path7_x/x_path8_x/x_path5_x No more retries allowed.
	*** Error Report ***
	Version: 4.8.11.0
	Command line: C:\Users\Jason\AppData\Roaming\Emby-Server\system\EmbyServer.dll
	Operating system: Microsoft Windows 10.0.19045
	Framework: .NET 6.0.36
	OS/Process: x64/x64
	Runtime: C:/Users/Jason/AppData/Roaming/Emby-Server/system/System.Private.CoreLib.dll
	Processor count: 4
	Data path: C:\Users\Jason\AppData\Roaming\Emby-Server\programdata
	Application path: C:\Users\Jason\AppData\Roaming\Emby-Server\system
	System.IO.IOException: System.IO.IOException: The response ended prematurely.
	   at System.Net.Http.HttpConnection.FillAsync(Boolean async)
	   at System.Net.Http.HttpConnection.ChunkedEncodingReadStream.ReadAsyncCore(Memory`1 buffer, CancellationToken cancellationToken)
	   at Emby.Server.Implementations.IO.StreamHelper.CopyToAsync(Stream source, PipeWriter destination, Int32 bufferSize, CancellationToken cancellationToken)
	   at Emby.LiveTV.TunerHosts.SharedHttpPipelineSource.<>c__DisplayClass45_0.<<StartStreamingWithLegacyTsProcessor>b__0>d.MoveNext()
	Source: System.Net.Http
	TargetSite: Void MoveNext()
	
2025-03-16 17:40:24.392 Error SharedHttpPipelineSource: Error copying live stream.
	*** Error Report ***
	Version: 4.8.11.0
	Command line: C:\Users\Jason\AppData\Roaming\Emby-Server\system\EmbyServer.dll
	Operating system: Microsoft Windows 10.0.19045
	Framework: .NET 6.0.36
	OS/Process: x64/x64
	Runtime: C:/Users/Jason/AppData/Roaming/Emby-Server/system/System.Private.CoreLib.dll
	Processor count: 4
	Data path: C:\Users\Jason\AppData\Roaming\Emby-Server\programdata
	Application path: C:\Users\Jason\AppData\Roaming\Emby-Server\system
	System.IO.IOException: System.IO.IOException: The response ended prematurely.
	   at System.Net.Http.HttpConnection.FillAsync(Boolean async)
	   at System.Net.Http.HttpConnection.ChunkedEncodingReadStream.ReadAsyncCore(Memory`1 buffer, CancellationToken cancellationToken)
	   at Emby.Server.Implementations.IO.StreamHelper.CopyToAsync(Stream source, PipeWriter destination, Int32 bufferSize, CancellationToken cancellationToken)
	   at Emby.LiveTV.TunerHosts.SharedHttpPipelineSource.<>c__DisplayClass45_0.<<StartStreamingWithLegacyTsProcessor>b__0>d.MoveNext()
	--- End of stack trace from previous location ---
	   at Emby.LiveTV.TunerHosts.SharedHttpPipelineSource.<>c__DisplayClass45_0.<<StartStreamingWithLegacyTsProcessor>b__0>d.MoveNext()
	Source: System.Net.Http
	TargetSite: Void MoveNext()
	
2025-03-16 17:40:24.392 Info SharedHttpPipelineSource: SharedHttpPipelineSource is done streaming.
2025-03-16 17:42:24.528 Info SharedHttpPipelineSource: Live Stream ended.
2025-03-16 17:42:24.536 Info LiveTV: Recording completed to: C:\recordings\Live NHL Hockey\Live NHL Hockey 2025_03_16_17_00_00.ts
2025-03-16 17:42:24.538 Info MediaSourceManager: Live stream add425b93bb23257e75a574c3bf07802 consumer count is now 0

As this is http and not https, wireshark may help you find out more about what is happening to the streaming request.

The RSA errors which I mentioned may have been related to metadata providers and do not appear to be relevant to the actual stream stopping at 17:40:

2025-03-16 16:58:08.683 Error SessionManager: Error sending message
	*** Error Report ***
	Version: 4.8.11.0
	Command line: C:\Users\Jason\AppData\Roaming\Emby-Server\system\EmbyServer.dll
	Operating system: Microsoft Windows 10.0.19045
	Framework: .NET 6.0.36
	OS/Process: x64/x64
	Runtime: C:/Users/Jason/AppData/Roaming/Emby-Server/system/System.Private.CoreLib.dll
	Processor count: 4
	Data path: C:\Users\Jason\AppData\Roaming\Emby-Server\programdata
	Application path: C:\Users\Jason\AppData\Roaming\Emby-Server\system
	System.ObjectDisposedException: System.ObjectDisposedException: Cannot access a disposed object.
	Object name: 'RSA'.
	   at System.Security.Cryptography.RSAImplementation.RSACng.ThrowIfDisposed()
	   at System.Security.Cryptography.RSAImplementation.RSACng.GetDuplicatedKeyHandle()
	   at System.Security.Cryptography.RSAImplementation.RSACng.SignHash(Byte[] hash, HashAlgorithmName hashAlgorithm, RSASignaturePadding padding)
	   at Microsoft.IdentityModel.Tokens.AsymmetricAdapter.SignRsa(Byte[] bytes)
	   at Microsoft.IdentityModel.Tokens.AsymmetricSignatureProvider.Sign(Byte[] input)
	   at Microsoft.IdentityModel.JsonWebTokens.JwtTokenUtilities.CreateEncodedSignature(String input, SigningCredentials signingCredentials)
	   at System.IdentityModel.Tokens.Jwt.JwtSecurityTokenHandler.WriteToken(SecurityToken token)
	   at Emby.Server.Implementations.Session.FirebaseSessionController.GenerateJwtToken(StringDictionary unicodeEnc)
	   at Emby.Server.Implementations.Session.FirebaseSessionController.RequestAccessToken()
	   at Emby.Server.Implementations.Session.FirebaseSessionController.SendMessage[T](ReadOnlyMemory`1 name, String messageId, T data, CancellationToken cancellationToken)
	   at Emby.Server.Implementations.Session.SessionManager.SendMessageToSession[T](SessionInfo session, Boolean requireUserInterface, ReadOnlyMemory`1 name, T data, CancellationToken cancellationToken)
	Source: System.Security.Cryptography.Algorithms
	TargetSite: Void ThrowIfDisposed()
	
2025-03-16 16:58:08.683 Error SessionManager: Error sending message
	*** Error Report ***
	Version: 4.8.11.0
	Command line: C:\Users\Jason\AppData\Roaming\Emby-Server\system\EmbyServer.dll
	Operating system: Microsoft Windows 10.0.19045
	Framework: .NET 6.0.36
	OS/Process: x64/x64
	Runtime: C:/Users/Jason/AppData/Roaming/Emby-Server/system/System.Private.CoreLib.dll
	Processor count: 4
	Data path: C:\Users\Jason\AppData\Roaming\Emby-Server\programdata
	Application path: C:\Users\Jason\AppData\Roaming\Emby-Server\system
	System.ObjectDisposedException: System.ObjectDisposedException: Cannot access a disposed object.
	Object name: 'RSA'.
	   at System.Security.Cryptography.RSAImplementation.RSACng.ThrowIfDisposed()
	   at System.Security.Cryptography.RSAImplementation.RSACng.GetDuplicatedKeyHandle()
	   at System.Security.Cryptography.RSAImplementation.RSACng.SignHash(Byte[] hash, HashAlgorithmName hashAlgorithm, RSASignaturePadding padding)
	   at Microsoft.IdentityModel.Tokens.AsymmetricAdapter.SignRsa(Byte[] bytes)
	   at Microsoft.IdentityModel.Tokens.AsymmetricSignatureProvider.Sign(Byte[] input)
	   at Microsoft.IdentityModel.JsonWebTokens.JwtTokenUtilities.CreateEncodedSignature(String input, SigningCredentials signingCredentials)
	   at System.IdentityModel.Tokens.Jwt.JwtSecurityTokenHandler.WriteToken(SecurityToken token)
	   at Emby.Server.Implementations.Session.FirebaseSessionController.GenerateJwtToken(StringDictionary unicodeEnc)
	   at Emby.Server.Implementations.Session.FirebaseSessionController.RequestAccessToken()
	   at Emby.Server.Implementations.Session.FirebaseSessionController.SendMessage[T](ReadOnlyMemory`1 name, String messageId, T data, CancellationToken cancellationToken)
	   at Emby.Server.Implementations.Session.SessionManager.SendMessageToSession[T](SessionInfo session, Boolean requireUserInterface, ReadOnlyMemory`1 name, T data, CancellationToken cancellationToken)
	   at Emby.Server.Implementations.Session.SessionManager.<>c__DisplayClass127_1`1.<<SendMessageToUserSessions>b__2>d.MoveNext()
	Source: System.Security.Cryptography.Algorithms
	TargetSite: Void ThrowIfDisposed()
	

Perhaps adding debug logging may give some clues as to what was being done at the time. 

 

mrhat
Posted

How can I enable more verbose logging ? There is another game tonight so I want to try this again and see if we can find the root issue 

sa2000
Posted
15 minutes ago, mrhat said:

How can I enable more verbose logging

I suggested debug logging for the RSA errors - see Log Settings info in this article

 

And for the early termination, I mentioned wireshark may give some extra info - with the pcap file together with the raw logs. 

So enable debug logging setting it to Yes. 

Restart the server to get new log file created.

Before the recording starts, launch wireshark and capture network traffic for all active interfaces.

When the problem arises, note down the time, stop wireshark capture

Save it into a pcap file.

Zip the pcap file and copy out the logs folder "C:\Users\Jason\AppData\Roaming\Emby-Server\programdata\logs" and zip the copy and send me the 2 zips by private message

 

mrhat
Posted

I sent a pm to sa2000 with my first round of logs and have new instructions for capturing more logs

sa2000
Posted

Waiting for wireshark and raw logs to see if the wireshark capture sheds any light. And if the issue is confined to recordings and does not arise for Live TV for same channels then would be good to see wireshark and logs form that as well to compare.

The new logs I received did not have any more than what we had before

2025-03-18 20:36:31.005 Error SharedHttpPipelineSource: Give up retries copying live stream http://host3/x_path4_x/x_path5_x/x_path6_x/x_path3_x No more retries allowed.
	*** Error Report ***

System.IO.IOException: System.IO.IOException: The response ended prematurely

 

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...