venom986 2 Posted October 10, 2015 Share Posted October 10, 2015 I am running server version 3.0.5724.5 on FreeNAS and am using the built-in LiveTV support in Emby. For the past week or so I have not been able to pull guide information from SchedulesDirect. I have been in touch with rkulagow and he has informed me he isn't even seeing connection attempts from my user on their servers. I have tried removing the SchedulesDirect Guide Provider and re-adding it in the LiveTV setup. However, when I do so I immediately get an error message indicating that "There was an error downloading your tv lineups". I get this error before entering a username and password for SchedulesDirect (and after). I've turned on debugging in the Emby logs and am seeing a bit more information now. When I get the error message above I get the following in my log files: 2015-10-10 08:50:13.9725 Debug - HttpServer: HTTP GET http://192.168.24.9:8096/System/Configuration/livetv Ip: 192.168.24.106:61999. Headers: Host=192.168.24.9:8096,Connection=keep-alive,Accept=application/json, text/javascript, */*; q=0.01,X-MediaBrowser-Token=5f9652f38b6d48faa8bf422aa7055f3d,User-Agent=Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/45.0.2454.101 Safari/537.36,X-Emby-Authorization=MediaBrowser Client="Emby Web Client", Device="Chrome 45.0.2454.101", DeviceId="d375e0e85e19e6356d397570e3f30bbd252c8149", Version="3.0.5724.5", UserId="8cafeeb15e714b338dbc50d8223c8888",Accept-Encoding=gzip, deflate, sdch,Accept-Language=en-US,en;q=0.8 2015-10-10 08:50:13.9739 Debug - HttpServer: HTTP Response 200 to 192.168.24.106. Response time: 1.377 ms. Url: http://192.168.24.9:8096/System/Configuration/livetv 2015-10-10 08:50:14.0130 Debug - HttpServer: HTTP GET http://192.168.24.9:8096/LiveTv/ListingProviders/SchedulesDirect/Countries Ip: 192.168.24.106:61999. Headers: Host=192.168.24.9:8096,Connection=keep-alive,Accept=application/json, text/javascript, */*; q=0.01,X-MediaBrowser-Token=5f9652f38b6d48faa8bf422aa7055f3d,User-Agent=Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/45.0.2454.101 Safari/537.36,X-Emby-Authorization=MediaBrowser Client="Emby Web Client", Device="Chrome 45.0.2454.101", DeviceId="d375e0e85e19e6356d397570e3f30bbd252c8149", Version="3.0.5724.5", UserId="8cafeeb15e714b338dbc50d8223c8888",Accept-Encoding=gzip, deflate, sdch,Accept-Language=en-US,en;q=0.8 2015-10-10 08:50:14.0144 Debug - HttpServer: HTTP Response 200 to 192.168.24.106. Response time: 1.352 ms. Url: http://192.168.24.9:8096/LiveTv/ListingProviders/SchedulesDirect/Countries If I manually attempt that URL at the very end (http://192.168.24.9:8096/LiveTv/ListingProviders/SchedulesDirect/Countries) I get an error message such as this: {"ResponseStatus":{"ErrorCode":"SecurityException","Message":"Access token is invalid or expired.","StackTrace":" at MediaBrowser.Server.Implementations.HttpServer.Security.AuthService.ValidateSecurityToken (IServiceRequest request, System.String token) [0x00000] in <filename unknown>:0 \n at MediaBrowser.Server.Implementations.HttpServer.Security.AuthService.ValidateUser (IServiceRequest request, IAuthenticationAttributes authAttribtues) [0x00000] in <filename unknown>:0 \n at MediaBrowser.Server.Implementations.HttpServer.Security.AuthService.Authenticate (IServiceRequest request, IAuthenticationAttributes authAttribtues) [0x00000] in <filename unknown>:0 \n at MediaBrowser.Controller.Net.AuthenticatedAttribute.RequestFilter (IRequest request, IResponse response, System.Object requestDto) [0x00000] in <filename unknown>:0 \n at ServiceStack.ServiceStackHost.ApplyRequestFiltersSingle (IRequest req, IResponse res, System.Object requestDto) [0x00000] in <filename unknown>:0 \n at ServiceStack.ServiceStackHost.ApplyRequestFilters (IRequest req, IResponse res, System.Object requestDto) [0x00000] in <filename unknown>:0 \n at ServiceStack.Host.RestHandler.ProcessRequestAsync (IRequest httpReq, IResponse httpRes, System.String operationName) [0x00000] in <filename unknown>:0 "}} emby_log.txt Link to comment Share on other sites More sharing options...
venom986 2 Posted October 10, 2015 Author Share Posted October 10, 2015 FYI, no connection attempts are even getting through to schedulesdirect Sent from my iPhone using Tapatalk Link to comment Share on other sites More sharing options...
mjktg99 34 Posted October 10, 2015 Share Posted October 10, 2015 Just a thought, is the country properly set in the guide settings in emby? Link to comment Share on other sites More sharing options...
Luke 37022 Posted October 10, 2015 Share Posted October 10, 2015 you should enter your username and password for SD, then click the first save button. then go down below and select a listing, and save again Link to comment Share on other sites More sharing options...
venom986 2 Posted October 10, 2015 Author Share Posted October 10, 2015 Luke, I get his error as soon as I put in my credentials as well - whether they are correct or purposeful incorrect. Robert has confirmed no connection attempts are even being made to schedulesdirect. The countries list does not populate, presumably due to the json error message I supplied above. Sent from my iPhone using Tapatalk Link to comment Share on other sites More sharing options...
Luke 37022 Posted October 10, 2015 Share Posted October 10, 2015 Luke, I get his error as soon as I put in my credentials as well - whether they are correct or purposeful incorrect. Robert has confirmed no connection attempts are even being made to schedulesdirect. The countries list does not populate, presumably due to the json error message I supplied above. Sent from my iPhone using Tapatalk Please provide more info using http://emby.media/community/index.php?/topic/739-how-to-report-a-problem/ Link to comment Share on other sites More sharing options...
venom986 2 Posted October 10, 2015 Author Share Posted October 10, 2015 (edited) I thought I followed that in my OP. If there's something specific that I have omitted or if I've been unclear please let me know and I'll try to provide better information. Sent from my iPhone using Tapatalk Edited October 10, 2015 by venom986 Link to comment Share on other sites More sharing options...
Luke 37022 Posted October 10, 2015 Share Posted October 10, 2015 right, ok. your log actually looks fine. there is communication to schedules direct and it is successful. it just appears you haven't selected a listing on the config page. Link to comment Share on other sites More sharing options...
venom986 2 Posted October 10, 2015 Author Share Posted October 10, 2015 That log represents a failed attempt where I get the error message, do not get a list of countries and Robert at schedulesdirect doesn't even see my user attempt to connect Sent from my iPhone using Tapatalk Link to comment Share on other sites More sharing options...
venom986 2 Posted October 10, 2015 Author Share Posted October 10, 2015 The attachment has a fuller version of the log which does show some errors, but I'm not sure if their significance Sent from my iPhone using Tapatalk Link to comment Share on other sites More sharing options...
Luke 37022 Posted October 10, 2015 Share Posted October 10, 2015 countries returned without any problem. so did requests for an auth token from schedules direct. only problem is you haven't chosen a listing. Link to comment Share on other sites More sharing options...
venom986 2 Posted October 10, 2015 Author Share Posted October 10, 2015 The UI doesn't populate the countries list so I can't select a country in order to then select a listing Sent from my iPhone using Tapatalk Link to comment Share on other sites More sharing options...
venom986 2 Posted October 10, 2015 Author Share Posted October 10, 2015 There's not enough detail in the logs to confirm but my guess based on what you've told me is that the guide refresh is trying to run as soon as the listings provider page loads as well as as soon as you enter your credentials for schedulesdirect. I thin the error that is thrown due to the lack of listing is then halting execution before the UI populates the countries selection. If I look at my livetv.xml file I can see the listings provider but the last entity in the ListingsProviders tag is Password. Can I manually add the country somehow? On a side note, a very frustrating aspect of this is that when the guide refresh fails, it does so after wiping the two weeks of guide data I already had - is there any chance of an improvement to have non-destructive failures on the guide refresh? Sent from my iPhone using Tapatalk Link to comment Share on other sites More sharing options...
venom986 2 Posted October 11, 2015 Author Share Posted October 11, 2015 Ok, so I lucked into a resolution to my issue. Had to leave my laptop suddenly earlier today and it went into sleep mode while the LiveTV config page was still open to editing the SchedulesDirect listing settings. Tonight when I woke it, since the page was already open but wasn't being refreshed, I was able to hit save on my credentials without the error popup. That appears to have allowed the country list to populate and then I was able to move forward. Admittedly, this is all conjecture based on observation and it might not really be what the root cause was, but I wanted to share it in case its pertinent. For now, I have backed up the config file in case it gets pissy again Link to comment Share on other sites More sharing options...
venom986 2 Posted October 11, 2015 Author Share Posted October 11, 2015 Unfortunately, the next scheduled task failed - this time with a 400 error from schedulesdirect https://json.schedulesdirect.org/20141201/token. Not sure if that is an error on the SD side or the Emby side. Either way, however, the larger issues is that this once again wiped all the guide data I had just finally grabbed last night Link to comment Share on other sites More sharing options...
Luke 37022 Posted October 11, 2015 Share Posted October 11, 2015 that's an error coming from SD. in the future emby server will do a better job of telling you what that error is so that the appropriate action can be taken. Link to comment Share on other sites More sharing options...
venom986 2 Posted October 11, 2015 Author Share Posted October 11, 2015 Thanks for the quick response Luke, i've got a message out to Robert too as my ticket with them is still open. If the improvement suggestion is welcome, do would you prefer I split out a separate topic about non-destructive guide refresh failures? Having a refresh fail and wipe out 2+ weeks of good guide data and then not be able to get it back again until whatever caused the failure is ... harsh Link to comment Share on other sites More sharing options...
venom986 2 Posted October 12, 2015 Author Share Posted October 12, 2015 I just stumbled across another post in the FreeBSD section, where similar issues with Guide data were discussed. I am wondering if my problems might possibly be specific to the FreeNAS plugin and thus whether my whole thread would be better placed in that sub-forum. I noticed in one of the posts that Real time monitoring option was a known issue for Guide data somehow (http://emby.media/community/index.php?/topic/25059-new-embytv-on-freenas/?p=248633) and I checked and found that my setting is set to Auto. I have switched it to No for now. Link to comment Share on other sites More sharing options...
Luke 37022 Posted October 12, 2015 Share Posted October 12, 2015 I noticed in one of the posts that Real time monitoring option was a known issue for Guide data somehow this is not true. Link to comment Share on other sites More sharing options...
venom986 2 Posted October 12, 2015 Author Share Posted October 12, 2015 Thanks Luke. Sent from my iPhone using Tapatalk Link to comment Share on other sites More sharing options...
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