EPG123 Scheduled Task fails but manually running UPDATE GUIDE NOW works

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
Post Reply
User avatar
camelopardis

Posts: 29
Joined: Wed Jan 02, 2013 12:15 pm
Location:

HTPC Specs: Show details

EPG123 Scheduled Task fails but manually running UPDATE GUIDE NOW works

#1

Post by camelopardis » Fri Jul 28, 2023 9:13 pm

Hello - I've recently re-ran setup but the daily scheduled task keeps failing - see logfile below:

Code: Select all

[28/07/2023 18:20:00] =====================================================================================
[28/07/2023 18:20:00] EPG123: Beginning MXF and XMLTV file updates. version 1.8.0.14
[28/07/2023 18:20:00] =====================================================================================
[28/07/2023 18:20:00] *** Windows 7 Professional, 64-bit [Version: 6.1.7601.24519] ***
[28/07/2023 18:20:00] *** .NET Framework 4.7.03062 is installed. ***
[28/07/2023 18:20:01] [ INFO] DaysToDownload: 21 , TheTVDBNumbers : True , PrefixEpisodeTitle: False , PrefixEpisodeDescription : False , AppendEpisodeDesc: True , OADOverride : True , SeasonEventImages : True , IncludeSDLogos : True , AutoAddNew: True , CreateXmltv: False
[28/07/2023 18:20:03] [ INFO] HTTP request exception thrown. Message: System.AggregateException: One or more errors occurred. ---> System.Net.Http.HttpRequestException: An error occurred while sending the request. ---> System.Net.WebException: Unable to connect to the remote server ---> System.Net.Sockets.SocketException: No connection could be made because the target machine actively refused it 127.0.0.1:9009
   at System.Net.Sockets.Socket.InternalEndConnect(IAsyncResult asyncResult)
   at System.Net.Sockets.Socket.EndConnect(IAsyncResult asyncResult)
   at System.Net.ServicePoint.ConnectSocketInternal(Boolean connectFailure, Socket s4, Socket s6, Socket& socket, IPAddress& address, ConnectSocketState state, IAsyncResult asyncResult, Exception& exception)
   --- End of inner exception stack trace ---
   at System.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult)
   at System.Net.Http.HttpClientHandler.GetResponseCallback(IAsyncResult ar)
   --- End of inner exception stack trace ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at GaRyan2.SchedulesDirectAPI.API.<GetHttpResponse>d__1`1.MoveNext()
   --- End of inner exception stack trace ---
   at System.Threading.Tasks.Task`1.GetResultCore(Boolean waitCompletionNotification)
   at GaRyan2.BaseAPI.GetApiResponse[T](Method method, String uri, Object classObject)
