Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 17 Apr 2003 16:23:08 -0700
From:      Blake Swensen <blake@pyramus.com>
To:        Dan Nelson <dnelson@allantgroup.com>
Cc:        FreeBSD List <freebsd-questions@freebsd.org>
Subject:   Re: Yp server not pushing out maps
Message-ID:  <3E9F375C.1030700@pyramus.com>
In-Reply-To: <20030417220326.GD28037@dan.emsphone.com>
References:  <3E9F10A9.3050207@pyramus.com> <20030417205745.GB28037@dan.emsphone.com> <3E9F1AFA.4080103@pyramus.com> <20030417220326.GD28037@dan.emsphone.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Ok... this is interesting.

So I ypxfr'ed all the maps back to the slave using your suggestion of 
forcing the transfer.

Then I touched all the source files on the master server and did a make.

make still tells me that:
Updating passwd.byname...
yppush: transfer of map passwd.byname to server samson failed
yppush: status returned by ypxfr: Master's version not newer

Note that the slave server is now not in the error messages...

So for giggles I forced the transfer from itself... no errors.  But the 
problem still persists when I make.  If I unremark NOPUSH = "True" then 
make again, the errors go away.

What the heck am I missing... my rc.conf looks like:

nisdomainname="domain"     # Set to NIS domain if using NIS (or NO).
nis_server_enable="YES"         # We're an NIS server (or NO).
nis_server_flags=""             # Flags to ypserv (if enabled).
#nis_yppasswdd_enable="YES"     # Run rpc.yppasswdd at boot time (or NO).
#nis_yppasswdd_flags="-t /var/yp/master.passwd -v"
                                 # Flags to rpc.yppasswdd (if enabled).
nis_client_enable="YES"
nis_client_flags="-S domain,samson"

Arrrgh.

Dan Nelson wrote:
> In the last episode (Apr 17), Blake Swensen said:
> 
>>Ya, Dan.
>>
>>ypmatch YP_LAST_MODIFIED master.passwd.byuid reports:
>>Slave:  1050612393
>>Master: 1050611746
>>
>>slave: -rw-------  1 root  wheel  40960 Apr 17 13:15 master.passwd.byuid
>>Master:-rw-------  1 root  wheel  40960 Apr 17 13:35 master.passwd.byuid
>>
>>The clocks are the same
>>Slave:  Thu Apr 17 14:23:22 PDT 2003
>>Master: Thu Apr 17 14:23:22 PDT 2003
> 
> 
> $ TZ=PST8PDT date -r 1050612393
> Thu Apr 17 13:46:33 PDT 2003
> $ TZ=PST8PDT date -r 1050611746
> Thu Apr 17 13:35:46 PDT 2003
> 
> What's strange is that YP_LAST_MODIFIED on the slave is 30 minutes
> older than the timestamp of its db file on disk.  Try running
> "/usr/libexec/ypxfr -f -h <masterserver> master.passwd.byuid" on the
> slave to force a pull, or touch master.passwd on the master and run
> "make" again.
>  

-- 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
The Internet Rescue Company - http://www.pyramus.com
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Blake R. Swensen         Pyramus Online, Inc.
President                2080 SE Oak Grove Blvd. Suite 11
                          Milwaukie, Oregon 97267
                          800-327-5101
                          vox:503-353-0455
                          fax:503-353-0453
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
"We measure success by the success of our clients"



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3E9F375C.1030700>