[mythtv-users] Help! MythTV Backend not starting

Stephen Worthington stephen_agent at jsw.gen.nz
Sat Dec 31 16:16:15 UTC 2016


On Sat, 31 Dec 2016 08:02:17 -0700, you wrote:

>
>I have set up and got working a standalone mythtv box.  In the process  
>of trying to open up the access to the database for a second remote  
>frontend, I have broken the primary backend and don't know how.
>
>The mysql database is running:
>
>? mysql.service - MySQL Community Server
>     Loaded: loaded (/lib/systemd/system/mysql.service; enabled;  
>vendor preset: enabled)
>     Active: active (running) since Fri 2016-12-30 17:32:35 EST; 16h ago
>    Process: 2531 ExecStartPost=/usr/share/mysql/mysql-systemd-start  
>post (code=exited, status=0/SUCCESS)
>    Process: 2527 ExecStartPre=/usr/share/mysql/mysql-systemd-start  
>pre (code=exited, status=0/SUCCESS)
>   Main PID: 2530 (mysqld)
>     CGroup: /system.slice/mysql.service
>             ??2530 /usr/sbin/mysqld
>
>Dec 30 17:32:34 MythBuntu-Server systemd[1]: Starting MySQL Community  
>Server...
>Dec 30 17:32:35 MythBuntu-Server systemd[1]: Started MySQL Community Server.
>
>The mythTV backend, however, is not
>? mythtv-backend.service - MythTV Backend
>     Loaded: loaded (/lib/systemd/system/mythtv-backend.service;  
>enabled; vendor preset: enabled)
>     Active: inactive (dead) (Result: exit-code) since Sat 2016-12-31  
>09:40:24 EST; 14s ago
>       Docs: https://www.mythtv.org/wiki/Mythbackend
>    Process: 9026 ExecStart=/usr/bin/mythbackend --quiet --syslog  
>local7 $ADDITIONAL_ARGS (code=exited, status=130)
>   Main PID: 9026 (code=exited, status=130)
>
>Dec 31 09:40:23 MythBuntu-Server systemd[1]: mythtv-backend.service:  
>Unit entered failed state.
>Dec 31 09:40:23 MythBuntu-Server systemd[1]: mythtv-backend.service:  
>Failed with result 'exit-code'.
>Dec 31 09:40:24 MythBuntu-Server systemd[1]: mythtv-backend.service:  
>Service hold-off time over, scheduling restart.
>Dec 31 09:40:24 MythBuntu-Server systemd[1]: Stopped MythTV Backend.
>Dec 31 09:40:24 MythBuntu-Server systemd[1]: mythtv-backend.service:  
>Start request repeated too quickly.
>Dec 31 09:40:24 MythBuntu-Server systemd[1]: Failed to start MythTV Backend.
>
>The database server settings are
>Hostname 127.0.0.1
>Port 3306
>Database name mythconverg
>User mythtv
>
>I've tried disabling and enabling mysql service on ethernet interfaces  
>from mythbuntu control center, but neither option resolves my problem.
>
>Here are the results of journalctl -xe
>
>-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
>-- 
>-- Unit systemd-hostnamed.service has finished starting up.
>-- 
>-- The start-up result is done.
>Dec 31 09:56:02 MythBuntu-Server sudo[2945]:     jeff : TTY=pts/0 ;  
>PWD=/home/jeff ; USER=root ; COMMAND=/etc/init.d/mythtv-backend restart
>Dec 31 09:56:02 MythBuntu-Server sudo[2945]: pam_unix(sudo:session):  
>session opened for user root by jeff(uid=0)
>Dec 31 09:56:02 MythBuntu-Server systemd[1]: Stopped MythTV Backend.
>-- Subject: Unit mythtv-backend.service has finished shutting down
>-- Defined-By: systemd
>-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
>-- 
>-- Unit mythtv-backend.service has finished shutting down.
>Dec 31 09:56:02 MythBuntu-Server systemd[1]: mythtv-backend.service:  
>Start request repeated too quickly.
>Dec 31 09:56:02 MythBuntu-Server systemd[1]: Failed to start MythTV Backend.
>-- Subject: Unit mythtv-backend.service has failed
>-- Defined-By: systemd
>-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
>-- 
>-- Unit mythtv-backend.service has failed.

The first thing to do is to check the mysql log files to see if there
is an error message about the changes you have been doing to its
configuration.  Then run this command to see where mysql is listening:

netstat -pl | grep mysqld

If all seems well there, then you need to look in mythbackend.log to
see what error message is showing up there.

Are you only having this problem when you boot?  Does it work properly
if you manually restart mythbackend after booting is complete?  If so,
then you need to do the systemd fixes for getting mythbackend to start
up properly when using external networking.  See here:

http://mythtvinstall.blogspot.com/2016/12/how-to-install-mythbuntu-16041.html

or here:

https://www.mythtv.org/wiki/Install_Mythbuntu_16.04.01


More information about the mythtv-users mailing list