[mythtv-users] ubuntu server 13.04/myth 0.26 permissions problem/0-byte recordings/hdpvr.

Michael T. Dean mtdean at thirdcontact.com
Wed Jul 17 05:22:05 UTC 2013


On 07/14/2013 11:31 AM, Adrian Chung wrote:
> Hoping someone can help me shed some light or point me down the right path.
>
> New ubuntu 13.04 server install, with ubuntu mythtv packages (0.26).  Hardware is AMD FX-8350/32GB RAM/990FX chipset, and an HDPVR connected via USB2.0.
>
> I've got everything setup, however the problem I'm having is when I try and use mythfrontend (both frontend and backend running locally as the mythtv user) to watch live tv, mythbackend creates a livetv recording in the appropriate folder, owned by mythtv, but never appends any data to it:
>
> adrian at colossus:~$ ls -la /spool/livetv/
> total 8
> drwxr-xr-x 2 mythtv mythtv 4096 Jul 14 11:02 .
> drwxr-xr-x 4 root   root   4096 Jul 12 22:20 ..
> -rw-r--r-- 1 mythtv mythtv    0 Jul 13 04:21 1001_20130713082119.mpg
> -rw-r--r-- 1 mythtv mythtv    0 Jul 13 04:21 1001_20130713082122.mpg
> -rw-r--r-- 1 mythtv mythtv    0 Jul 13 04:21 1001_20130713082123.mpg
> -rw-r--r-- 1 mythtv mythtv    0 Jul 13 04:21 1001_20130713082124.mpg
> -rw-r--r-- 1 mythtv mythtv    0 Jul 13 04:21 1001_20130713082125.mpg
> -rw-r--r-- 1 mythtv mythtv    0 Jul 13 04:21 1003_20130713082123.mpg
> -rw-r--r-- 1 mythtv mythtv    0 Jul 13 04:21 1003_20130713082124.mpg
> -rw-r--r-- 1 mythtv mythtv    0 Jul 13 04:21 1221_20130713082118.mpg
> -rw-r--r-- 1 mythtv mythtv    0 Jul 13 04:47 1221_20130713084707.mpg
> -rw-r--r-- 1 mythtv mythtv    0 Jul 13 05:00 1221_20130713090053.mpg
> -rw-r--r-- 1 mythtv mythtv    0 Jul 14 10:44 1221_20130714144455.mpg
> -rw-r--r-- 1 mythtv mythtv    0 Jul 14 11:00 1221_20130714150000.mpg
> -rw-r--r-- 1 mythtv mythtv    0 Jul 13 05:00 1223_20130713090000.mpg
>
> I've performed the following steps to troubleshoot:
>
> - removed apparmor, removed consolekit, disabled ipv6
> - as the mythtv user, cat /dev/video0>  /tmp/test.ts, and then confirmed that audio and video is captured, so the mythtv user has permission to access to the /dev/video0 device. (works)
> - as the mythtv user, attempt to cat /dev/video0>  /spool/livetv/test.ts to confirm write permissions to the mythbackend storage folder. (works)
> - run mythbackend as the root user and then attempt to watch live tv, which works.  files are created and appended properly, however, obviously perms are root:root.
> - if I modprobe the hdpvr module in debug mode, I can see that when mythbackend is running as root, it actually starts streaming data on request, but when mythbackend is running as mythtv, nothing appears to be requested.
>
> I'm not sure what else to check or where else to look, any pointers would be appreciated.

Start with the default-verbosity logs from mythbackend.

http://www.mythtv.org/wiki/Posting_Logs

Mike


More information about the mythtv-users mailing list