Jump to content

LiveTV module blank NextPVR


DParsons

Recommended Posts

DParsons

A few days ago my liveTV module on my Emby server became blank with nothing being displayed. The guide still shows up but empty of any data and also channels still show. I am able to still stream livetv both locally and remotely by using the channels module, but without guide info. I've tried uninstalling reinstalling the NextPVR addon in Emby but livetv continues to be empty.

 

 

emby server logs 03032017.7z

Link to comment
Share on other sites

Hi, there are some errors coming from the next pvr api, that might be the reason

2017-03-03 13:27:28.8907 Error HttpClient: Error getting response from http://localhost:8866/public/ManageService/Get/SortedFilteredList?sid=00930a92e67e4fc0b8af92ff43aa9c8f
	*** Error Report ***
	Version: 3.2.5.0
	
System.Net.WebException: The remote server returned an error: (500) Internal Server Error.

I would ensure that you have a fully functional setup on the next pvr side. Let us know if this helps. Thanks.

Link to comment
Share on other sites

DParsons

NextPVR is operating normally. I can use it with no problems, I wonder what else might be happening. It has been fine and it just started a day or two ago and there has been no changes that I'm aware of in the last couple of days. I might try uninstalling Emby and resetting it up completely again. Reinstalling the NextPVR addon had no affect.

Link to comment
Share on other sites

Again it is the next pvr web service sending back a 500 error code, I don't think you need to reinstall Emby.

 

What I would suggest doing is checking next pvr logs to see if there's anything useful there. There must be some logging to coincide with that 500 response code.

Link to comment
Share on other sites

vaise

Have you tried rebooting your system - or restarting the NextPVR recording service (right click it in the bottom right and restart).  That will re-start the NextPVR web service then.  You can have nextPVR working fine from a windows gui perspective, and all the normal NextPVR stuff is working, but it is not offering up its stuff to the web.

 

You can check this on http://localhost:8866/index.html (I think it is index, I cant remember off the top of my head and not at home currently to check).

 

There are other reported issues such as this in this forum.

 

Hope that helps.

Link to comment
Share on other sites

DParsons

Thanks, I have. Even tried reinstalling both and nothing will work. I checked the NextPVR web client and it is fully functional, just Emby will not display the guide. It will still steam so it is mostly working just no epg so I can't schedule recordings. I can watch livetv and that is my only option at the moment.

Link to comment
Share on other sites

vaise

I schedule my recordings from the windows nextPVR gui myself (at least until emby is proven good for the HDHR old style devices).  I find the nextPVR windows gui the best currently.  I just check every week, or when I have time, then use the CTRL  > key combination to go to each day, always in the 6:30 PM timeframe which shows it all on one page.  I then make sure our stuff is there (it is mostly series recordings), nd add any one-off's.  So i have never used the emby guide in anger, but I have recorded the odd one from the roku guide on the beta every now and again.  I only have 12 channels in the list do I dont even have to page up/down.  This is the first time I have heard about emby not working when the nextPVR web guide is fully working.

Link to comment
Share on other sites

DParsons

@@Luke I have submitted the nextpvr logs to them but it was a day after the event and they said the logs didn't go back far enough to show the error. I'll post some new logs as soon as possible. I was hoping they could look at the logs I posted here, I provided the link to this post but I'm not sure if they can see them.

 

@@vaise It has worked perfectly for a long time. Emby is not my main method of scheduling recordings and I use it mostly remotely, KODI is my main media center on my HTPC and the livetv/PVR function is my main interest in Emby. It has been an exceptional program and this must be some sort of odd glitch that I'm hoping can be sorted out soon.

Link to comment
Share on other sites

DParsons

Immediately after making this post I checked Emby and both the local and remote/android apps are working again. Livetv is the same as it has always been and I've scheduled recordings with the web and android apps. I'm posting logs that I just created after it started to work again to see if you all can see any obvious reasons for this. It went off and stayed that way for me for approximately the last three days and just this morning is back to normal.

 

 

emby server logs.7z

Link to comment
Share on other sites

emveepee

Note that 500 is a valid response to some NEWA JSON calls requiring special handling. In this case the call that was failing here was not the guide listing info. What I saw on the EPG side of NextPVR was no guide data was being returned

 

 

2017-03-04 07:36:13.290 [iNFO][59] #*** Created listing for 0 events in 0.519 seconds.

 

 

In the future if this happens again you would need to confirm there was guide data in NextPVR and on a Kodi refresh and report that on the NextPVR forum.

 

Martin

Edited by emveepee
Link to comment
Share on other sites

emveepee

The log you sent here are after the logs you posted on the NextPVR forums because you must have restarted Emby which doesn't help. The NextPVR logs clearly showed sending back EPG data earlier.

 

In the earlier logs and in the Emby logs hopefully an Emby dev will find out why Emby is spamming NextPVR with /public/ManageService/Get/SortedFilteredList calls.

 

 

I see one lots of 4 or more POSTS at a time

