Chen, Guan (STP)
2002-Jun-10 08:49 UTC
[Samba] can not find samba server through broadcast
Hi all, I am running RedHat 7.3 and Samba 2.2.3a. I am using DHCP for my Linux box (hostname: NGPLinux, IP 132.189.26.62). I can see the list of shares I defined by using "smbclient -L NGPLinux -N". I can resolve the name using "nmblookup -U 127.0.0.1 NGPLinux". However, when I tried to use "nmblookup -B 132.189.26.255 NGPLinux" on the local machine, I got the following error: querying NGPlinux on 132.189.26.255 tdb((null)): tdb_open_ex: could not open file /var/cache/samba/unexpected.tdb: No such file or directory .... (for complete info, please see below). I can use nslookup to find the IP for NGPLinux from another box, but I can not find NGPLinux from its IP address. I can ping NGPLinux and its IP address. I suspect DHCP somehow didn't register my machine well, but I have no idea how to test/correct it. Any help will be appreciated! Thanks in advance, Guan NGPLinux:/etc/samba root (7) => ifconfig eth0 eth0 Link encap:Ethernet HWaddr 00:10:4B:25:CE:60 inet addr:132.189.26.62 Bcast:132.189.26.255 Mask:255.255.255.0 UP BROADCAST NOTRAILERS RUNNING MULTICAST MTU:1500 Metric:1 RX packets:490315 errors:0 dropped:0 overruns:0 frame:0 TX packets:26505 errors:0 dropped:0 overruns:0 carrier:0 collisions:38 txqueuelen:100 RX bytes:39797504 (37.9 Mb) TX bytes:3183781 (3.0 Mb) Interrupt:5 Base address:0x220 NGPLinux:/etc/samba root (15) => smbclient -L NGPLinux -N added interface ip=132.189.26.62 bcast=132.189.26.255 nmask=255.255.255.0 Domain=[STP.GUIDANT.COM] OS=[Unix] Server=[Samba 2.2.3a] Sharename Type Comment --------- ---- ------- test Disk NGPTest User Account IPC$ IPC IPC Service (Guan's Linux) ADMIN$ Disk IPC Service (Guan's Linux) root Disk Home Directories Server Comment --------- ------- NGPLINUX Guan's Linux Workgroup Master --------- ------- STP.GUIDANT.COM NGPLinux:/etc/samba root (16) => nmblookup -U 127.0.0.1 NGPlinux querying NGPlinux on 127.0.0.1 132.189.26.62 NGPlinux<00> NGPLinux:/etc/samba root (17) => nmblookup -B 132.189.26.255 NGPlinux querying NGPlinux on 132.189.26.255 tdb((null)): tdb_open_ex: could not open file /var/cache/samba/unexpected.tdb: No such file or directory tdb((null)): tdb_open_ex: could not open file /var/cache/samba/unexpected.tdb: No such file or directory tdb((null)): tdb_open_ex: could not open file /var/cache/samba/unexpected.tdb: No such file or directory tdb((null)): tdb_open_ex: could not open file /var/cache/samba/unexpected.tdb: No such file or directory tdb((null)): tdb_open_ex: could not open file /var/cache/samba/unexpected.tdb: No such file or directory tdb((null)): tdb_open_ex: could not open file /var/cache/samba/unexpected.tdb: No such file or directory tdb((null)): tdb_open_ex: could not open file /var/cache/samba/unexpected.tdb: No such file or directory tdb((null)): tdb_open_ex: could not open file /var/cache/samba/unexpected.tdb: No such file or directory tdb((null)): tdb_open_ex: could not open file /var/cache/samba/unexpected.tdb: No such file or directory name_query failed to find name NGPlinux () NGPLinux:/etc/samba root (19) => ls -al /var/cache/samba total 92 drwxr-xr-x 2 root root 4096 Jun 10 10:31 ./ drwxr-xr-x 7 root root 4096 May 23 11:14 ../ -rw-r--r-- 1 root root 696 Jun 10 10:32 brlock.tdb -rw-r--r-- 1 root root 166 Jun 10 10:31 browse.dat -rw-r--r-- 1 root root 8192 Jun 10 10:31 connections.tdb -rw-r--r-- 1 root root 696 Jun 10 10:32 locking.tdb -rw------- 1 root root 696 Jun 10 10:31 messages.tdb -rw-r--r-- 1 root root 4510 Jun 9 04:02 namelist.debug -rw-r--r-- 1 root root 20 Jun 10 10:31 nmbd.pid -rw------- 1 root root 8192 Jun 10 10:32 ntdrivers.tdb -rw------- 1 root root 696 Jun 10 10:32 ntforms.tdb -rw------- 1 root root 8192 Jun 10 10:32 ntprinters.tdb -rw------- 1 root root 8192 Jun 10 10:32 printing.tdb -rw-r--r-- 1 root root 8192 Jun 10 10:32 sessionid.tdb -rw------- 1 root root 8192 Jun 10 10:32 share_info.tdb -rw-r--r-- 1 root root 20 Jun 10 10:31 smbd.pid
Seemingly Similar Threads
- "could not open file /var/lock/samba/unexpected.tdb"
- tdb(unnamed): tdb_open_ex: /var/run/samba/unexpected.tdb is already open in this process
- SAMBA LOG: tdb/tdbutil.c:tdb_log(725) tdb(unnamed): tdb_open_ex: /var/cache/samba/unexpected.tdb (835, 457947) is already open in this process
- Overloaded samba server. Is it a bug?
- Panic or segfault in Samba