<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On 24 December 2017 at 10:53, UB40D <span dir="ltr"><<a href="mailto:ub40dd@googlemail.com" target="_blank">ub40dd@googlemail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><div>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</div><div><br></div><div>record this</div><div>recording options ></div><div>programme details</div><div>jump to time ></div><div>reverse channel order</div><div>channel search</div><div><br></div><div>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.</div></div></div></div></blockquote><div><br></div><div>OK, so here' s the deal after the reboot.</div><div><br></div><div>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)</div><div><br></div><div>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.</div><div><br></div><div>Anyway, a pain but not directly related to our other problems so let' s move on.</div><div><br></div><div>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 <br></div><div><br></div><div> watch this channel</div><div><br></div><div>entry before all the others I had previously.</div><div>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.</div><div><br></div><div>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).</div><div><br></div><div>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</div><div><br></div><div><br>Dec 24 11:24:12 sgrizzo mythbackend: mythbackend[2231]: I ProcessRequest mainserver.cpp:1738 (HandleAnnounce) MainServer: MainServer::ANN Playback<br>Dec 24 11:24:12 sgrizzo mythbackend: mythbackend[2231]: I ProcessRequest mainserver.cpp:1743 (HandleAnnounce) MainServer: adding: sgrizzo(18ac3c0) as a client (events: 0)<br>Dec 24 11:24:12 sgrizzo mythbackend: mythbackend[2231]: I TVRecEvent tv_rec.cpp:1088 (HandleStateChange) TVRec[2]: Changing from None to WatchingLiveTV<br>Dec 24 11:24:12 sgrizzo mythbackend: mythbackend[2231]: I TVRecEvent tv_rec.cpp:3704 (TuningFrequency) TVRec[2]: TuningFrequency<br>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<br>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)<br>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...<br>Dec 24 11:24:14 sgrizzo mythbackend: mythbackend[2231]: E TVRecEvent tv_rec.cpp:4691 (CreateLiveTVRingBuffer) TVRec[2]: CreateLiveTVRingBuffer(8921) failed<br>Dec 24 11:24:14 sgrizzo mythbackend: mythbackend[2231]: E TVRecEvent tv_rec.cpp:3821 (TuningFrequency) TVRec[2]: Failed to create RingBuffer 1<br>Dec 24 11:24:14 sgrizzo mythbackend: mythbackend[2231]: I TVRecEvent tv_rec.cpp:1088 (HandleStateChange) TVRec[2]: Changing from WatchingLiveTV to None<br>Dec 24 11:24:14 sgrizzo mythbackend: mythbackend[2231]: I MythSocketThread(9) mainserver.cpp:7643 (connectionClosed) Playback sock(18ac3c0) 'sgrizzo' disconnected<br>Dec 24 11:24:15 sgrizzo mythbackend: mythbackend[2231]: I ProcessRequest mainserver.cpp:1738 (HandleAnnounce) MainServer: MainServer::ANN Playback<br>Dec 24 11:24:15 sgrizzo mythbackend: mythbackend[2231]: I ProcessRequest mainserver.cpp:1743 (HandleAnnounce) MainServer: adding: sgrizzo(18ac3c0) as a client (events: 0)<br>Dec 24 11:24:15 sgrizzo mythbackend: mythbackend[2231]: I MythSocketThread(9) mainserver.cpp:7643 (connectionClosed) Playback sock(18ac3c0) 'sgrizzo' disconnected<br>Dec 24 11:24:15 sgrizzo mythbackend: mythbackend[2231]: I MythSocketThread(124) mainserver.cpp:7681 (connectionClosed) FileTransfer sock(1adf5e0) disconnected<br>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<br>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)<br>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)<br>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.<br><br><br></div><div><br></div><div>...where the line indicating trouble seems to me to be</div><div><br></div><div>Opening file '/mnt/st5ka1/mythtv/livetv/9921_20171224112414.ts'.#012#011#011#011eno: Permission denied (13)</div><div> <br></div></div>Aha! Now we are onto something real rather than voodoo. A little investigation shows a permissions problem...</div><div class="gmail_extra"><br></div><div class="gmail_extra">tv@sgrizzo:~$ ls -l /mnt/st5ka1/mythtv/<br>total 48<br>drwxrwxr-x 2 tv tv      4096 Dec 24 08:54 banners<br>drwxrwxr-x 2 tv tv      4096 Dec 24 08:54 coverart<br>drwxrwxr-x 2 tv tv      4096 Dec 24 08:54 dbbackups<br>drwxrwxr-x 2 tv tv      4096 Dec 24 08:54 fanart<br>drwxrwxr-x 2 tv tv      4096 Dec 24 08:54 livetv<br>drwxrwxr-x 2 tv mythtv  4096 Dec 24 11:03 recordings<br>drwxrwxr-x 2 tv tv      4096 Dec 24 08:54 screenshots<br>drwxrwxr-x 2 tv tv      4096 Dec 24 08:54 streaming<br>drwxrwxr-x 2 tv tv      4096 Dec 24 08:54 trailers<br>drwxrwxr-x 2 tv tv     12288 Dec 24 08:54 videos<br></div><div class="gmail_extra"><br></div><div class="gmail_extra">...which I attempt to cure with</div><div class="gmail_extra"><br></div><div class="gmail_extra">tv@sgrizzo:~$ sudo chown -R tv:mythtv /mnt/st5ka1/mythtv/*<br>[sudo] password for tv: <br>tv@sgrizzo:~$ ls -l /mnt/st5ka1/mythtv/<br>total 48<br>drwxrwxr-x 2 tv mythtv  4096 Dec 24 08:54 banners<br>drwxrwxr-x 2 tv mythtv  4096 Dec 24 08:54 coverart<br>drwxrwxr-x 2 tv mythtv  4096 Dec 24 08:54 dbbackups<br>drwxrwxr-x 2 tv mythtv  4096 Dec 24 08:54 fanart<br>drwxrwxr-x 2 tv mythtv  4096 Dec 24 08:54 livetv<br>drwxrwxr-x 2 tv mythtv  4096 Dec 24 11:03 recordings<br>drwxrwxr-x 2 tv mythtv  4096 Dec 24 08:54 screenshots<br>drwxrwxr-x 2 tv mythtv  4096 Dec 24 08:54 streaming<br>drwxrwxr-x 2 tv mythtv  4096 Dec 24 08:54 trailers<br>drwxrwxr-x 2 tv mythtv 12288 Dec 24 08:54 videos<br></div><div class="gmail_extra"><br></div><div class="gmail_extra">...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.</div><div class="gmail_extra"><br></div><div class="gmail_extra">Success!</div><div class="gmail_extra">Thank you again for your patience and help.<br></div></div>