[mythtv-users] DVB-S2 scan fails (0.29)

UB40D ub40dd at googlemail.com
Sun Dec 24 11:31:34 UTC 2017


On 24 December 2017 at 10:53, UB40D <ub40dd at googlemail.com> wrote:

> The recording of Planes must have finished by now so I may just reboot the
> machine and see if it's any healthier. Anyway, as I was writing these
> further commentsthe menu did eventually pop up, and its options are
>
> record this
> recording options >
> programme details
> jump to time >
> reverse channel order
> channel search
>
> None of them seems to have very much to do with "watch this channel" so
> I'm not too sure where to go from here.
>

OK, so here' s the deal after the reboot.

1) I was greeted by the dreaded "Ubuntu has experienced an internal error",
which turned out to be a problem in Xorg who is not happy about the Nvidia
proprietary driver for the graphics card. If you know the "ubuntu internal
error" box you'll remember it's hard to copy and paste from it to a text
file for later reference, but the "JournalErrors" field says (I transcribe)

NVRM: your system is not currently configured to drive a VGA console on the
primary VGA device. The NVIDIA linux graphics driver requires the use of a
text mode VGA console. Use of other console drivers including but not
limited to vesafb may result in corruption and stability problems and is
not supported.

Anyway, a pain but not directly related to our other problems so let' s
move on.

2) I go into the frontend and in the same place as before (program guide,
bbc one hd, type m) and, amazingly, the pop up menu has now acquired a

 watch this channel

entry before all the others I had previously.
I select it and, guess what, I get a brief "please wait" and nothing
happens, i.e. I remain in the program guide without having been shown any
tv. This is consistent--I can do it 10 times in a row. And response is
instantaneous.

After that, going to the main menu and "watch tv" also gives a brief
"please wait" and then nothing happens (I remain in the main menu).

If I tail the /var/log/mythtv/mythbackend.log while I do that, I see that
on calling "watch tv"  from the main menu it says


Dec 24 11:24:12 sgrizzo mythbackend: mythbackend[2231]: I ProcessRequest
mainserver.cpp:1738 (HandleAnnounce) MainServer: MainServer::ANN Playback
Dec 24 11:24:12 sgrizzo mythbackend: mythbackend[2231]: I ProcessRequest
mainserver.cpp:1743 (HandleAnnounce) MainServer: adding: sgrizzo(18ac3c0)
as a client (events: 0)
Dec 24 11:24:12 sgrizzo mythbackend: mythbackend[2231]: I TVRecEvent
tv_rec.cpp:1088 (HandleStateChange) TVRec[2]: Changing from None to
WatchingLiveTV
Dec 24 11:24:12 sgrizzo mythbackend: mythbackend[2231]: I TVRecEvent
tv_rec.cpp:3704 (TuningFrequency) TVRec[2]: TuningFrequency
Dec 24 11:24:14 sgrizzo mythbackend: mythbackend[2231]: N CoreContext
autoexpire.cpp:251 (CalcParams) AutoExpire: CalcParams(): Max required Free
Space: 3.0 GB w/freq: 7 min
Dec 24 11:24:14 sgrizzo mythbackend: mythbackend[2231]: E TVRecEvent
threadedfilewriter.cpp:129 (Open)
TFW(/mnt/st5ka1/mythtv/livetv/9921_20171224112414.ts:-1): Opening file
'/mnt/st5ka1/mythtv/livetv/9921_20171224112414.ts'.#012#011#011#011eno:
Permission denied (13)
Dec 24 11:24:14 sgrizzo mythbackend: mythbackend[2231]: E TVRecEvent
tv_rec.cpp:4655 (GetProgramRingBufferForLiveTV) TVRec[2]: RingBuffer
'/mnt/st5ka1/mythtv/livetv/9921_20171224112414.ts' not open...
Dec 24 11:24:14 sgrizzo mythbackend: mythbackend[2231]: E TVRecEvent
tv_rec.cpp:4691 (CreateLiveTVRingBuffer) TVRec[2]:
CreateLiveTVRingBuffer(8921) failed
Dec 24 11:24:14 sgrizzo mythbackend: mythbackend[2231]: E TVRecEvent
tv_rec.cpp:3821 (TuningFrequency) TVRec[2]: Failed to create RingBuffer 1
Dec 24 11:24:14 sgrizzo mythbackend: mythbackend[2231]: I TVRecEvent
tv_rec.cpp:1088 (HandleStateChange) TVRec[2]: Changing from WatchingLiveTV
to None
Dec 24 11:24:14 sgrizzo mythbackend: mythbackend[2231]: I
MythSocketThread(9) mainserver.cpp:7643 (connectionClosed) Playback
sock(18ac3c0) 'sgrizzo' disconnected
Dec 24 11:24:15 sgrizzo mythbackend: mythbackend[2231]: I ProcessRequest
mainserver.cpp:1738 (HandleAnnounce) MainServer: MainServer::ANN Playback
Dec 24 11:24:15 sgrizzo mythbackend: mythbackend[2231]: I ProcessRequest
mainserver.cpp:1743 (HandleAnnounce) MainServer: adding: sgrizzo(18ac3c0)
as a client (events: 0)
Dec 24 11:24:15 sgrizzo mythbackend: mythbackend[2231]: I
MythSocketThread(9) mainserver.cpp:7643 (connectionClosed) Playback
sock(18ac3c0) 'sgrizzo' disconnected
Dec 24 11:24:15 sgrizzo mythbackend: mythbackend[2231]: I
MythSocketThread(124) mainserver.cpp:7681 (connectionClosed) FileTransfer
sock(1adf5e0) disconnected
Dec 24 11:24:21 sgrizzo mythbackend: mythbackend[2231]: N Expire
autoexpire.cpp:637 (SendDeleteMessages) Expiring 0 MB for 9921 at
2017-12-24T08:48:47Z => Unknown
Dec 24 11:24:24 sgrizzo mythbackend: mythbackend[2231]: E DeleteThread
mainserver.cpp:2659 (OpenAndUnlink) MainServer: Error deleting
'/mnt/st5ka1/mythtv/livetv/9921_20171224084847.ts' could not open
#012#011#011#011eno: Permission denied (13)
Dec 24 11:24:24 sgrizzo mythbackend: mythbackend[2231]: E DeleteThread
mainserver.cpp:2637 (DeleteFile) MainServer: Delete Error
'/mnt/st5ka1/mythtv/livetv/9921_20171224084847.ts'#012#011#011#011eno:
Permission denied (13)
Dec 24 11:24:24 sgrizzo mythbackend: mythbackend[2231]: E DeleteThread
mainserver.cpp:2407 (DoDeleteThread) MainServer: Error deleting file:
/mnt/st5ka1/mythtv/livetv/9921_20171224084847.ts. Keeping metadata in
database.



