From owner-freebsd-isp Sun Jun 17 1:12:14 2001 Delivered-To: freebsd-isp@freebsd.org Received: from goliath.siemens.de (goliath.siemens.de [194.138.37.131]) by hub.freebsd.org (Postfix) with ESMTP id E817D37B405 for ; Sun, 17 Jun 2001 01:12:00 -0700 (PDT) (envelope-from andre.albsmeier@mchp.siemens.de) X-Envelope-Sender-Is: andre.albsmeier@mchp.siemens.de (at relayer goliath.siemens.de) Received: from mail1.siemens.de (mail1.siemens.de [139.23.33.14]) by goliath.siemens.de (8.11.1/8.11.1) with ESMTP id f5H8BZb16484; Sun, 17 Jun 2001 10:11:35 +0200 (MET DST) Received: from curry.mchp.siemens.de (curry.mchp.siemens.de [139.25.42.7]) by mail1.siemens.de (8.11.0/8.11.0) with ESMTP id f5H8BYT14599; Sun, 17 Jun 2001 10:11:34 +0200 (MET DST) Received: (from localhost) by curry.mchp.siemens.de (8.11.3/8.11.3) id f5H8BYu86538; Date: Sun, 17 Jun 2001 10:11:34 +0200 From: Andre Albsmeier To: patl@Phoenix.Volant.ORG Cc: freebsd-isp@FreeBSD.ORG Subject: Re: Urgent: yppush hangs when pushing to Solaris8 Message-ID: <20010617101134.A61981@curry.mchp.siemens.de> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: ; from patl@Phoenix.Volant.ORG on Wed, Jun 06, 2001 at 12:47:49PM -0700 X-Echelon: BND CIA NSA Mossad KGB MI6 IRA detonator nuclear assault strike Sender: owner-freebsd-isp@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Try this (discovered by John Polstra): =================================================================== RCS file: /usr/local/www/cvs/src/usr.sbin/yppush/yppush_main.c,v retrieving revision 1.11 retrieving revision 1.11.2.1 diff -u -p -r1.11 -r1.11.2.1 --- src/usr.sbin/yppush/yppush_main.c 1999/08/28 01:21:09 1.11 +++ src/usr.sbin/yppush/yppush_main.c 2001/06/07 04:58:35 1.11.2.1 @@ -32,7 +32,7 @@ #ifndef lint static const char rcsid[] = - "$FreeBSD: /usr/local/www/cvs/src/usr.sbin/yppush/yppush_main.c,v 1.11 1999/08/28 01:21:09 peter Exp $"; + "$FreeBSD: /usr/local/www/cvs/src/usr.sbin/yppush/yppush_main.c,v 1.11.2.1 2001/06/07 04:58:35 jdp Exp $"; #endif /* not lint */ #include @@ -651,6 +651,7 @@ main(argc,argv) sigaddset(&sa.sa_mask, SIGALRM); sigaddset(&sa.sa_mask, SIGINT); sa.sa_handler = async_handler; + sa.sa_flags = 0; sigaction(SIGIO, &sa, NULL); For more info you can look at http://www.freebsd.org/cgi/query-pr.cgi?pr=27457 or email me. Hope this helps, -Andre On Wed, 06-Jun-2001 at 12:47:49 -0700, patl@Phoenix.Volant.ORG wrote: > I have a customer with an NIS master set up on FreeBSD 4.1 and a slave > on a Netra X1 running Solaris8. When I try to yppush from the server, > it fails after a long (5 min+) hang. Here's a log (with actual host/ > domain names obscured): > > root@fbsd.1006>yppush -vvv netgroup.byhost > yppush: initiating transfer: netgroup.byhost -> fbsd.my.dom (transid = > 991850786) > yppush: fbsd.my.dom has been called > yppush: checking return status: transaction ID: 991850786 > yppush: transfer of map netgroup.byhost to server fbsd.my.dom failed > yppush: status returned by ypxfr: Master's version not newer > yppush: initiating transfer: netgroup.byhost -> x1.my.dom (transid = 991850787) > yppush: x1.my.dom has been called > yppush: all jobs dispatched > yppush: x1.my.dom has not responded > yppush: fbsd.my.dom has responded > yppush: 1 transfer still pending > yppush: timed out > yppush: warning: exiting with transfer to x1.my.dom (transid = 991850787) still > pending > > > Getting a suitable log from the Solaris side appears to be more difficult. > A manual ypxfr yields: > > root@x1.28> /usr/lib/netsvc/yp/ypxfr -f netgroup.byhost > ypxfr: couldnot get fbsd.my.dom address > (info) fbsd.my.dom nis.dom netgroup.byhost ypxfrd getdbm failed (reason = -1) > -- using ypxfr > > > Note that fbsd.my.dom is explicitly in the /etc/hosts file on the x1; > and, of course, it is in both the NIS and DNS maps and the machines > are able to communicate with no problems. > > I do not have ypxfrd running on the FreeBSD box because of the > incompatability between *BSD and Sun implementations. > > > If we can't get this push fixed, they will probably abandon the use of > FreeBSD... To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isp" in the body of the message