misc/100969: rpc.lockd conflict with cups over udp ports 631
Cristopher Atienza
cfatienza at yahoo.com
Fri Jul 28 09:30:26 UTC 2006
>Number: 100969
>Category: misc
>Synopsis: rpc.lockd conflict with cups over udp ports 631
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Fri Jul 28 09:30:14 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator: Cristopher Atienza
>Release: FreeBSD 6.1-RELEASE
>Organization:
>Environment:
FreeBSD c.decorp.com.ph 6.1-RELEASE FreeBSD 6.1-RELEASE #2: Thu Jul 27 11:15:16 PHT 2006 cfa at hp.decorp.com.ph:/usr/obj/usr/src/sys/CUSTOM i386
>Description:
rpc.lockd uses udp ports 631 on startup before the cups daemon starts. This will cause the following error messages on /var/log/cups/error_log "StartBrowsing: Unable to bind broadcast socket - Address already in use." it will prevent the client enable to print on the server.
# sockstat |grep 631
root cupsd 685 0 tcp4 *:631 *:*
daemon rpc.lockd 554 3 udp4 *:631 *:*
root rpc.lockd 547 3 udp4 *:631 *:*
# cat /var/log/cups/error_log
"StartBrowsing: Unable to bind broadcast socket - Address already in use."
I have this in my rc.conf file.
nisdomainname="argo"
nfs_client_enable="YES" # NFS client (nfsiod)
nfs_server_enable="YES" # This host is an NFS server (or NO).
nfs_server_flags="-u -t -n 4" # Flags to nfsd (if enabled).
nfs_reserved_port_only="YES" # Provide NFS only on secure port
mountd_enable="YES" # Run mountd (or NO).
mountd_flags="-r -p 59" # Force mountd to bind on port 59
rpc_statd_enable="YES" # Run NFS rpc.statd needed for client/server.
rpc_lockd_enable="YES" # Run NFS rpc.lockd needed for client/server.
rpcbind_enable="YES" # Run the portmapper service (YES/NO).
cupsd_enable="YES"
dhcpd_enable="YES" # dhcpd enable
apache_enable="YES"
nis_server_enable="YES"
nis_yppasswdd_enable="YES"
nis_client_enable="YES"
nfs_client_enable="YES" # NFS client (nfsiod)
nfs_server_enable="YES" # This host is an NFS server (or NO).
nfs_server_flags="-u -t -n 4" # Flags to nfsd (if enabled).
nfs_reserved_port_only="YES" # Provide NFS only on secure port
mountd_enable="YES" # Run mountd (or NO).
mountd_flags="-r -p 59" # Force mountd to bind on port 59
rpc_statd_enable="YES" # Run NFS rpc.statd needed for client/server.
rpc_lockd_enable="YES" # Run NFS rpc.lockd needed for client/server.
rpcbind_enable="YES" # Run the portmapper service (YES/NO).
cupsd_enable="YES"
dhcpd_enable="YES" # dhcpd enable
apache_enable="YES"
---eof---
I try to kill the rpc.locdkd daemon and restart the cupsd similar below.
option1: login as root
# killall rpc.lockd
# socket | grep 631
root cupsd 685 0 tcp4 *:631 *:*
# /usr/local/etc/rc.d/cupsd restart
# rpc.lockd
# sockstat | grep 631
root cupsd 959 0 tcp4 *:631 *:*
root cupsd 959 2 udp4 *:631 *:*
# sockstat | grep rpc.lockd
daemon rpc.lockd 982 3 udp4 *:870 *:*
daemon rpc.lockd 982 4 tcp4 *:948 *:*
daemon rpc.lockd 982 5 udp6 *:869 *:*
daemon rpc.lockd 982 6 tcp6 *:947 *:*
daemon rpc.lockd 982 7 dgram -> /var/run/logpriv
daemon rpc.lockd 982 9 udp6 *:867 *:*
root rpc.lockd 981 3 udp4 *:870 *:*
root rpc.lockd 981 4 tcp4 *:948 *:*
root rpc.lockd 981 5 udp6 *:869 *:*
root rpc.lockd 981 6 tcp6 *:947 *:*
root rpc.lockd 981 7 dgram -> /var/run/logpriv
root rpc.lockd 981 9 udp6 *:867 *:*
I also went to single usermode by typing "shutdown now", then exit and check the cupsd and rpc.lockd the problem disappear. But when you restart the server I still have this conflict.
btw: I only have this error specific to this machine I don't have any error on the other servers.
>How-To-Repeat:
Rebooting my server several times woun't solve the problem as per the suggestion by Christopher Sean Hilton on FreeBSD 5.4.
http://lists.freebsd.org/pipermail/freebsd-bugs/2006-March/017662.html
Killing the rpc.lockd and restart the cuspd or going to single usermode that's the time my server works ok.
>Fix:
unknown
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-bugs
mailing list