[mythtv-users] mythtv-backend service stops

Roger Searle roger.searle at gmail.com
Mon Nov 17 19:14:36 UTC 2014


On 17/11/2014 6:43 a.m., Thomas Mashos wrote:
>
> Why would we suggest doing anything until we look at the
> /var/log/mythtv/mythtv-backend.log file? And why would we suggest
> running the backend as root, instead of the user that it is configured
> to run as which in this case is the mythtv user (which I suppose would
> help if it's a permission issue, but how do you know if it's a
> permission issue if you don't look at any logs)?
>
>
> Roger, what about this. You said that
>
> "The mysql service will NOT start if I have bind-address = static IP
> address, it will only start if set to 127.0.0.1."
>
> and also this
>
> "In mythtv-setup I have set the machine's static IP address for both
> the local backend and master backend."
>
> It would seem to me that the backend is attempting to connect to the
> the MySQL database at it's static IP address, but MySQL is only
> listening on localhost. I would suggest either looking at the mysql
> logs to see why it's not starting when set to listen on the static IP
> address (looking in /var/log/mysql/ or possibly
> /var/log/upstart/mysql*) or setting the backend to look for the DB on
> localhost rather than the static IP address (since it sounds like this
> is a single system setup, this would work fine in production)
>
Thanks for the help so far, making progress.  I have set localhost for 
the hostname in the FE database configuration, and in mythtv-setup the 
local backend and master backend are both set as 127.0.0.1.

At this point I can get the FE to connect to the BE however the only way 
I can start the BE is as the root user, it is not starting 
automatically.  If I start is as --user mythtv it will fail to run. 
Command line output for both is below - I note a couple of things about 
this when starting as "--user mythtv", the obvious thing being it 
complains about the BackendServerIP (it is set as mentioned above), "no 
address defined for host", where is this looking or where should this be 
set?  And the testing network connectivity to 192.168.1.100 is actually 
my own BE myth box, why is it testing against that?

# starting backend as mythtv user:

emmatodd at htpc:~$ sudo /usr/bin/mythbackend --syslog loval7 --user mythtv
[sudo] password for emmatodd:
2014-11-18 07:59:09.353070 C  mythbackend version: fixes/0.27 
[v0.27.4-16-g99688ed] www.mythtv.org
2014-11-18 07:59:09.353088 C  Qt version: compile: 4.8.6, runtime: 4.8.6
2014-11-18 07:59:09.353092 N  Enabled verbose msgs:  general
2014-11-18 07:59:09.353101 N  Setting Log Level to LOG_INFO
2014-11-18 07:59:09.364310 I  Added logging to the console
2014-11-18 07:59:09.365598 I  Setup Interrupt handler
2014-11-18 07:59:09.365622 I  Setup Terminated handler
2014-11-18 07:59:09.365643 I  Setup Segmentation fault handler
2014-11-18 07:59:09.365663 I  Setup Aborted handler
2014-11-18 07:59:09.365684 I  Setup Bus error handler
2014-11-18 07:59:09.365704 I  Setup Floating point exception handler
2014-11-18 07:59:09.365727 I  Setup Illegal instruction handler
2014-11-18 07:59:09.365750 I  Setup Real-time signal 0 handler
2014-11-18 07:59:09.365823 N  Using runtime prefix = /usr
2014-11-18 07:59:09.365849 N  Using configuration directory = 
/home/mythtv/.mythtv
2014-11-18 07:59:09.365980 I  Assumed character encoding: en_NZ.UTF-8
2014-11-18 07:59:09.366626 N  Empty LocalHostName.
2014-11-18 07:59:09.366645 I  Using localhost value of htpc
2014-11-18 07:59:09.366711 I  Testing network connectivity to 
'192.168.1.100'
2014-11-18 07:59:09.367409 I  Starting process signal handler
2014-11-18 07:59:09.367448 I  Starting IO manager (read)
2014-11-18 07:59:09.369939 I  Starting process manager
2014-11-18 07:59:09.370264 I  Starting IO manager (write)
2014-11-18 07:59:09.467740 I  New Client:  (#1)
No setting found for this machine's BackendServerIP.
Please run setup on this machine and modify the first page
of the general settings.
2014-11-18 07:59:09.542469 N  Setting QT default locale to en_NZ
2014-11-18 07:59:09.542521 I  Current locale en_NZ
2014-11-18 07:59:09.542553 E  No locale defaults file for en_NZ, skipping
2014-11-18 07:59:09.548878 I  Current MythTV Schema Version 
(DBSchemaVer): 1317
2014-11-18 07:59:09.550752 I  Loading en_us translation for module 
mythfrontend
2014-11-18 07:59:09.555812 I  Using protocol version 77
2014-11-18 07:59:09.564552 E  No address defined for host: htpc



# starting backend as root:

emmatodd at htpc:~$ sudo /usr/bin/mythbackend
2014-11-18 08:05:40.798163 C  mythbackend version: fixes/0.27 
[v0.27.4-16-g99688ed] www.mythtv.org
2014-11-18 08:05:40.798180 C  Qt version: compile: 4.8.6, runtime: 4.8.6
2014-11-18 08:05:40.798184 N  Enabled verbose msgs:  general
2014-11-18 08:05:40.798192 N  Setting Log Level to LOG_INFO
2014-11-18 08:05:40.809171 I  Added logging to the console
2014-11-18 08:05:40.809774 I  Setup Interrupt handler
2014-11-18 08:05:40.809784 I  Setup Terminated handler
2014-11-18 08:05:40.809792 I  Setup Segmentation fault handler
2014-11-18 08:05:40.809799 I  Setup Aborted handler
2014-11-18 08:05:40.809807 I  Setup Bus error handler
2014-11-18 08:05:40.809815 I  Setup Floating point exception handler
2014-11-18 08:05:40.809824 I  Setup Illegal instruction handler
2014-11-18 08:05:40.809833 I  Setup Real-time signal 0 handler
2014-11-18 08:05:40.809866 N  Using runtime prefix = /usr
2014-11-18 08:05:40.809876 N  Using configuration directory = 
/home/emmatodd/.mythtv
2014-11-18 08:05:40.809933 I  Assumed character encoding: en_NZ.UTF-8
2014-11-18 08:05:40.810221 N  Empty LocalHostName.
2014-11-18 08:05:40.810229 I  Using localhost value of htpc
2014-11-18 08:05:40.826136 N  Setting QT default locale to EN_US
2014-11-18 08:05:40.826191 I  Current locale EN_US
2014-11-18 08:05:40.826225 N  Reading locale defaults from 
/usr/share/mythtv//locales/en_us.xml
2014-11-18 08:05:40.833670 I  Current MythTV Schema Version 
(DBSchemaVer): 1317
2014-11-18 08:05:40.833983 I  Loading en_us translation for module 
mythfrontend
2014-11-18 08:05:40.835330 N  MythBackend: Starting up as the master server.
2014-11-18 08:05:40.911425 I  New Client:  (#1)
2014-11-18 08:05:41.247191 E  HDHRSH(11111985-0): Unable to connect to 
device
2014-11-18 08:05:41.255373 E  DTVMux: ParseTuningParams -- Unknown tuner 
type = 0xffffffff80000000
2014-11-18 08:05:41.255430 E  DTVChan[1](11111985-0): 
SetChannelByString(1): Failed to initialize multiplex options
2014-11-18 08:05:41.667429 E  HDHRSH(11111985-0): Get request failed
                         eno: Resource temporarily unavailable (11)
2014-11-18 08:05:42.076436 E  HDHRSH(11111985-0): Set request failed
                         eno: Resource temporarily unavailable (11)
2014-11-18 08:05:42.107997 E  DTVMux: ParseTuningParams -- Unknown tuner 
type = 0xffffffff80000000
2014-11-18 08:05:42.108018 E  DTVChan[2](11111985-0): 
SetChannelByString(1): Failed to initialize multiplex options
2014-11-18 08:05:42.517198 E  HDHRSH(11111985-0): Get request failed
                         eno: Resource temporarily unavailable (11)
2014-11-18 08:05:42.926246 E  HDHRSH(11111985-0): Set request failed
                         eno: Resource temporarily unavailable (11)
2014-11-18 08:05:43.337841 E  HDHRSH(11111985-1): Unable to connect to 
device
2014-11-18 08:05:43.343665 E  DTVMux: ParseTuningParams -- Unknown tuner 
type = 0xffffffff80000000
2014-11-18 08:05:43.343713 E  DTVChan[3](11111985-1): 
SetChannelByString(1): Failed to initialize multiplex options
2014-11-18 08:05:43.756656 E  HDHRSH(11111985-1): Get request failed
                         eno: Resource temporarily unavailable (11)
2014-11-18 08:05:44.168664 E  HDHRSH(11111985-1): Set request failed
                         eno: Resource temporarily unavailable (11)
2014-11-18 08:05:44.185642 E  DTVMux: ParseTuningParams -- Unknown tuner 
type = 0xffffffff80000000
2014-11-18 08:05:44.185702 E  DTVChan[4](11111985-1): 
SetChannelByString(1): Failed to initialize multiplex options
2014-11-18 08:05:44.598526 E  HDHRSH(11111985-1): Get request failed
                         eno: Resource temporarily unavailable (11)
2014-11-18 08:05:45.010196 E  HDHRSH(11111985-1): Set request failed
                         eno: Resource temporarily unavailable (11)
2014-11-18 08:05:45.013522 I  Found 1 distinct programid authorities
2014-11-18 08:05:45.013809 I  New static DB connectionSchedCon
2014-11-18 08:05:45.014018 I  Registering HouseKeeperTask 'LogClean'.
2014-11-18 08:05:45.014106 I  Registering HouseKeeperTask 'DBCleanup'.
2014-11-18 08:05:45.014156 I  Registering HouseKeeperTask 
'ThemeUpdateNotifications'.
2014-11-18 08:05:45.014211 I  Registering HouseKeeperTask 
'RecordedArtworkUpdate'.
2014-11-18 08:05:45.016753 I  Registering HouseKeeperTask 'MythFillDB'.
2014-11-18 08:05:45.016803 I  Registering HouseKeeperTask 'JobQueueRecover'.
2014-11-18 08:05:45.016831 I  Registering HouseKeeperTask 
'HardwareProfiler'.
2014-11-18 08:05:45.019261 I  Starting HouseKeeper.
2014-11-18 08:05:45.022880 I  Listening on TCP 127.0.0.1:6544
2014-11-18 08:05:45.026040 I  Listening on TCP [::1]:6544
2014-11-18 08:05:45.026133 I  Listening on TCP 
[fe80::ca60:ff:fe70:1ad5%eth0]:6544
2014-11-18 08:05:45.027851 N  MediaServer:: Loopback address specified - 
127.0.0.1. Disabling UPnP
2014-11-18 08:05:45.027859 I  Main::Registering HttpStatus Extension
2014-11-18 08:05:45.029080 I  Listening on TCP 127.0.0.1:6543
2014-11-18 08:05:45.031942 I  Listening on TCP [::1]:6543
2014-11-18 08:05:45.032044 I  Listening on TCP 
[fe80::ca60:ff:fe70:1ad5%eth0]:6543
2014-11-18 08:05:45.033774 N  AutoExpire: CalcParams(): Max required 
Free Space: 1.0 GB w/freq: 15 min
2014-11-18 08:05:48.021755 I  Reschedule requested for MATCH 0 0 0 - 
SchedulerInit
2014-11-18 08:05:48.128768 I  Scheduled 11 items in 0.1 = 0.02 match + 
0.05 check + 0.03 place
2014-11-18 08:05:48.131424 I  Scheduler: Seem to be woken up by USER


Regards
Roger



More information about the mythtv-users mailing list