Not getting guide updates, unable to login to SD through GUI Configuration

An evolving, supported alternative to Rovi
Forum rules
★ Download the latest EPG123 here: https://garyan2.github.io/ <> Setup guide here: https://garyan2.github.io/install.html
dougn

Posts: 18
Joined: Thu Dec 11, 2014 2:56 pm
Location:

HTPC Specs: Show details

Not getting guide updates, unable to login to SD through GUI Configuration

#1

Post by dougn » Tue Oct 04, 2022 2:16 am

I noticed the red EPG icon a couple of days ago. Log shows that the system was unable to create the MXF file. Saw prior posts indicating that this is a problem with the file downloaded from Schedules Direct.

When I try to login to SD through the EPG123 GUI Configuration the app says it was unable to retrieve a token from SD.

Saw this post on SD:

October 1st 2022

SD-JSON images now require tokens
Effective 2022-10-01, the Schedules Direct service will be requiring that the user token be presented for most interaction with our servers. If you are running NextPVR v6 or EPG123 v1.7.1.8 or higher then this will re-enable image downloads.

If you are a developer, please check the updated API documentation. You may also contact grabber@schedulesdirect.org if you would like to have your requests steered to a “debug” server while you are testing the addition of the token to your code

I have the latest EPG installed (1.7.1.12).

Assistance would be appreciated.

Space

Posts: 2839
Joined: Sun Jun 02, 2013 9:44 pm
Location:

HTPC Specs: Show details

#2

Post by Space » Tue Oct 04, 2022 2:41 am

You should post your trace.log file to get help.

That change at SD, in and of itself, should not prevent the MXF file from being created, it is related to image downloads which the EPG123 server/client does not do when it does the daily guide download.

dougn

Posts: 18
Joined: Thu Dec 11, 2014 2:56 pm
Location:

HTPC Specs: Show details

#3

Post by dougn » Tue Oct 04, 2022 6:25 am

Here is a log when I manually attempted to update (10:01pm) followed by entries for an automatic update that kicked off at 1am.


