Moderator: Forum Moderators
I set up a mythtv backend a while back, version 28 on ubuntu 16.04. It took me a while but it finally came together. I am (was) using kodi for the front end on several devices without issue (pc, phone, xbox). And then it stopped working. I seldom even look at the backend, maybe if the power goes out I make sure it gets turned back on. I can only guess when mythtv updated to 29 something changed. I did recently update to ubuntu 18.04 figuring if an update broke it, maybe I get lucky and an update will fix it. I know, wishful thinking.
I have gone through the setup a few times, comparing it to the notes on setting up a new one, everything looks right. I did rescan my channels (after it was broken) just in case, it found the all the same channels. It doesnt look like a setup issue, to me.
When I turn on kodi I get nothing, it doesnt show any channels, no guide, none of my recordings (they are still there if I look at the drive). If I point my browser to http://ip-of-my-backend:6544 I get 'this site cant be reached' and if I go to http://localhost:6544 on my backend machine I get the same. In simple terms it seems like mythtv is working or workable, but no one can see it? I do not get any errors when I go through setup. After it first 'broke' and I went through setup again I did get an error about the folders for the recordings. I have a 4tb external drive for those and for some reason the drive name changed, it added a '1' to the end. I fixed that. I only mention it because I found it odd that it changed the name.
any suggestions of what to try are greatly appreciated. I can get more info if it helps you help me, but I'll refer back to my prior warning of my low ubuntu iq.
Code: Select all
darryl@Lenovo:~$ sudo systemctl status mythtv-backend [sudo] password for darryl: ● mythtv-backend.service - MythTV Backend Loaded: loaded (/lib/systemd/system/mythtv-backend.service; enabled; vendor p Active: failed (Result: exit-code) since Sun 2018-12-16 10:07:02 EST; 2 weeks Docs: https://www.mythtv.org/wiki/Mythbackend Main PID: 1887 (code=exited, status=130) Dec 16 10:07:02 Lenovo systemd: mythtv-backend.service: Service hold-off time Dec 16 10:07:02 Lenovo systemd: mythtv-backend.service: Scheduled restart job Dec 16 10:07:02 Lenovo systemd: Stopped MythTV Backend. Dec 16 10:07:02 Lenovo systemd: mythtv-backend.service: Start request repeate Dec 16 10:07:02 Lenovo systemd: mythtv-backend.service: Failed with result 'e Dec 16 10:07:02 Lenovo systemd: Failed to start MythTV Backend.
Sorry it took so long to look this up, holidays and all. I appreciate the help. And I am not sure if that was the right way to paste a copy of what the response to the status request.
"Failed to init MythContext" in your backend log
(usually in /var/log/mythtv/mythbackend.log.) Before that message,
I'd expect to see a reason for the failure. Please put a full log at
pastebin.com and put a link to that here if the above isn't helpful.
Your paste above is fine. I'd add: systemctl cat mythtv-backend too.
Code: Select all
Dec 16 10:06:09 Lenovo mythbackend: mythbackend: E CoreContext mythdbcon.cpp:242 (OpenDatabase) [DBManager0] Unable to connect to database! Dec 16 10:06:09 Lenovo mythbackend: mythbackend: E CoreContext mythdbcon.cpp:243 (OpenDatabase) Driver error was [1/1045]:#012QMYSQL: Unable to connect#012Database error was:#012Access denied for user 'mythtv'@'localhost' (using password: YES)
and see if that helps. Note line 1061 in your paste tells you what config.xml is in
play (and it's the 'normal' /home/mythtv/.mythtv.)
Unable to connect to database!
Database error was:
Access denied for user 'mythtv'@'localhost' (using password: YES)
I guess I am at a loss at to what is broken, where to look, and how to fix it.
Guessing something somewhere has either an incorrect user name or password stored? Does that sound right?
from the command line:
Code: Select all
mysql --host=localhost --user=mythtv --password=yourPasswordFromConfig.xml mythconverg
the same as in that file. If that doesn't work, then the backend will fail too.