Bug 1283754

Summary: scriptlet errors during update/reinstall
Product: [Fedora] Fedora Reporter: Julian Sikorski <belegdol>
Component: rpcbindAssignee: Steve Dickson <steved>
Status: CLOSED WORKSFORME QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 22CC: belegdol, steved
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-11-20 05:13:48 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Julian Sikorski 2015-11-19 17:59:35 UTC
Description of problem:
When I updated to rpcbind-0.2.3-0.3.fc22.x86_64 today, I was greeted by several scriptlet errors

Version-Release number of selected component (if applicable):
rpcbind-0.2.3-0.3.fc22.x86_64

How reproducible:
always

Steps to Reproduce:
1. dnf reinstall rpcbind

Actual results:
Failed to execute operation: File exists
warning: %triggerun(rpcbind-0.2.3-0.3.fc22.x86_64) scriptlet failed, exit status 1
Non-fatal <unknown> scriptlet failure in rpm package rpcbind
Non-fatal <unknown> scriptlet failure in rpm package rpcbind
Failed to execute operation: File exists
warning: %triggerun(rpcbind-0.2.3-0.3.fc22.x86_64) scriptlet failed, exit status 1
Non-fatal <unknown> scriptlet failure in rpm package rpcbind
Non-fatal <unknown> scriptlet failure in rpm package rpcbind
Failed to execute operation: File exists
warning: %triggerun(rpcbind-0.2.3-0.3.fc22.x86_64) scriptlet failed, exit status 1

Expected results:
No errors

