[mythtvnz] New install setup - recording problem

Stephen Worthington stephen_agent at jsw.gen.nz
Thu Aug 11 03:34:11 BST 2016


On Thu, 11 Aug 2016 11:35:38 +1200, you wrote:

>
>
>I think I have found the problem.
>>
>> Working on the basis that because 12.04 still works and 16.04  
>> doesn't,where,in the procedure I use to switch from one to the >other,is  
>> it likely I am introducing the problem (ie A stupid mistake)
>> So when I switch the system drives I have to change the storage drive  
>> permissions because for some reason they do not stay the same >between  
>> the two system drives.
>>
>> I have been using the command: sudo chown -Rv myth:myth /var/lib/mythtv  
>> when it should be: chown -Rv mythtv:mythtv /var/lib/mythtv
>> I have been calling up the same erroneous command from bash history in  
>> 16.04.In 12.04 I didnot make the mistake in the command.
>>
>> I made this mistake possible by calling my mythbox "myth"
>>
>> D'oh!
>>
>> When I selected a channel to watch live from the guide, I get the  
>> following message in mythbackend log:
>>
>> Aug 6 10:50:00 myth mythbackend: mythbackend[4101]: I TVRecEvent  
>> tv_rec.cpp:1073 (HandleStateChange) TVRec[1]: Changing from None to  
>> >WatchingLiveTV
>> Aug 6 10:50:00 myth mythbackend: mythbackend[4101]: I TVRecEvent  
>> tv_rec.cpp:3685 (TuningFrequency) TVRec[1]: TuningFrequency
>> Aug 6 10:50:00 myth mythbackend: mythbackend[4101]: N CoreContext  
>> autoexpire.cpp:264 (CalcParams) AutoExpire: CalcParams(): Max >required  
>> Free Space: 3.0 GB w/freq: 14 min
>> Aug 6 10:50:00 myth mythbackend: mythbackend[4101]: E TVRecEvent  
>> threadedfilewriter.cpp:129 (Open)  
>> TFW(/var/lib/mythtv/>livetv/1003_20160805225000.ts:-1): Opening file  
>> '/var/lib/mythtv/livetv/1003_20160805225000.ts'.#012#011#011#011eno:  
>> Permission >denied (13)
>> Aug 6 10:50:00 myth mythbackend: mythbackend[4101]: E TVRecEvent  
>> tv_rec.cpp:4606 (GetProgramRingBufferForLiveTV) TVRec[1]: >RingBuffer  
>> '/var/lib/mythtv/livetv/1003_20160805225000.ts' not open...
>> Aug 6 10:50:00 myth mythbackend: mythbackend[4101]: E TVRecEvent  
>> tv_rec.cpp:4642 (CreateLiveTVRingBuffer) TVRec[1]:  
>> >CreateLiveTVRingBuffer(3) failed
>>
>
>I took a few days away from this thing.
>It seems I was wrong about the cause of the problem.I did make the mistake  
>described above but it was not the cause of the continuing problem with  
>the tuners.
>To recap, I can install the Card and HDHR tuners in backend setup ,scan  
>channels and populate the channel editor but I can't watch live TV or  
>record.The card works ok with MeTV.
>To simplify things I am only doing the internal HVR 2200 tuners.I haven't  
>installed the HDHR yet.I get the following message in backend log at boot:
>
>Aug 11 11:14:24 mythpc mythbackend: mythbackend[2549]: W CoreContext  
>recorders/dvbchannel.cpp:245 (Open)  
>DVBChan[1](/dev/dvb/adapter0/frontend0): Opening DVB frontend device  
>failed.#012#011#011#011eno: No such file or directory (2)
>Aug 11 11:14:24 mythpc mythbackend: mythbackend[2549]: E CoreContext  
>recorders/dvbchannel.cpp:250 (Open)  
>DVBChan[1](/dev/dvb/adapter0/frontend0): Failed to open DVB frontend  
>device due to fatal error or too many attempts.
>Aug 11 11:14:24 mythpc mythbackend: mythbackend[2549]: E CoreContext  
>recorders/channelbase.cpp:870 (CreateChannel) ChannelBase: CreateChannel()  
>Error: Failed to open device /dev/dvb/adapter0/frontend0
>Aug 11 11:14:24 mythpc mythbackend: mythbackend[2549]: E CoreContext  
>main_helpers.cpp:202 (setupTVs) Problem with capture cards. Card 1 failed  
>init
>Aug 11 11:14:24 mythpc mythbackend: mythbackend[2549]: W CoreContext  
>recorders/dvbchannel.cpp:245 (Open)  
>DVBChan[2](/dev/dvb/adapter0/frontend0): Opening DVB frontend device  
>failed.#012#011#011#011eno: No such file or directory (2)
>Aug 11 11:14:24 mythpc mythbackend: mythbackend[2549]: E CoreContext  
>recorders/dvbchannel.cpp:250 (Open)  
>DVBChan[2](/dev/dvb/adapter0/frontend0): Failed to open DVB frontend  
>device due to fatal error or too many attempts.
>Aug 11 11:14:24 mythpc mythbackend: mythbackend[2549]: E CoreContext  
>recorders/channelbase.cpp:870 (CreateChannel) ChannelBase: CreateChannel()  
>Error: Failed to open device /dev/dvb/adapter0/frontend0
>Aug 11 11:14:24 mythpc mythbackend: mythbackend[2549]: E CoreContext  
>main_helpers.cpp:202 (setupTVs) Problem with capture cards. Card 2 failed  
>init

Mythbackend seems to be saying it can not see
/dev/dvb/adapter0/frontend0.  But presumably mythtv-setup can see the
device, or it could not scan for channels.  Does
/dev/dvb/adapter0/frontend0 show up if you look for it with the ll or
ls commands?  What do these commands show:

ll /dev/dvb
ll /dev/dvb/adapter0
ll /dev/dvb/adapter1

What permissions does mythbackend have?  What does this command show:

ps -ef | grep myth

That should show how mythbackend is being run (in particular, as which
user).

There is also one obvious problem in that log snippet.  Both Card 1
and Card 2 are referencing adapter0/frontend0.  I do not know how the
HVR-2200 does its devices, but there should be either two completely
separate devices /dev/dvb/adapter0 and /dev/dvb/adapter1 or one device
with two frontends, /dev/dvb/adapter0/frontend0 and
/dev/dvb/adapter0/frontend1.  Both Card1 and Card2 should not be using
the same frontend device /dev/dvb/adapter0/frontend0.

Also, check that the firmware for the card is installed (see
https://www.linuxtv.org/wiki/index.php/Hauppauge_WinTV-HVR-2200). Does
it show up in the logs as being loaded?  There are some cards that
will do a channel scan but will not record without the firmware. But I
would have expected it to fail in Me-TV if that was the case.

How does Me-TV run?  Is it running when mythbackend tries to access
the devices?  If so, it could own the devices and not be allowing
mythbackend access.  Is there any other TV software installed that
could be using the devices?



More information about the mythtvnz mailing list