[mythtv-users] I broke my mythTV, help!
Douglas Peale
Douglas_Peale at comcast.net
Wed Nov 7 03:32:14 UTC 2018
On 11/5/18 8:08 PM, Bill Meek wrote:
> On 11/5/18 10:02 PM, Douglas Peale wrote:
>> On 11/5/18 7:50 PM, Will Dormann wrote:
>>> On 11/5/18 10:20 PM, Douglas Peale wrote:
>>>> So, why would changing the hard drive change the ability to access the database?
>>>
>>> You could try using mysql to connect to your database, using the
>>> credentials in ~/mythtv/config.xml
>>>
>>> If you have trouble doing this manually, then mythbackend would likely
>>> fail in the same way. If this is the case, it could be related to how
>>> you cloned the data.
>>>
>>>
>>> -WD
>>> _______________________________________________
>>> mythtv-users mailing list
>>> mythtv-users at mythtv.org
>>> http://lists.mythtv.org/mailman/listinfo/mythtv-users
>>> http://wiki.mythtv.org/Mailing_List_etiquette
>>> MythTV Forums: https://forum.mythtv.org
>>>
>> I can access the database fine:
>>
>> $ mysql -u mythtv -p mythconverg
>> Enter password:
>> Reading table information for completion of table and column names
>> You can turn off this feature to get a quicker startup with -A
>>
>> Welcome to the MySQL monitor. Commands end with ; or \g.
>> Your MySQL connection id is 67
>> Server version: 5.7.24-0ubuntu0.18.04.1 (Ubuntu)
>>
>> Copyright (c) 2000, 2018, Oracle and/or its affiliates. All rights reserved.
>>
>> Oracle is a registered trademark of Oracle Corporation and/or its
>> affiliates. Other names may be trademarks of their respective
>> owners.
>>
>> Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
>>
>> mysql>
>>
>>
>> So that is probably not the problem.
>
> In order to know, you need to do a systemctl cat myth<whichever one you decided to keep active>
> That will tell us if, for example, MYTHCONFDIR is set.
>
>
>
I put the mythbackend.system back in place since removing it did not improve anything, and the system was working with both
files in place before I swapped my /home raid.
$ sudo systemctl cat mythbackend
# /etc/systemd/system/mythbackend.service
[Unit]
Description=MythTV backend service
# The following line will cause mythbackend to be terminated if the database dies.
# If you do not want this then use a weaker binding such as "Requires" or "Wants".
BindsTo=mysql.service
Wants=network-online.target
After=mysql.service network-online.target
# Persistently named adapters
# Needs a systemd tag added to your udev persistent naming rules
#Requires=dev-dvb-adapter0-frontend0.device
#After=dev-dvb-adapter0-frontend0.device
[Service]
# Wait for a dbus notification from mythbackend before starting other services
# This is enabled by default 0.28 onwards (may be in 0.27 as well)
# To disable this change type to simple
Type=notify
NotifyAccess=main
# Allow core dumps
# The core resource limit on the user specified below can reduce what
# is specified here. So it needs to be set as well.
LimitCORE=infinity
User=mythtv
StandardOutput=null
StandardError=journal
ExecStart=/full/path/to/mythbackend $MYTHBACKEND_ARGS
[Install]
WantedBy=multi-user.target
# /etc/systemd/system/mythbackend.service.d/environment.conf
[Service]
# Command line arguments to be passed by systemd to mythbackend on startup.
# This variable must be defined or the service will not start.
Environment="MYTHBACKEND_ARGS=--logpath=/home/roger/logs --verbose=none,dvbsicache,tempdebug:debug"
# Environment variables for the mythbackend program itself
Environment=MYTHCONFDIR=/etc/mythtv
$ sudo systemctl cat mythtv-backend
# /lib/systemd/system/mythtv-backend.service
[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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: OpenPGP digital signature
URL: <http://lists.mythtv.org/pipermail/mythtv-users/attachments/20181106/e85de7a1/attachment.sig>
More information about the mythtv-users
mailing list