Jump to content

Random Playback Stopping


KingKoopa08

Recommended Posts

KingKoopa08

It happened again.

2018-11-16 09:51:33.593 Info HttpServer: HTTP GET http://ServerIP:8096/emby/videos/47a79c66ecc8328e7e66c6fc391b241b/live.m3u8?DeviceId=1ae958c6-6b69-58cd-b70a-aa1a24a9a206&MediaSourceId=3feaa7649657e51706662b6f84178e18&VideoCodec=h264,mpeg1video,mpeg2video,hevc&AudioCodec=aac,mp2,mp3,flac,opus,vorbis,lpcm&AudioStreamIndex=-1&VideoBitrate=79808000&AudioBitrate=192000&MaxFramerate=61&MaxWidth=3840&MaxHeight=2160&PlaySessionId=1bc624048a3a4c5781b77cae4bd5ce81&LiveStreamId=a17c75760a04e99b68cf766e11316e1c_09efa0d56b934a82adec00a87b837fb0_3feaa7649657e51706662b6f84178e18&TranscodingMaxAudioChannels=2&RequireAvc=false&SegmentContainer=ts&SegmentLength=3&MinSegments=1&BreakOnNonKeyFrames=True&h264-maxrefframes=16&h264-videobitdepth=8&h264-profile=high,main,baseline,constrainedbaseline&h264-level=51&aac-audiochannels=6&flac-audiochannels=6&lpcm-audiochannels=6&mp3-audiochannels=2&mp2-audiochannels=2&vorbis-audiochannels=6&opus-audiochannels=6&TranscodeReasons=ContainerNotSupported,VideoCodecNotSupported,AudioCodecNotSupported. Host=ServerIP:8096, User-Agent=Roku/DVP-8.10 (298.10E04159A), Accept=*/*, Accept-Encoding=deflate, gzip
2018-11-16 09:51:33.594 Error HttpServer: Error processing request
    *** Error Report ***
    Version: 3.5.3.0
    Command line: /opt/emby-server/system/EmbyServer.dll -programdata /var/lib/emby -ffmpeg /opt/emby-server/bin/ffmpeg -ffprobe /opt/emby-server/bin/ffprobe -restartexitcode 3 -updatepackage emby-server-deb_{version}_amd64.deb
    Operating system: Unix 4.4.0.138
    64-Bit OS: True
    64-Bit Process: True
    User Interactive: True
    Processor count: 8
    Program data path: /var/lib/emby
    Application directory: /opt/emby-server/system
    MediaBrowser.Common.Extensions.ResourceNotFoundException: Exception of type 'MediaBrowser.Common.Extensions.ResourceNotFoundException' was thrown.
     at Emby.Server.Implementations.Library.MediaSourceManager.GetLiveStreamInfo(String id, CancellationToken cancellationToken)
     at Emby.Server.Implementations.Library.MediaSourceManager.GetLiveStreamWithDirectStreamProvider(String id, CancellationToken cancellationToken)
     at Emby.Server.MediaEncoding.Api.BaseStreamingService.GetState(StreamRequest request, CancellationToken cancellationToken)
     at Emby.Server.MediaEncoding.Api.Hls.BaseHlsService.ProcessRequest(StreamRequest request)
     at Emby.Server.Implementations.Services.ServiceExecGeneral.GetTaskResult(Task task)
     at Emby.Server.Implementations.Services.ServiceHandler.ProcessRequestAsync(HttpListenerHost appHost, IRequest httpReq, IResponse httpRes, ILogger logger, String operationName, CancellationToken cancellationToken)
     at Emby.Server.Implementations.HttpServer.HttpListenerHost.RequestHandler(IHttpRequest httpReq, String urlString, String host, String localPath, CancellationToken cancellationToken)
    MediaBrowser.Common.Extensions.ResourceNotFoundException
     at Emby.Server.Implementations.Library.MediaSourceManager.GetLiveStreamInfo(String id, CancellationToken cancellationToken)
     at Emby.Server.Implementations.Library.MediaSourceManager.GetLiveStreamWithDirectStreamProvider(String id, CancellationToken cancellationToken)
     at Emby.Server.MediaEncoding.Api.BaseStreamingService.GetState(StreamRequest request, CancellationToken cancellationToken)
     at Emby.Server.MediaEncoding.Api.Hls.BaseHlsService.ProcessRequest(StreamRequest request)
     at Emby.Server.Implementations.Services.ServiceExecGeneral.GetTaskResult(Task task)
     at Emby.Server.Implementations.Services.ServiceHandler.ProcessRequestAsync(HttpListenerHost appHost, IRequest httpReq, IResponse httpRes, ILogger logger, String operationName, CancellationToken cancellationToken)
     at Emby.Server.Implementations.HttpServer.HttpListenerHost.RequestHandler(IHttpRequest httpReq, String urlString, String host, String localPath, CancellationToken cancellationToken)

