scheduled update fails most days

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
technodevotee

Posts: 963
Joined: Thu Sep 10, 2015 4:10 pm
Location: West Midlands

HTPC Specs: Show details

scheduled update fails most days

#1

Post by technodevotee » Sun Jan 09, 2022 1:00 pm

I have my PCs set to sleep when idle so I modified the scheduled task to wake them

The tasks run an hour apart.

One of them works fine virtually every time but the other one fails most days.

The PC wakes up at the scheduled time but the update fails and the log says this:

Code: Select all

[09/01/2022 12:11:32] [ INFO] Beginning EPG123 update execution. 2022-01-09 12:11:32Z
[09/01/2022 12:11:32] [ INFO] DaysToDownload: 21 , TheTVDBNumbers : False , PrefixEpisodeTitle: False , PrefixEpisodeDescription : False , AppendEpisodeDesc: True , SeasonEventImages : True , TMDbCoverArt: False , IncludeSDLogos : False , AutoAddNew: False , CreateXmltv: False , ModernMediaUiPlusSupport: False
[09/01/2022 12:11:32] [ INFO] SD API WebException Thrown. Message: The remote name could not be resolved: 'json.schedulesdirect.org' , Status: NameResolutionFailure
[09/01/2022 12:11:32] [ INFO] Failed to complete request. Exiting
[09/01/2022 12:11:32] [ INFO] Validation of cached token failed. Requesting new token.
[09/01/2022 12:11:32] [ INFO] SD API WebException Thrown. Message: The remote name could not be resolved: 'json.schedulesdirect.org' , Status: NameResolutionFailure
[09/01/2022 12:11:32] [ INFO] Failed to complete request. Exiting
[09/01/2022 12:11:32] [ERROR] Did not receive a response from Schedules Direct for a token request.
[09/01/2022 12:11:32] [ERROR] Failed to retrieve token from Schedules Direct. message: Did not receive a response from Schedules Direct for a token request.
[09/01/2022 12:11:32] [ERROR] Failed to create MXF file. Exiting.
[09/01/2022 12:11:32] [ INFO] epg123 update execution time was 00:00:00.2309909.
[09/01/2022 12:11:32] ===============================================================
If I run it manually just after it has failed it usually works.

I've tried different times and switching times between the PCs and doesn't make any noticeable difference.

Any ideas please?

User avatar
garyan2

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

HTPC Specs: Show details

#2

Post by garyan2 » Sun Jan 09, 2022 4:58 pm

Looks like the network isn't up yet on that machine when it starts. Try changing the epg123_update task in Task Scheduler in the Conditions tab to 'Start only if the following network connection is available:'. See if that improves the chances.
- Gary
Keeping WMC alive beyond January 2020. https://garyan2.github.io

technodevotee

Posts: 963
Joined: Thu Sep 10, 2015 4:10 pm
Location: West Midlands

HTPC Specs: Show details

#3

Post by technodevotee » Sun Jan 09, 2022 11:06 pm

I hadn't thought of trying that.

Thanks.

technodevotee

Posts: 963
Joined: Thu Sep 10, 2015 4:10 pm
Location: West Midlands

HTPC Specs: Show details

#4

Post by technodevotee » Mon Jan 10, 2022 12:11 pm

I tried that but the scheduled task doesn't run at all.

I've configured a delay of 1 minute in the task and will see what happens.

technodevotee

Posts: 963
Joined: Thu Sep 10, 2015 4:10 pm
Location: West Midlands

HTPC Specs: Show details

#5

Post by technodevotee » Fri Feb 04, 2022 11:03 pm

I've tried various methods of getting this to work but EPG123 still trips up most days on one PC because the network isn't ready when it tries to download.

I'm actually having the same problem with another PC a few times out of ten now as well.

It seems I'm going to have to make a script that waits for the network to become available before calling EPG123.

vaju0503

Posts: 43
Joined: Thu Feb 02, 2017 10:55 pm
Location:

HTPC Specs: Show details

#6

Post by vaju0503 » Tue Feb 08, 2022 2:49 am

I've been having the same problem, my firmware on both record and main HDHR is a bit behind, so I'm not sure if the issues I have are because of that. But I used to run the hdhr2mxf.exe -update command and it would put the xml file in the output folder in Program Data. I tried downloading 1.7.1.2 and when i run the hdhr2mxf.exe -update command I don't get anything in the output folder. Is this because my HDHR firmware is maybe behind?

20210210 for my HDHR firmware
20211210 for record engine

User avatar
garyan2

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

HTPC Specs: Show details

#7

Post by garyan2 » Tue Feb 08, 2022 2:52 am

Should still work regardless of firmware. What does the trace.log file say?

Sent from my SM-G965U using Tapatalk

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

vaju0503

Posts: 43
Joined: Thu Feb 02, 2017 10:55 pm
Location:

HTPC Specs: Show details

#8

Post by vaju0503 » Tue Feb 08, 2022 2:57 am

does WMC need to be installed? I'm trying to run it on my win 11 machine right now and just force the new file to my mediacenter to get the guide to update as my guide will be outdated in a few days.

vaju0503

Posts: 43
Joined: Thu Feb 02, 2017 10:55 pm
Location:

HTPC Specs: Show details

#9

Post by vaju0503 » Tue Feb 08, 2022 2:59 am

Trace file in program data shows this