[10/3/2022 10:01:11 PM] ===============================================================================
[10/3/2022 10:01:11 PM] Activating the epg123 configuration GUI. version 1.7.1.12
[10/3/2022 10:01:11 PM] ===============================================================================
[10/3/2022 10:01:11 PM] *** Windows 7 Professional, 64-bit [Version: 6.1.7601.23934] ***
[10/3/2022 10:01:11 PM] *** Windows Media Center [Version: 6.1.7600.16385] is installed. ***
[10/3/2022 10:01:12 PM] [ INFO] GetClientVersion() Unknown exception thrown. Message: Could not load file or assembly 'Newtonsoft.Json, Version=13.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
[10/3/2022 10:01:12 PM] [ INFO] HTTP POST request exception thrown. Messages: Could not load file or assembly 'Newtonsoft.Json, Version=13.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
[10/3/2022 10:01:12 PM] [ERROR] Did not receive a response from Schedules Direct for a token request.
[10/3/2022 10:01:20 PM] [ INFO] HTTP POST request exception thrown. Messages: Could not load file or assembly 'Newtonsoft.Json, Version=13.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
[10/3/2022 10:01:20 PM] [ERROR] Did not receive a response from Schedules Direct for a token request.
[10/3/2022 10:20:52 PM] [ERROR] Unhandled thread exception caught from epg123.exe. message: The operation was canceled by the user
[10/3/2022 10:21:05 PM] [ INFO] HTTP POST request exception thrown. Messages: Could not load file or assembly 'Newtonsoft.Json, Version=13.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
[10/3/2022 10:21:05 PM] [ERROR] Did not receive a response from Schedules Direct for a token request.
[10/3/2022 10:24:22 PM] [ INFO] HTTP POST request exception thrown. Messages: Could not load file or assembly 'Newtonsoft.Json, Version=13.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
[10/3/2022 10:24:22 PM] [ERROR] Did not receive a response from Schedules Direct for a token request.
[10/4/2022 1:00:00 AM] [ INFO] Killing process epg123[9208] to continue execution of new instance.
[10/4/2022 1:00:00 AM] ===============================================================================
[10/4/2022 1:00:00 AM] Beginning epg123 update execution. version 1.7.1.12
[10/4/2022 1:00:00 AM] ===============================================================================
[10/4/2022 1:00:00 AM] *** Windows 7 Professional, 64-bit [Version: 6.1.7601.23934] ***
[10/4/2022 1:00:00 AM] *** Windows Media Center [Version: 6.1.7600.16385] is installed. ***
[10/4/2022 1:00:00 AM] [ INFO] Beginning EPG123 update execution. 2022-10-04 05:00:00Z
[10/4/2022 1:00:00 AM] [ INFO] DaysToDownload: 14 , TheTVDBNumbers : False , PrefixEpisodeTitle: True , PrefixEpisodeDescription : False , AppendEpisodeDesc: False , OADOverride : False , SeasonEventImages : True , TMDbCoverArt: False , IncludeSDLogos : True , AutoAddNew: True , CreateXmltv: True , ModernMediaUiPlusSupport: False
[10/4/2022 1:00:00 AM] [ INFO] HTTP POST request exception thrown. Messages: Could not load file or assembly 'Newtonsoft.Json, Version=13.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
[10/4/2022 1:00:00 AM] [ERROR] Did not receive a response from Schedules Direct for a token request.
[10/4/2022 1:00:00 AM] [ERROR] Failed to create MXF file. Exiting.
[10/4/2022 1:00:00 AM] [ INFO] epg123 update execution time was 00:00:00.0300000.
[10/4/2022 1:00:00 AM] ===============================================================================
[10/4/2022 1:00:00 AM] Beginning epg123 client execution. version 1.7.1.12
[10/4/2022 1:00:00 AM] ===============================================================================
[10/4/2022 1:00:00 AM] *** Windows 7 Professional, 64-bit [Version: 6.1.7601.23934] ***
[10/4/2022 1:00:00 AM] *** Windows Media Center [Version: 6.1.7600.16385] is installed. ***
[10/4/2022 1:00:00 AM] [ INFO] Import: True , Match: False , NoLogo: False , Force: False , ShowProgress: False , NoGC: False , NoVerify: False , Verbose: False
[10/4/2022 1:00:01 AM] Entering PerformGarbageCleanup().
[10/4/2022 1:12:32 AM] [ INFO] Successfully completed garbage cleanup. Exit code: 0
[10/4/2022 1:12:32 AM] Exiting PerformGarbageCleanup(). SUCCESS.
[10/4/2022 1:12:33 AM] Entering ImportMxfFile() for file "c:\epg123\output\epg123.mxf".
[10/4/2022 1:13:41 AM] [ INFO] Successfully imported .mxf file into Media Center database. Exit code: 0
[10/4/2022 1:13:41 AM] Exiting ImportMxfFile(). SUCCESS.
[10/4/2022 1:13:41 AM] Entering VerifyLoad()
[10/4/2022 1:13:49 AM] [ INFO] Checked 62982 entries and corrected 0 of them.
[10/4/2022 1:13:49 AM] Exiting VerifyLoad()
[10/4/2022 1:13:49 AM] [ INFO] Completed lineup refresh.
[10/4/2022 1:13:49 AM] Entering RunWmcIndexTask(PvrScheduleTask)
[10/4/2022 1:13:49 AM] [ INFO] SUCCESS: Attempted to run the scheduled task "Microsoft\Windows\Media Center\PvrScheduleTask".
[10/4/2022 1:13:49 AM] [ INFO] Successfully started the PvrScheduleTask task. Exit code: 0
[10/4/2022 1:13:49 AM] Exiting RunWmcIndexTask(PvrScheduleTask). SUCCESS.
[10/4/2022 1:13:49 AM] Entering RunWmcIndexTask(ReindexSearchRoot)
[10/4/2022 1:13:49 AM] [ INFO] SUCCESS: Attempted to run the scheduled task "Microsoft\Windows\Media Center\ReindexSearchRoot".
[10/4/2022 1:13:49 AM] [ INFO] Successfully started the ReindexSearchRoot task. Exit code: 0
[10/4/2022 1:13:49 AM] Exiting RunWmcIndexTask(ReindexSearchRoot). SUCCESS.
[10/4/2022 1:13:49 AM] [ INFO] MXF file was created on 10/2/2022 5:21:08 PM
[10/4/2022 1:13:49 AM] [ERROR] The MXF file imported is 31.88 hours old.
[10/4/2022 1:13:50 AM] [ INFO] Completed EPG123 client execution.
[10/4/2022 1:13:50 AM] [ INFO] EPG123 client execution time was 00:13:49.6912944.

User avatar
garyan2

Posts: 7474
Joined: Fri Nov 27, 2015 7:23 pm
Location:

HTPC Specs: Show details

#4

Post by garyan2 » Tue Oct 04, 2022 6:36 am

I guess 2 things possible. Either your version of Newtonsoft.Json.dll is the wrong version, or your .NET Framework is not at least 4.6.2.

Did you use the setup file (which would have installed .NET 4.6.2 if you had something older) or the portable version which does not check the framework version?
- Gary
Keeping WMC alive beyond January 2020. https://garyan2.github.io