Edited by KingKoopa08
Link to comment
Share on other sites

Hi there, can you please attach the complete emby server log? Also was there an ffmpeg log? If so please attach that too. Thanks.

Link to comment
Share on other sites

KingKoopa08

@@Luke

 

I have attached the logs. I did find another error that happened. Its below and in the logs attached.

 

2018-11-16 00:34:24.976 Error HttpServer: WebSocket ConnectionClosedPrematurely
2018-11-16 00:34:24.976 Error HttpServer: Error closing web socket response
*** Error Report ***
Version: 3.5.3.0
Command line: /opt/emby-server/system/EmbyServer.dll -programdata /var/lib/emby -ffmpeg /opt/emby-server/bin/ffmpeg -ffprobe /opt/emby-server/bin/ffprobe -restartexitcode 3 -updatepackage emby-server-deb_{version}_amd64.deb
Operating system: Unix 4.4.0.138
64-Bit OS: True
64-Bit Process: True
User Interactive: True
Processor count: 8
Program data path: /var/lib/emby
Application directory: /opt/emby-server/system
System.Net.Sockets.SocketException (32): Broken pipe
   at SocketHttpListener.SocketStream.Write(Byte[] buffer, Int32 offset, Int32 count)
   at SocketHttpListener.Net.HttpResponseStream.DisposeCore()
   at SocketHttpListener.Net.HttpResponseStream.Dispose(Boolean disposing)
   at SocketHttpListener.Net.HttpConnection.Close(Boolean force)
   at EmbyServer.SocketSharp.WebSocketSharpListener.TryClose(HttpListenerContext ctx, Int32 statusCode)
System.Net.Sockets.SocketException
   at SocketHttpListener.SocketStream.Write(Byte[] buffer, Int32 offset, Int32 count)
   at SocketHttpListener.Net.HttpResponseStream.DisposeCore()
   at SocketHttpListener.Net.HttpResponseStream.Dispose(Boolean disposing)
   at SocketHttpListener.Net.HttpConnection.Close(Boolean force)
   at EmbyServer.SocketSharp.WebSocketSharpListener.TryClose(HttpListenerContext ctx, Int32 statusCode)
 

ServerLog.txt

DirectStreamLog.txt

Link to comment
Share on other sites

KingKoopa08

@@Luke

To expand, I did this to avoid any network being used for that it just refers to its self. I didn't want somehow the traffic to go out of the server and back in. I did see this is websockets. If I need too I can switch to go to the fqdn if that will help but it does look like I get a few different errors around this so not sure if that will help.

 

Thanks.

Edited by KingKoopa08
Link to comment
Share on other sites

Ok, there's nothing obvious here. @@speechles, is there debugging we can capture from Roku to see if this might have been an error in the roku video player? thanks.

Link to comment
Share on other sites

Ok, there's nothing obvious here. @@speechles, is there debugging we can capture from Roku to see if this might have been an error in the roku video player? thanks.

 

Yes. If he enables the debug setting in the options of the app. Then exit the app and restart it. This makes the "send debug logs" option appear on the homescreen. Now reproduce the issue, afterwards send debug logs in app. The video player has alot of debug it builds so it should be very evident in the app logs where the problem is occuring. @@ebr just needs the username and servername the logs were sent from and the time. Then he should be able to see what type of error is occuring. It looks very much like a timeout of the app and the task just hangs because it can't get data. This would stall the video player on retrieving. It could also be something with ffmpeg since this is just a simple container swap or so the logs indicate. Seeing the logs from the app would help tremendously. 

 

