Hide Forgot
== 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'
Created attachment 827664 [details] varlogmessages from the affected machine
------- 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
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.