package nis
found 213733 3.17-27
tags 213733 - moreinfo
found 118023 3.17-27
tags 118023 - moreinfo
thanks

On 02-Oct-2003, Paul Schulz wrote:
> Upgrade NIS in testing distribution and NIS fails to restart.
> 
> The usual messages is reported.
>   Starting NIS services: ypbind [binding to YP server .......... backgrounded]
> 
> NIS can be stopped and restarted several times with the same result.
> (It was running previously without a problem.)

I have exactly the same problem on upgrading to version 3.17-27, with
this output:

=====
$ sudo /etc/init.d/nis restart
Stopping NIS services: ypbind ypserv ypppasswdd ypxfrd.
Starting NIS services: ypserv yppasswdd ypxfrd ypbindbinding to YP 
server...........................................failed (backgrounded).
.
=====

> If 'ypbind' is started manually,
> 
>   # /usr/sbin/ypbind -f /etc/defaultdomain
> 
> The follwoing error is reported..
> 
>   io:~# /usr/sbin/ypbind -f /etc/defaultdomain
>   No NIS server and no -broadcast option specified.
>   Add a NIS server to the /etc/defaultdomain configuration file,
>   or start ypbind with the -broadcast option.

=====
$ sudo kill $(cat /var/run/ypbind.pid)  # the restart left a process that will 
retry indefinitely

$ ps -ef | grep '[y]p'
root     16875     1  0 12:45 ?        00:00:00 /usr/sbin/ypserv
root     16878     1  0 12:45 ?        00:00:00 /usr/sbin/rpc.yppasswdd -D /etc 
-e chsh -e chfn
root     16881     1  0 12:45 ?        00:00:00 /usr/sbin/rpc.ypxfrd

$ grep -v '^\(#.*\|\)$' /etc/yp.conf    # don't show comment or empty lines

$ sudo /usr/sbin/ypbind -f /etc/yp.conf
No NIS server and no -broadcast option specified.
Add a NIS server to the /etc/yp.conf configuration file,
or start ypbind with the -broadcast option.
=====

> BUT
> If this option is put in, then ypbind starts properly 
> and then (surprisingly) NIS works again as expected.

Restarting manually with the ‘-broadcast’ option doesn't help:

=====
$ ps -ef | grep '[y]p'
root     16875     1  0 12:45 ?        00:00:00 /usr/sbin/ypserv
root     16878     1  0 12:45 ?        00:00:00 /usr/sbin/rpc.yppasswdd -D /etc 
-e chsh -e chfn
root     16881     1  0 12:45 ?        00:00:00 /usr/sbin/rpc.ypxfrd

$ sudo /usr/sbin/ypbind -broadcast

$ ps -ef | grep '[y]p'
root     16875     1  0 12:45 ?        00:00:00 /usr/sbin/ypserv
root     16878     1  0 12:45 ?        00:00:00 /usr/sbin/rpc.yppasswdd -D /etc 
-e chsh -e chfn
root     16881     1  0 12:45 ?        00:00:00 /usr/sbin/rpc.ypxfrd
root     17268     1  0 12:55 ?        00:00:00 /usr/sbin/ypbind -broadcast

$ ypcat group
No such map group.byname. Reason: Can't bind to server which serves this domain
=====

Since the automated service restart interface breaks, this also breaks
during postinst, so I'm sending this comment to Bug#118023 also.

-- 
 \     “I must say that I find television very educational. The minute |
  `\       somebody turns it on, I go to the library and read a book.” |
_o__)                                                    —Groucho Marx |
Ben Finney <[email protected]>

Attachment: signature.asc
Description: Digital signature

Reply via email to