NOTE: Make sure to disable debug logging immediately after recreating your issue and sending logs. The reason for that is debug logging adds a severe time penalty to everything it does. Everything will feel slower with debugging enabled.

Edited by speechles
Link to comment
Share on other sites

KingKoopa08

@@speechles

Thank you. I can do that. I just turned it on, when I recreate it I will tag you guys and provide the info requested. Thank you and @@Luke for the help. I will reply back as soon as I reproduce it.

Edited by KingKoopa08
Link to comment
Share on other sites

KingKoopa08

@@speechles

@@Luke

@@ebr

 

Hey guys I am just tagging you all in this I just reproduced it. Which was weird I didn't all day long yesterday but did first thing this morning. The server name is Notyours and username is same as mine in here KingKoopa08 then the time on the server is 8:48 AM PST, time of the client is 9:48 AM MST. Not sure what time you needed. The server log shows the following error. Thanks guys!!

 

2018-11-18 08:48:11.910 Info HttpServer: HTTP GET http://ServerIP:8096/emby/videos/1b61aa4462b1f4eccd3912967449e9a6/live.m3u8?DeviceId=1ae958c6-6b69-58cd-b70a-aa1a24a9a206&MediaSourceId=3feaa7649657e51706662b6f84178e18&VideoCodec=h264,mpeg1video,mpeg2video,hevc&AudioCodec=aac,mp2,mp3,flac,opus,vorbis,lpcm&AudioStreamIndex=-1&VideoBitrate=79808000&AudioBitrate=192000&MaxFramerate=61&MaxWidth=3840&MaxHeight=2160&PlaySessionId=765321f911ae4751b834c65bea335a82&LiveStreamId=a17c75760a04e99b68cf766e11316e1c_09efa0d56b934a82adec00a87b837fb0_3feaa7649657e51706662b6f84178e18&TranscodingMaxAudioChannels=2&RequireAvc=false&SegmentContainer=ts&SegmentLength=3&MinSegments=1&BreakOnNonKeyFrames=True&h264-maxrefframes=16&h264-videobitdepth=8&h264-profile=high,main,baseline,constrainedbaseline&h264-level=51&aac-audiochannels=6&flac-audiochannels=6&lpcm-audiochannels=6&mp3-audiochannels=2&mp2-audiochannels=2&vorbis-audiochannels=6&opus-audiochannels=6&TranscodeReasons=ContainerNotSupported,VideoCodecNotSupported,AudioCodecNotSupported. Host=ServerIP:8096, User-Agent=Roku/DVP-8.10 (298.10E04159A), Accept=*/*, Accept-Encoding=deflate, gzip
2018-11-18 08:48:11.950 Error HttpServer: Error processing request
*** Error Report ***
Version: 3.5.3.0
Command line: /opt/emby-server/system/EmbyServer.dll -programdata /var/lib/emby -ffmpeg /opt/emby-server/bin/ffmpeg -ffprobe /opt/emby-server/bin/ffprobe -restartexitcode 3 -updatepackage emby-server-deb_{version}_amd64.deb
Operating system: Unix 4.4.0.138
64-Bit OS: True
64-Bit Process: True
User Interactive: True
Processor count: 8
Program data path: /var/lib/emby
Application directory: /opt/emby-server/system
MediaBrowser.Common.Extensions.ResourceNotFoundException: Exception of type 'MediaBrowser.Common.Extensions.ResourceNotFoundException' was thrown.
   at Emby.Server.Implementations.Library.MediaSourceManager.GetLiveStreamInfo(String id, CancellationToken cancellationToken)
   at Emby.Server.Implementations.Library.MediaSourceManager.GetLiveStreamWithDirectStreamProvider(String id, CancellationToken cancellationToken)
   at Emby.Server.MediaEncoding.Api.BaseStreamingService.GetState(StreamRequest request, CancellationToken cancellationToken)
   at Emby.Server.MediaEncoding.Api.Hls.BaseHlsService.ProcessRequest(StreamRequest request)
   at Emby.Server.Implementations.Services.ServiceExecGeneral.GetTaskResult(Task task)
   at Emby.Server.Implementations.Services.ServiceHandler.ProcessRequestAsync(HttpListenerHost appHost, IRequest httpReq, IResponse httpRes, ILogger logger, String operationName, CancellationToken cancellationToken)
   at Emby.Server.Implementations.HttpServer.HttpListenerHost.RequestHandler(IHttpRequest httpReq, String urlString, String host, String localPath, CancellationToken cancellationToken)
