[mythtv] Latest commits have broken UPNP database lookup

David Hampton mythtv at love2code.net
Tue Nov 14 01:16:14 UTC 2017

On Mon, 2017-11-13 at 14:50 -0500, Peter Bennett wrote:
> Hi David
> As of 648a40d521ae31ecf7d762eb34b0f03e4f9cfb3f it fails
> As of 708baf28f288cc693152d5cbfe8f6ecf7ff663bd it works
> correctly. All 
> commits between are yours.
> Frontend connecting to the database by using UPNP is broken. These
> are 
> the error messages from the frontend
> 2017-11-13 14:21:55.692451 I  Putting up the UPnP backend chooser
> 2017-11-13 14:22:02.020043 E  MythXMLClient::GetConnectionInfo Failed
> - 
> (501) Not Authorized
> 2017-11-13 14:22:02.020051 E  Access denied for andromeda: MythTV AV 
> Media Server. Wrong PIN?
> 2017-11-13 14:22:09.902742 E  MythXMLClient::GetConnectionInfo Failed
> - 
> Version Mismatch (,) != (91,1348)
> 2017-11-13 14:22:09.902751 E  GetConnectionInfo() failed for
> andromeda: 
> MythTV AV Media Server : Version Mismatch
> 2017-11-13 14:22:22.895200 E  MythXMLClient::GetConnectionInfo Failed
> - 
> Version Mismatch (,) != (91,1348)
> 2017-11-13 14:22:22.895214 E  GetConnectionInfo() failed for
> andromeda: 
> MythTV AV Media Server : Version Mismatch
> 2017-11-13 14:22:27.558620 E  Failed to init MythContext, exiting.
> This occurs on initial setup, and also on any subsequent connection
> if 
> the initial connection was via UPNP.
> To test it -
> Start backend, remove the frontend's config.xml and start frontend.
> You 
> need to have them running with different config.xml files (e.g. by 
> running under different user ids or overriding MYTHCONFDIR).
> Correct operation:
> If pin of 0000 was set in mythtv-setup the frontend will
> automatically 
> get the credentials from the backend via UPNP, and create the 
> config.xml. If another pin was used you will see the startup page.
> If 
> you select Search there and select the backend it will prompt for
> the 
> PIN and if you enter it correctly it will be connected.


I'm not seeing this behavior.  I created a new Fedora26 virtual machine
for isolation purposes.  On that system I downloaded and compiled the
master branch (at 648a40d5), and started mythbackend under my userid. 
I then created another user, started a shell as that other user, and
ran mythfrontend.  It seems to find the backend without any problem and
starts right up.  I must be doing something wrong, because after
setting a pin and deleting the ~/.mythtv directory for the frontend, 
the frontend will still connect without any problem and without asking
for a pin.  I see this same behavior when running either 708baf28
(which works for you) or 648a40d5 (which fails for you). 

I will keep playing with this and see if I can recreate the correct
behavior with 708baf28, and then the bad behavior of 648a40d5.

I have uploaded logs to pastebin.  If you could give them a quick look
and see if you can spot what I'm doing wrong, I would appreciate it.

Frontend 64 no pin https://pastebin.com/4iSByVn6
Backend  64 no pin https://pastebin.com/GdbGx5mB

Frontend 70 no pin https://pastebin.com/Q5ijVF6p
Backend  70 no pin https://pastebin.com/bQLd0hZB


More information about the mythtv-dev mailing list