[mythtv-users] numerous attempts to find HDHR

Daryl McDonald darylangela at gmail.com
Wed Feb 23 00:05:35 UTC 2022


On Tue, Feb 22, 2022 at 6:54 PM Bill Meek <keemllib at gmail.com> wrote:

> On 2/22/22 17:47, Daryl McDonald wrote:
> >
> >
> > On Tue, Feb 22, 2022 at 6:36 PM Bill Meek <keemllib at gmail.com <mailto:
> keemllib at gmail.com>> wrote:
> >
> >     On 2/22/22 17:27, Daryl McDonald wrote:
> >     > PermissionError: [Errno 13] Permission denied:
> '/var/log/mythtv/hdhr_discovery.log'
> >
> >     User mythtv can't write to the log. I thought changing the above
> >     to /tmp/hdhr_discovery.log was done. Be sure that the owner:group
> >     of the file in /tmp is mythtv:mythtv. Or, just let the backend run
> >     and create the file. If you run the script as yourself 1st, then
> >     user mythtv won't be able to write to it. Just chown as required
> >     if that happens. The same applies for any file written to by
> >     multiple users.
> >
> >     --
> >     Bill
> >     _______________________________________________
> >     daryl at trieli:~$ ls -al /usr/local/bin/hdhomerun_check.py
> >     -rwxr-xr-x 1 root root 1803 Feb  5 08:22
> /usr/local/bin/hdhomerun_check.py
> >     daryl at trieli:~$ sudo chown mythtv:mythtv
> /usr/local/bin/hdhomerun_check.py
> >     [sudo] password for daryl:
> >     daryl at trieli:~$ ls -al /usr/local/bin/hdhomerun_check.py
> >     -rwxr-xr-x 1 mythtv mythtv 1803 Feb  5 08:22
> /usr/local/bin/hdhomerun_check.py
> >     daryl at trieli:~$
> >
> >
> > Should I be renaming the file to include "/tmp"
>
> Right, in this line:
> logging.basicConfig(filename='/var/log/mythtv/hdhr_discovery.log'
> change /var/log/mythtv/hdhr_discovery.log to /tmp/hdhr_discovery.log
>
> --
> Bill
>
> So, I'm going to sudo nano  /usr/local/bin/hdhomerun_check.py
and edit out /var/log/mythtv and edit in /tmp (on the logging basic line)?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mythtv.org/pipermail/mythtv-users/attachments/20220222/44af738a/attachment.htm>


More information about the mythtv-users mailing list