<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Feb 22, 2022 at 5:36 PM Bill Meek <<a href="mailto:keemllib@gmail.com">keemllib@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On 2/22/22 16:18, Daryl McDonald wrote:<br>
> According to the log:<br>
> cat /var/log/mythtv/hdhr_discovery.log<br>
> 2022-02-05 08:22:34 INFO Starting HD Homerun discovery<br>
> 2022-02-05 08:22:35 INFO Found HD Homerun. Seconds=0.429, attempts=1.<br>
> 2022-02-05 08:24:41 INFO Starting HD Homerun discovery<br>
> 2022-02-05 08:24:41 INFO Found HD Homerun. Seconds=0.424, attempts=1.<br>
> 2022-02-05 08:46:38 INFO Starting HD Homerun discovery<br>
> 2022-02-05 08:46:38 INFO Found HD Homerun. Seconds=0.426, attempts=1.<br>
> ...<br>
> 2022-02-18 17:40:32 INFO Starting HD Homerun discovery<br>
> 2022-02-18 17:40:32 WARNING hdhomerun_config discover failed, return code = 1.<br>
> 2022-02-18 17:40:34 WARNING hdhomerun_config discover failed, return code = 1.<br>
> 2022-02-18 17:40:36 WARNING hdhomerun_config discover failed, return code = 1.<br>
> 2022-02-18 17:40:38 WARNING hdhomerun_config discover failed, return code = 1.<br>
> 2022-02-18 17:40:40 WARNING hdhomerun_config discover failed, return code = 1.<br>
> 2022-02-18 17:40:42 WARNING hdhomerun_config discover failed, return code = 1.<br>
> 2022-02-18 17:40:44 WARNING hdhomerun_config discover failed, return code = 1.<br>
> 2022-02-18 17:40:46 INFO Found HD Homerun. Seconds=14.485, attempts=8.<br>
> 2022-02-19 17:41:32 INFO Starting HD Homerun discovery<br>
> 2022-02-19 17:41:32 WARNING hdhomerun_config discover failed, return code = 1.<br>
> 2022-02-19 17:41:34 WARNING hdhomerun_config discover failed, return code = 1.<br>
> 2022-02-19 17:41:36 WARNING hdhomerun_config discover failed, return code = 1.<br>
> 2022-02-19 17:41:38 WARNING hdhomerun_config discover failed, return code = 1.<br>
> 2022-02-19 17:41:40 WARNING hdhomerun_config discover failed, return code = 1.<br>
> 2022-02-19 17:41:42 WARNING hdhomerun_config discover failed, return code = 1.<br>
> 2022-02-19 17:41:44 WARNING hdhomerun_config discover failed, return code = 1.<br>
> 2022-02-19 17:41:46 WARNING hdhomerun_config discover failed, return code = 1.<br>
> 2022-02-19 17:41:49 INFO Found HD Homerun. Seconds=16.493, attempts=9.<br>
> 2022-02-20 09:24:47 INFO Starting HD Homerun discovery<br>
> <br>
> The first attempt to find the HDHR fails, the second is successful. Today, however it failed 8 to 14 times before finding the HDHR but the BE<br>
> would not start because the script exited error code 1. <br>
> Is there an adjustment I can make to allow more than one failed attempt?<br>
> For now I've commented out the [Service] and set the scheduler value to 0 for the HDHR. <br>
<br>
The script makes ATTEMPTS tries (20 if I recall) and tries: hdhomerun_config discover<br>
every DELAY seconds (2).<br>
<br>
Run: hdhomerun_config discover from the command line to see what it says.<br></blockquote><div> daryl@trieli:~$ hdhomerun_config discover</div>hdhomerun device 10426B6B found at 192.168.0.182<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
Then, if the discover works, run the script from the command line.<br></blockquote><div> 2022-02-22 17:51:29 INFO Starting HD Homerun discovery</div>2022-02-22 17:51:29 INFO Found HD Homerun. Seconds=0.424, attempts=1.<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
-- <br>
Bill<br><br></blockquote><div>According to the log the HDHR was found, but for some reason the BE would not start citing error code 1. the difference I see is that previously it was found on the second attempt, but today it took 8 to 14 attempts, so somewhere between 2 and 8 attempts the error code sticks and prohibits the BE from starting. My thinking is that an adjustment should be made to allow for multiple failures, before accepting the exiting error code.</div><div>TIA Daryl</div></div></div>