<div class="gmail_quote">On Sat, May 8, 2010 at 12:14 PM, Nick Morrott <span dir="ltr">&lt;<a href="mailto:knowledgejunkie@gmail.com">knowledgejunkie@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div><div></div><div class="h5">On 8 May 2010 18:03, Andrew &lt;<a href="mailto:mythtv@heathsworld.com">mythtv@heathsworld.com</a>&gt; wrote:<br>
&gt; On Sat, May 8, 2010 at 10:11 AM, Andrew &lt;<a href="mailto:mythtv@heathsworld.com">mythtv@heathsworld.com</a>&gt; wrote:<br>
&gt;&gt;<br>
&gt;&gt; I just upgraded to JYA .23 and now when I start mythfront is tells me it<br>
&gt;&gt; cannot connect to the database.  What I found is the backend is showing the<br>
&gt;&gt; error below (BE and FE on same machine).  As it turns out, when the system<br>
&gt;&gt; tries to start the back end it gets permission denied when trying to access<br>
&gt;&gt; the database.  Yet if i start it as a user or root using &quot;mythbackend&quot;<br>
&gt;&gt; command it connects just fine.  Did the configuration file location get<br>
&gt;&gt; changed or something?  Obviously /.myth doesn&#39;t exist and show below.<br>
&gt;&gt;<br>
&gt;&gt; Would you like to configure the database connection now? [no]<br>
&gt;&gt; [console is not interactive, using default &#39;no&#39;]<br>
&gt;&gt; 2010-05-08 10:04:39.354 Deleting UPnP client...<br>
&gt;&gt; 2010-05-08 10:04:39.942 Failed to init MythContext, exiting.<br>
&gt;&gt; 2010-05-08 10:04:40.032 mythbackend version: branches/release-0-23-fixes<br>
&gt;&gt; [24473] <a href="http://www.mythtv.org" target="_blank">www.mythtv.org</a><br>
&gt;&gt; 2010-05-08 10:04:40.032 Using runtime prefix = /usr<br>
&gt;&gt; 2010-05-08 10:04:40.032 Using configuration directory = /.mythtv<br>
&gt;&gt; 2010-05-08 10:04:40.033 Unable to read configuration file mysql.txt<br>
&gt;&gt; 2010-05-08 10:04:40.033 Empty LocalHostName.<br>
&gt;&gt; 2010-05-08 10:04:40.033 Using localhost value of myth<br>
&gt;&gt; 2010-05-08 10:04:40.037 New DB connection, total: 1<br>
&gt;&gt; 2010-05-08 10:04:40.042 Unable to connect to database!<br>
&gt;&gt; 2010-05-08 10:04:40.043 Driver error was [1/1045]:<br>
&gt;&gt; QMYSQL: Unable to connect<br>
&gt;&gt; Database error was:<br>
&gt;&gt; Access denied for user &#39;mythtv&#39;@&#39;localhost&#39; (using password: YES)<br>
&gt;&gt;<br>
&gt;&gt; To summarize, only using the upscript to start the backend fails.  Any<br>
&gt;&gt; starting with the mythbackend command from the terminal and it works fine.<br>
&gt;&gt;<br>
&gt;<br>
&gt; Oddly enough, ps -aux shows the upscript running as root.<br>
&gt;<br>
&gt; root     18020  0.5  0.6 287324 39032 ?        D    11:45   0:00<br>
&gt; /usr/bin/mythbackend --logfile /var/log/mythtv/mythbackend.log<br>
&gt;<br>
&gt; but it cannot access the database.  Why would running it directly from a<br>
&gt; root terminal work, but the upstart script running as root not work?  What<br>
&gt; happened with .23 that may have changed this and what did it change?<br>
<br>
</div></div>It&#39;s likely that $HOME is not defined in the upstart script, so it is<br>
looking in /.mythtv/ instead of /root/.mythtv/ (or wherever your<br>
config is stored). This issue has similarly reared its head frequently<br>
when using the older init scripts.<br>
<br>
Nick<br>
<br>
--<br>
Nick Morrott<br></blockquote><div><br>Looks like ubuntu has committed to upstart and it&#39;s now broken with mythtv.  Using the new upstart method breaks.  I can&#39;t seem to find a fix yet.<br><br>$ start mythtv-backend<br>
start: Rejected send message, 1 matched rules; type=&quot;method_call&quot;, sender=&quot;:1.93&quot; (uid=1000 pid=21758 comm=&quot;start) interface=&quot;com.ubuntu.Upstart0_6.Job&quot; member=&quot;Start&quot; error name=&quot;(unset)&quot; requested_reply=0 destination=&quot;com.ubuntu.Upstart&quot; (uid=0 pid=1 comm=&quot;/sbin/init&quot;))<br>
 </div></div>