Hi there,
Planning a server change (jump from C6 to C7), yum install pgbouncer gives:
chown: invalid user: 'pgbouncer:pgbouncer'
Installing : pgbouncer-1.5.4-3.rhel7.x86_64 1/1
chown: invalid user: 'pgbouncer:pgbouncer'
warning: %post(pgbouncer-1.5.4-3.rhel7.x86_64) scriptlet failed, exit
status 1
Non-fatal POSTIN scriptlet failure in rpm package
pgbouncer-1.5.4-3.rhel7.x86_64
Verifying : pgbouncer-1.5.4-3.rhel7.x86_64
I’ve quickly checked git repo, and tried groupadd -r pgbouncer; useradd
-m -g pgbouncer -r -s /bin/bash -c "PgBouncer Server" pgbouncer as in
http://git.postgresql.org/gitweb/?p=pgrpms.git;a=blob;f=rpm/redhat/9.4/pgbouncer/EL-6/pgbouncer.spec;h=0f72741d6abfc34bda321901906d8aaf6c89b86e;hb=bd33fec1a93e4266895fcee0950af95e486dec9b
(btw, it is normal one only finds C5, C6, F19 and F20 ?)
it gives:
useradd: group '100' does not exist
useradd: the GROUP= configuration in /etc/default/useradd will be ignored
useradd: group 'pgbouncer' does not exist
[root@planchet C0141797]# cat /etc/default/useradd
# useradd defaults file
GROUP=100
<snip>
That « group 100 doesn’t exist » error may be due to our ldap setup
(managed by our synology nas), but I’d need to check further. At first
sight, another C7 box has a group 100, mine doesn’t. Oh, well.
Anyway, when typed by hand, user and group are properly created.
With rpm, only group is.
Would there be something fishy with that || : syntax I’ve never read about ?
I’ve added users group with gid 100 and still get:
Running transaction
chown: invalid user: 'pgbouncer:pgbouncer'
Installing : pgbouncer-1.5.4-3.rhel7.x86_64
chown: invalid user: 'pgbouncer:pgbouncer'
warning: %post(pgbouncer-1.5.4-3.rhel7.x86_64) scriptlet failed, exit
status 1
Non-fatal POSTIN scriptlet failure in rpm package
pgbouncer-1.5.4-3.rhel7.x86_64
Verifying : pgbouncer-1.5.4-3.rhel7.x86_64
Thanks for helping and keep up the good work :)
--
Laurent Wandrebeck
HYGEOS, Earth Observation Department / Observation de la Terre Euratechnologies
165 Avenue de Bretagne
59000 Lille, France
tel: +33 3 20 08 24 98
http://www.hygeos.com
GPG fingerprint/Empreinte GPG: F5CA 37A4 6D03 A90C 7A1D 2A62 54E6 EF2C D17C F64C