[mythtv-users] numerous attempts to find HDHR

Daryl McDonald darylangela at gmail.com
Wed Feb 23 15:08:21 UTC 2022


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?

On Tue, Feb 22, 2022 at 7:05 PM Daryl McDonald <darylangela at gmail.com>
wrote:

>
>
> 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/20220223/761ae668/attachment.htm>


More information about the mythtv-users mailing list