...where the line indicating trouble seems to me to be

Opening file
'/mnt/st5ka1/mythtv/livetv/9921_20171224112414.ts'.#012#011#011#011eno:
Permission denied (13)

Aha! Now we are onto something real rather than voodoo. A little
investigation shows a permissions problem...

tv at sgrizzo:~$ ls -l /mnt/st5ka1/mythtv/
total 48
drwxrwxr-x 2 tv tv      4096 Dec 24 08:54 banners
drwxrwxr-x 2 tv tv      4096 Dec 24 08:54 coverart
drwxrwxr-x 2 tv tv      4096 Dec 24 08:54 dbbackups
drwxrwxr-x 2 tv tv      4096 Dec 24 08:54 fanart
drwxrwxr-x 2 tv tv      4096 Dec 24 08:54 livetv
drwxrwxr-x 2 tv mythtv  4096 Dec 24 11:03 recordings
drwxrwxr-x 2 tv tv      4096 Dec 24 08:54 screenshots
drwxrwxr-x 2 tv tv      4096 Dec 24 08:54 streaming
drwxrwxr-x 2 tv tv      4096 Dec 24 08:54 trailers
drwxrwxr-x 2 tv tv     12288 Dec 24 08:54 videos

...which I attempt to cure with

tv at sgrizzo:~$ sudo chown -R tv:mythtv /mnt/st5ka1/mythtv/*
[sudo] password for tv:
tv at sgrizzo:~$ ls -l /mnt/st5ka1/mythtv/
total 48
drwxrwxr-x 2 tv mythtv  4096 Dec 24 08:54 banners
drwxrwxr-x 2 tv mythtv  4096 Dec 24 08:54 coverart
drwxrwxr-x 2 tv mythtv  4096 Dec 24 08:54 dbbackups
drwxrwxr-x 2 tv mythtv  4096 Dec 24 08:54 fanart
drwxrwxr-x 2 tv mythtv  4096 Dec 24 08:54 livetv
drwxrwxr-x 2 tv mythtv  4096 Dec 24 11:03 recordings
drwxrwxr-x 2 tv mythtv  4096 Dec 24 08:54 screenshots
drwxrwxr-x 2 tv mythtv  4096 Dec 24 08:54 streaming
drwxrwxr-x 2 tv mythtv  4096 Dec 24 08:54 trailers
drwxrwxr-x 2 tv mythtv 12288 Dec 24 08:54 videos

...after which, as if by magic, both "watch tv" from the main menu and
"watch this channel" from the m menu of the program guide work as expected
every time.

Success!
Thank you again for your patience and help.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mythtv.org/pipermail/mythtv-users/attachments/20171224/673930d8/attachment.html>


More information about the mythtv-users mailing list