---> (Inner Exception #0) System.Net.Http.HttpRequestException: An error occurred while sending the request. ---> System.Net.WebException: Unable to connect to the remote server ---> System.Net.Sockets.SocketException: No connection could be made because the target machine actively refused it 127.0.0.1:9009
   at System.Net.Sockets.Socket.InternalEndConnect(IAsyncResult asyncResult)
   at System.Net.Sockets.Socket.EndConnect(IAsyncResult asyncResult)
   at System.Net.ServicePoint.ConnectSocketInternal(Boolean connectFailure, Socket s4, Socket s6, Socket& socket, IPAddress& address, ConnectSocketState state, IAsyncResult asyncResult, Exception& exception)
   --- End of inner exception stack trace ---
   at System.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult)
   at System.Net.Http.HttpClientHandler.GetResponseCallback(IAsyncResult ar)
   --- End of inner exception stack trace ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at GaRyan2.SchedulesDirectAPI.API.<GetHttpResponse>d__1`1.MoveNext()<---
[28/07/2023 18:20:03] [ERROR] Failed to login to Schedules Direct. Aborting update.
[28/07/2023 18:20:03] [ERROR] Failed to create MXF file. Exiting.
[28/07/2023 18:20:04] =====================================================================================
[28/07/2023 18:20:04] EPG123CLIENT: Beginning MXF file import. version 1.8.0.14
[28/07/2023 18:20:04] =====================================================================================
[28/07/2023 18:20:04] *** Windows 7 Professional, 64-bit [Version: 6.1.7601.24519] ***
[28/07/2023 18:20:04] *** .NET Framework 4.7.03062 is installed. ***
[28/07/2023 18:20:04] *** Windows Media Center [Version: 6.1.7600.16385] is installed. ***
[28/07/2023 18:20:04] [ INFO] Import: True , Match: True , NoLogo: False , Force: False , ShowProgress: False , NoGC: False , NoVerify: False , Verbose: False
[28/07/2023 18:20:05] Entering ImportMxfFile() for file "C:\epg123\output\epg123.mxf".
[28/07/2023 18:20:42] [ INFO] Successfully imported .mxf file into Media Center database. Exit code: 0
[28/07/2023 18:20:42] Exiting ImportMxfFile(). SUCCESS.
[28/07/2023 18:20:42] Entering VerifyLoad()
[28/07/2023 18:20:44] [ INFO] Service !Service!EPG123_20683: BBC3 has a time discontinuity at 05/08/2023 01:15:00. Skipping verification of this station's schedule entries.
[28/07/2023 18:20:48] [ INFO] Service !Service!EPG123_99597: S4CHDVM has a time discontinuity at 07/08/2023 02:00:00. Skipping verification of this station's schedule entries.
[28/07/2023 18:20:48] [ INFO] Service !Service!EPG123_73510: PBSUKVM has a time discontinuity at 11/08/2023 01:15:00. Skipping verification of this station's schedule entries.
[28/07/2023 18:20:49] [ INFO] Service !Service!EPG123_96945: BBCRFYL has a time discontinuity at 07/08/2023 01:00:00. Skipping verification of this station's schedule entries.
[28/07/2023 18:20:50] [ INFO] Checked 78593 entries and corrected 0 of them.
[28/07/2023 18:20:50] Exiting VerifyLoad()
[28/07/2023 18:20:50] [ INFO] Completed channel cleanup as needed after MXF file import.
[28/07/2023 18:20:50] [ INFO] Skipped matching 'CREATVM - EPG123 Freeview - South East (South East)' to merged channel '1 : BBC1EAST - 5511 = { (-1 : BBC1EAST - 4A966) + [ -1 : BBC One EastHD - 54EB] }' due to having channel 'BBC1EAST - EPG123 Freesat - South East (South East)' already assigned.
[28/07/2023 18:20:50] [ INFO] Skipped matching 'TOGETUK - EPG123 Freeview - South East (South East)' to merged channel '2 : BBC2HD - 4AA22 = { (-1 : BBC2HD - 4A840) + [ -1 : BBC Two HD - 4A9BA] }' due to having channel 'BBC2HD - EPG123 Freesat - South East (South East)' already assigned.
[28/07/2023 18:20:50] [ INFO] Skipped matching 'CREATVM - EPG123 Freeview - South East (South East)' to merged channel '3 : ITV1HDS - 4AAA5 = { (-1 : ITV1HDS - 4A850) + [ -1 : ITV1 HD - 4AA93] }' due to having channel 'ITV1HDS - EPG123 Freesat - South East (South East)' already assigned.
[28/07/2023 18:20:50] [ INFO] Skipped matching 'TALKPIC - EPG123 Freeview - South East (South East)' to merged channel '4 : C4HD - 606B6 = { (-1 : C4HD - 4A844) + [ -1 : Channel 4 HD - 606AD] }' due to having channel 'C4HD - EPG123 Freesat - South East (South East)' already assigned.
[28/07/2023 18:20:50] [ INFO] Skipped matching 'WIEAUK - EPG123 Freeview - South East (South East)' to merged channel '5 : CH5HD - 60737 = { (-1 : CH5HD - 4A846) + [ -1 : Channel 5 HD - 6070A] }' due to having channel 'CH5HD - EPG123 Freesat - South East (South East)' already assigned.
[28/07/2023 18:20:50] [ INFO] Skipped matching 'TOGETUK - EPG123 Freeview - South East (South East)' to merged channel '6 : ITV2HD - 60CFD = { (-1 : ITV2HD - 60404) + [ -1 : ITV2 HD - 60CF4] }' due to having channel 'ITV2HD - EPG123 Freesat - South East (South East)' already assigned.
[28/07/2023 18:20:50] [ INFO] Skipped matching 'PBSAMEF - EPG123 Freeview - South East (South East)' to merged channel '7 : ITV3HD - 4AAA4 = { (-1 : ITV3HD - 60406) + [ -1 : ITV3 HD - 4AA89] }' due to having channel 'ITV3HD - EPG123 Freesat - South East (South East)' already assigned.
[28/07/2023 18:20:50] [ INFO] Skipped matching 'TOGETUK - EPG123 Freeview - South East (South East)' to merged channel '10 : BBC4HD - 550F = { (-1 : BBC4HD - 4A84A) + [ -1 : BBC Four HD - 54D7] }' due to having channel 'BBC4HD - EPG123 Freesat - South East (South East)' already assigned.
[28/07/2023 18:20:50] [ INFO] Skipped matching 'ITV1STH - EPG123 Freeview - South East (South East)' to merged channel '80 : BBCNWHD - 5458 = { (-1 : BBCNWHD - 4A8BA) + [ -1 : BBC NEWS HD - 53F6] }' due to having channel 'BBCNWHD - EPG123 Freesat - South East (South East)' already assigned.
[28/07/2023 18:20:51] [ INFO] Skipped matching 'BLZP1FV - EPG123 Freeview - South East (South East)' to merged channel '81 : BBCPARL - 4B00C = { (-1 : BBCPARL - 4A8BC) + [ -1 : BBC Parl HD - 4B003] }' due to having channel 'BBCPARL - EPG123 Freesat - South East (South East)' already assigned.
[28/07/2023 18:20:51] [ INFO] Skipped matching 'WIEAUK - EPG123 Freeview - South East (South East)' to merged channel '82 : SKYNEWS - 60C36 = { (-1 : SKYNEWS - 4A8BE) + [ -1 : Sky News - 60BCC] }' due to having channel 'SKYNEWS - EPG123 Freesat - South East (South East)' already assigned.
[28/07/2023 18:20:51] [ INFO] Completed the automatic mapping of lineup stations to tuner channels.
[28/07/2023 18:20:51] [ INFO] Completed lineup refresh.
[28/07/2023 18:20:51] Entering ReindexDatabase()
[28/07/2023 18:20:51] [ INFO] SUCCESS: WMC database indexing has started.
[28/07/2023 18:20:51] Exiting ReindexDatabase(). SUCCESS.
[28/07/2023 18:20:51] [ INFO] MXF file was created on 26/07/2023 22:26:51
[28/07/2023 18:20:51] [ERROR] The MXF file imported is 43.90 hours old.
[28/07/2023 18:20:51] [ INFO] Completed EPG123 client execution.
[28/07/2023 18:20:51] [ INFO] EPG123 client execution time was 00:00:46.7064820.
[28/07/2023 18:22:56] =====================================================================================
[28/07/2023 18:22:56] EPG123CLIENT: Beginning WMC recorder storage/tuner conflict checks. version 1.8.0.14
[28/07/2023 18:22:56] =====================================================================================
[28/07/2023 18:22:56] *** Windows 7 Professional, 64-bit [Version: 6.1.7601.24519] ***
[28/07/2023 18:22:56] *** .NET Framework 4.7.03062 is installed. ***
[28/07/2023 18:22:56] *** Windows Media Center [Version: 6.1.7600.16385] is installed. ***
[28/07/2023 18:22:56] [ INFO] WMC database indexing took 00:02:05.5958206. Exit: 0x00000000
[28/07/2023 18:22:56] [ INFO] Recorder storage drive V:\ has 264.054 GB available. (1.561 TB of 1.819 TB used)
[28/07/2023 18:22:58] [ INFO] No tuner conflicts detected within next 3 days.
[28/07/2023 18:22:58] [ INFO] Completed WMC recorder storage/tuner conflict checks.


However, it works if I manually kick off UPDATE GUIDE NOW - working logfile below:

Code: Select all

[28/07/2023 21:53:24] =====================================================================================
[28/07/2023 21:53:24] EPG123_GUI: Activating the configuration GUI. version 1.8.0.14
[28/07/2023 21:53:24] =====================================================================================
[28/07/2023 21:53:24] *** Windows 7 Professional, 64-bit [Version: 6.1.7601.24519] ***
[28/07/2023 21:53:24] *** .NET Framework 4.7.03062 is installed. ***
[28/07/2023 21:53:28] [ERROR] Failed to download configuration file from http://localhost:9009/epg123/epg123.cfg.
[28/07/2023 21:53:43] [ INFO] Successfully downloaded configuration file from http://localhost:9009/epg123/epg123.cfg.
[28/07/2023 21:53:43] [ INFO] Successfully queried the Task Scheduler for status. Ready. Last Run 28/07/2023 18:20:00. Exit: 0x0000DEAD
[28/07/2023 21:53:43] [ INFO] Token request successful. serverID: HTPC , datetime: 2023-07-28T20:53:42Z
[28/07/2023 21:53:44] [ INFO] Status request successful. account expires: 2024-07-26T11:52:28Z , lineups: 3/4 , lastDataUpdate: 2023-07-28T20:01:34Z
[28/07/2023 21:53:44] [ INFO] System status: Online , message: No known issues.
[28/07/2023 21:53:44] [ INFO] Successfully requested listing of subscribed lineups from Schedules Direct.
[28/07/2023 21:53:44] [ INFO] Successfully retrieved the station mapping for lineup GBR-1000083-DEFAULT. (152 stations; 155 channels)
[28/07/2023 21:53:44] [ INFO] Successfully retrieved the station mapping for lineup GBR-1000086-DEFAULT. (180 stations; 183 channels)
[28/07/2023 21:53:45] [ INFO] Successfully retrieved the station mapping for lineup GBR-1000193-DEFAULT. (1336 stations; 1338 channels)
[28/07/2023 21:54:08] =====================================================================================
[28/07/2023 21:54:08] EPG123_GUI: Activating the configuration GUI. version 1.8.0.14
[28/07/2023 21:54:08] =====================================================================================
[28/07/2023 21:54:08] *** Windows 7 Professional, 64-bit [Version: 6.1.7601.24519] ***
[28/07/2023 21:54:08] *** .NET Framework 4.7.03062 is installed. ***
[28/07/2023 21:54:09] [ INFO] Successfully downloaded configuration file from http://localhost:9009/epg123/epg123.cfg.
[28/07/2023 21:54:09] [ INFO] Successfully queried the Task Scheduler for status. Ready. Last Run 28/07/2023 18:20:00. Exit: 0x0000DEAD
[28/07/2023 21:54:09] [ INFO] Token request successful. serverID: HTPC , datetime: 2023-07-28T20:53:42Z
[28/07/2023 21:54:10] [ INFO] Status request successful. account expires: 2024-07-26T11:52:28Z , lineups: 3/4 , lastDataUpdate: 2023-07-28T20:01:34Z
[28/07/2023 21:54:10] [ INFO] System status: Online , message: No known issues.
[28/07/2023 21:54:10] [ INFO] Successfully requested listing of subscribed lineups from Schedules Direct.
[28/07/2023 21:54:10] [ INFO] Successfully retrieved the station mapping for lineup GBR-1000083-DEFAULT. (152 stations; 155 channels)
[28/07/2023 21:54:10] [ INFO] Successfully retrieved the station mapping for lineup GBR-1000086-DEFAULT. (180 stations; 183 channels)
[28/07/2023 21:54:11] [ INFO] Successfully retrieved the station mapping for lineup GBR-1000193-DEFAULT. (1336 stations; 1338 channels)
[28/07/2023 21:54:48] =====================================================================================
[28/07/2023 21:54:48] EPG123: Beginning MXF and XMLTV file updates. version 1.8.0.14
[28/07/2023 21:54:48] =====================================================================================
[28/07/2023 21:54:48] *** Windows 7 Professional, 64-bit [Version: 6.1.7601.24519] ***
[28/07/2023 21:54:48] *** .NET Framework 4.7.03062 is installed. ***
[28/07/2023 21:54:49] [ INFO] DaysToDownload: 21 , TheTVDBNumbers : True , PrefixEpisodeTitle: False , PrefixEpisodeDescription : False , AppendEpisodeDesc: True , OADOverride : True , SeasonEventImages : True , IncludeSDLogos : True , AutoAddNew: True , CreateXmltv: False
[28/07/2023 21:54:49] [ INFO] Token request successful. serverID: HTPC , datetime: 2023-07-28T20:53:42Z
[28/07/2023 21:54:50] [ INFO] Status request successful. account expires: 2024-07-26T11:52:28Z , lineups: 3/4 , lastDataUpdate: 2023-07-28T20:01:34Z
[28/07/2023 21:54:50] [ INFO] System status: Online , message: No known issues.
[28/07/2023 21:54:51] [ INFO] Successfully requested listing of subscribed lineups from Schedules Direct.
[28/07/2023 21:54:51] Entering BuildLineupServices() for 3 lineups.
[28/07/2023 21:54:51] [ INFO] Successfully retrieved the station mapping for lineup GBR-1000083-DEFAULT. (152 stations; 155 channels)
[28/07/2023 21:54:51] [ INFO] Successfully retrieved the station mapping for lineup GBR-1000086-DEFAULT. (180 stations; 183 channels)
[28/07/2023 21:54:51] [ INFO] Subscribed lineup GBR-1000193-DEFAULT has been EXCLUDED by user from download and processing.
[28/07/2023 21:54:51] [ INFO] Kicking off background worker to download and process 1 station logos.
[28/07/2023 21:54:51] Exiting BuildLineupServices(). SUCCESS.
[28/07/2023 21:54:51] Entering GetAllScheduleEntryMd5s() for 21 days on 217 stations.
[28/07/2023 21:54:53] [ INFO] Successfully retrieved Md5s for 59/59 stations' daily schedules. (0:00:00:01.5000858)
[28/07/2023 21:54:57] [ INFO] Successfully retrieved 59 stations' daily schedules. (0:00:00:04.4382539)
[28/07/2023 21:55:01] [ INFO] Successfully retrieved Md5s for 59/59 stations' daily schedules. (0:00:00:01.3140752)
[28/07/2023 21:55:03] [ INFO] Successfully retrieved 59 stations' daily schedules. (0:00:00:02.0211156)
[28/07/2023 21:55:05] [ INFO] Successfully retrieved Md5s for 59/59 stations' daily schedules. (0:00:00:00.8720499)
[28/07/2023 21:55:09] [ INFO] Successfully retrieved 59 stations' daily schedules. (0:00:00:03.2241844)
[28/07/2023 21:55:11] [ INFO] Successfully retrieved Md5s for 40/40 stations' daily schedules. (0:00:00:00.9560547)
[28/07/2023 21:55:13] [ INFO] Successfully retrieved 40 stations' daily schedules. (0:00:00:02.2691298)
[28/07/2023 21:55:15] [ INFO] Found 1767 cached daily schedules.
[28/07/2023 21:55:15] [ INFO] Downloaded 2139 daily schedules.
[28/07/2023 21:55:16] [ INFO] Processed 3906 daily schedules for 217 stations for average of 18.0 days per station.
[28/07/2023 21:55:16] Exiting GetAllScheduleEntryMd5s(). SUCCESS.
[28/07/2023 21:55:16] Entering BuildAllProgramEntries() for 19383 programs.
[28/07/2023 21:55:19] [ INFO] Found 14690 cached program descriptions.
[28/07/2023 21:55:25] [ INFO] Successfully retrieved 1250/1250 program descriptions. (0:00:00:05.1792963)
[28/07/2023 21:55:25] [ INFO] Successfully retrieved 1250/1250 program descriptions. (0:00:00:05.6723245)
[28/07/2023 21:55:26] [ INFO] Successfully retrieved 943/943 program descriptions. (0:00:00:06.3113610)
[28/07/2023 21:55:27] [ INFO] Successfully retrieved 1250/1250 program descriptions. (0:00:00:07.8964516)
[28/07/2023 21:55:31] Exiting BuildAllProgramEntries(). SUCCESS.
[28/07/2023 21:55:31] Entering BuildAllGenericSeriesInfoDescriptions() for 4860 series.
[28/07/2023 21:55:31] [ INFO] Found 4677 cached/unavailable series descriptions.
[28/07/2023 21:55:31] [ INFO] Successfully retrieved 58/58 generic program descriptions. (0:00:00:00.3790216)
[28/07/2023 21:55:31] [ INFO] Successfully retrieved 125/125 generic program descriptions. (0:00:00:00.8530487)
[28/07/2023 21:55:32] Exiting BuildAllGenericSeriesInfoDescriptions(). SUCCESS.
[28/07/2023 21:55:32] Entering GetAllMoviePosters() for 941 movies.
[28/07/2023 21:55:32] [ INFO] Found 722 cached/unavailable movie poster links.
[28/07/2023 21:55:32] [ INFO] Successfully retrieved artwork info for 94/94 programs. (0:00:00:00.4050231)
[28/07/2023 21:55:32] [ INFO] Successfully retrieved artwork info for 125/125 programs. (0:00:00:00.5190297)
[28/07/2023 21:55:33] [ INFO] TMDb catalog search for "Fragments of Paradise" from 2022 found 1 results.
[28/07/2023 21:55:33] Exiting GetAllMoviePosters(). SUCCESS.
[28/07/2023 21:55:33] Entering GetAllSeriesImages() for 4860 series.
[28/07/2023 21:55:33] [ INFO] Found 4414 cached/unavailable series image links.
[28/07/2023 21:55:33] [ INFO] Successfully retrieved artwork info for 71/71 programs. (0:00:00:00.3260186)
[28/07/2023 21:55:33] [ INFO] Successfully retrieved artwork info for 125/125 programs. (0:00:00:00.3930225)
[28/07/2023 21:55:33] [ INFO] Successfully retrieved artwork info for 125/125 programs. (0:00:00:00.4340249)
[28/07/2023 21:55:33] [ INFO] Successfully retrieved artwork info for 125/125 programs. (0:00:00:00.4980285)
[28/07/2023 21:55:34] Exiting GetAllSeriesImages(). SUCCESS.
[28/07/2023 21:55:34] Entering GetAllSeasonImages() for 2494 seasons.
[28/07/2023 21:55:34] [ INFO] Found 2190 cached/unavailable season image links.
[28/07/2023 21:55:34] [ INFO] Successfully retrieved artwork info for 54/54 programs. (0:00:00:00.3150180)
[28/07/2023 21:55:34] [ INFO] Successfully retrieved artwork info for 125/125 programs. (0:00:00:00.5470312)
[28/07/2023 21:55:34] [ INFO] Successfully retrieved artwork info for 125/125 programs. (0:00:00:00.5490314)
[28/07/2023 21:55:34] Exiting GetAllSeasonImages(). SUCCESS.
[28/07/2023 21:55:34] Entering GetAllSportsImages() for 23 sports events.
[28/07/2023 21:55:34] [ INFO] Found 10 cached/unavailable sport event image links.
[28/07/2023 21:55:35] [ INFO] Successfully retrieved artwork info for 13/13 programs. (0:00:00:00.2320133)
[28/07/2023 21:55:35] Exiting GetAllSportsImages(). SUCCESS.
[28/07/2023 21:55:35] [ INFO] Completed compiling keywords and keyword groups.
[28/07/2023 21:55:35] [ INFO] 4796 entries deleted from the cache file during cleanup.
[28/07/2023 21:55:39] [ INFO] Completed save of the MXF file to "C:\epg123\output\epg123.mxf". (28.947 MB)
[28/07/2023 21:55:39] [ INFO] Generated MXF file contains 217 services, 4860 series, 2494 seasons, 19383 programs, 89637 schedule entries, and 27011 people with 7732 image links.
[28/07/2023 21:55:39] [ INFO] Completed EPG123 update execution. SUCCESS.
[28/07/2023 21:55:39] [ INFO] EPG123 update execution time was 00:00:49.9918594.
[28/07/2023 21:55:40] =====================================================================================
Can anyone help? thanks!

User avatar
garyan2

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

HTPC Specs: Show details

#2

Post by garyan2 » Fri Jul 28, 2023 10:50 pm

The epg123 service was not running. Service name is "EPG123 Server".

Task Run:
[28/07/2023 18:20:03] ... No connection could be made because the target machine actively refused it 127.0.0.1:9009

First EPG123_GUI open:
You probably got a UAC prompt to run NET.EXE in order to start the service, but it wasn't ready when the cfg file was requested the first time. The second request for the file succeeded 15 seconds later.
[28/07/2023 21:53:28] [ERROR] Failed to download configuration file from http://localhost:9009/epg123/epg123.cfg.
[28/07/2023 21:53:43] [ INFO] Successfully downloaded configuration file from http://localhost:9009/epg123/epg123.cfg.

Second EPG123_GUI open:
[28/07/2023 21:54:09] [ INFO] Successfully downloaded configuration file from http://localhost:9009/epg123/epg123.cfg.

Once the service was running, everything worked fine.
- Gary
Keeping WMC alive beyond January 2020. https://garyan2.github.io

User avatar
camelopardis

Posts: 29
Joined: Wed Jan 02, 2013 12:15 pm
Location:

HTPC Specs: Show details

#3

Post by camelopardis » Sat Jul 29, 2023 8:32 pm

thanks Gary - I do get a prompt to start NET.EXE when I manually run an update. I've just checked the EPG123SERVER service now, and its currently stopped, even though its set to Automatic. Is that how it should be, or should it be started all the time?
I dont know what I need to do in order for it to work unattended. My media centre pc is configured to turn on automatically at 6pm daily, with the EPG123 scheduled task set to run at 6:20pm. PC is then automatically shutdown at 2am. Do you know how I would make sure NET.EXE runs and the EPG123SERVER service is started before the task scheduler runs?

User avatar
garyan2

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

HTPC Specs: Show details

#4

Post by garyan2 » Sat Jul 29, 2023 11:45 pm

It should always be running. The service is setup to start up automatically, but possibly delayed. If it is set for auto-delayed, change to auto and see if that changes anything. Also, check the server.log file to see if there are errors in it. This log file is deleted and a new one started every time the service starts.
- Gary
Keeping WMC alive beyond January 2020. https://garyan2.github.io

User avatar
garyan2

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

HTPC Specs: Show details

#5

Post by garyan2 » Sun Jul 30, 2023 6:36 pm

I just released v1.8.1.0. This changes the service startup from Automatic (Delayed) to Automatic with a dependency for network services. The delayed auto was a lazy way to hope the network was ready, but changing to auto with dependency may allow your service to start running properly.
- Gary
Keeping WMC alive beyond January 2020. https://garyan2.github.io

User avatar
garyan2

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

HTPC Specs: Show details

#6

Post by garyan2 » Sun Jul 30, 2023 7:42 pm

I just discovered that in order for the service startup to change, you will have to uninstall EPG123 to delete the service so it can create a new one on install. The setup package cannot update an existing service. That will be in next release whenever that may be.
- Gary
Keeping WMC alive beyond January 2020. https://garyan2.github.io

User avatar
camelopardis

Posts: 29
Joined: Wed Jan 02, 2013 12:15 pm
Location:

HTPC Specs: Show details

#7

Post by camelopardis » Sun Jul 30, 2023 10:11 pm

Thanks for reply Gary. Yesterday I rebooted the PC to simulate the daily switch on at 6pm. EPG123SERVER service was stopped again. I checked the system event log and can see the following 2 errors at startup:

EVENT 7009: A timeout was reached (30000 milliseconds) while waiting for the EPG123 Server service to connect.
EVENT 7000: The EPG123 Server service failed to start due to the following error:
The service did not respond to the start or control request in a timely fashion.

I'm currently running 1.8.0.14 and the service was set to Automatic. I've actually now changed it to Automatic Delayed, and the updates now work automatically after a reboot.

I'll keep operating like that for now, then when I update to the latest version in the future, I'll follow your advice above. Thanks very much for your help!

User avatar
garyan2

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

HTPC Specs: Show details

#8

Post by garyan2 » Sun Jul 30, 2023 10:25 pm

Interesting. So prior to 1.8.x, the service was created as auto. Starting with 1.8.x, I had changed it to delayed auto worrying about the network being up since it will try to get a token from SD upon startup. Now I'm wondering if "delayed auto" and "auto with a network dependency" are somewhat equivalent. The thing with delayed auto is there is no control of when it actually starts, but auto with a network dependency will start as soon as all the network services are running.
- Gary
Keeping WMC alive beyond January 2020. https://garyan2.github.io

Space

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

HTPC Specs: Show details

#9

Post by Space » Mon Jul 31, 2023 1:09 am

It's my understanding that "Auto (delayed start)" simply starts the service 2 minutes after all "Auto" services are started.
It's purpose was to have less services starting all at once when the system is coming up. Less critical services (those that are not needed at startup time) were made "delayed start" so that they would allow the more critical services to start more quickly.

I think using delayed start for the EPG123 service is appropriate, but even after 2 minutes I suppose it is possible that networking is not available on very slow systems.

User avatar
garyan2

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

HTPC Specs: Show details

#10

Post by garyan2 » Mon Jul 31, 2023 1:42 am

I didn't know there was a trigger time for delayed starts. I just figured the OS would determine when resources were available after all the important services were started before starting the delayed services and then in no particular order. And yes, I have seen some very slow systems take a long time to stop churning on startup which was my original concern when making it delayed.
- Gary
Keeping WMC alive beyond January 2020. https://garyan2.github.io

Post Reply