From owner-freebsd-bugs@FreeBSD.ORG Tue Nov 15 18:51:19 2005 Return-Path: X-Original-To: freebsd-bugs@freebsd.org Delivered-To: freebsd-bugs@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 45B8F16A41F for ; Tue, 15 Nov 2005 18:51:19 +0000 (GMT) (envelope-from mac@codegreene.com) Received: from bas.flux.utah.edu (bas.flux.utah.edu [155.98.60.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id EF29B43D46 for ; Tue, 15 Nov 2005 18:51:18 +0000 (GMT) (envelope-from mac@codegreene.com) Received: from localhost (localhost [127.0.0.1]) by bas.flux.utah.edu (8.12.11/8.12.11) with ESMTP id jAFIpH3B081081 for ; Tue, 15 Nov 2005 11:51:18 -0700 (MST) (envelope-from mac@codegreene.com) Date: Tue, 15 Nov 2005 11:51:17 -0700 (MST) From: Mac Newbold X-X-Sender: newbold@bas.flux.utah.edu To: freebsd-bugs@freebsd.org Message-ID: <20051115105156.S71856@bas.flux.utah.edu> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Subject: ntpd bind error: address already in use X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 15 Nov 2005 18:51:19 -0000 We recently installed a new server running 5.4-STABLE and I noticed some ntpd errors in /var/log/messages: Nov 15 10:42:22 ntpd[75492]: ntpd 4.2.0-a Sat Sep 24 16:57:36 UTC 2005 (1) Nov 15 10:42:22 ntpd[75492]: bind() fd 7, family 2, port 123, addr 0.0.0.0, in_classd=0 flags=8 fails: Address already in use After lots of googling I found many requests for help with similar issues, and eventually found the problem, and thought I'd share the solution. The funny thing is I've got other boxes running 5.4-STABLE where ntpd works just fine. But I finally found the common thread between many of the people who reported this and my new server: multiple network cards. If you've got more than one interface, and one of them is unused, you can get these errors from ntpd. When I looked at my ifconfig, one of my interfaces was listed as inet 0.0.0.0 because it is not in use. Just for kicks, I tried setting an IP address on it, even though it is down, and then I restarted ntpd. And it worked great. So now I've added an entry in my rc.conf to configure that interface with a static IP (one that doesn't get in the way) every time I reboot. I hope this helps someone out there... Thanks, Mac -- Mac Newbold Code Greene, LLC 1440 S. Foothill Dr. Suite #250 Office: 801-438-0142 Salt Lake City, UT 84108 Cell: 801-694-6334 www.codegreene.com