TV viewing is not working

Have a MythTV related problem? Ask for help from other MythTV users here.

Moderator: Forum Moderators

gcook12
Junior
Posts: 89
Joined: Sun Nov 06, 2016 1:35 am
United States of America

Re: TV viewing is not working

Post by gcook12 » Thu Nov 24, 2016 1:45 am

Part of the output got cut off. This is the full printout

● mythtv-backend.service - MythTV Backend
Loaded: loaded (/lib/systemd/system/mythtv-backend.service; enabled; vendor preset: enabled)
Active: inactive (dead) (Result: exit-code) since Tue 2016-11-22 23:31:57 CST; 20h ago
Docs: https://www.mythtv.org/wiki/Mythbackend
Process: 2087 ExecStart=/usr/bin/mythbackend --quiet --syslog local7 $ADDITIONAL_ARGS (code=exited, status=138)
Main PID: 2087 (code=exited, status=138)

Nov 22 23:31:56 gcook12-Aspire-5253 systemd[1]: mythtv-backend.service: Main process exited, code=exited, status=138/n/a
Nov 22 23:31:56 gcook12-Aspire-5253 systemd[1]: mythtv-backend.service: Unit entered failed state.
Nov 22 23:31:56 gcook12-Aspire-5253 systemd[1]: mythtv-backend.service: Failed with result 'exit-code'.
Nov 22 23:31:57 gcook12-Aspire-5253 systemd[1]: mythtv-backend.service: Service hold-off time over, scheduling restart.
Nov 22 23:31:57 gcook12-Aspire-5253 systemd[1]: Stopped MythTV Backend.
Nov 22 23:31:57 gcook12-Aspire-5253 systemd[1]: mythtv-backend.service: Start request repeated too quickly.
Nov 22 23:31:57 gcook12-Aspire-5253 systemd[1]: Failed to start MythTV Backend.
~

daraden
Senior
Posts: 169
Joined: Tue Feb 23, 2016 7:33 am
United States of America

Re: TV viewing is not working

Post by daraden » Thu Nov 24, 2016 1:54 am

in backend setup>general set both ip's to 127.0.0.1 and restart. then try the command again.

gcook12
Junior
Posts: 89
Joined: Sun Nov 06, 2016 1:35 am
United States of America

Re: TV viewing is not working

Post by gcook12 » Thu Nov 24, 2016 2:45 am

I checked both IP addresses and they were both 127.0.0.1

gcook12
Junior
Posts: 89
Joined: Sun Nov 06, 2016 1:35 am
United States of America

Re: TV viewing is not working

Post by gcook12 » Thu Nov 24, 2016 2:48 am

I appreciate your help on this and I am sorry that it is taking so long

daraden
Senior
Posts: 169
Joined: Tue Feb 23, 2016 7:33 am
United States of America

Re: TV viewing is not working

Post by daraden » Thu Nov 24, 2016 3:18 am

check to make sure the database service is running

Code: Select all

systemctl status mysql.service
should say active (running)

need to have a look at backend service configuration

Code: Select all

sudo cat /lib/systemd/system/mythtv-backend.service
and what interface the database is listening on

Code: Select all

sudo cat /etc/mysql/mysql.conf.d/mysqld.cnf |grep bind-address

gcook12
Junior
Posts: 89
Joined: Sun Nov 06, 2016 1:35 am
United States of America

Re: TV viewing is not working

Post by gcook12 » Thu Nov 24, 2016 2:23 pm

I will do these one at a time. Looks like the first one is working.

● mysql.service - MySQL Community Server
Loaded: loaded (/lib/systemd/system/mysql.service; enabled; vendor preset: enabled)
Active: active (running) since Tue 2016-11-22 23:31:15 CST; 1 day 8h ago
Process: 874 ExecStartPost=/usr/share/mysql/mysql-systemd-start post (code=exited, status=0/SUCCESS)
Process: 852 ExecStartPre=/usr/share/mysql/mysql-systemd-start pre (code=exited, status=0/SUCCESS)
Main PID: 873 (mysqld)
CGroup: /system.slice/mysql.service
└─873 /usr/sbin/mysqld

Nov 22 23:30:58 gcook12-Aspire-5253 systemd[1]: Starting MySQL Community Server...
Nov 22 23:31:15 gcook12-Aspire-5253 systemd[1]: Started MySQL Community Server.