MediaBrowser.Common.Extensions.ResourceNotFoundException
   at Emby.Server.Implementations.Library.MediaSourceManager.GetLiveStreamInfo(String id, CancellationToken cancellationToken)
   at Emby.Server.Implementations.Library.MediaSourceManager.GetLiveStreamWithDirectStreamProvider(String id, CancellationToken cancellationToken)
   at Emby.Server.MediaEncoding.Api.BaseStreamingService.GetState(StreamRequest request, CancellationToken cancellationToken)
   at Emby.Server.MediaEncoding.Api.Hls.BaseHlsService.ProcessRequest(StreamRequest request)
   at Emby.Server.Implementations.Services.ServiceExecGeneral.GetTaskResult(Task task)
   at Emby.Server.Implementations.Services.ServiceHandler.ProcessRequestAsync(HttpListenerHost appHost, IRequest httpReq, IResponse httpRes, ILogger logger, String operationName, CancellationToken cancellationToken)
   at Emby.Server.Implementations.HttpServer.HttpListenerHost.RequestHandler(IHttpRequest httpReq, String urlString, String host, String localPath, CancellationToken cancellationToken)
Edited by KingKoopa08
Link to comment
Share on other sites

@@ebr

 

 

 

Hey guys I am just tagging you all in this I just reproduced it. Which was weird I didn't all day long yesterday but did first thing this morning. The server name is Notyours and username is same as mine in here KingKoopa08 then the time on the server is 8:48 AM PST, time of the client is 9:48 AM MST. Not sure what time you needed. The server log shows the following error. Thanks guys!!

 

The server logs aren't showing enough for us to verify where the problem lies. Are the app logs showing anything interesting? I am suspect there is a task timeout happening somewhere. Knowing which task would help nail down root cause.

Edited by speechles
Link to comment
Share on other sites

  • 1 month later...
Error validating images for /home/emby/recordings

 

This folder lacks permissions for Emby. It also causes ffmpeg and ffprobe to be unable to do anything in that folder. Are the files that will not play within this folder?

Link to comment
Share on other sites

KingKoopa08

@@speechles

 

Thanks for the quick reply. I fixed the permissions issue with recordings long before I ran into the stream issue. I was setting up the dvr because this is a new server I was hoping it was something with the other one. But this issue followed me. I will attach a screenshot of the permissions and when it was changed. I do put my m3u's in keep which emby isn't a owner of. Would that cause this issue?

 

 

post-217015-0-03239700-1546277433_thumb.png

Link to comment
Share on other sites

@@speechles

 

Thanks for the quick reply. I fixed the permissions issue with recordings long before I ran into the stream issue. I was setting up the dvr because this is a new server I was hoping it was something with the other one. But this issue followed me. I will attach a screenshot of the permissions and when it was changed. I do put my m3u's in keep which emby isn't a owner of. Would that cause this issue?

 

emby doesn't have read permissions for the recordings folder.

Link to comment
Share on other sites

@@speechles

 

dude thank you. I am sorry for bothering you for my dumb mistake. Have a great new year man!

 

Not a problem. Don't beat yourself up either. Mistakes are only dumb if you can never fix them. You too have a tip top new year. :)

Link to comment
Share on other sites

KingKoopa08

@@speechles

 

I made the changes and still have the issue error below. I have also attached the entire log. I made the changes earlier today. Also attached the changes showing I did make on the permissions for recordings folder.

 

 

