lastfmsubmitd failed to install/upgrade if user provided group doesn't exist

Bug #386240 reported by W. Tattersall
26
This bug affects 2 people
Affects Status Importance Assigned to Milestone
lastfmsubmitd (Debian)
Fix Released
Unknown
lastfmsubmitd (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

:: DESCRIPTION ::
If the user enters a non-existent group at the lastfmsubmitd/spool_group prompt, the installation fails with
chown: invalid group: `lastfm:firstfm'
dpkg: error processing lastfmsubmitd (--configure):
 subprocess post-installation script returned error exit status 1

:: VERSION ::
lastfmsubmitd | 0.36-1 | hardy/universe | source, all
lastfmsubmitd | 0.37-2 | intrepid/universe | source, all
lastfmsubmitd | 0.37-3 | jaunty/universe | source, all
lastfmsubmitd | 1.0.5-1 | karmic/universe | source, all
lastfmsubmitd | 1.0.5-1 | lucid/universe | source, all

:: HOW TO REPRODUCE ::
When prompt with the question: "Group that may send submissions:" enter a group name that doesn't exist on your system and different from the default value "lastfm"

:: WORKAROUND ::
Keep the default.

:: FAULTY CODE ::
in debian/lastfmsubmitd.postinst:

db_get lastfmsubmitd/spool_group
if [ "$RET" ]; then
    for dir in /var/log/lastfm /var/run/lastfm /var/spool/lastfm; do
        chown "lastfm:$RET" $dir
        chmod 2775 $dir
    done
fi

========================

I do not know what happened

ProblemType: Package
Architecture: i386
DistroRelease: Ubuntu 9.04
ErrorMessage: subprocess post-installation script returned error exit status 1
NonfreeKernelModules: nvidia
Package: lastfmsubmitd 0.37-3
PackageArchitecture: all
SourcePackage: lastfmsubmitd
Title: package lastfmsubmitd 0.37-3 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
W. Tattersall (ww88tt) wrote :
Revision history for this message
Dave Walker (davewalker) wrote :

Relevent Extract from appatch dpkg log:
Setting up lastfmsubmitd (0.37-3) ...

chown: invalid group: `lastfm:firstfm'

dpkg: error processing lastfmsubmitd (--configure):

 subprocess post-installation script returned error exit status 1

Errors were encountered while processing:

 lastfmsubmitd

I am not quite sure how the group "firstfm" came to exist. Could not reproduce on Jaunty. Will investigate further.

affects: ubuntu → lastfmsubmitd (Ubuntu)
Changed in lastfmsubmitd (Ubuntu):
status: New → Incomplete
Revision history for this message
Jean-Baptiste Lallement (jibel) wrote :

Confirmed in Lucid.

This error occurs if the user enters a non-existent group at the lastfmsubmitd/spool_group prompt.
To workaround this error, either let the default or enter an exiting group.

Changed in lastfmsubmitd (Ubuntu):
status: Incomplete → Confirmed
summary: - package lastfmsubmitd 0.37-3 failed to install/upgrade: subprocess post-
- installation script returned error exit status 1
+ lastfmsubmitd failed to install/upgrade if user provided group doesn't
+ exist
description: updated
tags: added: bitesize
Changed in lastfmsubmitd (Ubuntu):
assignee: nobody → Jean-Baptiste Lallement (jibel)
status: Confirmed → In Progress
Revision history for this message
Jean-Baptiste Lallement (jibel) wrote :

debdiff for lucid

Changed in lastfmsubmitd (Ubuntu):
status: In Progress → Confirmed
Revision history for this message
Ilya Barygin (randomaction) wrote :

Uploaded, thank you for your contribution.

Changed in lastfmsubmitd (Ubuntu):
assignee: Jean-Baptiste Lallement (jibel) → nobody
status: Confirmed → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package lastfmsubmitd - 1.0.5-1.1ubuntu1

---------------
lastfmsubmitd (1.0.5-1.1ubuntu1) lucid; urgency=low

  * lastfmsubmitd.postinst: Create spool group if it doesn't exist. (LP: #386240)
 -- Jean-Baptiste Lallement <email address hidden> Sat, 09 Jan 2010 22:09:54 +0100

Changed in lastfmsubmitd (Ubuntu):
status: Fix Committed → Fix Released
Changed in lastfmsubmitd (Debian):
status: Unknown → New
Changed in lastfmsubmitd (Debian):
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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