[2/7/2022 8:45:57 PM] [ERROR] *** WMC is not present on this machine. ***
[2/7/2022 8:45:57 PM] *** mcepg.dll was not found in the Global Assembly Cache (GAC). WMC has not completed its install, or is not installed correctly. ***
[2/7/2022 8:45:57 PM] *** mcstore.dll was not found in the Global Assembly Cache (GAC). WMC has not completed its install, or is not installed correctly. ***
[2/7/2022 8:45:57 PM] *** BDATunePIA.dll was not found in the Global Assembly Cache (GAC). WMC has not completed its install, or is not installed correctly. ***

vaju0503

Posts: 43
Joined: Thu Feb 02, 2017 10:55 pm
Location:

HTPC Specs: Show details

#10

Post by vaju0503 » Tue Feb 08, 2022 3:03 am

I seem to have it working now... apparently executing it shell was a bad decision...

vaju0503

Posts: 43
Joined: Thu Feb 02, 2017 10:55 pm
Location:

HTPC Specs: Show details

#11

Post by vaju0503 » Tue Feb 08, 2022 3:04 am

Can I install version 1.7.1.2 over the version i currently have working without any issue? Or is there some special steps i need to take?

User avatar
garyan2

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

HTPC Specs: Show details

#12

Post by garyan2 » Tue Feb 08, 2022 3:06 am

No, not for hdhr2mxf. So if you use -update, it will download the xmltv file from SiliconDust and create the mxf file... both will be written to the programdata\garyan2\epg123\output folder. If you use hdhr2mxf without any switches, it will write to the same folder the executable is (or try to).

https://garyan2.github.io/hdhr2mxf.html?server=hdhr2mxf
- Gary
Keeping WMC alive beyond January 2020. https://garyan2.github.io

vaju0503

Posts: 43
Joined: Thu Feb 02, 2017 10:55 pm
Location:

HTPC Specs: Show details

#13

Post by vaju0503 » Tue Feb 08, 2022 3:08 am

So I can just download the epg123Setup_v1.7.1.2.zip and run it and i should be good with my scheduled tasks to run as they were?

User avatar
garyan2

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

HTPC Specs: Show details

#14

Post by garyan2 » Tue Feb 08, 2022 3:09 am

The errors you got was because it was trying to import the mxf file into a WMC database which doesn't exist. Remove the -import switch.

Nothing special to do for upgrading to 1.7.1.2. It will copy over the old file(s) with the new and be done.
- Gary
Keeping WMC alive beyond January 2020. https://garyan2.github.io

vaju0503

Posts: 43
Joined: Thu Feb 02, 2017 10:55 pm
Location:

HTPC Specs: Show details

#15

Post by vaju0503 » Tue Feb 08, 2022 3:10 am

sounds good I'll manually move the xml i just got to my media center for update tonight, then I'll install v1.7.1.2 tomorrow sometime. Thanks for the support man you've helped me a handful of times.

User avatar
garyan2

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

HTPC Specs: Show details

#16

Post by garyan2 » Tue Feb 08, 2022 3:10 am

vaju0503 wrote: Tue Feb 08, 2022 3:08 am So I can just download the epg123Setup_v1.7.1.2.zip and run it and i should be good with my scheduled tasks to run as they were?
Correct.
- Gary
Keeping WMC alive beyond January 2020. https://garyan2.github.io

vaju0503

Posts: 43
Joined: Thu Feb 02, 2017 10:55 pm
Location:

HTPC Specs: Show details

#17

Post by vaju0503 » Tue Feb 08, 2022 3:14 am

Thanks again, I'm no noob when it comes to IT solutions as I'm a developer myself. I more just don't want to break anything as my wife would be upset if some of her primetime shows don't record.

technodevotee

Posts: 963
Joined: Thu Sep 10, 2015 4:10 pm
Location: West Midlands

HTPC Specs: Show details

#18

Post by technodevotee » Sat Apr 16, 2022 10:19 am

I'm now getting this problem on both of my PCs virtually every day.

to reiterate:

The scheduled EPG123 update fails due to not getting a token but if I run it manually immediately after the failure, it works.

I've tried changing the time of day to avoid busy periods but it doesn't make any difference.

It seems to be only when the scheduled task wakes the PC to do the update that it fails. If the PC is ready awake, then it works.

l can only assume that the problem is due to the network not being ready quickly enough.

The thing that puzzles me is that the PCs aren't even that old and the network is Gigabit all the way to the router.

Anyone else having this problem?

User avatar
alhaunts

Posts: 66
Joined: Wed Jan 01, 2020 5:45 pm
Location:

HTPC Specs: Show details

#19

Post by alhaunts » Sat Apr 16, 2022 12:15 pm

I gave up trying to make my HTPC play nice with the sleep function. Now I just turn off the TV and leave the PC awake 24/7. Costs a couple of bucks more a year for the electricity, but way less hassle.

technodevotee

Posts: 963
Joined: Thu Sep 10, 2015 4:10 pm
Location: West Midlands

HTPC Specs: Show details

#20

Post by technodevotee » Sat Apr 16, 2022 5:38 pm

That is one way round it but this problem only started a short time ago even though all my PCs have been set to go to sleep when idle ever since I got them.

Given that it is happening on two PCs now, It may be something Microsoft changed in an update of course.

I've created a batch file that tests for a route out of my network before launching the update and I'll see what happens.

Post Reply