2017-03-08 14:28:03.2951 Info App: [NextPvr] Start GetTimer Async, retrieve the 'Pending' recordings
2017-03-08 14:28:03.2951 Info App: [NextPvr] Start GetTimer Async, retrieve the 'Pending' recordings
2017-03-08 14:28:03.2951 Info App: [NextPvr] Start GetTimer Async, retrieve the 'Pending' recordings
2017-03-08 14:28:03.2951 Info App: [NextPvr] Start GetTimer Async, retrieve the 'Pending' recordings
2017-03-08 14:28:03.2951 Info HttpClient: HttpClientManager POST: http://localhost:8866/public/ManageService/Get/SortedFilteredList?sid=88e749dad43c4b88ad4f1b9ed3151340
2017-03-08 14:28:03.2951 Info HttpClient: HttpClientManager POST: http://localhost:8866/public/ManageService/Get/SortedFilteredList?sid=88e749dad43c4b88ad4f1b9ed3151340
2017-03-08 14:28:03.2951 Info HttpClient: HttpClientManager POST: http://localhost:8866/public/ManageService/Get/SortedFilteredList?sid=88e749dad43c4b88ad4f1b9ed3151340
2017-03-08 14:28:03.2951 Info HttpClient: HttpClientManager POST: http://localhost:8866/public/ManageService/Get/SortedFilteredList?sid=88e749dad43c4b88ad4f1b9ed3151340 
and that seems to have caused problems on the server with the 500 return but you didn't post the NextPVR side to help explain why. After that time there is significantly more spamming.

 

 

I did see another thing

2017-03-08 14:29:02.7850 Info App: [NextPvr] Start CreateTimer Async for ChannelId: 7187 & Name: Criminal Minds: Beyond Borders
2017-03-08 14:29:02.7850 Info App: [NextPvr] Start GetDefaultScheduleSettings
2017-03-08 14:29:02.7850 Info HttpClient: HttpClientManager GET: http://localhost:8866/public/ScheduleService/Get/SchedSettingsObj?sid=88e749dad43c4b88ad4f1b9ed3151340
2017-03-08 14:29:02.8070 Info HttpClient: HttpClientManager POST: http://localhost:8866/public/ScheduleService/Record?sid=88e749dad43c4b88ad4f1b9ed3151340
2017-03-08 14:29:02.8681 Error HttpClient: Error getting response from http://localhost:8866/public/ScheduleService/Record?sid=88e749dad43c4b88ad4f1b9ed3151340 
You may have caused an error 500 that Emby doesn't handle perhaps if your created conflicts.

 

 

After all that at 2017-03-08 14:34:41 you started streaming live TV. With the transcoding going on and Emby's aggressive logging of the m3u8 playback, added to all the disk writing that NextPVR is doing to write the live tv buffer and log it's own calls, I don't doubt at all that your system could struggle.

 

Martin

Edited by emveepee
  • Like 1
Link to comment
Share on other sites

emveepee

I see another thing for the dev's two. For Live TV the client count seems to be incrementing. The client ID should stay static for the client not increment.

 

2017-03-08 14:34:41.7305 Info App: [NextPvr] Streaming http://localhost:8866/live?channeloid=7196&client=MB3.1
2017-03-08 14:47:46.3944 Info App: [NextPvr] Streaming http://localhost:8866/live?channeloid=7192&client=MB3.2
2017-03-08 17:07:26.3211 Info App: [NextPvr] Streaming http://localhost:8866/live?channeloid=7196&client=MB3.3
2017-03-08 17:12:37.3900 Info App: [NextPvr] Streaming http://localhost:8866/live?channeloid=7191&client=MB3.4
 
Martin Edited by emveepee
  • Like 1
Link to comment
Share on other sites

emveepee

Right, different clients should maintain a static ID. When I coded that it was for simplicity but it could be anything unique the more permanent the better. This way NextPVR will know to close a live tv file if the same client connects twice freeing up tuners faster.

 

Martin

  • Like 1
Link to comment
Share on other sites

Just so I'm clear, that means one static ID shared by all of them, or one for each? Thanks !

Link to comment
Share on other sites

emveepee

One unique ID for each client preferably persistent. Note that this doesn't relate to the JSON call problem.

 

 

Martin

Edited by emveepee
Link to comment
Share on other sites

Ok, thanks for the info. I will look into the excess calls to get the recording list.

  • Like 1
Link to comment
Share on other sites

pünktchen

Ok, thanks for the info. I will look into the excess calls to get the recording list.

 

I've already reported about spamming the tv backend with many unnecessary requests one year ago: https://emby.media/community/index.php?/topic/32135-guide-not-loading/page-4&do=findComment&comment=312379

But you've never fixed it comletely. I'm caching now your timer requests in the MediaPortal plugin, otherwise it would be unusable.

  • Like 2
Link to comment
Share on other sites

  • 4 weeks later...
markyp

When I try and access LiveTV the screen just stays blank, with the rotating progress indicator... The app doesn't then respond to any input either!

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