<div dir="ltr"><div dir="ltr">On Wed, May 13, 2020 at 4:37 PM DryHeat122 . <<a href="mailto:dryheat122@gmail.com">dryheat122@gmail.com</a>> wrote:<br></div><div class="gmail_quote"><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 dir="ltr">On Wed, May 13, 2020 at 2:08 AM Stephen Worthington <<a href="mailto:stephen_agent@jsw.gen.nz" target="_blank">stephen_agent@jsw.gen.nz</a>> wrote:<br></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On Tue, 12 May 2020 20:22:59 -0700, you wrote:<br>
<br>
>When it rains it pours I guess. I was just posting about HDPVR problems a<br>
>few days ago. Now Myth can't tune any channels on my HDHomerun Duo.<br>
>Checked the troubleshooting section on the wiki, but it assumes the problem<br>
>is with the HDHR. I can tune channels just fine on a Windows machine on the<br>
>same network, so its not the HDHR. Any advice on how to troubleshoot?<br>
<br>
Does it work if you restart mythbackend? Are there any error messages<br>
in mythbackend.log? You can get additional logging about the<br>
recording process by adding -v record to the mythbackend command line:<br>
<br>
root@mypvr:/etc/mythtv# cat additional.args<br>
ADDITIONAL_ARGS=-v record<br>
<br>
Then restart mythbackend. Or from a command line, temporarily add the<br>
extra "record" logging while mythbackend is running:<br>
<br>
sudo mythbackend --setverbose record<br>
<br>
and turn it off again with:<br>
<br>
sudo mythbackend --setverbose norecord<br>
<br>
I am not sure if sudo is required above - all the second copy of<br>
mythbackend is doing is to open a connection to a port on the main<br>
mythbackend and send it the serverbose command. So it may not need<br>
any extra privileges.<br><br></blockquote><div>Thanks for the advice. I checked the logs before doing anything, and found (machine ID stuff stripped out for readability):</div><div><br></div>May 13 15:39:21 I ProcessRequest mainserver.cpp:1698 (HandleAnnounce) MainServer: MainServer::ANN Playback<br>May 13 15:39:21 I ProcessRequest mainserver.cpp:1703 (HandleAnnounce) MainServer: adding: steve-EP45-UD3P(1f26320) as a client (events: 0)<br>May 13 15:39:21 I TVRecEvent tv_rec.cpp:1073 (HandleStateChange) TVRec[2]: Changing from None to WatchingLiveTV<br>May 13 15:39:21 I TVRecEvent mythdbcon.cpp:422 (PurgeIdleConnections) New DB connection, total: 13<br>May 13 15:39:21 I TVRecEvent tv_rec.cpp:3685 (TuningFrequency) TVRec[2]: TuningFrequency<br>May 13 15:39:21 N CoreContext autoexpire.cpp:264 (CalcParams) AutoExpire: CalcParams(): Max required Free Space: 3.0 GB w/freq: 14 min<br>May 13 15:39:21 N TVRecEvent recordinginfo.cpp:687 (ApplyRecordRecGroupChange) ApplyRecordRecGroupChange: LiveTV to LiveTV (2)<br>May 13 15:39:25 W TVRecEvent tv_rec.cpp:4004 (TuningSignalCheck) TVRec[2]: TuningSignalCheck: taking more than 3000 ms to get a lock. marking this recording as 'Failing'.<br>May 13 15:39:25 W TVRecEvent tv_rec.cpp:4006 (TuningSignalCheck) TVRec[2]: See 'Tuning timeout' in mythtv-setup for this input<br>May 13 15:39:36 I TVRecEvent tv_rec.cpp:1073 (HandleStateChange) TVRec[2]: Changing from WatchingLiveTV to None<br><div>May 13 15:39:36 I MythSocketThread(74) mainserver.cpp:7629 (connectionClosed) Playback sock(1f26320) 'steve-EP45-UD3P' disconnected </div><div><br></div><div>I then rebooted and tried to tune one of the HDHR channels (3_1) from the program guide. Now it doesn't even try to tune and I get:</div><div><br></div><div>May 13 15:55:33 I ProcessRequest mainserver.cpp:1698 (HandleAnnounce) MainServer: MainServer::ANN Playback<br>May 13 15:55:33 I ProcessRequest mainserver.cpp:1703 (HandleAnnounce) MainServer: adding: steve-EP45-UD3P(13e54b0) as a client (events: 0)<br>May 13 15:55:33 I TVRecEvent tv_rec.cpp:1073 (HandleStateChange) TVRec[2]: Changing from None to WatchingLiveTV<br>May 13 15:55:33 I TVRecEvent tv_rec.cpp:3685 (TuningFrequency) TVRec[2]: TuningFrequency<br>May 13 15:55:33 E TVRecEvent dtvmultiplex.cpp:379 (ParseTuningParams) DTVMux: ParseTuningParams -- Unknown tuner type = 0xffffffff80000000<br>May 13 15:55:33 E TVRecEvent recorders/dtvchannel.cpp:299 (SetChannelByString) DTVChan[2](10668BF0-0): SetChannelByString(3_1): Failed to initialize multiplex options<br>May 13 15:55:33 E TVRecEvent tv_rec.cpp:3763 (TuningFrequency) TVRec[2]: Failed to set channel to 3_1. Reverting to kState_None<br>May 13 15:55:33 I TVRecEvent tv_rec.cpp:1073 (HandleStateChange) TVRec[2]: Changing from WatchingLiveTV to None<br>May 13 15:55:33 I MythSocketThread(67) mainserver.cpp:7629 (connectionClosed) Playback sock(13e54b0) 'steve-EP45-UD3P' disconnected<br></div><div><br></div><div>Hmm. That doesn't look good. I checked backend setup for tuners and nothing seems to be amiss. </div><div><br></div><div>I also tried to follow your instructions for configuring verbose logging but it didn't work:</div><div><br></div><div>steve@steve-EP45-UD3P:~$ cd /etc/mythtv<br>steve@steve-EP45-UD3P:/etc/mythtv$ ls<br>config.xml config.xml.orig session-settings<br>steve@steve-EP45-UD3P:/etc/mythtv$ cat additional.args<br>cat: additional.args: No such file or directory<br>steve@steve-EP45-UD3P:/etc/mythtv$ ADDITIONAL_ARGS=-v record<br>The program 'record' is currently not installed. You can install it by typing:<br>sudo apt install xawtv-tools<br>steve@steve-EP45-UD3P:/etc/mythtv$ cat additional.args<br>cat: additional.args: No such file or directory<br></div><div><br></div><div>Did you mean cat "ADDITIONAL_ARGS=-v record" > additional.args?</div><div><br></div></div></div></blockquote><div><br></div><div>I just started mythbackend with the -v record option and got:</div><div><br></div><div>2020-05-13 16:48:14.026697 I MainServer: MainServer::ANN Playback<br>2020-05-13 16:48:14.026707 I MainServer: adding: steve-EP45-UD3P(223c4b0) as a client (events: 0)<br>2020-05-13 16:48:14.033902 I TVRec[2]: Found channel (3_1) on current input(2).<br>2020-05-13 16:48:14.044957 I TVRec[2]: Changing from None to WatchingLiveTV<br>2020-05-13 16:48:14.044977 I TVRec[2]: ClearFlags(FrontendReady,CancelNextRecording,) -> RunMainLoop, @ tv_rec.cpp:1301<br>2020-05-13 16:48:14.044991 I TVRec[2]: HandleTuning Request: Program(NULL) channel() input() flags(LiveTV,)<br>2020-05-13 16:48:14.047755 I TVRec[2]: TuningShutdowns(Program(NULL) channel(3_1) input() flags(LiveTV,))<br>2020-05-13 16:48:14.048112 I TVRec[2]: ClearFlags(PENDINGACTIONS,) -> RunMainLoop, @ tv_rec.cpp:3663<br>2020-05-13 16:48:14.048122 I TVRec[2]: No recorder yet, calling TuningFrequency<br>2020-05-13 16:48:14.048129 I TVRec[2]: TuningFrequency<br>2020-05-13 16:48:14.050975 E DTVMux: ParseTuningParams -- Unknown tuner type = 0xffffffff80000000<br>2020-05-13 16:48:14.051000 E DTVChan[2](10668BF0-0): SetChannelByString(3_1): Failed to initialize multiplex options<br>2020-05-13 16:48:14.051010 E TVRec[2]: Failed to set channel to 3_1. Reverting to kState_None<br>2020-05-13 16:48:14.051028 I TVRec[2]: Changing from WatchingLiveTV to None<br>2020-05-13 16:48:14.051209 I TVRec[2]: ClearFlags(FrontendReady,CancelNextRecording,) -> RunMainLoop, @ tv_rec.cpp:1301<br>2020-05-13 16:48:14.051224 I TVRec[2]: HandleTuning Request: Program(NULL) channel() input() flags(KillRec,KillRingBuffer,)<br>2020-05-13 16:48:14.051236 I TVRec[2]: TuningShutdowns(Program(NULL) channel() input() flags(KillRec,KillRingBuffer,))<br>2020-05-13 16:48:14.051258 I TVRec[2]: ClearFlags(PENDINGACTIONS,) -> RunMainLoop, @ tv_rec.cpp:3663<br>2020-05-13 16:48:14.051291 I TVRec[2]: SetFlags(CancelNextRecording,) -> RunMainLoop,CancelNextRecording, @ tv_rec.cpp:2667<br>2020-05-13 16:48:14.051989 I Playback sock(223c4b0) 'steve-EP45-UD3P' disconnected<br>2020-05-13 16:48:32.395051 I BackendContext: Frontend 'steve-EP45-UD3P' disconnected.<br>2020-05-13 16:48:32.395070 I Playback sock(224ec00) 'steve-EP45-UD3P' disconnected<br>2020-05-13 16:48:32.395299 I Monitor sock(1fdca30) 'steve-EP45-UD3P' disconnected<br></div><div> </div></div></div>