gcook12
Junior
Posts: 89
Joined: Sun Nov 06, 2016 1:35 am
United States of America

Re: TV viewing is not working

Post by gcook12 » Thu Nov 24, 2016 2:27 pm

gcook12@gcook12-Aspire-5253:~$ sudo cat /lib/systemd/system/mythtv-backend.service
[sudo] password for gcook12:
[Unit]
Description=MythTV Backend
Documentation=https://www.mythtv.org/wiki/Mythbackend
After=mysql.service network.target

[Service]
User=mythtv
EnvironmentFile=-/etc/mythtv/additional.args
ExecStart=/usr/bin/mythbackend --quiet --syslog local7 $ADDITIONAL_ARGS
StartLimitBurst=10
StartLimitInterval=10m
Restart=on-failure
RestartSec=1

[Install]
WantedBy=multi-user.target
gcook12@gcook12-Aspire-5253:~$

gcook12
Junior
Posts: 89
Joined: Sun Nov 06, 2016 1:35 am
United States of America

Re: TV viewing is not working

Post by gcook12 » Thu Nov 24, 2016 2:33 pm

gcook12@gcook12-Aspire-5253:~$ sudo cat /etc/mysql.conf.d/mysqld.cnf |grep bind-address
[sudo] password for gcook12:
cat: /etc/mysql.conf.d/mysqld.cnf: No such file or directory

daraden
Senior
Posts: 169
Joined: Tue Feb 23, 2016 7:33 am
United States of America

Re: TV viewing is not working

Post by daraden » Thu Nov 24, 2016 3:48 pm

first one is good.
second

Code: Select all

sudo nano /lib/systemd/system/mythtv-backend.service
change After=mysql.service network.target to After=mysql.service network-online.target
third you missed the mysql/ between /etc/ and mysql.conf.d/

gcook12
Junior
Posts: 89
Joined: Sun Nov 06, 2016 1:35 am
United States of America

Re: TV viewing is not working

Post by gcook12 » Thu Nov 24, 2016 4:30 pm

Sorry to be so helpless but how do I do the two things you are recommending?

daraden
Senior
Posts: 169
Joined: Tue Feb 23, 2016 7:33 am
United States of America

Re: TV viewing is not working

Post by daraden » Thu Nov 24, 2016 5:23 pm

in a terminal

Code: Select all

    sudo nano /lib/systemd/system/mythtv-backend.service
nano is just a terminal based text editor, use the arrow keys to move the cursor .find the line After=mysql.service network.target edit or replace it with After=mysql.service network-online.target when done press ctrl + x to exit when prompted press y to save then enter.

you used sudo cat /etc/mysql.conf.d/mysqld.cnf |grep bind-address
you need sudo cat /etc/mysql/mysql.conf.d/mysqld.cnf |grep bind-address

gcook12
Junior
Posts: 89
Joined: Sun Nov 06, 2016 1:35 am
United States of America

Re: TV viewing is not working

Post by gcook12 » Thu Nov 24, 2016 5:40 pm

Sorry about that, here is it

gcook12@gcook12-Aspire-5253:~$ sudo cat /etc/mysql/mysql.conf.d/mysqld.cnf |grep bind-address
[sudo] password for gcook12:
bind-address = 127.0.0.1
gcook12@gcook12-Aspire-5253:~$

daraden
Senior
Posts: 169
Joined: Tue Feb 23, 2016 7:33 am
United States of America

Re: TV viewing is not working

Post by daraden » Thu Nov 24, 2016 9:05 pm

if you have edited /lib/systemd/system/mythtv-backend.service do a full power cycle(shutdown not reboot). and try

Code: Select all

systemctl status mythtv-backend.service

gcook12
Junior
Posts: 89
Joined: Sun Nov 06, 2016 1:35 am
United States of America

Re: TV viewing is not working

Post by gcook12 » Thu Nov 24, 2016 9:26 pm

I did and it seems to be working now. I still have to manually start mythbackend but since I leave the machine on all the time that is not a problem. That you so very much for all of your help!!!

gcook12
Junior
Posts: 89
Joined: Sun Nov 06, 2016 1:35 am
United States of America

Re: TV viewing is not working

Post by gcook12 » Sat Nov 26, 2016 1:18 am

I did not try the servicectl command or a hard shutdown. But it seems to be working fine. Any reason to do it anyway?

Post Reply