User avatar
captfm

Posts: 4
Joined: Thu Mar 17, 2016 7:30 am
Location: One Particular Harbor in VA.

HTPC Specs: Show details

#5

Post by captfm » Tue Oct 04, 2022 9:42 am

Last successful update for me was 9/28/22, 1:20 am(edt).


[9/28/2022 1:11:11 AM] Beginning epg123 update execution.
[9/28/2022 1:11:11 AM] ===============================================================================
[9/28/2022 1:11:11 AM] [ INFO] Beginning EPG123 update execution. 2022-09-28 05:11:11Z
[9/28/2022 1:11:11 AM] [ INFO] DaysToDownload: 21 , TheTVDBNumbers : False , PrefixEpisodeTitle: True , PrefixEpisodeDescription : False , AppendEpisodeDesc: False , OADOverride : True , TMDbCoverArt: True , IncludeSDLogos : False , AutoAddNew: True , CreateXmltv: True
[9/28/2022 1:11:12 AM] [ INFO] Token request successful. serverID: 20141201.web
[9/28/2022 1:11:12 AM] [ INFO] Status request successful. account expires: 2023-09-14T10:53:23Z , lineups: 1/4 , lastDataUpdate: 2022-09-26T18:16:08Z
[9/28/2022 1:11:12 AM] [ INFO] system status: Online , message: No known issues.
[9/28/2022 1:11:12 AM] [ INFO] epg123 version: 1.2.0
[9/28/2022 1:11:12 AM] [WARNG] epg123 is not up to date. Latest version is 1.7.0 and can be downloaded from http://epg123.garyan2.net.
[9/28/2022 1:11:12 AM] [ INFO] Successfully retrieved TMDb configurations.
[9/28/2022 1:11:12 AM] [ INFO] Successfully requested listing of client lineups from Schedules Direct.
[9/28/2022 1:11:12 AM] Entering buildLineupServices() for 1 lineups.
[9/28/2022 1:11:12 AM] [ INFO] Successfully retrieved the station mapping for lineup USA-VA66164-X.
[9/28/2022 1:11:12 AM] Exiting buildLineupServices(). SUCCESS.
[9/28/2022 1:11:12 AM] Entering getAllScheduleEntryMd5s() for 21 days on 430 stations.
[9/28/2022 1:11:16 AM] [ INFO] Successfully retrieved Md5s for 238 station's daily schedules.
[9/28/2022 1:11:25 AM] [ INFO] Successfully retrieved Md5s for 192 station's daily schedules.
[9/28/2022 1:11:25 AM] [ INFO] Found 6880 cached daily schedules.
[9/28/2022 1:11:25 AM] [ INFO] Downloaded 0 daily schedules.
[9/28/2022 1:13:32 AM] [ INFO] Processed 6880 daily schedules for 430 stations.
[9/28/2022 1:13:32 AM] Exiting getAllScheduleEntryMd5s(). SUCCESS.
[9/28/2022 1:13:32 AM] Entering buildAllProgramEntries() for 42811 programs.
[9/28/2022 1:19:27 AM] [ INFO] Found 42811 cached program descriptions.
[9/28/2022 1:19:27 AM] [ INFO] Processed 42811 program descriptions.
[9/28/2022 1:19:27 AM] Exiting buildAllProgramEntries(). SUCCESS.
[9/28/2022 1:19:27 AM] Entering buildAllGenericSeriesInfoDescriptions() for 6167 series.
[9/28/2022 1:19:54 AM] [ INFO] Found 6167 cached series descriptions.
[9/28/2022 1:19:54 AM] [ INFO] Processed 6167 series descriptions.
[9/28/2022 1:19:54 AM] Exiting buildAllGenericSeriesInfoDescriptions(). SUCCESS.
[9/28/2022 1:19:54 AM] Entering getAllMoviePosters() for 4174 movies.
[9/28/2022 1:19:54 AM] [ INFO] Found 4174 cached movie poster links.
[9/28/2022 1:19:54 AM] [ INFO] Processed 4174 movie poster links.
[9/28/2022 1:19:54 AM] Exiting getAllMoviePosters(). SUCCESS.
[9/28/2022 1:19:54 AM] Entering getAllSeriesImages() for 6167 series.
[9/28/2022 1:19:54 AM] [ INFO] Found 1772 cached series image links.
[9/28/2022 1:19:54 AM] [ INFO] Successfully retrieved artwork info for 500 programs.
[9/28/2022 1:19:55 AM] [ INFO] Successfully retrieved artwork info for 500 programs.
[9/28/2022 1:19:55 AM] [ INFO] Successfully retrieved artwork info for 500 programs.
[9/28/2022 1:19:55 AM] [ INFO] Successfully retrieved artwork info for 500 programs.
[9/28/2022 1:19:55 AM] [ INFO] Successfully retrieved artwork info for 500 programs.
[9/28/2022 1:19:55 AM] [ INFO] Successfully retrieved artwork info for 500 programs.
[9/28/2022 1:19:55 AM] [ INFO] Successfully retrieved artwork info for 500 programs.
[9/28/2022 1:19:55 AM] [ INFO] Successfully retrieved artwork info for 500 programs.
[9/28/2022 1:19:55 AM] [ INFO] Successfully retrieved artwork info for 395 programs.
[9/28/2022 1:19:55 AM] [ INFO] Processed 6167 series image links.
[9/28/2022 1:19:55 AM] Exiting getAllSeriesImages(). SUCCESS.
[9/28/2022 1:19:55 AM] [ INFO] Completed compiling keywords and keyword groups.
[9/28/2022 1:19:55 AM] Entering writeMxf().
[9/28/2022 1:20:00 AM] [ INFO] Completed save of mxf file.
[9/28/2022 1:20:00 AM] Exiting writeMxf(). SUCCESS.
[9/28/2022 1:20:00 AM] Entering CreateXmltvFile()
[9/28/2022 1:20:04 AM] [ INFO] Successfully created XMLTV file.
[9/28/2022 1:20:04 AM] Exiting CreateXmltvFile()
[9/28/2022 1:20:04 AM] Entering writeXmltv().
[9/28/2022 1:20:09 AM] [ INFO] Completed save of xmltv file.
[9/28/2022 1:20:09 AM] Exiting writeXmltv(). SUCCESS.
[9/28/2022 1:20:09 AM] Entering writeImageArchive().
[9/28/2022 1:20:09 AM] [ INFO] Completed save of image archive file.
[9/28/2022 1:20:09 AM] Exiting writeImageArchive(). SUCCESS.
[9/28/2022 1:20:54 AM] [ INFO] 3022 files deleted from the cache directory during cleanup.
[9/28/2022 1:20:54 AM] [ INFO] Generated .mxf file contains 430 services, 6167 series, 42811 programs, and 69544 people with 5728 image links.
[9/28/2022 1:20:54 AM] [ INFO] Completed EPG123 update execution. SUCCESS.
[9/28/2022 1:20:54 AM] [ INFO] epg123 update execution time was 00:09:43.0922172.
[9/28/2022 1:20:54 AM] ===============================================================================


