<div dir="ltr">Thanks Bill, everything is back to normal. Did I cause all this by running the /usr/local/bin/hdhomerun_check.py as myself or sudo instead of as mythtv? Or did failing to change to the /tmp/hdhr_discovery.log have a hand, and if so, why now?</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Feb 22, 2022 at 7:05 PM Daryl McDonald <<a href="mailto:darylangela@gmail.com">darylangela@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"><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 6:54 PM Bill Meek <<a href="mailto:keemllib@gmail.com" target="_blank">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 17:47, Daryl McDonald wrote:<br>
> <br>
> <br>
> On Tue, Feb 22, 2022 at 6:36 PM Bill Meek <<a href="mailto:keemllib@gmail.com" target="_blank">keemllib@gmail.com</a> <mailto:<a href="mailto:keemllib@gmail.com" target="_blank">keemllib@gmail.com</a>>> wrote:<br>
> <br>
> On 2/22/22 17:27, Daryl McDonald wrote:<br>
> > PermissionError: [Errno 13] Permission denied: '/var/log/mythtv/hdhr_discovery.log'<br>
> <br>
> User mythtv can't write to the log. I thought changing the above<br>
> to /tmp/hdhr_discovery.log was done. Be sure that the owner:group<br>
> of the file in /tmp is mythtv:mythtv. Or, just let the backend run<br>
> and create the file. If you run the script as yourself 1st, then<br>
> user mythtv won't be able to write to it. Just chown as required<br>
> if that happens. The same applies for any file written to by<br>
> multiple users.<br>
> <br>
> -- <br>
> Bill<br>
> _______________________________________________<br>
> daryl@trieli:~$ ls -al /usr/local/bin/hdhomerun_check.py<br>
> -rwxr-xr-x 1 root root 1803 Feb 5 08:22 /usr/local/bin/hdhomerun_check.py<br>
> daryl@trieli:~$ sudo chown mythtv:mythtv /usr/local/bin/hdhomerun_check.py<br>
> [sudo] password for daryl:<br>
> daryl@trieli:~$ ls -al /usr/local/bin/hdhomerun_check.py<br>
> -rwxr-xr-x 1 mythtv mythtv 1803 Feb 5 08:22 /usr/local/bin/hdhomerun_check.py<br>
> daryl@trieli:~$<br>
> <br>
> <br>
> Should I be renaming the file to include "/tmp" <br>
<br>
Right, in this line: logging.basicConfig(filename='/var/log/mythtv/hdhr_discovery.log'<br>
change /var/log/mythtv/hdhr_discovery.log to /tmp/hdhr_discovery.log<br>
<br>
-- <br>
Bill<br><br></blockquote><div>So, I'm going to sudo nano /usr/local/bin/hdhomerun_check.py</div><div>and edit out /var/log/mythtv and edit in /tmp (on the logging basic line)?</div></div></div>
</blockquote></div>