[mythtv-users] numerous attempts to find HDHR

Bill Meek keemllib at gmail.com
Tue Feb 22 23:54:33 UTC 2022


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


More information about the mythtv-users mailing list