My next update yielded this response:


[9/30/2022 5:40:20 PM] Beginning epg123 update execution.
[9/30/2022 5:40:20 PM] ===============================================================================
[9/30/2022 5:40:21 PM] [ INFO] Beginning EPG123 update execution. 2022-09-30 21:40:21Z
[9/30/2022 5:40:21 PM] [ INFO] DaysToDownload: 21 , TheTVDBNumbers : False , PrefixEpisodeTitle: True , PrefixEpisodeDescription : False , AppendEpisodeDesc: False , OADOverride : True , TMDbCoverArt: True , IncludeSDLogos : False , AutoAddNew: True , CreateXmltv: True
[9/30/2022 5:40:21 PM] [ INFO] Token request successful. serverID: 20141201.web
[9/30/2022 5:40:30 PM] [ INFO] Status request successful. account expires: 2023-09-14T10:53:23Z , lineups: 1/4 , lastDataUpdate: 2022-09-30T05:22:03Z
[9/30/2022 5:40:30 PM] [ INFO] system status: Online , message: No known issues.
[9/30/2022 5:40:30 PM] [ INFO] epg123 version: 1.2.0
[9/30/2022 5:40:30 PM] [WARNG] epg123 is not up to date. Latest version is 1.7.0 and can be downloaded from http://epg123.garyan2.net.
[9/30/2022 5:40:30 PM] [ INFO] Successfully retrieved TMDb configurations.
[9/30/2022 5:40:31 PM] [ INFO] Successfully requested listing of client lineups from Schedules Direct.
[9/30/2022 5:40:31 PM] Entering buildLineupServices() for 1 lineups.
[9/30/2022 5:40:31 PM] [ INFO] Successfully retrieved the station mapping for lineup USA-VA66164-X.
[9/30/2022 5:40:31 PM] Exiting buildLineupServices(). SUCCESS.
[9/30/2022 5:40:31 PM] Entering getAllScheduleEntryMd5s() for 21 days on 430 stations.
[9/30/2022 5:40:37 PM] [ INFO] Successfully retrieved Md5s for 238 station's daily schedules.
[9/30/2022 5:40:47 PM] [ INFO] Successfully retrieved 238 station's daily schedules.
[9/30/2022 5:40:57 PM] [ INFO] Successfully retrieved Md5s for 192 station's daily schedules.
[9/30/2022 5:41:10 PM] [ INFO] Successfully retrieved 192 station's daily schedules.
[9/30/2022 5:41:23 PM] [ INFO] Found 2739 cached daily schedules.
[9/30/2022 5:41:23 PM] [ INFO] Downloaded 4703 daily schedules.
[9/30/2022 5:43:07 PM] [ INFO] Processed 7442 daily schedules for 430 stations.
[9/30/2022 5:43:07 PM] Exiting getAllScheduleEntryMd5s(). SUCCESS.
[9/30/2022 5:43:07 PM] Entering buildAllProgramEntries() for 46728 programs.
[9/30/2022 5:49:06 PM] [ INFO] Found 36667 cached program descriptions.
[9/30/2022 5:49:23 PM] [ INFO] Successfully retrieved 5000 program descriptions.
[9/30/2022 5:49:48 PM] [ INFO] Successfully retrieved 5000 program descriptions.
[9/30/2022 5:49:58 PM] [ INFO] Successfully retrieved 61 program descriptions.
[9/30/2022 5:49:58 PM] [ INFO] Processed 46728 program descriptions.
[9/30/2022 5:49:58 PM] Exiting buildAllProgramEntries(). SUCCESS.
[9/30/2022 5:49:58 PM] Entering buildAllGenericSeriesInfoDescriptions() for 6384 series.
[9/30/2022 5:50:36 PM] [ INFO] Found 5772 cached series descriptions.
[9/30/2022 5:50:38 PM] [ INFO] Successfully retrieved 500 generic program descriptions.
[9/30/2022 5:50:39 PM] [ INFO] Successfully retrieved 112 generic program descriptions.
[9/30/2022 5:50:39 PM] [ INFO] Processed 6384 series descriptions.
[9/30/2022 5:50:39 PM] Exiting buildAllGenericSeriesInfoDescriptions(). SUCCESS.
[9/30/2022 5:50:39 PM] Entering getAllMoviePosters() for 4258 movies.
[9/30/2022 5:50:39 PM] [ INFO] Found 3864 cached movie poster links.
[9/30/2022 5:50:39 PM] [ERROR] SD API WebException Thrown. Message: The remote server returned an error: (404) Not Found. , Status: ProtocolError
[9/30/2022 5:50:39 PM] [ERROR] SD responded with error code: 1004 , message: Token required but not provided in header or request URI. , serverID: 20141201.web , datetime: 2022-09-30T21:50:39Z
[9/30/2022 5:50:39 PM] [ERROR] Did not receive a response from Schedules Direct for artwork info of 394 programs.
[9/30/2022 5:50:39 PM] [ERROR] Problem occurred during getMoviePosters(). Exiting.
[9/30/2022 5:50:39 PM] [ERROR] Failed to create MXF file. Exiting.
[9/30/2022 5:50:39 PM] [ INFO] epg123 update execution time was 00:10:18.8192797.
[9/30/2022 5:50:40 PM] ===============================================================================