2018-12-31 16:15:45.992 Error HttpServer: Error processing request
*** Error Report ***
Version: 3.5.3.0
Command line: /opt/emby-server/system/EmbyServer.dll -programdata /var/lib/emby -ffmpeg /opt/emby-server/bin/ffmpeg -ffprobe /opt/emby-server/bin/ffprobe -restartexitcode 3 -updatepackage emby-server-deb_{version}_amd64.deb
Operating system: Unix 4.9.144.6
64-Bit OS: True
64-Bit Process: True
User Interactive: True
Processor count: 8
Program data path: /var/lib/emby
Application directory: /opt/emby-server/system
MediaBrowser.Common.Extensions.ResourceNotFoundException: Exception of type 'MediaBrowser.Common.Extensions.ResourceNotFoundException' was thrown.
   at Emby.Server.Implementations.Library.MediaSourceManager.GetLiveStreamInfo(String id, CancellationToken cancellationToken)
   at Emby.Server.Implementations.Library.MediaSourceManager.GetLiveStreamWithDirectStreamProvider(String id, CancellationToken cancellationToken)
   at Emby.Server.Implementations.Library.MediaSourceManager.GetLiveStream(String id, CancellationToken cancellationToken)
   at Emby.Server.Implementations.Library.MediaSourceManager.GetMediaSource(BaseItem item, String mediaSourceId, String liveStreamId, Boolean enablePathSubstitution, CancellationToken cancellationToken)
   at Emby.Server.Implementations.Session.SessionManager.UpdateNowPlayingItem(SessionInfo session, PlaybackProgressInfo info, BaseItem libraryItem, Boolean updateLastCheckInTime)
   at Emby.Server.Implementations.Session.SessionManager.OnPlaybackProgress(PlaybackProgressInfo info, Boolean isAutomated)
   at Emby.Server.Implementations.Services.ServiceExecGeneral.GetTaskResult(Task task)
   at Emby.Server.Implementations.Services.ServiceHandler.ProcessRequestAsync(HttpListenerHost appHost, IRequest httpReq, IResponse httpRes, ILogger logger, String operationName, CancellationToken cancellationToken)
   at Emby.Server.Implementations.HttpServer.HttpListenerHost.RequestHandler(IHttpRequest httpReq, String urlString, String host, String localPath, CancellationToken cancellationToken)
MediaBrowser.Common.Extensions.ResourceNotFoundException
   at Emby.Server.Implementations.Library.MediaSourceManager.GetLiveStreamInfo(String id, CancellationToken cancellationToken)
   at Emby.Server.Implementations.Library.MediaSourceManager.GetLiveStreamWithDirectStreamProvider(String id, CancellationToken cancellationToken)
   at Emby.Server.Implementations.Library.MediaSourceManager.GetLiveStream(String id, CancellationToken cancellationToken)
   at Emby.Server.Implementations.Library.MediaSourceManager.GetMediaSource(BaseItem item, String mediaSourceId, String liveStreamId, Boolean enablePathSubstitution, CancellationToken cancellationToken)
   at Emby.Server.Implementations.Session.SessionManager.UpdateNowPlayingItem(SessionInfo session, PlaybackProgressInfo info, BaseItem libraryItem, Boolean updateLastCheckInTime)
   at Emby.Server.Implementations.Session.SessionManager.OnPlaybackProgress(PlaybackProgressInfo info, Boolean isAutomated)
   at Emby.Server.Implementations.Services.ServiceExecGeneral.GetTaskResult(Task task)
   at Emby.Server.Implementations.Services.ServiceHandler.ProcessRequestAsync(HttpListenerHost appHost, IRequest httpReq, IResponse httpRes, ILogger logger, String operationName, CancellationToken cancellationToken)
   at Emby.Server.Implementations.HttpServer.HttpListenerHost.RequestHandler(IHttpRequest httpReq, String urlString, String host, String localPath, CancellationToken cancellationToken)

Log (15).txt

post-217015-0-33454300-1546302279_thumb.png

Link to comment
Share on other sites

This is sort of.. out of my depth. @@Luke Any suggestions?

Link to comment
Share on other sites

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...