Comment 1 Steve Dickson 2015-11-19 18:21:52 UTC
(In reply to Julian Sikorski from comment #0)
> Description of problem:
> When I updated to rpcbind-0.2.3-0.3.fc22.x86_64 today, I was greeted by
> several scriptlet errors
> 
> Failed to execute operation: File exists
> warning: %triggerun(rpcbind-0.2.3-0.3.fc22.x86_64) scriptlet failed, exit
> status 1
> Non-fatal <unknown> scriptlet failure in rpm package rpcbind
> Non-fatal <unknown> scriptlet failure in rpm package rpcbind
> Failed to execute operation: File exists
> warning: %triggerun(rpcbind-0.2.3-0.3.fc22.x86_64) scriptlet failed, exit
> status 1
> Non-fatal <unknown> scriptlet failure in rpm package rpcbind
> Non-fatal <unknown> scriptlet failure in rpm package rpcbind
> Failed to execute operation: File exists
> warning: %triggerun(rpcbind-0.2.3-0.3.fc22.x86_64) scriptlet failed, exit
> status 1

This is very odd... There are two %triggerun in the spec file.

%triggerun -- rpcbind < 0.2.0-15
%{_bindir}/systemd-sysv-convert --save rpcbind >/dev/null 2>&1 ||:
/bin/systemctl --no-reload enable rpcbind.service >/dev/null 2>&1
/sbin/chkconfig --del rpcbind >/dev/null 2>&1 || :
/bin/systemctl try-restart rpcbind.service >/dev/null 2>&1 || :

%triggerun -- rpcbind > 0.2.2-2.0
/bin/systemctl enable rpcbind.socket

So the question is what did you upgrade from? Which trigger popped?

Comment 2 Julian Sikorski 2015-11-19 18:28:00 UTC
I was upgrading from rpcbind-0.2.3-0.1.fc22.x86_64 however the bug can be triggered by reinstalling rpcbind-0.2.3-0.3.fc22.x86_64 as well.
How do i check which one popped?

Comment 3 Steve Dickson 2015-11-19 19:11:17 UTC
(In reply to Julian Sikorski from comment #2)
> I was upgrading from rpcbind-0.2.3-0.1.fc22.x86_64 however the bug can be
> triggered by reinstalling rpcbind-0.2.3-0.3.fc22.x86_64 as well.
> How do i check which one popped?
I thinking its the second one... Is there a rpcbind.socket script?
Plus I'm not able to reproduce this
plete!
f22# dnf -y update rpcbind-0.2.3-0.3.fc22.x86_64.rpm
Last metadata expiration check performed 0:35:44 ago on Thu Nov 19 13:33:08 2015.
Dependencies resolved.
================================================================================
 Package        Arch          Version                 Repository           Size
================================================================================
Upgrading:
 rpcbind        x86_64        0.2.3-0.3.fc22          @commandline         62 k

Transaction Summary
================================================================================
Upgrade  1 Package

Total size: 62 k
Downloading Packages:
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
  Upgrading   : rpcbind-0.2.3-0.3.fc22.x86_64                               1/2 
  Cleanup     : rpcbind-0.2.3-0.1.fc22.x86_64                               2/2 
  Verifying   : rpcbind-0.2.3-0.3.fc22.x86_64                               1/2 
  Verifying   : rpcbind-0.2.3-0.1.fc22.x86_64                               2/2 

Upgraded:
  rpcbind.x86_64 0.2.3-0.3.fc22                                                 

Complete!

Comment 4 Julian Sikorski 2015-11-19 19:16:19 UTC
$ locate rpcbind.socket
/etc/systemd/system/sockets.target.wants/rpcbind.socket
/usr/lib/systemd/system/rpcbind.socket

Comment 5 Julian Sikorski 2015-11-19 19:22:42 UTC
$ LANG=C sudo systemctl enable rpcbind.socket
Failed to execute operation: File exists

Comment 6 Steve Dickson 2015-11-19 19:27:06 UTC
(In reply to Julian Sikorski from comment #5)
> $ LANG=C sudo systemctl enable rpcbind.socket
> Failed to execute operation: File exists
hmmm.. I'm not seeing that... 

# rpm -q rpcbind
rpcbind-0.2.3-0.3.fc22.x86_64
f22# systemctl enable rpcbind.socket
f22# 

Here is what my systemctl status  rpcbind.socket looks like:
f22# systemctl status  rpcbind.socket
* rpcbind.socket - RPCbind Server Activation Socket
   Loaded: loaded (/usr/lib/systemd/system/rpcbind.socket; enabled; vendor preset: disabled)
   Active: active (running) since Thu 2015-11-19 14:08:57 EST; 16min ago
   Listen: /var/run/rpcbind.sock (Stream)

Nov 19 14:08:57 f22.home.4dicksons.org systemd[1]: Listening on RPCbind Serve...
Nov 19 14:08:57 f22.home.4dicksons.org systemd[1]: Starting RPCbind Server Ac...
Hint: Some lines were ellipsized, use -l to show in full.

Does your look similar?

Comment 7 Julian Sikorski 2015-11-19 19:29:30 UTC
$ sudo systemctl status rpcbind.socket
● rpcbind.socket - RPCbind Server Activation Socket
   Loaded: loaded (/usr/lib/systemd/system/rpcbind.socket; enabled; vendor preset: disabled)
   Active: active (running) since czw 2015-11-19 19:25:15 CET; 1h 3min ago
   Listen: /var/run/rpcbind.sock (Stream)

lis 19 19:25:15 snowball2 systemd[1]: Listening on RPCbind Server Activation Socket.
lis 19 19:25:15 snowball2 systemd[1]: Starting RPCbind Server Activation Socket.

Comment 8 Steve Dickson 2015-11-19 20:07:35 UTC
(In reply to Julian Sikorski from comment #7)
> $ sudo systemctl status rpcbind.socket
> ● rpcbind.socket - RPCbind Server Activation Socket
>    Loaded: loaded (/usr/lib/systemd/system/rpcbind.socket; enabled; vendor
> preset: disabled)
>    Active: active (running) since czw 2015-11-19 19:25:15 CET; 1h 3min ago
>    Listen: /var/run/rpcbind.sock (Stream)
> 
> lis 19 19:25:15 snowball2 systemd[1]: Listening on RPCbind Server Activation
> Socket.
> lis 19 19:25:15 snowball2 systemd[1]: Starting RPCbind Server Activation
> Socket.
This looks the same to me... IDK... big time... systemd is 
always so hard to debug...

Comment 9 Julian Sikorski 2015-11-20 05:13:48 UTC
$ LANG=C sudo systemctl enable rpcbind.socket
Failed to execute operation: File exists
$ LANG=C sudo systemctl disable rpcbind.socket
Removed symlink /etc/systemd/system/sockets.target.wants/rpcbind.socket.
$ LANG=C sudo systemctl enable rpcbind.socket
Created symlink from /etc/systemd/system/sockets.target.wants/rpcbind.socket to /usr/lib/systemd/system/rpcbind.socket.
$ LANG=C sudo systemctl enable rpcbind.socket
$ LANG=C sudo systemctl enable rpcbind.socket
$

Interesting... Anyway, looks like it's gone now.

Comment 10 Steve Dickson 2015-11-20 13:35:29 UTC
(In reply to Julian Sikorski from comment #9)
> $ LANG=C sudo systemctl enable rpcbind.socket
> Failed to execute operation: File exists
> $ LANG=C sudo systemctl disable rpcbind.socket
> Removed symlink /etc/systemd/system/sockets.target.wants/rpcbind.socket.
> $ LANG=C sudo systemctl enable rpcbind.socket
> Created symlink from /etc/systemd/system/sockets.target.wants/rpcbind.socket
> to /usr/lib/systemd/system/rpcbind.socket.
> $ LANG=C sudo systemctl enable rpcbind.socket
> $ LANG=C sudo systemctl enable rpcbind.socket
> $
> 
> Interesting... Anyway, looks like it's gone now.

WOW.. I'll make note of this... thanks!