From owner-freebsd-questions Wed May 1 10:21:13 2002 Delivered-To: freebsd-questions@freebsd.org Received: from c001.snv.cp.net (h031.c001.snv.cp.net [209.228.32.141]) by hub.freebsd.org (Postfix) with SMTP id B611937B405 for ; Wed, 1 May 2002 10:20:49 -0700 (PDT) Received: (cpmta 9971 invoked from network); 1 May 2002 10:20:48 -0700 Received: from 209.228.32.116 (HELO mail.atkinshome.com.criticalpath.net) by smtp.register-admin.com (209.228.32.141) with SMTP; 1 May 2002 10:20:48 -0700 X-Sent: 1 May 2002 17:20:48 GMT Received: from [64.75.4.241] by mail.atkinshome.com with HTTP; Wed, 01 May 2002 10:20:34 -0700 (PDT) Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 7bit MIME-Version: 1.0 To: freebsd-questions@FreeBSD.ORG Cc: wmoran@potentialtech.com From: dave@atkinshome.com Subject: Re: samba/inetd - netbios-ns/udp: bind: Address already in use error messages X-Sent-From: dave@atkinshome.com Date: Wed, 01 May 2002 10:20:34 -0700 (PDT) X-Mailer: Web Mail 5.0.8-8 Message-Id: <20020501102048.18324.h002.c001.wm@mail.atkinshome.com.criticalpath.net> Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG After digging around for a while, I eventually rebooted and the problem went away! I think what may have happened is that when I installed samba originally, I may have started it from the command line and never killed it before allowing inetd to take over... doh! > >>Have you checked /usr/local/etc/rc.d for a startup script? > > there is no /usr/local/etc. > I've never seen a FreeBSD system without /usr/local/etc - unless > you manually removed it. Yes, I wondered about that (/usr/local/etc). It was not created during the install of any of my systems, unless I chose to add packages such as apache. On another freeBSD box that I installed the apache distribution and other things, /usr/local/etc got created, along with an apache folder in there which has a startup script for apache. For these servers, I did a developer install, but did not install any additional packages. After the initial install, there are no folders in /usr/local at all. To track down own the daemon is getting started, I start with /etc/defaults/rc.conf which says: rc_conf_files="/etc/rc.conf /etc/rc.conf.local" there is no rc.conf.local checked both files, no mention of anything samba-related. No X installed either. > nmbd is the problem. It looks like it's starting as a daemon. Check carefully > to find out where this is occurring. Bootup messages are helpful, if it's > listed after "Local package initialization:" then it's being started from > /usr/local/etc/rc.d (use "dmesg -a" to verify this) nothing helpful in dmesg...but here it is, just in case you see something (Had to reboot b/c it was full of error messages): Copyright (c) 1992-2002 The FreeBSD Project. Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD 4.5-RELEASE #0: Mon Mar 11 19:34:35 PST 2002 root@crwebx3.crdc.consumerreview.org:/usr/obj/usr/src/sys/WEBX Timecounter "i8254" frequency 1193182 Hz CPU: Pentium III/Pentium III Xeon/Celeron (662.22-MHz 686-class CPU) Origin = "GenuineIntel" Id = 0x683 Stepping = 3 Features=0x383fbff real memory = 2147475456 (2097144K bytes) config> di sn0 No such device: sn0 Invalid command or syntax. Type `?' for help. config> di lnc0 No such device: lnc0 Invalid command or syntax. Type `?' for help. config> di ie0 No such device: ie0 Invalid command or syntax. Type `?' for help. config> di fe0 No such device: fe0 Invalid command or syntax. Type `?' for help. config> di cs0 No such device: cs0 Invalid command or syntax. Type `?' for help. config> q avail memory = 2087936000 (2039000K bytes) Changing APIC ID for IO APIC #0 from 0 to 2 on chip Changing APIC ID for IO APIC #1 from 0 to 3 on chip Programming 16 pins in IOAPIC #0 Programming 16 pins in IOAPIC #1 FreeBSD/SMP: Multiprocessor motherboard cpu0 (BSP): apic id: 1, version: 0x00040011, at 0xfee00000 cpu1 (AP): apic id: 0, version: 0x00040011, at 0xfee00000 io0 (APIC): apic id: 2, version: 0x000f0011, at 0xfec00000 io1 (APIC): apic id: 3, version: 0x000f0011, at 0xfec01000 Preloaded elf kernel "kernel" at 0xc0387000. Preloaded userconfig_script "/boot/kernel.conf" at 0xc038709c. Pentium Pro MTRR support enabled md0: Malloc disk Using $PIR table, 7 entries at 0xc00fc330 npx0: on motherboard npx0: INT 16 interface pcib0: on motherboard IOAPIC #1 intpin 6 -> irq 2 pci0: on pcib0 fxp0: port 0xecc0-0xecff mem 0xfe000000-0xfe0fffff,0xfe102000-0xfe102fff irq 2 at device 8.0 on pci0 fxp0: Ethernet address 00:d0:b7:9e:aa:4a inphy0: on miibus0 inphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto pci0: at 14.0 isab0: at device 15.0 on pci0 isa0: on isab0 atapci0: port 0x8b0-0x8bf at device 15.1 on pci0 ata0: at 0x1f0 irq 14 on atapci0 ohci0: mem 0xfe100000-0xfe100fff irq 10 at device 15.2 on pci0 usb0: OHCI version 1.0, legacy support usb0: on ohci0 usb0: USB revision 1.0 uhub0: (unknown) OHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub0: 2 ports with 2 removable, self powered pcib1: on motherboard IOAPIC #1 intpin 15 -> irq 5 IOAPIC #1 intpin 0 -> irq 10 pci1: on pcib1 pcib2: at device 2.0 on pci1 IOAPIC #1 intpin 14 -> irq 11 pci2: on pcib2 pci2: (vendor=0x9005, dev=0x00c5) at 4.0 irq 5 ahc0: port 0xd800-0xd8ff mem 0xf8ffe000-0xf8ffefff irq 11 at device 4.1 on pci2 aic7899: Ultra160 Wide Channel B, SCSI Id=7, 32/255 SCBs aac0: mem 0xf0000000-0xf3ffffff irq 5 at device 2.1 on pci1 aac0: i960RX 100MHz, 54MB cache memory, no battery support aac0: Kernel 2.1-3, Build 2951, S/N 401d0 fxp1: port 0xccc0-0xccff mem 0xfa000000-0xfa0fffff,0xfa100000-0xfa100fff irq 10 at device 8.0 on pci1 fxp1: Ethernet address 00:b0:d0:49:d6:e9 inphy1: on miibus1 inphy1: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto orm0: