postinst cannot add 'postgres' user to 'ssl-cert' group when system config cannot be written to
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
postgresql-common (Debian) |
Fix Released
|
Unknown
|
|||
postgresql-common (Ubuntu) |
Fix Released
|
High
|
Bryce Harrington |
Bug Description
i don't know
ProblemType: Package
DistroRelease: Ubuntu 16.04
Package: postgresql-common 173
ProcVersionSign
Uname: Linux 4.4.0-77-generic i686
ApportVersion: 2.20.1-0ubuntu2.5
Architecture: i386
Date: Fri May 12 19:34:45 2017
DuplicateSignature:
package:
Setting up postgresql-common (173) ...
Adding user postgres to group ssl-cert
dpkg: error processing package postgresql-common (--configure):
subprocess installed post-installation script returned error exit status 10
ErrorMessage: subprocess installed post-installation script returned error exit status 10
InstallationDate: Installed on 2017-04-09 (32 days ago)
InstallationMedia: Ubuntu 14.04.4 LTS "Trusty Tahr" - Release i386 (20160217.1)
PackageArchitec
RelatedPackageV
dpkg 1.18.4ubuntu1.2
apt 1.2.20
SourcePackage: postgresql-common
Title: package postgresql-common 173 failed to install/upgrade: subprocess installed post-installation script returned error exit status 10
UpgradeStatus: Upgraded to xenial on 2017-04-12 (29 days ago)
Related branches
- Sergio Durigan Junior (community): Approve
- git-ubuntu developers: Pending requested
- Canonical Server packageset reviewers: Pending requested
- git-ubuntu developers: Pending requested
- Diff: 0 lines
tags: | removed: need-duplicate-check |
Changed in postgresql-common (Ubuntu): | |
status: | Triaged → Fix Committed |
status: | Fix Committed → In Progress |
Changed in postgresql-common (Debian): | |
status: | Unknown → New |
Changed in postgresql-common (Debian): | |
status: | New → Fix Committed |
Changed in postgresql-common (Debian): | |
status: | Fix Committed → Fix Released |
From the journal errors:
ماي 12 19:13:47 hostname org.gtk. vfs.Daemon[ 1646]: ** (gvfsd:1724): WARNING **: dbus_mount_reply: Error from org.gtk. vfs.Mountable. mount() : Failed to retrieve share list from server: Connection refused vfs.Daemon[ 1646]: ** (process:5169): WARNING **: Couldn't create directory monitor on smb://x- gnome-default- workgroup/ . Error: The specified location is not mounted OneConf[ 1646]: WARNING: oneconf. hosts:Error in loading other_hosts file: [Errno 2] No such file or directory: '/home/ overdoz/ .cache/ oneconf/ 96c88f9cc88d498 f726b551d58eabc dd/other_ hosts'
ماي 12 19:13:47 hostname org.gtk.
...
ماي 12 19:32:00 hostname com.ubuntu.
So it looks like the system is set up to use oneconf, but couldn't communicate with the service for some reason. Later on, postfix attempts to make a system conf change, to add the postgres user to the ssl-cert group, and then fails:
Setting up postgresql-common (173) ...
Adding user postgres to group ssl-cert
dpkg: error processing package postgresql-common (--configure):
subprocess installed post-installation script returned error exit status 10
Looking in postgres' postinst, the config code is attempting to add the user to the group here:
# Add postgres user to the ssl-cert group on fresh installs
if [ -z "$2" ]; then
if getent group ssl-cert >/dev/null; then
adduser $quiet postgres ssl-cert
fi
fi