Bug 1033518 - F20 - rpcbind: Cannot open '/var/lib/rpcbind/rpcbind.xdr' file for reading, errno 2 (No such file or directory)
Summary: F20 - rpcbind: Cannot open '/var/lib/rpcbind/rpcbind.xdr' file for reading, e...
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: rpcbind
Version: 20
Hardware: ppc64
OS: All
unspecified
medium
Target Milestone: ---
Assignee: Steve Dickson
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-11-22 10:01 UTC by IBM Bug Proxy
Modified: 2014-10-23 18:04 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-10-23 18:04:31 UTC
Type: ---


Attachments (Terms of Use)
varlogmessages from the affected machine (91.65 KB, text/plain)
2013-11-22 10:01 UTC, IBM Bug Proxy
no flags Details


Links
System ID Private Priority Status Summary Last Updated
IBM Linux Technology Center 100189 0 None None None Never

Description IBM Bug Proxy 2013-11-22 10:01:12 UTC
== Comment: #0 - Shubham Goyal <shubgoya.com> - 2013-11-20 13:12:52 ==
Description of problem: After a fresh installation am getting below messages in "/var/log/messages":

Nov 20 09:18:30 transam2s-lp1 rpcbind: Cannot open '/var/lib/rpcbind/rpcbind.xdr' file for reading, errno 2 (No such file or directory)
Nov 20 09:18:30 transam2s-lp1 rpcbind: Cannot open '/var/lib/rpcbind/portmap.xdr' file for reading, errno 2 (No such file or directory)

How reproducible: Always

Version-Release number of selected component like OS, packages etc
[root@transam2s-lp1 ~]# uname -a
Linux transam2s-lp1.xxxx.ibm.com 3.11.6-301.fc20.ppc64p7 #1 SMP Mon Oct 21 18:49:17 MST 2013 ppc64 ppc64 ppc64 GNU/Linux

Steps to Reproduce:

1) You'll get these messages in "/var/log/messages" post fresh install

Actual results: System showing these message

Expected results: Absence of any such failure messages

Additional info: Attaching serial console logs

== Comment: #1 - Shubham Goyal <shubgoya.com> - 2013-11-20 13:16:06 ==


== Comment: #7 - Onkar N. Mahajan <onmahaja.com> - 2013-11-22 04:51:13 ==
Seems like similar problem is fixed in debian in /etc/init.d/rpcbind script 

https://groups.google.com/forum/#!topic/linux.debian.bugs.dist/KS1aD5alLUU

doing equivalent here  -  

[root@transam2s-lp1 BUILD]# diff -Naur rpcbind-0.2.1.orig/src/warmstart.c rpcbind-0.2.1/src/warmstart.c 
--- rpcbind-0.2.1.orig/src/warmstart.c	2013-11-22 02:23:04.206337364 -0700
+++ rpcbind-0.2.1/src/warmstart.c	2013-11-22 02:46:33.761666679 -0700
@@ -105,7 +105,7 @@
 	if (debugging)
 		fprintf(stderr, "rpcbind: using '%s' startup file\n", filename);
 
-	if ((fp = fopen(filename, "r")) == NULL) {
+	if ((fp = fopen(filename, "w+")) == NULL) {
 		syslog(LOG_ERR,
 			"Cannot open '%s' file for reading, errno %d (%s)", 
 			filename, errno, strerror(errno));


with this I verified that  no message is printed to the /var/log/message for 'rpcbind -w'

Comment 1 IBM Bug Proxy 2013-11-22 10:01:36 UTC
Created attachment 827664 [details]
varlogmessages from the affected machine

Comment 2 IBM Bug Proxy 2013-12-23 05:50:42 UTC
------- Comment From onmahaja.com 2013-12-23 05:46 EDT-------
** Externalizing **

Am able to reproduce this issue in F20 PPC GA as well. Below is the kernel version.

Linux transam2s-lp1.xxxx.ibm.com 3.11.10-301.fc20.ppc64p7 #1 SMP Tue Dec 10 00:35:14 MST 2013 ppc64 ppc64 ppc64 GNU/Linux

Comment 3 Steve Dickson 2014-10-23 18:04:31 UTC
So restarts and yum updates work rpcbind has to be started with -w 
flag which causes all the current port and service state to be
written to a file. So when that file does not exist
during start up, it should be logged.


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