Mythtv-setup fails to launch unless sudo command is given

Bug #1186824 reported by mtbdrew
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
mythtv (Ubuntu)
New
Undecided
Unassigned

Bug Description

Icon launcher or terminal command "mythtv-setup" hang at startup unless termal command "sudo mythtv-setup" is used.

backend fails to autostart and even when service command is given to maual start program is still does not start.

ProblemType: Bug
DistroRelease: Ubuntu 13.10
Package: mythtv-backend 2:0.26.0+fixes.20121118.340b5d4-0ubuntu3
ProcVersionSignature: Ubuntu 3.9.0-3.8-generic 3.9.4
Uname: Linux 3.9.0-3-generic x86_64
NonfreeKernelModules: nvidia
.var.log.mythtv.mythavtest.log:

.var.log.mythtv.mythccextractor.log:

.var.log.mythtv.mythcommflag.log:

.var.log.mythtv.mythfilldatabase.log:

.var.log.mythtv.mythjobqueue.log:

.var.log.mythtv.mythlcdserver.log:

.var.log.mythtv.mythmediaserver.log:

.var.log.mythtv.mythmetadatalookup.log:

.var.log.mythtv.mythpreviewgen.log:

.var.log.mythtv.mythshutdown.log:

.var.log.mythtv.mythtranscode.log:

.var.log.mythtv.mythutil.log:

.var.log.mythtv.mythwelcome.log:

ApportVersion: 2.10.2-0ubuntu1
Architecture: amd64
Date: Sun Jun 2 19:10:01 2013
InstallationDate: Installed on 2013-05-30 (3 days ago)
InstallationMedia: Ubuntu 13.10 "Saucy Salamander" - Alpha amd64 (20130529)
Installed_mythtv_dbg: 0.0
MarkForUpload: True
SourcePackage: mythtv
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
mtbdrew (mtbdrew) wrote :
mtbdrew (mtbdrew)
description: updated
Revision history for this message
mtbdrew (mtbdrew) wrote :

So the Mythtv-backend-setup icon option still hangs and you have to give sudo command in terminal to launch backend setup.

However did get the backend to finally run at start up as well as get the frontend to connect properly. Basically had to treat the install as if it was totally manual. Purged mythtv and mysql from system. Did sudo apt-get install mythtv. Followed this up with mysql and database steps listed here:

http://www.mythtv.org/wiki/User_Manual:Initial_Installation

 Creating the mythtv user

to run MythTV as its own user I created one (so the backend doesnt run as root)

sudo useradd mythtv

MythTV database setup

You have to create a file for mythtv for database connections ~mythtv/.mythtv/mysql.txt
Script.png ~mythtv/.mythtv/mysql.txt

DBHostName=localhost

# By default, Myth tries to ping the DB host to see if it exists.
# If your DB host or network doesn't accept pings, set this to no:
#
DBHostPing=no

DBHostName=localhost
DBUserName=mythtv
DBName=mythconverg
DBPassword=mythtv

# Set the following if you want to use something other than this
# machine's real hostname for identifying settings in the database.
# This is useful if your hostname changes often, as otherwise you
# will need to reconfigure mythtv (or futz with the DB) every time.
# TWO HOSTS MUST NOT USE THE SAME VALUE
#
LocalHostName=MYCOOLMYTHTVHOST

# If you want your frontend to be able to wake your MySQL server
# using WakeOnLan, have a look at the following settings:
#
#
# The time the frontend waits (in seconds) between reconnect tries.
# This should be the rough time your MySQL server needs for startup
#
#WOLsqlReconnectWaitTime=0
#
#
# This is the number of retries to wake the MySQL server
# until the frontend gives up
#
#WOLsqlConnectRetry=5
#
#
# This is the command executed to wake your MySQL server.
#
#WOLsqlCommand=echo 'WOLsqlServerCommand not set'

Then you have to create a database and let the user set above access it

mysql -u root -p
create database mythconverg;
create user 'mythtv'@'%' identified by 'mythtv';
create user 'mythtv'@'localhost' identified by 'mythtv';
set password for 'mythtv'@'%' = password('mythtv');
set password for 'mythtv'@'localhost' = password('mythtv');
connect mythconverg;
grant all privileges on *.* to 'mythtv'@'%' with grant option;
grant all privileges on *.* to 'mythtv'@'localhost' with grant option;
flush privileges;
exit;

Run mythbackend to test. This will automatically upgrade your previous mythconverg database schema to the latest version:

mythbackend

If mythbackend is running OK, test mythfrontend:

mythfrontend

Followed this with modification for "upstart" listed here:

http://www.mythtv.org/wiki/Upstart_mythbackend_Configuration

Now front and backend work, tuners work, playback works etc. However still have to use the sudo command to launch backend setup.

Revision history for this message
mtbdrew (mtbdrew) wrote :

Finally got MCC to install and work correctly, used it to add the repository for MythTV 0.26. Ran update and it installed several for MythTV, Icon launcher for Myth-setup now works correctly. Only issue now is that if I use this option to enter the backend setup all the tuner cards show error messages. Close backend setup and launch using sudo command in terminal and tuner cards all show open/detected correctly.

Revision history for this message
mtbdrew (mtbdrew) wrote :

Backend setup still fails to work correctly when using the icon launcher, tuner cards continue to give error detection message.

When using the sudo mythtv-setup command, the prompt box comes up right away asking if you want to stop backend. With the launch icon, the prompt message doesn't come up until the backend setup tool is open.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.