Bug 5733 - rpcbind can not start up with 1.6 M2 RC1
Summary: rpcbind can not start up with 1.6 M2 RC1
Status: RESOLVED FIXED
Alias: None
Product: General Runtime
Classification: Runtime
Component: General Runtime (show other bugs)
Version: 1.6
Hardware: x86 Multiple
: Medium normal
Target Milestone: 1.6 M3
Assignee: Cristian Iorga
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2014-01-17 08:08 UTC by Yi Zhao
Modified: 2014-01-28 20:36 UTC (History)
3 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: No (bug/feature does not impact docs)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Yi Zhao 2014-01-17 08:08:01 UTC
Image location: http://autobuilder.yoctoproject.org/pub/releases/1.6_M2.rc1/
Git rev: master/e4c23f7bcb79072ea6028fbdf8f3f0dc17a63371

The rpcbind can not startup both on qemus and real hardwares.

The boot log:
########################
...
Starting rpcbind daemon...done.
rpcbind: cannot get uid of '': Success
...
########################

########################
root@mpc8315e-rdb:~# ps | grep "rpc"
   20 root         0 SW<  [rpciod]
  576 root      2552 S    grep rpc
root@mpc8315e-rdb:~# 
root@mpc8315e-rdb:~# 
root@mpc8315e-rdb:~# /etc/init.d/rpcbind restart
Stopping rpcbind daemon...
not running.
Starting rpcbind daemon...done.
root@mpc8315e-rdb:~# 
root@mpc8315e-rdb:~# 
root@mpc8315e-rdb:~# ps | grep "rpc"
   20 root         0 SW<  [rpciod]
  587 root      2552 S    grep rpc
root@mpc8315e-rdb:~# 
root@mpc8315e-rdb:~# /etc/init.d/rpcbind stop 
Stopping rpcbind daemon...
not running.
root@mpc8315e-rdb:~# 
########################
Comment 1 Cristian Iorga 2014-01-23 13:25:56 UTC
Investigation started.
Comment 2 Cristian Iorga 2014-01-24 15:01:14 UTC
rpcbind not working correctly has consequences:

cat /var/log/messages
...............
Jan 24 14:58:39 qemux86 kernel: svc: failed to register nfsdv2 RPC service (errno 111).

boot log:
Fri Jan 24 14:58:37 2014: Starting rpcbind daemon...done.
Fri Jan 24 14:58:37 2014: rpcbind: cannot get uid of '': Success
Fri Jan 24 14:58:37 2014: creating NFS state directory: done
Fri Jan 24 14:58:37 2014: starting statd: done
Fri Jan 24 14:58:38 2014: starting 8 nfsd kernel threads: rpc.nfsd: Setting version failed: errno 22 (Invalid argument)
Fri Jan 24 14:58:38 2014: rpc.nfsd: writing fd to kernel failed: errno 111 (Connection refused)
Fri Jan 24 14:58:38 2014: rpc.nfsd: unable to set any sockets for nfsd
Fri Jan 24 14:58:38 2014: done
Fri Jan 24 14:58:38 2014: starting mountd: Cannot register service: RPC: Unable to receive; errno = Connection refused
Fri Jan 24 14:58:38 2014: done
Fri Jan 24 14:58:38 2014: Starting system log daemon...0
Fri Jan 24 14:58:38 2014: Starting kernel log daemon...0
Fri Jan 24 14:58:39 2014: Starting Lighttpd Web Server: lighttpd.
Fri Jan 24 14:58:39 2014: Starting crond: OK
Fri Jan 24 14:58:39 2014:
Comment 3 Cristian Iorga 2014-01-24 15:02:34 UTC
root@qemux86:/var/log# rpcinfo 
rpcinfo: can't contact rpcbind: RPC: Remote system error - Connection refused
root@qemux86:/var/log# rpc.statd
Comment 4 Cristian Iorga 2014-01-24 15:47:04 UTC
Something doesn't quite work:

root@qemux86:/etc# /etc/init.d/rpcbind status
/usr/sbin/rpcbind is stopped
root@qemux86:/etc# /etc/init.d/rpcbind start
Starting rpcbind daemon...done.
root@qemux86:/etc# /etc/init.d/rpcbind status
/usr/sbin/rpcbind is stopped
root@qemux86:/etc#
Comment 5 Cristian Iorga 2014-01-24 16:59:02 UTC
Patch sent for review.