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'
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
ProcVersionSign
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)
PackageArchitec
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)
Changed in openerp-server (Ubuntu): | |
status: | New → Confirmed |
Changed in openerp-server (Ubuntu): | |
status: | Confirmed → Triaged |
description: | updated |
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) |
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