Page 1 of 2

[SOLVED] How On Earth Do You Get It Working?

Posted: Fri Apr 12, 2019 12:38 pm
by InstantFlash
I did a clean install of Xubuntu LTS 18.04. and installed the version of mythTV from the repositories. When I started it it told me it couldn't connect to the database then got stuck in an infinite loop of thinking it had been unexpectedly stopped and restarting every time I clicked exit. I restarted the PC, uninstalled mythTV and installed version 0.29 from a PPA. It no longer kept restarting itself but still couldn't connect to the database. After a few hours of trying different solutions from the internet all I succeeded in doing was changing the error message to something about a "socket".

I purged mythTV and MySql then reinstalled MySql and made sure I set the root password. I installed mythTV 0.29 from the PPA and the infinite exit loop was back and it still couldn't connect to the database using my root password, the MySql password or "mythtv". Couldn't connect with version 30 either.

I've just re-reinstalled Xubuntu. Is there a good tutorial somewhere on how to get mythTV working? The ones I've looked at don't seem to have any info on not being able to connect to a database. Hopefully if I follow a tutorial exactly someone will be able to spot where I've gone wrong! I've got a Hauppauge WinTV-dualHD tuner and just want to record TV shows on one PC.

Re: How On Earth Do You Get It Working?

Posted: Fri Apr 12, 2019 2:10 pm
by MikeB2013
For *ubuntu 18.04 and later.
1. Use a terminal session to setup mythtv, this includes stopping and starting mythtv-backend, see later in this post.
2. Current release is 30, install from the *ubuntu repositories gets an old version of 0.29 (these repositories usually contain a single snapshot).
3. Install the 30 ppa as follows:

Code: Select all

sudo add-apt-repository ppa:mythbuntu/30
Now install mythtv (client/server)

Code: Select all

sudo apt install mythtv
Now the critical part

Code: Select all

sudo adduser $USER mythtv
mkdir -p $HOME/.mythtv
ln -s -f /etc/mythtv/config.xml ~/.mythtv/config.xml
The first line overcomes the continual looping due to current user not being in mythtv group
The last two lines stop the cannot connect to database issue.

now logout or reboot (I prefer the reboot to ensure a clean start)

Again using a terminal session make sure mythtv-backend is not running, go into mythtv-setup configure as desired (remember to set Security Pin to 0000, otherwise frontends will not connect to backend), and then start mythtv-backend

Code: Select all

sudo systemctl stop mythtv-backend
mythtv-setup
sudo systemctl start mythtv-backend
You can check on mythtv-backend status by doing

Code: Select all

systemctl status mythtv-backend
If it shows Active inactive (dead)

You may need to do

Code: Select all

sudo systemctl daemon-reload
before doing

Code: Select all

sudo systemctl start mythtv-backend
Mike

Re: How On Earth Do You Get It Working?

Posted: Fri Apr 12, 2019 3:18 pm
by yawlhoo
Wow, what an incredibly lucid and useful summary for installing MythTV!

Re: How On Earth Do You Get It Working?

Posted: Fri Apr 12, 2019 5:53 pm
by InstantFlash
Thanks Mike, you're a genius! That's got it working. I'll have to do a bit more reading to get it working how I want but I can actually watch live TV on it now. Had me totally baffled :-D

Re: How On Earth Do You Get It Working?

Posted: Fri Apr 12, 2019 6:17 pm
by Steve Goodey
Hello,

If you're happy could you amend the subject line on your first post and add [Solved], thanks.

Re: [SOLVED] How On Earth Do You Get It Working?

Posted: Sat Jul 13, 2019 9:18 pm
by mtrax
Is there a way to determine the changelog for these updates using this repository?

Re: [SOLVED] How On Earth Do You Get It Working?

Posted: Sun Jul 14, 2019 12:38 pm
by heyted
The Mythbuntu ppa on Launchpad builds from the source on GitHub. For v30-fixes, the changes can be viewed at https://github.com/MythTV/mythtv/commits/fixes/30.

