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

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

Moderator: Forum Moderators

Post Reply
InstantFlash
Newcomer
Posts: 2
Joined: Fri Apr 12, 2019 12:14 pm
Great Britain

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

Post by InstantFlash » Fri Apr 12, 2019 12:38 pm

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.
Last edited by InstantFlash on Sat Apr 13, 2019 12:37 pm, edited 1 time in total.

MikeB2013
Senior
Posts: 398
Joined: Mon Jul 25, 2016 4:16 pm
Great Britain

Re: How On Earth Do You Get It Working?

Post by MikeB2013 » 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:

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
Last edited by MikeB2013 on Fri Apr 12, 2019 8:33 pm, edited 1 time in total.

yawlhoo
Junior
Posts: 69
Joined: Wed Apr 15, 2015 4:18 pm
United States of America

Re: How On Earth Do You Get It Working?

Post by yawlhoo » Fri Apr 12, 2019 3:18 pm

Wow, what an incredibly lucid and useful summary for installing MythTV!

InstantFlash
Newcomer
Posts: 2
Joined: Fri Apr 12, 2019 12:14 pm
Great Britain

Re: How On Earth Do You Get It Working?

Post by InstantFlash » Fri Apr 12, 2019 5:53 pm

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

User avatar
Steve Goodey
Moderator
Posts: 82
Joined: Fri Feb 07, 2014 6:30 pm
Location: Colchester, England
Great Britain

Re: How On Earth Do You Get It Working?

Post by Steve Goodey » Fri Apr 12, 2019 6:17 pm

Hello,

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

mtrax
Junior
Posts: 30
Joined: Sat Aug 16, 2014 6:44 am
Australia

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

Post by mtrax » Sat Jul 13, 2019 9:18 pm

Is there a way to determine the changelog for these updates using this repository?

User avatar
heyted
Junior
Posts: 89
Joined: Sun Jun 08, 2014 2:14 am
Location: South Florida
Contact:
United States of America

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

Post by heyted » Sun Jul 14, 2019 12:38 pm

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.
Ted | My blog

Post Reply