package openerp-server 5.0.14-1 failed to install/upgrade: subprocess installed post-installation script returned error exit status 1: chown: invalid user: `openerp:adm'

Bug #785645 reported by uudice
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
openerp-server (Ubuntu)
Triaged
High
Daniel Hahler

Bug Description

Binary package hint: openerp-server

i don't know

ERROR:
Open ERP user (openerp) already exists, doing nothing.
chown: invalid user: `openerp:adm'
dpkg: error processing openerp-server (--configure):
 subprocess installed post-installation script returned error exit status 1

ProblemType: Package
DistroRelease: Ubuntu 11.04
Package: openerp-server 5.0.14-1
ProcVersionSignature: Ubuntu 2.6.38-8.42-generic 2.6.38.2
Uname: Linux 2.6.38-8-generic i686
Architecture: i386
Date: Fri May 20 16:57:21 2011
ErrorMessage: subprocess installed post-installation script returned error exit status 1
InstallationMedia: Ubuntu-Netbook 10.10 "Maverick Meerkat" - Release i386 (20101007)
PackageArchitecture: all
SourcePackage: openerp-server
Title: package openerp-server 5.0.14-1 failed to install/upgrade: subprocess installed post-installation script returned error exit status 1
UpgradeStatus: Upgraded to natty on 2011-04-29 (21 days ago)

Revision history for this message
uudice (shandy-feng) wrote :
Changed in openerp-server (Ubuntu):
status: New → Confirmed
Revision history for this message
jamie campbell (3-jamie) wrote :

This problem also exists with http://www.openerp.com/download/stable/deb/openerp-server-6.0.2-0_all.deb . In that case, the issue is that the postinst grep triggers at least one false positive.

On my system there is an openerp-web user. The postinst script is interested in an openerp user, but the checking line is "if ! getent passwd | grep -q "^${_USERNAME}"" , it needs to use "^${_USERNAME}:" instead so as not to catch users it's not trying to catch. The ":" isn't a magic character, it's the format of lines from getent (user:password:userid:etcetc)

I've attached a new postinst script which does this, which should be used to build future openerp-server deb files

Revision history for this message
jamie campbell (3-jamie) wrote :

correction to my post above, it's not getent format it's passwd format, see for instance http://www.cyberciti.biz/faq/understanding-etcpasswd-file-format/

Daniel Hahler (blueyed)
Changed in openerp-server (Ubuntu):
status: Confirmed → Triaged
description: updated
Daniel Hahler (blueyed)
summary: package openerp-server 5.0.14-1 failed to install/upgrade: subprocess
- installed post-installation script returned error exit status 1
+ installed post-installation script returned error exit status 1: chown:
+ invalid user: `openerp:adm'
Changed in openerp-server (Ubuntu):
importance: Undecided → High
assignee: nobody → Daniel Hahler (blueyed)
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.