As of 10/4/22, 1:16 am (edt) the response from the SD server is the same:


[10/4/2022 1:13:56 AM] [ERROR] SD API WebException Thrown. Message: The remote server returned an error: (404) Not Found. , Status: ProtocolError
[10/4/2022 1:13:56 AM] [ERROR] SD responded with error code: 1004 , message: Token required but not provided in header or request URI. , serverID: 20141201.web , datetime: 2022-10-04T05:13:57Z
[10/4/2022 1:13:56 AM] [ERROR] Did not receive a response from Schedules Direct for artwork info of 500 programs.
[10/4/2022 1:13:56 AM] [ERROR] Problem occurred during getMoviePosters(). Exiting.
[10/4/2022 1:13:56 AM] [ERROR] Failed to create MXF file. Exiting.
[10/4/2022 1:13:56 AM] [ INFO] epg123 update execution time was 00:08:53.7014826.


I have been using this version (1.2.0) for over six years with great success without having to mandatorily update even while still using windows 7. (Amazing. Thank you Gary) If I will now have to update to keep using EPG123, could someone instruct as to what needs to be done to avoid having to start from scratch?

Thanks
captfm

dougn

Posts: 18
Joined: Thu Dec 11, 2014 2:56 pm
Location:

HTPC Specs: Show details

#6

Post by dougn » Tue Oct 04, 2022 1:54 pm

garyan2 wrote: Tue Oct 04, 2022 6:36 am I guess 2 things possible. Either your version of Newtonsoft.Json.dll is the wrong version, or your .NET Framework is not at least 4.6.2.