Re: How On Earth Do You Get It Working?

Posted: Fri Sep 20, 2019 11:30 pm
by varneyb
MikeB2013 wrote:
Fri Apr 12, 2019 2:10 pm
For *ubuntu 18.04 and later.
1. Use a terminal session to setup mythtv, this includes stopping and starting mythtv-backend, see later in this post.
2. Current release is 30, install from the *ubuntu repositories gets an old version of 0.29 (these repositories usually contain a single snapshot).
3. Install the 30 ppa as follows:
...
I tried all this and it still didn't work. I get the following errors in the terminal window:

Code: Select all

$ mythtv-setup
mysql: [Warning] Using a password on the command line interface can be insecure.
Gtk-Message: 19:23:08.425: GtkDialog mapped without a transient parent. This is discouraged.
Gtk-Message: 19:23:12.230: GtkDialog mapped without a transient parent. This is discouraged.
A dialog does eventually pop up asking me if I want to start the backend followed by a dialog assking me if I want to run mythfilldatabase. But I get no actual configuration window!

Re: [SOLVED] How On Earth Do You Get It Working?

Posted: Sat Sep 21, 2019 12:08 am
by bill6502
The above aren't errors. You can get a better log by running this:
mythtv-setup.real --logpath /tmp . The log file will be an obvious
name in /tmp. Coy/paste that file in pastebin.com and add the link to it
here (if it doesn't point you to a solution.) Folks here may be able
to help if the log doesn't help you.

Re: [SOLVED] How On Earth Do You Get It Working?

Posted: Sat Sep 21, 2019 12:33 am
by varneyb
Here you go:
It won't let me post a link for some reason. Here is the pastebin identifier:

https://pastebin.com/Vg8EV35t

Note that on the command line I also got a "Segmentation fault" error message.
[EDIT: added link]

Re: [SOLVED] How On Earth Do You Get It Working?

Posted: Sat Sep 21, 2019 12:35 am
by varneyb
Note: I do have a config.xml link in my .mythtv directory pointing to the one in /etc/mythtv.

I've also verified that the username (mythtv) and password in the config.xml does allow me to connect to mysql.

Re: [SOLVED] How On Earth Do You Get It Working?

Posted: Sat Sep 21, 2019 4:36 am
by bill6502
The config.xml in play here is: /home/bruce/.mythtv which is likely a link to the
same /etc file and not an issue.

The: MythUIHelper: Could not find theme: Mythbuntu - Switching to MythCenter-wide line is
of interest. I know I don't get those errors. I'd review the instructions Mike gave earlier as I
haven't seen this error (not that I see all of them...)

The SEGV may be what's preventing more info (typically, there'd be an entry in the log
mentioning the SEGV.) I'd have expected to see a longer log.

To get any useful information from the stack trace, you use:
https://www.mythtv.org/wiki/Debugging#I ... m_Packages
If you're new to gdb etc, I'd uninstall/reinstall before tackling this.

Re: [SOLVED] How On Earth Do You Get It Working?

Posted: Sun Sep 22, 2019 11:50 am
by varneyb
I tried the instructions, but I got stuck here:
6) You will be asked to fill out the bug information, you can either open a browser window now or copy the given URL into any browser to do so.
But nothing ever gave me URL so that I could do this.

Re: [SOLVED] How On Earth Do You Get It Working?

Posted: Mon Sep 23, 2019 4:35 pm
by bill6502
@varneyb, to answer your point above, the URL is on the 1st line of that page: Please also see the Ticket HOWTO...
and is: http://svn.mythtv.org/trac/wiki/TicketHowTo. Although I'd admit that it's not obvious to the casual
reader.

Re: [SOLVED] How On Earth Do You Get It Working?

Posted: Thu Sep 26, 2019 6:32 pm
by devnull
Not intending to hijack, but in my install, I got around the database issue by changing the MythTV MySQL user's password back to mythtv. Seemed to do the trick and hopefully I'll never have to touch it again 😁