mythtv-backend needs to check for 'mythtv' home directory

Bug #386045 reported by gerk
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
mythtv (Ubuntu)
Fix Released
Medium
Unassigned

Bug Description

Binary package hint: mythtv

Ubuntu release: 9.04

Package: mythtv-backend_0.21.0+fixes19961-0ubuntu8_i386.deb

Error text in /var/log/apt/term.log:

* MythTV home directory, /home/mythtv does not exist.
invoke-rc.d: initscript mythtv-backend, action "start" failed.
dpkg: error processing mythtv-backend (--configure):
 subprocess post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of mythtv-backend-master:
 mythtv-backend-master depends on mythtv-backend (= 0.21.0+fixes19961-0ubuntu8); however:
  Package mythtv-backend is not configured yet.

Preconditions: user mythtv and group mythtv already present in /etc/passwd and /etc/group (for nfs mappings), however there was no home directory for user mythtv.

After adding a home dir in /home/mythtv, the problem disappeared.

Possible solution:
on installing, check uid and gid but also check if homedir for mythtv exists and is writable

ProblemType: Package
Architecture: i386
DistroRelease: Ubuntu 9.04
ErrorMessage: subprocess post-installation script returned error exit status 1
NonfreeKernelModules: fglrx
Package: mythtv-backend 0.21.0+fixes19961-0ubuntu8
SourcePackage: mythtv
Title: package mythtv-backend 0.21.0+fixes19961-0ubuntu8 failed to install/upgrade: subprocess post-installation script returned error exit status 1
Uname: Linux 2.6.28-11-generic i686

Revision history for this message
gerk (ger-kersten) wrote :
summary: - package mythtv-backend 0.21.0+fixes19961-0ubuntu8 failed to
- install/upgrade: subprocess post-installation script returned error exit
- status 1
+ mythtv-backend needs to check for 'mythtv' home directory
Changed in mythtv (Ubuntu):
importance: Undecided → Medium
status: New → Triaged
Revision history for this message
Mario Limonciello (superm1) wrote :

This is fixed in the current 9.10 package actually by this snippet in the init script.

if [ ! -d $USER_HOME ]; then
        mkdir -p $USER_HOME
fi

#create a symbolic link for mysql.txt so it can't be overwritten
mkdir -p $USER_HOME/.mythtv
chown -R $USER $USER_HOME/.mythtv
if [ ! -e $USER_HOME/.mythtv/mysql.txt ]; then
        ln -s /etc/mythtv/mysql.txt $USER_HOME/.mythtv/mysql.txt
fi

Changed in mythtv (Ubuntu):
status: Triaged → Fix Released
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.