<div dir="auto"><div><br><br><div class="gmail_quote"><div dir="ltr">On Wed, Oct 31, 2018, 7:13 AM Mark Perkins <<a href="mailto:perkins1724@hotmail.com">perkins1724@hotmail.com</a> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><u></u>




<div>
<div dir="auto">
<div dir="auto"><br>
</div>
<div dir="auto"><br>
</div>
<div id="m_2410896004595167207aqm-original" style="color:black">
<div text="#000000" bgcolor="#ffffff" class="m_2410896004595167207aqm-original-body">
<div style="color:black">
<p style="color:black;font-size:10pt;font-family:sans-serif;margin:8pt 0">
On 31 October 2018 9:18:46 pm Jim Abernathy <<a href="mailto:jfabernathy@gmail.com" target="_blank" rel="noreferrer">jfabernathy@gmail.com</a>> wrote:</p>
<blockquote type="cite" class="gmail_quote" style="margin:0 0 0 0.75ex;border-left:1px solid #808080;padding-left:0.75ex">
<p><br>
</p>
<div class="m_2410896004595167207moz-cite-prefix">On 10/31/18 12:27 AM, Mark Perkins wrote:<br>
</div>
<blockquote type="cite">
<div dir="auto">
<div dir="auto"><br>
</div>
<div dir="auto"><br>
</div>
<div style="color:black">
<div style="word-wrap:break-word;line-break:after-white-space" class="m_2410896004595167207aqm-original-body">
<div style="color:black">
<p style="color:black;font-size:10pt;font-family:sans-serif;margin:8pt 0">
On 31 October 2018 1:43:49 pm James Abernathy <a class="m_2410896004595167207moz-txt-link-rfc2396E" href="mailto:jfabernathy@gmail.com" target="_blank" rel="noreferrer">
<jfabernathy@gmail.com></a> wrote:</p>
<blockquote type="cite" class="gmail_quote" style="margin:0 0 0 0.75ex;border-left:1px solid #808080;padding-left:0.75ex">
I’m now having problems with mythtv-setup not connecting to the database.  I’m following the instructions I documented in the following blog:
<div><br>
</div>
<div><a href="https://mythtvinstall.blogspot.com/2018/10/creating-mythtv-v29-frontendbackend-on.html" target="_blank" rel="noreferrer">https://mythtvinstall.blogspot.com/2018/10/creating-mythtv-v29-frontendbackend-on.html</a></div>
<div><br>
</div>
<div>The first time I did this, no problems.  I complete started over again to verify things. Since I link /etc/mythtv/config.xml to $HOME/.mythtv/config.xml before I run mythtv-setup, I never had to look at the database password.</div>
<div><br>
</div>
<div>I ran mythtv-setup after setting up XMLTV json per the wiki as I’ve done before and documented.  I had no problems connecting then, but after I finished, I ran mythfilldatabase and it also bombed due to not connecting with the database.  I tried
 mythtv-setup again and this time it couldn’t connect.</div>
<div><br>
</div>
<div>It’s like I follow the same instructions, but it randomly fails.</div>
<div><br>
</div>
<div>when I run mythfilldatabase now I see this:</div>
<div><br>
</div>
<div>
<div style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;background-color:rgb(253,253,253)">
<span style="font-variant-ligatures:no-common-ligatures">2018-10-30 22:57:55.639274 I  Start up testing connections. DB 192.168.0.251, BE , attempt 0, status dbAwake</span></div>
<div style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;background-color:rgb(253,253,253)">
<span style="font-variant-ligatures:no-common-ligatures">2018-10-30 22:57:56.641275 I  Start up testing connections. DB 192.168.0.251, BE , attempt 1, status dbAwake</span></div>
<div style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;background-color:rgb(253,253,253)">
<span style="font-variant-ligatures:no-common-ligatures">2018-10-30 22:58:01.650478 I  Start up testing connections. DB 192.168.0.251, BE , attempt 2, status dbAwake</span></div>
<div style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;background-color:rgb(253,253,253)">
<span style="font-variant-ligatures:no-common-ligatures">2018-10-30 22:58:06.659712 I  Start up testing connections. DB 192.168.0.251, BE , attempt 3, status dbAwake</span></div>
<div style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;background-color:rgb(253,253,253)">
<span style="font-variant-ligatures:no-common-ligatures">2018-10-30 22:58:11.668891 I  Start up testing connections. DB 192.168.0.251, BE , attempt 4, status dbAwake</span></div>
</div>
<div><br>
</div>
<div>Jim A</div>
<div><br>
<div>
<div style="color:rgb(0,0,0);letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;word-wrap:break-word">
<br>
<br>
</div>
</div>
<br>
</div>
<div>_______________________________________________</div>
<div>mythtv-users mailing list</div>
<div><a class="m_2410896004595167207aqm-autolink m_2410896004595167207aqm-autowrap" href="mailto:mythtv-users%40mythtv.org" target="_blank" rel="noreferrer">mythtv-users@mythtv.org</a></div>
<div><a class="m_2410896004595167207aqm-autolink m_2410896004595167207aqm-autowrap" href="http://lists.mythtv.org/mailman/listinfo/mythtv-users" target="_blank" rel="noreferrer">http://lists.mythtv.org/mailman/listinfo/mythtv-users</a></div>
<div><a class="m_2410896004595167207aqm-autolink m_2410896004595167207aqm-autowrap" href="http://wiki.mythtv.org/Mailing_List_etiquette" target="_blank" rel="noreferrer">http://wiki.mythtv.org/Mailing_List_etiquette</a></div>
<div>MythTV Forums: <a class="m_2410896004595167207aqm-autolink m_2410896004595167207aqm-autowrap" href="https://forum.mythtv.org" target="_blank" rel="noreferrer">
https://forum.mythtv.org</a></div>
<div><br>
</div>
</blockquote>
</div>
</div>
</div>
<div dir="auto">I can't speak for Xubuntu, but vanilla install of mysql / mariadb sometimes only bind to localhost as it is default more secure. Have you checked for bind-address? Or:</div>
<div dir="auto">netstat -peanut | grep 3306</div>
</div>
<br>
</blockquote>
<p>Okay, problem solved, but it brings up questions about what should be changed when configuring the backend the first time. What I do and document is changing General-> Primary IP to 192.168.0.250, which is the IP address of the backend and LOCALHOST. I'm
 guessing that change now made it important to change the #bind-address=:: to bind-address=::</p>
