[Solved] not in group 'mythtv' popup on first run of mythtv-setup

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

Moderator: Forum Moderators

Post Reply
dualboot
Junior
Posts: 31
Joined: Mon Oct 26, 2015 8:53 am
Great Britain

[Solved] not in group 'mythtv' popup on first run of mythtv-setup

Post by dualboot »

Hi,
Fresh install of Ubuntu 18 LTS. Then sudo apt-get install mythtv. All seemed OK.
Click on the 'mythtv-setup' icon and it pops up a message saying that i'm not in the mythtv group, but it can add me in (sudo access required) - I click through, it logs me out, and I log back in again.

But I get the same pop up each time I go round the loop.

I checked that I am in the group...

Code: Select all

blahblah@quietpc:~$ 
grep mythtv: /etc/group
mythtv:x:129:blahblah
blahblah@quietpc:~$ 
tried running mythtv-setup from cli and with sudo but same
I have now clicked the 'do you want to ignore this error and carry on' message and it goes through to the MythTV Startup Status screen seems to have completed OK. I needed to change the password for the database from mythtv to the one in /etc/mythtv/config.xml

but mythtv-frontend complains it cannot connect to the master backend

NMAP shows the ports are open:

Code: Select all

Starting Nmap 7.60 ( https://nmap.org ) at 2018-04-29 20:15 BST
Nmap scan report for localhost (127.0.0.1)
Host is up (0.000065s latency).
Not shown: 997 closed ports
PORT     STATE SERVICE
22/tcp   open  ssh
631/tcp  open  ipp
3306/tcp open  mysql
Any suggestions for troubleshooting further ?
dualboot
Junior
Posts: 31
Joined: Mon Oct 26, 2015 8:53 am
Great Britain

Re: not in group 'mythtv' popup on first run of mythtv-setup

Post by dualboot »

Well - in a terminal window I ran "mythbackend" and hey presto, it came up -

I've even worked out how to get out again (hint - set up -> edit keys -> main menu -> add a key in for exit !!!!

So the question I have now is - what is the correct way to get mythbackend to start automatically ?
MikeB2013
Senior
Posts: 519
Joined: Mon Jul 25, 2016 4:16 pm
Great Britain

Re: not in group 'mythtv' popup on first run of mythtv-setup

Post by MikeB2013 »

A quick "fix" for your issue about the looping is to run in a terminal session:

sudo adduser $USER mythtv

Once this has been done, mythbackend will work correctly from boot. Note that you should reboot following this (otherwise it does not work).

The cause of the issue is a recent change to mythtv/packaging and the removal in Ubuntu 18.04 of gksu package (which is obsolete).

Until this and another problem relating to mythtv-setup not stopping mythbackend are resolved , I suggest you use (again in a terminal session)

sudo systemctl stop mythtv-backend
mythtv-setup
sudo systemctl start mythtv-backend

Mythtv trac has more details, please see
trac ticket https://code.mythtv.org/trac/ticket/13256
trac ticket https://code.mythtv.org/trac/ticket/13160 (has patch)

Mike
dualboot
Junior
Posts: 31
Joined: Mon Oct 26, 2015 8:53 am
Great Britain

Re: not in group 'mythtv' popup on first run of mythtv-setup

Post by dualboot »

Hi,
There seems to be something wrong still - mythtv-setup still wouldn't start - it was complaining that it couldn't connect to the master backend.

I have found that if I run 'mythbackend' in a terminal window it all burst in to life - mythtv-setup ran. And the frontend starts correctly.

Presumably it should start at boot and not need to be run in a terminal window ?
User avatar
bill6502
Developer
Posts: 2307
Joined: Fri Feb 07, 2014 5:28 pm
United States of America

Re: not in group 'mythtv' popup on first run of mythtv-setup

Post by bill6502 »

Try: mythtv-setup.real (in *buntu, it's what mythtv-setup ends up running.)

mythtv-setup.real doesn't need to connect to the backend, in fact is normally
gives you the option to stop it, which you can ignore for now.

Correct, you don't need a terminal window to start the frontend normally,
systemd does it for you. The commands Mike listed above will allow you
to test from the command line however.
dualboot
Junior
Posts: 31
Joined: Mon Oct 26, 2015 8:53 am
Great Britain

Re: not in group 'mythtv' popup on first run of mythtv-setup

Post by dualboot »

backend still not starting - not sure what needs to be done ?

Code: Select all

$ ps -aA | grep myth
$ ps -aA | grep myth
(nothing!)

$ sudo systemctl start mythtv-backend
[sudo] password for blahblah: 
Job for mythtv-backend.service failed because the control process exited with error code.
See "systemctl status mythtv-backend.service" and "journalctl -xe" for details.

$ sudo systemctl status mythtv-backend.service 
● mythtv-backend.service - MythTV Backend
   Loaded: loaded (/lib/systemd/system/mythtv-backend.service; enabled; vendor preset: en
   Active: failed (Result: exit-code) since Sat 2018-05-05 22:15:38 BST; 3min 47s ago
     Docs: https://www.mythtv.org/wiki/Mythbackend
  Process: 1844 ExecStart=/usr/bin/mythbackend --quiet --syslog local7 $ADDITIONAL_ARGS (
 Main PID: 1844 (code=exited, status=153)

May 05 22:15:38 quietpc systemd[1]: mythtv-backend.service: Service hold-off time over, s
May 05 22:15:38 quietpc systemd[1]: mythtv-backend.service: Scheduled restart job, restar
May 05 22:15:38 quietpc systemd[1]: Stopped MythTV Backend.
May 05 22:15:38 quietpc systemd[1]: mythtv-backend.service: Start request repeated too qu
May 05 22:15:38 quietpc systemd[1]: mythtv-backend.service: Failed with result 'exit-code
May 05 22:15:38 quietpc systemd[1]: Failed to start MythTV Backend.
May 05 22:18:58 quietpc systemd[1]: mythtv-backend.service: Start request repeated too qu
May 05 22:18:58 quietpc systemd[1]: mythtv-backend.service: Failed with result 'exit-code
May 05 22:18:58 quietpc systemd[1]: Failed to start MythTV Backend.
lines 1-16/16 (END)
User avatar
bill6502
Developer
Posts: 2307
Joined: Fri Feb 07, 2014 5:28 pm
United States of America

Re: not in group 'mythtv' popup on first run of mythtv-setup

Post by bill6502 »

I'd start the backend directly from the command line. The systemd lines above
are truncated. Make sure mythbackend.real exists, if not, then just use mythbackend:

Code: Select all

sudo /usr/bin/mythbackend.real --user mythtv --logpath /tmp
and if it isn't obvious, past the output of the command and its
output here.

In the earlier post, it appears that mythbackend was started
without the --user switch.
User avatar
bill6502
Developer
Posts: 2307
Joined: Fri Feb 07, 2014 5:28 pm
United States of America

Re: not in group 'mythtv' popup on first run of mythtv-setup

Post by bill6502 »

Note, when things work for one user and not another, this is a
great place to go:
https://www.mythtv.org/wiki/Config.xml#Troubleshooting
dualboot
Junior
Posts: 31
Joined: Mon Oct 26, 2015 8:53 am
Great Britain

Re: not in group 'mythtv' popup on first run of mythtv-setup

Post by dualboot »

Thankyou - yes - that was the problem - mythtv user had a different IP address and db password in it - from the old server - I think I might have typed the old server's IP in without thinking at some point in the setup (years of muscle memory :) )

Now backend starts on reboot.

Just got to get my tuner card working (separate thread) and I'm going to be able to watch and record DVB TV :)
dualboot
Junior
Posts: 31
Joined: Mon Oct 26, 2015 8:53 am
Great Britain

Re: not in group 'mythtv' popup on first run of mythtv-setup

Post by dualboot »

How do I mark this solved ?
User avatar
bill6502
Developer
Posts: 2307
Joined: Fri Feb 07, 2014 5:28 pm
United States of America

Re: not in group 'mythtv' popup on first run of mythtv-setup

Post by bill6502 »

By editing the Subject: line in the initial post, which I'll do now.
Post Reply