Did you use the setup file (which would have installed .NET 4.6.2 if you had something older) or the portable version which does not check the framework version?
I used the portable version: I unzipped the latest download file and copy/pasted to replace the older version. I will install the latest .NET and will give it another go. Thanks for the speedy reply.

User avatar
garyan2

Posts: 7474
Joined: Fri Nov 27, 2015 7:23 pm
Location:

HTPC Specs: Show details

#7

Post by garyan2 » Tue Oct 04, 2022 2:01 pm

Download the installation package from https://garyan2.github.io.
Run the setup file and be sure to point to your current epg123 location to overwrite the existing files.

(Recommended) Rename the 'epg123\cache' folder to 'cache_old' to delete later. This will avoid a very long wait time for the new epg123 version to delete each individual file during the first update.

Open the EPG123 configuration GUI... it should log in automatically. If not, you installed it in the wrong place.
Go to the 'Scheduled Task' tab, delete your existing task and create a new one.
Click [Save & Execute] to run an update.

That should be it.

There have been a lot of improvements since 1.2.0 and I think you will find that the updates are much, much faster using a single cache file rather than thousands of individual files.
- Gary
Keeping WMC alive beyond January 2020. https://garyan2.github.io

grittree

Posts: 65
Joined: Tue Mar 18, 2014 3:09 pm
Location:

HTPC Specs: Show details

#8

Post by grittree » Tue Oct 04, 2022 4:21 pm

Two machines have listings only to 10/13.
Both failing, but with different errors.
Any ideas of what is wrong?


machine A EPG123 version 1.7.1.12
[10/4/2022 12:00:02 AM] [ERROR] SD API WebException Thrown. Message: The remote server returned an error: (403) Forbidden. , Status: ProtocolError
[10/4/2022 12:00:02 AM] [ERROR] SD responded with error code: 4003 , message: Invalid username or token has expired. , serverID: 20141201.web , datetime: 2022-10-04T05:00:02Z
[10/4/2022 12:00:02 AM] [ERROR] Did not receive a response from Schedules Direct for a client lineup listings.
[10/4/2022 12:00:02 AM] [ERROR] Failed to create MXF file. Exiting.


machine B EPG123 version 1.0.2
[10/4/2022 12:00:20 AM] [ERROR] SD API WebException Thrown. Message: The remote server returned an error: (404) Not Found. , Status: ProtocolError
[10/4/2022 12:00:20 AM] [ERROR] SD responded with error code: 1004 , message: Token required but not provided in header or request URI. , serverID: 20141201.web , datetime: 2022-10-04T05:00:20Z
[10/4/2022 12:00:20 AM] [ERROR] Did not receive a response from Schedules Direct for artwork info of 18 programs.
[10/4/2022 12:00:20 AM] Problem occurred during getMoviePosters(). Exiting.
[10/4/2022 12:00:21 AM] [ERROR] Failed to create MXF file. Exiting.

Space

Posts: 2839
Joined: Sun Jun 02, 2013 9:44 pm
Location:

HTPC Specs: Show details

#9

Post by Space » Tue Oct 04, 2022 4:52 pm

One thing I would change is the time you have it scheduled to run, midnight it probably a very busy times for the servers. I would try a time later in the night and not on the hour (minutes should not be 00), something like 4:18am or 5:48am, etc.

As for the errors, Gary would have to respond, as I am not familiar with these errors, but to me it looks like a server problem (could be related to it being too busy due to the time you are trying to update).

EDIT: Another reason for these errors could be if you have more than one client (EPG123 or otherwise) using the Schedules Direct (SD) server at the same time, if they are both set to update at midnight, they would conflict with each other (you can only have one client connecting to SD at a time).

EDIT2: Oops, looks like Gary snuck in there and responded while I was doing the above edit, yeah, I completely missed that you were talking about two separate systems, so having them run at the same time is the problem.
Last edited by Space on Tue Oct 04, 2022 5:01 pm, edited 2 times in total.

User avatar
garyan2

Posts: 7474
Joined: Fri Nov 27, 2015 7:23 pm
Location:

HTPC Specs: Show details

#10

Post by garyan2 » Tue Oct 04, 2022 4:54 pm

For machine B, you will need to upgrade EPG123 to the latest version.

For machine A, the error is due to you running machine B at the same time. You can only have 1 active token at a time, so what happened was machine A got a token and then machine B got a token which invalidated machine A's token. It was therefor forbidden access to SD since its token was no longer valid.

So you can perform a manual guide update using the [Save & Execute] on machine A and it should complete.
Update machine B to the latest EPG123 and use the [Save & Execute] to update its guide.

