RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1268139 - Upgrading rpcbind from RHEL 7.1 to 7.2 gives scriptlet warning: chown: cannot access ‘/run/rpcbind’: No such file or directory
Summary: Upgrading rpcbind from RHEL 7.1 to 7.2 gives scriptlet warning: chown: cannot...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: rpcbind
Version: 7.3
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Steve Dickson
QA Contact: Yongcheng Yang
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-10-01 22:10 UTC by Richard W.M. Jones
Modified: 2015-11-19 05:32 UTC (History)
5 users (show)

Fixed In Version: rpcbind-0.2.0-32.el7
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-11-19 05:32:51 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2015:2205 0 normal SHIPPED_LIVE rpcbind bug fix update 2015-11-19 08:17:40 UTC

Description Richard W.M. Jones 2015-10-01 22:10:47 UTC
Description of problem:

When updating from rpcbind-0.2.0-26.el7.x86_64 (RHEL 7.1) to
rpcbind-0.2.0-31.el7.x86_64 (RHEL 7.2) I get this scriptlet
warning

...
  Cleanup    : rpcbind-0.2.0-26.el7.x86_64                              432/704 
/var/tmp/rpm-tmp.pWE4Ad: line 1: [: missing `]'
chown: cannot access ‘/run/rpcbind’: No such file or directory
warning: %triggerpostun(rpcbind-0.2.0-31.el7.x86_64) scriptlet failed, exit status 1
Non-fatal <unknown> scriptlet failure in rpm package rpcbind-0.2.0-26.el7.x86_64
...

Version-Release number of selected component (if applicable):

rpcbind-0.2.0-31.el7.x86_64

How reproducible:

Unknown, but at least once.

Steps to Reproduce:
1. Install RHEL 7.1.
2. Upgrade to RHEL 7.2.

Comment 2 Steve Dickson 2015-10-02 01:03:13 UTC
This is the tigger 

%triggerpostun -- rpcbind < 0.2.0-29
[ ! -d /run/rpcbind ] mkdir /run/rpcbind
chown rpc:rpc /run/rpcbind
[ -f /var/lib/rpcbind/rpcbind.xdr ] && \
    mv /var/lib/rpcbind/rpcbind.xdr /run/rpcbind
[ -f /var/lib/rpcbind/portmap.xdr ] && \
    mv /var/lib/rpcbind/portmap.xdr /run/rpcbind

Maybe it is an SELinux thing? Was there anything in
/var/log/messages?

Comment 3 Richard W.M. Jones 2015-10-02 07:45:50 UTC
Doesn't seem to be anything in /var/log/messages nor in the
audit logs.  However my search is a bit inconclusive so I will
attach both.

The upgrade happened between 23:00 and 23:10 local time.

Comment 4 Richard W.M. Jones 2015-10-02 07:46:15 UTC
Created attachment 1079377 [details]
/var/log/messages

Comment 5 Richard W.M. Jones 2015-10-02 07:46:44 UTC
Created attachment 1079378 [details]
ausearch -ts yesterday -m avc

Comment 6 Richard W.M. Jones 2015-10-02 07:49:13 UTC
Actually I think the problem is in this line:

  [ ! -d /run/rpcbind ] mkdir /run/rpcbind

Are you missing '&&' in there?

Comment 7 Steve Dickson 2015-10-02 11:26:01 UTC
(In reply to Richard W.M. Jones from comment #6)
> Actually I think the problem is in this line:
> 
>   [ ! -d /run/rpcbind ] mkdir /run/rpcbind
> 
> Are you missing '&&' in there?

Good catch... lets see if we can get some acks...

Comment 10 Steve Dickson 2015-10-02 19:05:46 UTC
Richard,

Nice work... Thank you!!!

Comment 11 Yongcheng Yang 2015-10-12 00:36:21 UTC
Verified with rpcbind-0.2.0-32.el7
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[root@ibm-x3250m4-05 ~]# rpm -q rpcbind
rpcbind-0.2.0-26.el7.x86_64
[root@ibm-x3250m4-05 ~]# rm -rf /run/rpcbind
[root@ibm-x3250m4-05 ~]# rpm -Uvh rpcbind-0.2.0-32.el7.x86_64.rpm 
Preparing...                          ################################# [100%]
Updating / installing...
   1:rpcbind-0.2.0-32.el7             ################################# [ 50%]
Cleaning up / removing...
   2:rpcbind-0.2.0-26.el7             ################################# [100%]
[root@ibm-x3250m4-05 ~]# ls /run/rpcbind*
/run/rpcbind.lock  /run/rpcbind.sock  /run/rpcbind.xdr

/run/rpcbind:
portmap.xdr  rpcbind.xdr
[root@ibm-x3250m4-05 ~]# 

And reproduced with previous version rpcbind-0.2.0-31.el7
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[root@ibm-x3250m4-05 ~]# rpm -q rpcbind
rpcbind-0.2.0-26.el7.x86_64
[root@ibm-x3250m4-05 ~]# rm -rf /run/rpcbind
[root@ibm-x3250m4-05 ~]# rpm -Uvh rpcbind-0.2.0-31.el7.x86_64.rpm 
Preparing...                          ################################# [100%]
Updating / installing...
   1:rpcbind-0.2.0-31.el7             ################################# [ 50%]
Cleaning up / removing...
   2:rpcbind-0.2.0-26.el7             ################################# [100%]
/var/tmp/rpm-tmp.t0rfEz: line 1: [: missing `]'
chown: cannot access ‘/run/rpcbind’: No such file or directory
[root@ibm-x3250m4-05 ~]#

Move to VERIFIED

Comment 13 errata-xmlrpc 2015-11-19 05:32:51 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://rhn.redhat.com/errata/RHBA-2015-2205.html


Note You need to log in before you can comment on or make changes to this bug.