<p>With that solved I ran the FE and it worked but had no guide data.  So I ran mythtv-setup which stopped the BE then I exited and it asked about running mythfilldatabase.  That failed due to me running mythtv-setup and thereby mythfilldatabase as 'jim'. 
 I had configured XMLTV as 'mythtv'.</p>
<p>So I ran mythfilldatabase as 'mythtv'. problem solved.</p>
<p>This brings up what should be done to make this work all the time.</p>
<p>1. Either leave General -> Primary IP as 127.0.0.1 or always do the bind-address=:: fix</p>
<p>2. When doing mythtv-setup as "jim" don't run mythfilldatabase as part of exiting. Then sudo su mythtv and then run mythfilldatabase</p>
<p>3. Or do I run the XMLTV setup stuff as "jim" and then link all the .xmltv stuff in /home/mythtv/.xmltv back to /home/jim/.xmltv</p>
<p>Thoughts?</p>
<p>Jim A<br>
<br>
</p>
<p><br>
</p>
<div>_______________________________________________</div>
<div>mythtv-users mailing list</div>
<div><a class="m_2410896004595167207aqm-autolink m_2410896004595167207aqm-autowrap" href="mailto:mythtv-users%40mythtv.org" target="_blank" rel="noreferrer">mythtv-users@mythtv.org</a></div>
<div><a class="m_2410896004595167207aqm-autolink m_2410896004595167207aqm-autowrap" href="http://lists.mythtv.org/mailman/listinfo/mythtv-users" target="_blank" rel="noreferrer">http://lists.mythtv.org/mailman/listinfo/mythtv-users</a></div>
<div><a class="m_2410896004595167207aqm-autolink m_2410896004595167207aqm-autowrap" href="http://wiki.mythtv.org/Mailing_List_etiquette" target="_blank" rel="noreferrer">http://wiki.mythtv.org/Mailing_List_etiquette</a></div>
<div>MythTV Forums: <a class="m_2410896004595167207aqm-autolink m_2410896004595167207aqm-autowrap" href="https://forum.mythtv.org" target="_blank" rel="noreferrer">
https://forum.mythtv.org</a></div>
<div><br>
</div>
</blockquote>
</div>
</div>
</div>
<div dir="auto">My 2 cents:</div>
<div dir="auto">- Always do bind-address fix. But I'm sure there are a lot of combined BE/FE with no remote FE who would disagree. But I just think do it now and save problems later. </div>
<div dir="auto">- always run mythtv-setup as the user who runs the backend. This shakes out a bunch of possible permission problems and environment problems sooner rather than later.  But IIRC mythbuntu is not set up this way. </div></div></div></blockquote></div></div><div dir="auto"><br></div><div dir="auto">I'm always behind a firewall and I always have remote FEs. So I'd lean toward always doing the bind-address fix and putting in the real IP address in General-> Primary IP as part of mythtv-setup.</div><div dir="auto"><br></div><div dir="auto">Which user is the question. If you have the Desktop installed you have menu items for both FE and BE setup. If you don't do xmltv, then it all works. Since xmltv requires user mythtv setup, that's when the problems occur. </div><div dir="auto"><br></div><div dir="auto">Mythbackend and mythfilldatabase run in background as user mythtv. So the only issue is running setup as 'jim' and choosing yes to the run mythfilldatabase question. </div><div dir="auto"><br></div><div dir="auto">I'm going to modify instructions to not use the menu for Backend Setup. Then do a lot of stuff as user 'mythtv'.</div><div dir="auto"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div dir="auto">
</div>
</div>

</blockquote></div></div></div>