I would strongly recommend you change one of the machines to be client only; otherwise you will run into a problem downloading images due to the limit of a single token. Each time one of the machines tries to download an image, and if the other machine has invalidated its token, it will have to request a new one.
- Gary
Keeping WMC alive beyond January 2020. https://garyan2.github.io

grittree

Posts: 65
Joined: Tue Mar 18, 2014 3:09 pm
Location:

HTPC Specs: Show details

#11

Post by grittree » Tue Oct 04, 2022 5:13 pm

I've been running this config for many years with no problems. The second machine was a clone of the first, with just a name change.

Occasionally I run one episode of epg123.exe by itself, which I guess means no token problem. And it fails too.

I don't know how to set up one machine as client only.

dougn

Posts: 18
Joined: Thu Dec 11, 2014 2:56 pm
Location:

HTPC Specs: Show details

#12

Post by dougn » Tue Oct 04, 2022 6:11 pm

garyan2 wrote: Tue Oct 04, 2022 2:01 pm Download the installation package from https://garyan2.github.io.
Run the setup file and be sure to point to your current epg123 location to overwrite the existing files.

(Recommended) Rename the 'epg123\cache' folder to 'cache_old' to delete later. This will avoid a very long wait time for the new epg123 version to delete each individual file during the first update.

Open the EPG123 configuration GUI... it should log in automatically. If not, you installed it in the wrong place.
Go to the 'Scheduled Task' tab, delete your existing task and create a new one.
Click [Save & Execute] to run an update.

That should be it.

There have been a lot of improvements since 1.2.0 and I think you will find that the updates are much, much faster using a single cache file rather than thousands of individual files.
Followed your suggestions and it worked like a champ. Sent a few shekels your way to support your work. Thank you.

Space

Posts: 2839
Joined: Sun Jun 02, 2013 9:44 pm
Location:

HTPC Specs: Show details

#13

Post by Space » Wed Oct 05, 2022 1:48 am

grittree wrote: Tue Oct 04, 2022 5:13 pm I've been running this config for many years with no problems. The second machine was a clone of the first, with just a name change.

Occasionally I run one episode of epg123.exe by itself, which I guess means no token problem. And it fails too.

I don't know how to set up one machine as client only.
I could probably stumble my way through explaining how to change one of your WMC machines from "Full mode" to "Client mode" but it's probably best to wait for Gary, as I've never done it before.

I'm guessing the first step is to upgrade EPG123 on both systems to the latest version. I'm not sure if you can convert one of the systems from "Full mode" to "Client mode" as part of the install of the new version, or if that is better to do before you upgrade or after you upgrade...

User avatar
garyan2

Posts: 7474
Joined: Fri Nov 27, 2015 7:23 pm
Location:

HTPC Specs: Show details

#14

Post by garyan2 » Wed Oct 05, 2022 2:56 am

Thinking about it, it is fine to have both setup as 'Full Mode'. It is just inefficient and you risk not being able to download images for a time.

Having 2 machines running in full mode, you will download the same data from SD twice. When downloading data and images, the 2 machines will fight for a token but my proxy/cache service will do a good job refreshing the tokens on each machine... the problem is if you are scrolling through the guides on both machines at the same time downloading images. Each machine would have to continuously request new tokens. I don't know if SD will lock an account if it requests too many tokens within any time period. There is also the issue of being limited to 5000 image downloads in a 24 hour period; just something to be aware of. Caching images on both machines will help limit your risk.

If you setup a machine in client mode, the server/full mode machine will have to always be on, so that should be a factor in your decision. It is any easy one for me since I have a server running 24/7.
- Gary
Keeping WMC alive beyond January 2020. https://garyan2.github.io

Space

Posts: 2839
Joined: Sun Jun 02, 2013 9:44 pm
Location:

HTPC Specs: Show details

#15

Post by Space » Wed Oct 05, 2022 10:53 am

At the very least, if you are going to keep both machines in full mode, you should change the times they update to be different from one another and also not a time that ends with 00 (so it is not on the hour).

To change this you will have to use EPG123 to delete the task, then change the time, then create the task again.

https://garyan2.github.io/task.html?ser ... ent=epg123

sgbroimp

Posts: 185
Joined: Mon Nov 21, 2016 5:49 pm
Location: New England

HTPC Specs: Show details

#16

Post by sgbroimp » Wed Oct 05, 2022 3:09 pm

Same issue for me. Red for about 6 days now. Did not change anything. Will try changing update time to not end in :00. Seem like a lot of stuff in flux now, with no one really sure what is happening at SD etc. so I am reluctant to simply install an update. Have seen may days of red in the past that somehow got sorted without my doing anything..............

