<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Aug 1, 2017 at 11:10 PM, Mark Perkins <span dir="ltr"><<a href="mailto:perkins1724@hotmail.com" target="_blank">perkins1724@hotmail.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>
<div style="color:black"><div><div class="gmail-h5">
<p style="margin:0px 0px 1em;color:black;font-family:sans-serif">On 2 August 2017 1:17:13 pm Ashu Desai <<a href="mailto:ashu.desai@gmail.com" target="_blank">ashu.desai@gmail.com</a>> wrote:</p>
</div></div><p style="margin:0px 0px 1em;color:black;font-family:sans-serif"></p><div><div class="gmail-h5">> On Tue, Aug 1, 2017 at 8:45 PM, Hika van den Hoven <<a href="mailto:hikavdh@gmail.com" target="_blank">hikavdh@gmail.com</a>><br>
> wrote:<br>
><br>
>> Did you check on mysql/mariadb responding to the external ip (check<br>
>> the wiki on how to do this.<br>
>><br>
>> The frontend/backend are on the same box - and there isn't any external<br>
> IP. i am testing everything all from home network.<br>
> Here's what I did find though:<br>
><br>
> ---------------<br>
> Aug  1 22:27:32 mythmaster systemd: Started MythTV backend service.<br>
> Aug  1 22:27:32 mythmaster systemd: Starting MythTV backend service...<br>
> Aug  1 22:27:32 mythmaster mythbackend: 2017-08-01 22:27:32.824647 C<br>
>  mythbackend version: fixes/0.28 [v28.0-35-g812ec08] <a href="http://www.mythtv.org" target="_blank">
www.mythtv.org</a><br>
> Aug  1 22:27:32 mythmaster mythbackend: 2017-08-01 22:27:32.824669 C  Qt<br>
> version: compile: 5.6.1, runtime: 5.6.1<br>
> Aug  1 22:27:32 mythmaster mythbackend: 2017-08-01 22:27:32.824671 N<br>
>  Enabled verbose msgs:  general<br>
> Aug  1 22:27:32 mythmaster mythbackend: 2017-08-01 22:27:32.824938 N<br>
>  Setting Log Level to LOG_INFO<br>
> Aug  1 22:27:32 mythmaster mythbackend: 2017-08-01 22:27:32.837289 I  Added<br>
> logging to the console<br>
> Aug  1 22:27:32 mythmaster mythbackend: 2017-08-01 22:27:32.838125 I  Setup<br>
> Interrupt handler<br>
> Aug  1 22:27:32 mythmaster mythbackend: 2017-08-01 22:27:32.838131 I  Setup<br>
> Terminated handler<br>
> Aug  1 22:27:32 mythmaster mythbackend: 2017-08-01 22:27:32.838136 I  Setup<br>
> Segmentation fault handler<br>
> Aug  1 22:27:32 mythmaster mythbackend: 2017-08-01 22:27:32.838138 I  Setup<br>
> Aborted handler<br>
> Aug  1 22:27:32 mythmaster mythbackend: 2017-08-01 22:27:32.838142 I  Setup<br>
> Bus error handler<br>
> Aug  1 22:27:32 mythmaster mythbackend: 2017-08-01 22:27:32.838150 I  Setup<br>
> Floating point exception handler<br>
> Aug  1 22:27:32 mythmaster mythbackend: 2017-08-01 22:27:32.838152 I  Setup<br>
> Illegal instruction handler<br>
> Aug  1 22:27:32 mythmaster mythbackend: 2017-08-01 22:27:32.838160 I  Setup<br>
> Real-time signal 0 handler<br>
> Aug  1 22:27:32 mythmaster mythbackend: 2017-08-01 22:27:32.838165 I  Setup<br>
> Hangup handler<br>
> Aug  1 22:27:32 mythmaster mythbackend: 2017-08-01 22:27:32.838198 N  Read<br>
> conf dir = /etc/mythtv<br>
> Aug  1 22:27:32 mythmaster mythbackend: 2017-08-01 22:27:32.838229 N  Using<br>
> runtime prefix = /usr<br>
> Aug  1 22:27:32 mythmaster mythbackend: 2017-08-01 22:27:32.838231 N  Using<br>
> configuration directory = /etc/mythtv<br>
> Aug  1 22:27:32 mythmaster mythbackend: 2017-08-01 22:27:32.838288 I<br>
>  Assumed character encoding: en_US.UTF-8<br>
> Aug  1 22:27:32 mythmaster mythbackend: 2017-08-01 22:27:32.838604 E  Error<br>
> parsing: /etc/mythtv/config.xml at line: 1  column: 1<br>
> Aug  1 22:27:32 mythmaster mythbackend: 2017-08-01 22:27:32.838607 E  Error<br>
> Msg: unexpected end of file<br>
> Aug  1 22:27:32 mythmaster mythbackend: 2017-08-01 22:27:32.838666 E<br>
>  DBHostName is not set in config.xml<br>
> Aug  1 22:27:32 mythmaster mythbackend: 2017-08-01 22:27:32.838674 E<br>
>  DBHostName is not set in config.xml<br>
> Aug  1 22:27:32 mythmaster mythbackend: 2017-08-01 22:27:32.838687 N  Empty<br>
> LocalHostName.<br>
> Aug  1 22:27:32 mythmaster mythbackend: 2017-08-01 22:27:32.838693 I  Using<br>
> localhost value of mythmaster.localdomain<br>
> Aug  1 22:27:32 mythmaster mythbackend: 2017-08-01 22:27:32.848276 N<br>
>  Setting QT default locale to en_US<br>
> Aug  1 22:27:32 mythmaster mythbackend: 2017-08-01 22:27:32.848287 I<br>
>  Current locale en_US<br>
> Aug  1 22:27:32 mythmaster mythbackend: 2017-08-01 22:27:32.848497 N<br>
>  Reading locale defaults from /usr/share/mythtv//locales/en_<wbr>us.xml<br>
> Aug  1 22:27:32 mythmaster mythbackend: 2017-08-01 22:27:32.852404 I<br>
>  Loading en_us translation for module mythfrontend<br>
> Aug  1 22:27:32 mythmaster mythbackend: 2017-08-01 22:27:32.858057 I<br>
>  Current MythTV Schema Version (DBSchemaVer): 1344<br>
> Aug  1 22:27:32 mythmaster mythbackend: 2017-08-01 22:27:32.858296 I<br>
>  Loading en_us translation for module mythfrontend<br>
> Aug  1 22:27:32 mythmaster mythbackend: 2017-08-01 22:27:32.860040 N<br>
>  MythBackend: Starting up as the master server.<br>
> Aug  1 22:27:32 mythmaster mythbackend: 2017-08-01 22:27:32.860795 W<br>
>  MythBackend: No valid capture cards are defined in the database.<br>
> Aug  1 22:27:32 mythmaster mythbackend: 2017-08-01 22:27:32.861100 E<br>
>  Scheduler: No capture cards are defined in the database.<br>
> Aug  1 22:27:32 mythmaster mythbackend: Perhaps you should re-read the<br>
> installation instructions?<br>
> Aug  1 22:27:32 mythmaster mythbackend: 2017-08-01 22:27:32.861186 E  Error<br>
> parsing: /etc/mythtv/config.xml at line: 1  column: 1<br>
> Aug  1 22:27:32 mythmaster mythbackend: 2017-08-01 22:27:32.861188 E  Error<br>
> Msg: unexpected end of file<br>
> Aug  1 22:27:32 mythmaster mythbackend: 2017-08-01 22:27:32.940295 I  Added<br>
> logging to /var/log/mythtv/mythbackend.<wbr>20170802032732.23638.log<br>
> Aug  1 22:27:32 mythmaster mythbackend: 2017-08-01 22:27:32.945104 I<br>
>  Removed logging to /var/log/mythtv/mythbackend.<wbr>20170802032732.23638.log<br>
> Aug  1 22:27:32 mythmaster systemd: mythbackend.service: main process<br>
> exited, code=exited, status=1/FAILURE<br>
> Aug  1 22:27:32 mythmaster systemd: Unit mythbackend.service entered failed<br>
> state.<br>
> Aug  1 22:27:32 mythmaster systemd: mythbackend.service failed.<br>
><br>
> --------------<br>
><br>
> I am running this as root - so i thought the dir should show /root/.mythtv/<br>
> Looking at the dir, there is no "config.xml" under /etc/mythtv<br>
><br>
> Maybe because I never ran this as anything but root?<br>
><br>
><br>
> [root@mythmaster ~]# ls -ahl /etc/mythtv/<br>
> total 32K<br>
> drwxr-xr-x.   6 mythtv mythtv 4.0K Aug  1 22:27 .<br>
> drwxr-xr-x. 140 root   root    12K Aug  1 22:23 ..<br>
> drwxr-xr-x.   2 mythtv mythtv 4.0K Aug  1 20:00 3rdParty<br>
> drwxr-xr-x.   2 mythtv mythtv 4.0K Aug  1 20:00 channels<br>
> -rw-r--r--.   1 mythtv mythtv    0 Aug  1 22:27 config.xml<br>
> drwxr-xr-x.   2 mythtv mythtv 4.0K Aug  1 20:00 themes<br>
> drwxr-xr-x.   3 mythtv mythtv 4.0K Aug  1 20:00 tmp<br>
><br>
> I looked into the config file - it was empty. So i created a link (ln -s)<br>
> from /root/.mythtv/config.xml to /etc/mythtv<br>
><br>
> That didn't work either.<br>
><br>
><br>
>> Also, try to bottom post, this to keep the thread readable for future<br>
>> readers. Check the etiquettes.<br>
>><br>
>><br>
> Apologies.<br>
><br>
>> ______________________________<wbr>_________________<br>
>> mythtv-users mailing list<br>
>> <a href="mailto:mythtv-users@mythtv.org" target="_blank">mythtv-users@mythtv.org</a><br>
>> <a href="http://lists.mythtv.org/mailman/listinfo/mythtv-users" target="_blank">http://lists.mythtv.org/<wbr>mailman/listinfo/mythtv-users</a><br>
>> <a href="http://wiki.mythtv.org/Mailing_List_etiquette" target="_blank">http://wiki.mythtv.org/<wbr>Mailing_List_etiquette</a><br>
>> MythTV Forums: <a href="https://forum.mythtv.org" target="_blank">https://forum.mythtv.org</a><br>
>><br>
><br>
><br>
><br></div></div>
> ----------<span class="gmail-"><br>
> ______________________________<wbr>_________________<br>
> mythtv-users mailing list<br>
> <a href="mailto:mythtv-users@mythtv.org" target="_blank">mythtv-users@mythtv.org</a><br>
> <a href="http://lists.mythtv.org/mailman/listinfo/mythtv-users" target="_blank">http://lists.mythtv.org/<wbr>mailman/listinfo/mythtv-users</a><br>
> <a href="http://wiki.mythtv.org/Mailing_List_etiquette" target="_blank">http://wiki.mythtv.org/<wbr>Mailing_List_etiquette</a><br>
> MythTV Forums: <a href="https://forum.mythtv.org" target="_blank">https://forum.mythtv.org</a><br>
></span><p></p>
<p style="margin:0px 0px 1em;color:black">Are you sure the BE is running as root? Are you using systemd? What is in your service file?</p>
</div>
</div>

</blockquote></div><br>Sorry - sent email to Mark by accident:
</div><div class="gmail_extra"><br></div><div class="gmail_extra"><div class="gmail_extra" style="font-size:12.8px">Systemd? Yes</div><div class="gmail_extra" style="font-size:12.8px"><div class="gmail_extra"><br></div><div><div>[root@mythmaster ~]# pstree -p | grep system</div><div>systemd(1)-+-ModemManager(578)<wbr>-+-{ModemManager}(604)</div><div>           |-systemd-journal(366)</div><div>           |-systemd-logind(584)</div><div>           |-systemd-udevd(397)</div></div><div><br></div></div><div class="gmail_extra" style="font-size:12.8px"><br></div><div class="gmail_extra" style="font-size:12.8px">Not sure how to find out if BE is running as root. If you mean under the mythbackend.service file - ( vi /usr/lib/systemd/system/<wbr>mythbackend.service) -- then I tried both here: </div><div class="gmail_extra" style="font-size:12.8px"><div class="gmail_extra"># systemd changes execution from the calling user (possibly root) to this user</div><div class="gmail_extra"># if you have permissions problems or obscure errors try logging in as mythtv</div><div class="gmail_extra">User=mythtv</div><div class="gmail_extra">#User=root</div><div><br></div><div>I had commented out "user=mythtv" and put root instead - but that didn't change anything.</div><div><br></div><div>What's in it - what was default i believe:</div><div><br></div><div><div>[Unit]</div><div>Description=MythTV backend service</div><div>After=network-online.target mariadb.service mysqld.service time-sync.target</div><div># Uncomment the following line if you will be using the mythweb plugin on the</div><div># same system as mythbackend.</div><div>#Wants=httpd.service</div></div><div><br></div><div><div>[Service]</div><div># Type=simple is recommended. If using Type=forking you will need to specify a</div><div># pidfile so systemd knows how to find the forked process PID, otherwise it</div><div># presumes that the process being started will be the remaining process.</div><div>#Type=forking</div><div>Type=simple</div></div><div>Environment=MYTHCONFDIR=/etc/<wbr>mythtv<br></div><div><br></div><div><div># systemd changes execution from the calling user (possibly root) to this user</div><div># if you have permissions problems or obscure errors try logging in as mythtv</div><div>User=mythtv</div><div>#User=root</div><div># Uncomment one of the following...</div><div># Use sysloging rather than separate logging:</div><div>#ExecStart=/usr/bin/<wbr>mythbackend --syslog local7</div><div># If Type=forking is set you must specify the --daemon and --pidfile options:</div><div>#ExecStart=/usr/bin/<wbr>mythbackend --daemon --logpath /var/log/mythtv --loglevel crit --pidfile /run/mythbackend.pid</div><div># Default setting for Type=simple.</div><div>ExecStart=/usr/bin/mythbackend --logpath /var/log/mythtv</div></div><div><br></div><div><div>[Install]</div><div>WantedBy=multi-user.target</div></div><div><br></div><div>--------------------------------</div><div><br></div><div>Also noticed that since the path is /etc/mythtv (not /root/.mythtv)</div><div>the permissions are:</div><div><span class="gmail-im" style="font-size:12.8px"><div class="gmail_extra">[root@mythmaster ~]# ls -ahl /etc/mythtv</div></span><div class="gmail_extra" style="font-size:12.8px">total 36K</div><div class="gmail_extra" style="font-size:12.8px">drwxr-xr-x.   6 mythtv mythtv 4.0K Aug  1 22:44 .</div><span class="gmail-im" style="font-size:12.8px"><div class="gmail_extra">drwxr-xr-x. 140 root   root    12K Aug  1 22:23 ..</div><div class="gmail_extra">drwxr-xr-x.   2 mythtv mythtv 4.0K Aug  1 20:00 3rdParty</div><div class="gmail_extra">drwxr-xr-x.   2 mythtv mythtv 4.0K Aug  1 20:00 channels</div></span><div class="gmail_extra" style="font-size:12.8px">-rw-r--r--.   1 mythtv mythtv  513 Aug  1 22:44 config.xml</div><div class="gmail_extra" style="font-size:12.8px">-rw-r--r--.   1 root   root      0 Aug  1 22:43 config.xml.old</div><span class="gmail-im" style="font-size:12.8px"><div class="gmail_extra">drwxr-xr-x.   2 mythtv mythtv 4.0K Aug  1 20:00 themes</div><div class="gmail_extra">drwxr-xr-x.   3 mythtv mythtv 4.0K Aug  1 20:00 tmp</div></span></div><div><br></div><div><br></div><div>Wondering if there is a need to change either the path or permissions?</div></div></div></div>