[mythtv-users] log errors

Daryl McDonald darylangela at gmail.com
Sun Oct 26 20:33:09 UTC 2014


On Sun, Oct 26, 2014 at 10:24 AM, Bill Meek <keemllib at gmail.com> wrote:

> On 10/24/2014 11:28 PM, Daryl McDonald wrote:
> ...
>
>>   daryl at daryl-A780L3C:~$  find /media/storage/mythtv/recordings -type f
>>> -name "*.mpg" ! -user mythtv -ls | pastebinit
>>> http://paste.ubuntu.com/8665988/
>>>
>>> OK that got a lot of traffic, do each of these files need to be
>>> "touched"?
>>>
>>
> I suspect you already fixed this by now, but the files in the pastebin
> are owned by user ntp, not mythtv.
>
>     sudo chown -R mythtv /media/storage/mythtv/recordings
>

I did them one at a time, the above command would have done it in one fell
swoop?

>
> will fix that.
>
> There might be more as a result of your conversion, and I can tell you
> that on my system, there are only 3-6 files owned by ntp, so I'd do
> the find command again for your whole system and see if there are any
> more files that you'd want owned by user mythtv:
>
>     sudo find / -user ntp -ls 2> /dev/null
>
> may find these *but don't change them* (or any in /proc):
>
> $ sudo find / -user ntp -ls
> 1974213    4 drwxr-xr-x   2 ntp      ntp          4096 Oct 26 00:45
> /var/lib/ntp
> 1966676    4 -rw-r--r--   1 ntp      ntp             7 Oct 26 00:45
> /var/lib/ntp/ntp.drift
> 1974269    4 drwxr-xr-x   2 ntp      ntp          4096 Oct  9  2013
> /var/log/ntpstats
>

 daryl at daryl-A780L3C:~$ sudo find / -user ntp -ls 2> /dev/null
[sudo] password for daryl:
 49464    4 drwxr-xr-x   2 ntp      ntp          4096 Oct  9  2013
/var/log/ntpstats
 34568    4 drwxr-xr-x   2 ntp      ntp          4096 Oct 26 15:12
/var/lib/ntp
 37119    4 -rw-r--r--   1 ntp      ntp             6 Oct 26 15:12
/var/lib/ntp/ntp.drift
 12406    0 dr-xr-xr-x   9 ntp      ntp             0 Oct 26 16:06
/proc/1554
 65234    0 dr-xr-xr-x   3 ntp      ntp             0 Oct 26 16:20
/proc/1554/task
 65278    0 dr-xr-xr-x   6 ntp      ntp             0 Oct 26 16:20
/proc/1554/task/1554
 65305    0 dr-xr-xr-x   2 ntp      ntp             0 Oct 26 16:20
/proc/1554/task/1554/attr
 12407    0 dr-xr-xr-x   5 ntp      ntp             0 Oct 26 16:06
/proc/1554/net
 65260    0 dr-xr-xr-x   2 ntp      ntp             0 Oct 26 16:20
/proc/1554/attr
>9044058    0 -rw-rw-r--   1 ntp      mythtv          0 Sep 11  2013
/media/storage/mythtv/3197_20130630200000.mpg.
>9044004    4 drwxrwxr-x   2 ntp      mythtv       4096 Oct 21  2013
/media/storage/mythtv/mythexport
>9044299    0 -rw-r--r--   1 ntp      mythtv          0 Oct 21  2013
/media/storage/mythtv/mythexport/mythexport.5
>9044123    0 -rw-r--r--   1 ntp      mythtv          0 Oct 21  2013
/media/storage/mythtv/mythexport/mythexport.2
>9044296    0 -rw-r--r--   1 ntp      mythtv          0 Oct 21  2013
/media/storage/mythtv/mythexport/mythexport.3
>9044297    0 -rw-r--r--   1 ntp      mythtv          0 Oct 21  2013
/media/storage/mythtv/mythexport/mythexport.4
26083781    4 drwxr-xr-x   2 ntp      ntp          4096 Oct  9  2013
/media/storage2/mythtv/rsync/var/log/ntpstats
20450830    4 drwxr-xr-x   2 ntp      ntp          4096 Oct 21 10:39
/media/storage2/mythtv/rsync/var/lib/ntp
20450884    4 -rw-r--r--   1 ntp      ntp             6 Oct 21 10:39
/media/storage2/mythtv/rsync/var/lib/ntp/ntp.drift
daryl at daryl-A780L3C:~$

I'm guessing the ones >'d in could be chown'd?


> If you don't know who should own them, don't change them.
>
> If *new* recordings (files) continue to be created with user ntp, then
> there's another issue.
>
>
> --
> Bill
> _______________________________________________
> mythtv-users mailing list
> mythtv-users at mythtv.org
> http://www.mythtv.org/mailman/listinfo/mythtv-users
> http://wiki.mythtv.org/Mailing_List_etiquette
> MythTV Forums: https://forum.mythtv.org
>

Something weird last night, after chown'ng fifty or so "ntp's" my system
started acting sluggish and the file system went into "read only mode",
info center said "are you running mfdb? there are no days of listings".

I rebooted into a previous kernel, and the sun was shining, in that virtual
world, last night's and this morning's recordings went good, and now I've
rebooted into the latest kernel, and the sun is shining again? Last time
this happened I scrambled to restore a system and database backup. I'm left
happily curious?!   Daryl
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.mythtv.org/pipermail/mythtv-users/attachments/20141026/4719fbb2/attachment.html>


More information about the mythtv-users mailing list