User avatar
garyan2

Posts: 7474
Joined: Fri Nov 27, 2015 7:23 pm
Location:

HTPC Specs: Show details

#17

Post by garyan2 » Wed Oct 05, 2022 5:24 pm

Nothing is in flux. You're going to be staring at that red icon until you update to a version of 1.7.1.8 or higher.

Sent from my SM-G781U1 using Tapatalk

- Gary
Keeping WMC alive beyond January 2020. https://garyan2.github.io

grittree

Posts: 65
Joined: Tue Mar 18, 2014 3:09 pm
Location:

HTPC Specs: Show details

#18

Post by grittree » Wed Oct 05, 2022 11:26 pm

So I upgraded machine B to the latest epg123. It works! Happy I have one with up to date guide.

Machine A still doesn't work. It creates the MXF file, but doesn't process it into WMC. Now guide ends 10/9.

The only thing different I can think of is I updated A to ndp48 before epg123Setup_v1.7.1.12.

I now rolled A back to 9/26 and created a clone of that. Haven't quite decided what to do next, but some version of V1.7. I still don't understand about client and server, but I see doing the update is where you choose.

I appreciate the help given so far.

Space

Posts: 2839
Joined: Sun Jun 02, 2013 9:44 pm
Location:

HTPC Specs: Show details

#19

Post by Space » Wed Oct 05, 2022 11:56 pm

Post your trace.log from machine A.

grittree

Posts: 65
Joined: Tue Mar 18, 2014 3:09 pm
Location:

HTPC Specs: Show details

#20

Post by grittree » Thu Oct 06, 2022 12:38 am

Trace log not much help since A is still on old EPG123.

=====================
[10/5/2022 5:46:09 PM] Beginning epg123 update execution.
[10/5/2022 5:46:09 PM] ===============================================================================
[10/5/2022 5:46:09 PM] [ INFO] epg123 version 1.0.2 , DaysToDownload: 17 , PrefixEpisodeTitle: True , AppendEpisodeDesc: False , AutoImport: True , TMDbCoverArt: False , LogoOverride: False , Automatch: False , AutoAddNew: False
[10/5/2022 5:46:10 PM] [ INFO] Token request successful. serverID: 20141201.web
[10/5/2022 5:46:10 PM] [ INFO] epg123 is not up to date. Latest version is 1.7.0 and can be downloaded from http://epg123.garyan2.net.
[10/5/2022 5:46:10 PM] [ INFO] Successfully requested listing of client lineups from Schedules Direct.
[10/5/2022 5:46:10 PM] [ INFO] Successfully retrieved the station mapping for lineup USA-DITV635-DEFAULT.
[10/5/2022 5:46:11 PM] [ INFO] Successfully retrieved the station mapping for lineup USA-OTA-78749.
[10/5/2022 5:46:11 PM] [ INFO] Lineup USA-OTA-78749 has been excluded from download and processing.
[10/5/2022 5:46:11 PM] Entering getAllScheduleEntryMd5s() for 17 days on 12 stations.
[10/5/2022 5:46:11 PM] [ INFO] Successfully retrieved Md5s for 12 station's daily schedules.
[10/5/2022 5:46:11 PM] Exiting getAllScheduleEntryMd5s(). SUCCESS.
[10/5/2022 5:46:11 PM] Entering buildAllProgramEntries() for 2029 programs.
[10/5/2022 5:46:12 PM] Exiting buildAllProgramEntries(). SUCCESS.
[10/5/2022 5:46:12 PM] Entering buildAllGenericSeriesInfoDescriptions() for 385 series.
[10/5/2022 5:46:12 PM] Exiting buildAllGenericSeriesInfoDescriptions(). SUCCESS.
[10/5/2022 5:46:12 PM] Entering getAllMoviePosters() for 112 movies.
[10/5/2022 5:46:12 PM] [ERROR] SD API WebException Thrown. Message: The remote server returned an error: (404) Not Found. , Status: ProtocolError
[10/5/2022 5:46:12 PM] [ERROR] SD responded with error code: 1004 , message: Token required but not provided in header or request URI. , serverID: 20141201.web , datetime: 2022-10-05T22:46:12Z
[10/5/2022 5:46:12 PM] [ERROR] Did not receive a response from Schedules Direct for artwork info of 70 programs.
[10/5/2022 5:46:12 PM] Problem occurred during getMoviePosters(). Exiting.
[10/5/2022 5:46:12 PM] [ERROR] Failed to create MXF file. Exiting.
[10/5/2022 5:46:12 PM] [STATS] epg123 update execution time was 00:00:02.7000037.

Post Reply