Rieker Flaik
2012-Oct-14 09:06 UTC
[Samba] wins: no nmblookup on 192.168.1.255 but 192.168.1.2
Hi, here is a client computer and a server computer (Debian Wheezy, armel, samba Version 3.6.6, IP address: 192.168.1.2, Name: xyz). Problem: wins doesn't answer nmblookups by the client on the broadcast address: client$ nmblookup -S xyz querying xyz on 192.168.1.255 name_query failed to find name xyz Why is that so? How to fix this? When I specify the the server IP I do get an answer: client$ nmblookup -U 192.168.1.2 -S xyz querying xyz on 192.168.1.2 192.168.1.2 xyz<00> Looking up status of 192.168.1.2 XYZ <00> - H <ACTIVE> XYZ <03> - H <ACTIVE> XYZ <20> - H <ACTIVE> ..__MSBROWSE__. <01> - <GROUP> H <ACTIVE> TEST <1d> - H <ACTIVE> TEST <1e> - <GROUP> H <ACTIVE> TEST <00> - <GROUP> H <ACTIVE> MAC Address = 00-00-00-00-00-00 I also get an answer if I do nmblookup on the server: xyz# nmblookup -S XYZ added interface eth0 ip=192.168.1.2 bcast=192.168.1.255 netmask=255.255.255.0 querying XYZ on 192.168.1.255 Got a positive name query response from 192.168.1.2 ( 192.168.1.2 ) 192.168.1.2 XYZ<00> Looking up status of 192.168.1.2 XYZ <00> - H <ACTIVE> XYZ <03> - H <ACTIVE> XYZ <20> - H <ACTIVE> ..__MSBROWSE__. <01> - <GROUP> H <ACTIVE> TEST <1d> - H <ACTIVE> TEST <1e> - <GROUP> H <ACTIVE> TEST <00> - <GROUP> H <ACTIVE> MAC Address = 00-00-00-00-00-00 Below is netstat, smb.conf, log.nmbd, log.smbd. Please let me know if you need more information or want me to test something. Thanks for you help, Rik xyz# netstat -nap | grep [sn]mbd tcp 0 0 0.0.0.0:139 0.0.0.0:* LISTEN 18632/smbd tcp 0 0 0.0.0.0:445 0.0.0.0:* LISTEN 18632/smbd udp 0 0 192.168.1.255:137 0.0.0.0:* 18628/nmbd udp 0 0 192.168.1.2:137 0.0.0.0:* 18628/nmbd udp 0 0 0.0.0.0:137 0.0.0.0:* 18628/nmbd udp 0 0 192.168.1.255:138 0.0.0.0:* 18628/nmbd udp 0 0 192.168.1.2:138 0.0.0.0:* 18628/nmbd udp 0 0 0.0.0.0:138 0.0.0.0:* 18628/nmbd unix 2 [ ACC ] STREAM LISTENING 34021 18628/nmbd /var/run/samba/unexpected unix 2 [ ] DGRAM 34033 18632/smbd xyz# cat /etc/smb.conf [global] workgroup = TEST netbios name = XYZ wins support = yes log file = /var/log/samba/log.%m log level = 2 max log size = 1000 [upload] guest ok = yes guest account = blafoo browseable = yes writeable = yes path = /home/test/uploads comment = test upload guest only = yes public = yes available = yes force group = blafoo force user = blafoo xyz# cat /var/log/samba/log.nmbd [2012/10/14 10:18:14, 0] nmbd/nmbd.c:861(main) nmbd version 3.6.6 started. Copyright Andrew Tridgell and the Samba Team 1992-2011 [2012/10/14 10:18:14, 2] lib/tallocmsg.c:124(register_msg_pool_usage) Registered MSG_REQ_POOL_USAGE [2012/10/14 10:18:14, 2] lib/dmallocmsg.c:78(register_dmalloc_msgs) Registered MSG_REQ_DMALLOC_MARK and LOG_CHANGED [2012/10/14 10:18:14, 2] param/loadparm.c:4985(max_open_files) rlimit_max: increasing rlimit_max (1024) to minimum Windows limit (16384) [2012/10/14 10:18:14, 2] nmbd/nmbd.c:894(main) Becoming a daemon. [2012/10/14 10:18:14, 0] nmbd/asyncdns.c:157(start_async_dns) started asyncdns process 18630 [2012/10/14 10:18:14, 2] lib/interface.c:341(add_interface) added interface eth0 ip=192.168.1.2 bcast=192.168.1.255 netmask=255.255.255.0 [2012/10/14 10:18:14, 2] nmbd/nmbd_subnetdb.c:180(make_subnet) making subnet name:192.168.1.2 Broadcast address:192.168.1.255 Subnet mask:255.255.255.0 [2012/10/14 10:18:14, 2] nmbd/nmbd_subnetdb.c:180(make_subnet) making subnet name:UNICAST_SUBNET Broadcast address:192.168.1.2 Subnet mask:192.168.1.2 [2012/10/14 10:18:14, 2] nmbd/nmbd_subnetdb.c:180(make_subnet) making subnet name:REMOTE_BROADCAST_SUBNET Broadcast address:0.0.0.0 Subnet mask:0.0.0.0 [2012/10/14 10:18:14, 2] nmbd/nmbd_subnetdb.c:180(make_subnet) making subnet name:WINS_SERVER_SUBNET Broadcast address:0.0.0.0 Subnet mask:0.0.0.0 [2012/10/14 10:18:14, 2] nmbd/nmbd_lmhosts.c:43(load_lmhosts_file) load_lmhosts_file: Can't open lmhosts file /etc/samba/lmhosts. Error was No such file or directory [2012/10/14 10:18:18, 2] nmbd/nmbd_elections.c:109(check_for_master_browser_fail) check_for_master_browser_fail: Forcing election on workgroup TEST subnet 192.168.1.2 [2012/10/14 10:18:20, 2] nmbd/nmbd_nameregister.c:193(wins_registration_timeout) wins_registration_timeout: WINS server 127.0.0.1 timed out registering IP 192.168.1.2 [2012/10/14 10:18:20, 2] nmbd/nmbd_nameregister.c:193(wins_registration_timeout) wins_registration_timeout: WINS server 127.0.0.1 timed out registering IP 192.168.1.2 [2012/10/14 10:18:20, 2] nmbd/nmbd_nameregister.c:193(wins_registration_timeout) wins_registration_timeout: WINS server 127.0.0.1 timed out registering IP 192.168.1.2 [2012/10/14 10:18:20, 2] nmbd/nmbd_nameregister.c:193(wins_registration_timeout) wins_registration_timeout: WINS server 127.0.0.1 timed out registering IP 192.168.1.2 [2012/10/14 10:18:20, 2] nmbd/nmbd_nameregister.c:193(wins_registration_timeout) wins_registration_timeout: WINS server 127.0.0.1 timed out registering IP 192.168.1.2 [2012/10/14 10:18:21, 2] nmbd/nmbd_elections.c:42(send_election_dgram) send_election_dgram: Sending election packet for workgroup TEST on subnet 192.168.1.2 [2012/10/14 10:18:23, 2] nmbd/nmbd_elections.c:42(send_election_dgram) send_election_dgram: Sending election packet for workgroup TEST on subnet 192.168.1.2 [2012/10/14 10:18:25, 2] nmbd/nmbd_elections.c:42(send_election_dgram) send_election_dgram: Sending election packet for workgroup TEST on subnet 192.168.1.2 [2012/10/14 10:18:27, 2] nmbd/nmbd_elections.c:42(send_election_dgram) send_election_dgram: Sending election packet for workgroup TEST on subnet 192.168.1.2 [2012/10/14 10:18:29, 2] nmbd/nmbd_elections.c:42(send_election_dgram) send_election_dgram: Sending election packet for workgroup TEST on subnet 192.168.1.2 [2012/10/14 10:18:29, 2] nmbd/nmbd_elections.c:202(run_elections) run_elections: >>> Won election for workgroup TEST on subnet 192.168.1.2 <<< [2012/10/14 10:18:29, 2] nmbd/nmbd_become_lmb.c:538(become_local_master_browser) become_local_master_browser: Starting to become a master browser for workgroup TEST on subnet 192.168.1.2 [2012/10/14 10:18:37, 0] nmbd/nmbd_become_lmb.c:397(become_local_master_stage2) ***** Samba name server XYZ is now a local master browser for workgroup TEST on subnet 192.168.1.2 ***** [2012/10/14 10:18:37, 1] nmbd/nmbd_incomingrequests.c:328(process_node_status_request) process_node_status_request: status request for name TEST<1b> from IP 192.168.1.2 on subnet UNICAST_SUBNET - name not found. [2012/10/14 10:18:43, 1] nmbd/nmbd_incomingrequests.c:328(process_node_status_request) process_node_status_request: status request for name TEST<1b> from IP 192.168.1.2 on subnet UNICAST_SUBNET - name not found. [2012/10/14 10:18:48, 1] nmbd/nmbd_incomingrequests.c:328(process_node_status_request) process_node_status_request: status request for name TEST<1b> from IP 192.168.1.2 on subnet UNICAST_SUBNET - name not found. [2012/10/14 10:18:53, 1] nmbd/nmbd_incomingrequests.c:328(process_node_status_request) process_node_status_request: status request for name TEST<1b> from IP 192.168.1.2 on subnet UNICAST_SUBNET - name not found. [2012/10/14 10:18:58, 0] nmbd/nmbd_browsesync.c:248(domain_master_node_status_fail) domain_master_node_status_fail: Doing a node status request to the domain master browser for workgroup TEST at IP 192.168.1.2 failed. Cannot sync browser lists. xyz# cat /var/log/samba/log.smbd [2012/10/14 10:18:14, 0] smbd/server.c:1053(main) smbd version 3.6.6 started. Copyright Andrew Tridgell and the Samba Team 1992-2011 [2012/10/14 10:18:14, 2] lib/tallocmsg.c:124(register_msg_pool_usage) Registered MSG_REQ_POOL_USAGE [2012/10/14 10:18:14, 2] lib/dmallocmsg.c:78(register_dmalloc_msgs) Registered MSG_REQ_DMALLOC_MARK and LOG_CHANGED [2012/10/14 10:18:14.449815, 2] param/loadparm.c:4985(max_open_files) rlimit_max: increasing rlimit_max (1024) to minimum Windows limit (16384) [2012/10/14 10:18:14.450693, 2] param/loadparm.c:8327(do_section) Processing section "[upload]" [2012/10/14 10:18:14.451193, 0] param/loadparm.c:8004(lp_do_parameter) Global parameter guest account found in service section! [2012/10/14 10:18:14.453328, 2] lib/interface.c:341(add_interface) added interface eth0 ip=192.168.1.2 bcast=192.168.1.255 netmask=255.255.255.0 [2012/10/14 10:18:14.539871, 0] lib/util_sock.c:605(open_socket_in) open_socket_in(): socket() call failed: Address family not supported by protocol [2012/10/14 10:18:14.540602, 0] smbd/server.c:578(smbd_open_one_socket) smbd_open_once_socket: open_socket_in: Address family not supported by protocol [2012/10/14 10:18:14.547062, 0] printing/print_cups.c:110(cups_connect) Unable to connect to CUPS server localhost:631 - Connection refused [2012/10/14 10:18:14.554146, 0] lib/util_sock.c:605(open_socket_in) open_socket_in(): socket() call failed: Address family not supported by protocol [2012/10/14 10:18:14.554583, 0] smbd/server.c:578(smbd_open_one_socket) smbd_open_once_socket: open_socket_in: Address family not supported by protocol [2012/10/14 10:18:14.556108, 2] smbd/server.c:842(smbd_parent_loop) waiting for connections [2012/10/14 10:18:14.556392, 2] smbd/server.c:301(remove_child_pid) Could not find child 18635 -- ignoring [2012/10/14 10:18:14.556739, 0] printing/print_cups.c:487(cups_async_callback) failed to retrieve printer list: NT_STATUS_UNSUCCESSFUL [2012/10/14 10:19:14.633185, 0] printing/print_cups.c:110(cups_connect) Unable to connect to CUPS server localhost:631 - Connection refused [2012/10/14 10:19:14.634388, 0] printing/print_cups.c:487(cups_async_callback) failed to retrieve printer list: NT_STATUS_UNSUCCESSFUL [2012/10/14 10:19:14.636090, 2] smbd/server.c:301(remove_child_pid) Could not find child 18644 -- ignoring
Rieker Flaik
2012-Oct-16 00:34 UTC
[Samba] wins: no nmblookup on 192.168.1.255 but 192.168.1.2
*ping* On Sun, 2012-10-14 at 11:06 +0200, Rieker Flaik wrote:> Hi, > > here is a client computer and a server computer (Debian Wheezy, armel, > samba Version 3.6.6, IP address: 192.168.1.2, Name: xyz). > > Problem: wins doesn't answer nmblookups by the client on the broadcast > address: > > client$ nmblookup -S xyz > querying xyz on 192.168.1.255 > name_query failed to find name xyz > > Why is that so? How to fix this? > When I specify the the server IP I do get an answer: > > client$ nmblookup -U 192.168.1.2 -S xyz > querying xyz on 192.168.1.2 > 192.168.1.2 xyz<00> > Looking up status of 192.168.1.2 > XYZ <00> - H <ACTIVE> > XYZ <03> - H <ACTIVE> > XYZ <20> - H <ACTIVE> > ..__MSBROWSE__. <01> - <GROUP> H <ACTIVE> > TEST <1d> - H <ACTIVE> > TEST <1e> - <GROUP> H <ACTIVE> > TEST <00> - <GROUP> H <ACTIVE> > > MAC Address = 00-00-00-00-00-00 > > I also get an answer if I do nmblookup on the server: > > xyz# nmblookup -S XYZ > added interface eth0 ip=192.168.1.2 bcast=192.168.1.255 netmask=255.255.255.0 > querying XYZ on 192.168.1.255 > Got a positive name query response from 192.168.1.2 ( 192.168.1.2 ) > 192.168.1.2 XYZ<00> > Looking up status of 192.168.1.2 > XYZ <00> - H <ACTIVE> > XYZ <03> - H <ACTIVE> > XYZ <20> - H <ACTIVE> > ..__MSBROWSE__. <01> - <GROUP> H <ACTIVE> > TEST <1d> - H <ACTIVE> > TEST <1e> - <GROUP> H <ACTIVE> > TEST <00> - <GROUP> H <ACTIVE> > > MAC Address = 00-00-00-00-00-00 > > > Below is netstat, smb.conf, log.nmbd, log.smbd. > > Please let me know if you need more information or want me to test > something. > > Thanks for you help, > Rik > > > xyz# netstat -nap | grep [sn]mbd > > tcp 0 0 0.0.0.0:139 0.0.0.0:* LISTEN 18632/smbd > tcp 0 0 0.0.0.0:445 0.0.0.0:* LISTEN 18632/smbd > udp 0 0 192.168.1.255:137 0.0.0.0:* 18628/nmbd > udp 0 0 192.168.1.2:137 0.0.0.0:* 18628/nmbd > udp 0 0 0.0.0.0:137 0.0.0.0:* 18628/nmbd > udp 0 0 192.168.1.255:138 0.0.0.0:* 18628/nmbd > udp 0 0 192.168.1.2:138 0.0.0.0:* 18628/nmbd > udp 0 0 0.0.0.0:138 0.0.0.0:* 18628/nmbd > unix 2 [ ACC ] STREAM LISTENING 34021 18628/nmbd /var/run/samba/unexpected > unix 2 [ ] DGRAM 34033 18632/smbd > > > xyz# cat /etc/smb.conf > [global] > workgroup = TEST > netbios name = XYZ > wins support = yes > log file = /var/log/samba/log.%m > log level = 2 > max log size = 1000 > > [upload] > guest ok = yes > guest account = blafoo > browseable = yes > writeable = yes > path = /home/test/uploads > comment = test upload > guest only = yes > public = yes > available = yes > force group = blafoo > force user = blafoo > > > xyz# cat /var/log/samba/log.nmbd > > [2012/10/14 10:18:14, 0] nmbd/nmbd.c:861(main) > nmbd version 3.6.6 started. > Copyright Andrew Tridgell and the Samba Team 1992-2011 > [2012/10/14 10:18:14, 2] lib/tallocmsg.c:124(register_msg_pool_usage) > Registered MSG_REQ_POOL_USAGE > [2012/10/14 10:18:14, 2] lib/dmallocmsg.c:78(register_dmalloc_msgs) > Registered MSG_REQ_DMALLOC_MARK and LOG_CHANGED > [2012/10/14 10:18:14, 2] param/loadparm.c:4985(max_open_files) > rlimit_max: increasing rlimit_max (1024) to minimum Windows limit (16384) > [2012/10/14 10:18:14, 2] nmbd/nmbd.c:894(main) > Becoming a daemon. > [2012/10/14 10:18:14, 0] nmbd/asyncdns.c:157(start_async_dns) > started asyncdns process 18630 > [2012/10/14 10:18:14, 2] lib/interface.c:341(add_interface) > added interface eth0 ip=192.168.1.2 bcast=192.168.1.255 netmask=255.255.255.0 > [2012/10/14 10:18:14, 2] nmbd/nmbd_subnetdb.c:180(make_subnet) > making subnet name:192.168.1.2 Broadcast address:192.168.1.255 Subnet mask:255.255.255.0 > [2012/10/14 10:18:14, 2] nmbd/nmbd_subnetdb.c:180(make_subnet) > making subnet name:UNICAST_SUBNET Broadcast address:192.168.1.2 Subnet mask:192.168.1.2 > [2012/10/14 10:18:14, 2] nmbd/nmbd_subnetdb.c:180(make_subnet) > making subnet name:REMOTE_BROADCAST_SUBNET Broadcast address:0.0.0.0 Subnet mask:0.0.0.0 > [2012/10/14 10:18:14, 2] nmbd/nmbd_subnetdb.c:180(make_subnet) > making subnet name:WINS_SERVER_SUBNET Broadcast address:0.0.0.0 Subnet mask:0.0.0.0 > [2012/10/14 10:18:14, 2] nmbd/nmbd_lmhosts.c:43(load_lmhosts_file) > load_lmhosts_file: Can't open lmhosts file /etc/samba/lmhosts. Error was No such file or directory > [2012/10/14 10:18:18, 2] nmbd/nmbd_elections.c:109(check_for_master_browser_fail) > check_for_master_browser_fail: Forcing election on workgroup TEST subnet 192.168.1.2 > [2012/10/14 10:18:20, 2] nmbd/nmbd_nameregister.c:193(wins_registration_timeout) > wins_registration_timeout: WINS server 127.0.0.1 timed out registering IP 192.168.1.2 > [2012/10/14 10:18:20, 2] nmbd/nmbd_nameregister.c:193(wins_registration_timeout) > wins_registration_timeout: WINS server 127.0.0.1 timed out registering IP 192.168.1.2 > [2012/10/14 10:18:20, 2] nmbd/nmbd_nameregister.c:193(wins_registration_timeout) > wins_registration_timeout: WINS server 127.0.0.1 timed out registering IP 192.168.1.2 > [2012/10/14 10:18:20, 2] nmbd/nmbd_nameregister.c:193(wins_registration_timeout) > wins_registration_timeout: WINS server 127.0.0.1 timed out registering IP 192.168.1.2 > [2012/10/14 10:18:20, 2] nmbd/nmbd_nameregister.c:193(wins_registration_timeout) > wins_registration_timeout: WINS server 127.0.0.1 timed out registering IP 192.168.1.2 > [2012/10/14 10:18:21, 2] nmbd/nmbd_elections.c:42(send_election_dgram) > send_election_dgram: Sending election packet for workgroup TEST on subnet 192.168.1.2 > [2012/10/14 10:18:23, 2] nmbd/nmbd_elections.c:42(send_election_dgram) > send_election_dgram: Sending election packet for workgroup TEST on subnet 192.168.1.2 > [2012/10/14 10:18:25, 2] nmbd/nmbd_elections.c:42(send_election_dgram) > send_election_dgram: Sending election packet for workgroup TEST on subnet 192.168.1.2 > [2012/10/14 10:18:27, 2] nmbd/nmbd_elections.c:42(send_election_dgram) > send_election_dgram: Sending election packet for workgroup TEST on subnet 192.168.1.2 > [2012/10/14 10:18:29, 2] nmbd/nmbd_elections.c:42(send_election_dgram) > send_election_dgram: Sending election packet for workgroup TEST on subnet 192.168.1.2 > [2012/10/14 10:18:29, 2] nmbd/nmbd_elections.c:202(run_elections) > run_elections: >>> Won election for workgroup TEST on subnet 192.168.1.2 <<< > [2012/10/14 10:18:29, 2] nmbd/nmbd_become_lmb.c:538(become_local_master_browser) > become_local_master_browser: Starting to become a master browser for workgroup TEST on subnet 192.168.1.2 > [2012/10/14 10:18:37, 0] nmbd/nmbd_become_lmb.c:397(become_local_master_stage2) > ***** > > Samba name server XYZ is now a local master browser for workgroup TEST on subnet 192.168.1.2 > > ***** > [2012/10/14 10:18:37, 1] nmbd/nmbd_incomingrequests.c:328(process_node_status_request) > process_node_status_request: status request for name TEST<1b> from IP 192.168.1.2 on subnet UNICAST_SUBNET - name not found. > [2012/10/14 10:18:43, 1] nmbd/nmbd_incomingrequests.c:328(process_node_status_request) > process_node_status_request: status request for name TEST<1b> from IP 192.168.1.2 on subnet UNICAST_SUBNET - name not found. > [2012/10/14 10:18:48, 1] nmbd/nmbd_incomingrequests.c:328(process_node_status_request) > process_node_status_request: status request for name TEST<1b> from IP 192.168.1.2 on subnet UNICAST_SUBNET - name not found. > [2012/10/14 10:18:53, 1] nmbd/nmbd_incomingrequests.c:328(process_node_status_request) > process_node_status_request: status request for name TEST<1b> from IP 192.168.1.2 on subnet UNICAST_SUBNET - name not found. > [2012/10/14 10:18:58, 0] nmbd/nmbd_browsesync.c:248(domain_master_node_status_fail) > domain_master_node_status_fail: > Doing a node status request to the domain master browser > for workgroup TEST at IP 192.168.1.2 failed. > Cannot sync browser lists. > > > xyz# cat /var/log/samba/log.smbd > > [2012/10/14 10:18:14, 0] smbd/server.c:1053(main) > smbd version 3.6.6 started. > Copyright Andrew Tridgell and the Samba Team 1992-2011 > [2012/10/14 10:18:14, 2] lib/tallocmsg.c:124(register_msg_pool_usage) > Registered MSG_REQ_POOL_USAGE > [2012/10/14 10:18:14, 2] lib/dmallocmsg.c:78(register_dmalloc_msgs) > Registered MSG_REQ_DMALLOC_MARK and LOG_CHANGED > [2012/10/14 10:18:14.449815, 2] param/loadparm.c:4985(max_open_files) > rlimit_max: increasing rlimit_max (1024) to minimum Windows limit (16384) > [2012/10/14 10:18:14.450693, 2] param/loadparm.c:8327(do_section) > Processing section "[upload]" > [2012/10/14 10:18:14.451193, 0] param/loadparm.c:8004(lp_do_parameter) > Global parameter guest account found in service section! > [2012/10/14 10:18:14.453328, 2] lib/interface.c:341(add_interface) > added interface eth0 ip=192.168.1.2 bcast=192.168.1.255 netmask=255.255.255.0 > [2012/10/14 10:18:14.539871, 0] lib/util_sock.c:605(open_socket_in) > open_socket_in(): socket() call failed: Address family not supported by protocol > [2012/10/14 10:18:14.540602, 0] smbd/server.c:578(smbd_open_one_socket) > smbd_open_once_socket: open_socket_in: Address family not supported by protocol > [2012/10/14 10:18:14.547062, 0] printing/print_cups.c:110(cups_connect) > Unable to connect to CUPS server localhost:631 - Connection refused > [2012/10/14 10:18:14.554146, 0] lib/util_sock.c:605(open_socket_in) > open_socket_in(): socket() call failed: Address family not supported by protocol > [2012/10/14 10:18:14.554583, 0] smbd/server.c:578(smbd_open_one_socket) > smbd_open_once_socket: open_socket_in: Address family not supported by protocol > [2012/10/14 10:18:14.556108, 2] smbd/server.c:842(smbd_parent_loop) > waiting for connections > [2012/10/14 10:18:14.556392, 2] smbd/server.c:301(remove_child_pid) > Could not find child 18635 -- ignoring > [2012/10/14 10:18:14.556739, 0] printing/print_cups.c:487(cups_async_callback) > failed to retrieve printer list: NT_STATUS_UNSUCCESSFUL > [2012/10/14 10:19:14.633185, 0] printing/print_cups.c:110(cups_connect) > Unable to connect to CUPS server localhost:631 - Connection refused > [2012/10/14 10:19:14.634388, 0] printing/print_cups.c:487(cups_async_callback) > failed to retrieve printer list: NT_STATUS_UNSUCCESSFUL > [2012/10/14 10:19:14.636090, 2] smbd/server.c:301(remove_child_pid) > Could not find child 18644 -- ignoring > >
Plamen Petrov
2012-Oct-16 09:58 UTC
[Samba] wins: no nmblookup on 192.168.1.255 but 192.168.1.2
Hello, Rieker! I was wondering what version of the linux kernel are you running? I had a situation, where a bunch of Windows XP machines would not see their SAMBA server when looked up by Netbios name after I upgraded the linux kernel from 3.5.6 to 3.6.2. My solution was to revert back to the linux 3.5.x series, but now the 3.5.x series is officially dead [1]. If the SAMBA server was called by IP, a la "\\192.168.1.1\" - the windows PCs would see the SAMBA server without problem. The setup I have is somewhat specific, though, as the SAMBA server has 3 NICs total, and routes traffic to the two subnets it feeds internet and SAMBA, among other services. The config file I use forces SAMBA to bind only to the 2 site local network interfaces, if that plays a role. Because mine is a production setup, I couldn't play with it and look for where the problem is. So I just switched back to the known good kernel and called it a day. My SAMBA version is 3.6.8. [1] http://article.gmane.org/gmane.linux.kernel/1375014 P.S. Please, CC me as I'm not subscribed to the list. -- Plamen Petrov
RWPosaat
2012-Oct-21 21:48 UTC
[Samba] wins: no nmblookup on 192.168.1.255 but 192.168.1.2
Firewall? NT_STATUS_UNSUCCESSFUL <http://www.microdevsys.com/WordPress/2009/07/27/networking-sharing-folders-between-windows-and-linux-using-samba/3/#SAMBA_Win_Linux-NT_STATUS_UNSUCCESSFUL> There's also SELinux as a possibility off that page. SELinux is a silent one. Just a thought. Cheers, -- View this message in context: http://samba.2283325.n4.nabble.com/wins-no-nmblookup-on-192-168-1-255-but-192-168-1-2-tp4638696p4639190.html Sent from the Samba - General mailing list archive at Nabble.com.
Volker Lendecke
2012-Oct-22 10:05 UTC
[Samba] wins: no nmblookup on 192.168.1.255 but 192.168.1.2
Hello! On Sun, Oct 14, 2012 at 11:06:10AM +0200, Rieker Flaik wrote:> Hi, > > here is a client computer and a server computer (Debian Wheezy, armel, > samba Version 3.6.6, IP address: 192.168.1.2, Name: xyz). > > Problem: wins doesn't answer nmblookups by the client on the broadcast > address: > > client$ nmblookup -S xyz > querying xyz on 192.168.1.255 > name_query failed to find name xyzWe have exactly the same setup here. I can't reproduce it. I would assume that your network interfaces are not correctly detected by nmbd, or the broadcast address on the wins server is not correctly set in the interface. With best regards, Volker Lendecke -- SerNet GmbH, Bahnhofsallee 1b, 37081 G?ttingen phone: +49-551-370000-0, fax: +49-551-370000-9 AG G?ttingen, HRB 2816, GF: Dr. Johannes Loxen http://www.sernet.de, mailto:kontakt at sernet.de
Florian Götz
2012-Oct-23 14:25 UTC
[Samba] wins: no nmblookup on 192.168.1.255 but 192.168.1.2
Got the same problem here with Samba 3.6.8. If you address the the interface directly I get an answer from nmblookup, if the request is done via broadcast I get none. Please let me know if you find a solution to that problem. Regards Florian G?tz Mit freundlichen Gr??en Florian G?tz ----------------------------------------------------------------- Dipl.-Inf. (FH) Florian G?tz Rechenzentrum Hochschule Mannheim Paul-Wittsack-Stra?e 10 68163 Mannheim Tel: 0621/292-6232 EMail: f.goetz at hs-mannheim.de Internet: http://www.rz.hs-mannheim.de ----- Am 14.10.2012 11:06, schrieb Rieker Flaik:> Hi, > > here is a client computer and a server computer (Debian Wheezy, armel, > samba Version 3.6.6, IP address: 192.168.1.2, Name: xyz). > > Problem: wins doesn't answer nmblookups by the client on the broadcast > address: > > client$ nmblookup -S xyz > querying xyz on 192.168.1.255 > name_query failed to find name xyz > > Why is that so? How to fix this? > When I specify the the server IP I do get an answer: > > client$ nmblookup -U 192.168.1.2 -S xyz > querying xyz on 192.168.1.2 > 192.168.1.2 xyz<00> > Looking up status of 192.168.1.2 > XYZ <00> - H <ACTIVE> > XYZ <03> - H <ACTIVE> > XYZ <20> - H <ACTIVE> > ..__MSBROWSE__. <01> - <GROUP> H <ACTIVE> > TEST <1d> - H <ACTIVE> > TEST <1e> - <GROUP> H <ACTIVE> > TEST <00> - <GROUP> H <ACTIVE> > > MAC Address = 00-00-00-00-00-00 > > I also get an answer if I do nmblookup on the server: > > xyz# nmblookup -S XYZ > added interface eth0 ip=192.168.1.2 bcast=192.168.1.255 netmask=255.255.255.0 > querying XYZ on 192.168.1.255 > Got a positive name query response from 192.168.1.2 ( 192.168.1.2 ) > 192.168.1.2 XYZ<00> > Looking up status of 192.168.1.2 > XYZ <00> - H <ACTIVE> > XYZ <03> - H <ACTIVE> > XYZ <20> - H <ACTIVE> > ..__MSBROWSE__. <01> - <GROUP> H <ACTIVE> > TEST <1d> - H <ACTIVE> > TEST <1e> - <GROUP> H <ACTIVE> > TEST <00> - <GROUP> H <ACTIVE> > > MAC Address = 00-00-00-00-00-00 > > > Below is netstat, smb.conf, log.nmbd, log.smbd. > > Please let me know if you need more information or want me to test > something. > > Thanks for you help, > Rik > > > xyz# netstat -nap | grep [sn]mbd > > tcp 0 0 0.0.0.0:139 0.0.0.0:* LISTEN 18632/smbd > tcp 0 0 0.0.0.0:445 0.0.0.0:* LISTEN 18632/smbd > udp 0 0 192.168.1.255:137 0.0.0.0:* 18628/nmbd > udp 0 0 192.168.1.2:137 0.0.0.0:* 18628/nmbd > udp 0 0 0.0.0.0:137 0.0.0.0:* 18628/nmbd > udp 0 0 192.168.1.255:138 0.0.0.0:* 18628/nmbd > udp 0 0 192.168.1.2:138 0.0.0.0:* 18628/nmbd > udp 0 0 0.0.0.0:138 0.0.0.0:* 18628/nmbd > unix 2 [ ACC ] STREAM LISTENING 34021 18628/nmbd /var/run/samba/unexpected > unix 2 [ ] DGRAM 34033 18632/smbd > > > xyz# cat /etc/smb.conf > [global] > workgroup = TEST > netbios name = XYZ > wins support = yes > log file = /var/log/samba/log.%m > log level = 2 > max log size = 1000 > > [upload] > guest ok = yes > guest account = blafoo > browseable = yes > writeable = yes > path = /home/test/uploads > comment = test upload > guest only = yes > public = yes > available = yes > force group = blafoo > force user = blafoo > > > xyz# cat /var/log/samba/log.nmbd > > [2012/10/14 10:18:14, 0] nmbd/nmbd.c:861(main) > nmbd version 3.6.6 started. > Copyright Andrew Tridgell and the Samba Team 1992-2011 > [2012/10/14 10:18:14, 2] lib/tallocmsg.c:124(register_msg_pool_usage) > Registered MSG_REQ_POOL_USAGE > [2012/10/14 10:18:14, 2] lib/dmallocmsg.c:78(register_dmalloc_msgs) > Registered MSG_REQ_DMALLOC_MARK and LOG_CHANGED > [2012/10/14 10:18:14, 2] param/loadparm.c:4985(max_open_files) > rlimit_max: increasing rlimit_max (1024) to minimum Windows limit (16384) > [2012/10/14 10:18:14, 2] nmbd/nmbd.c:894(main) > Becoming a daemon. > [2012/10/14 10:18:14, 0] nmbd/asyncdns.c:157(start_async_dns) > started asyncdns process 18630 > [2012/10/14 10:18:14, 2] lib/interface.c:341(add_interface) > added interface eth0 ip=192.168.1.2 bcast=192.168.1.255 netmask=255.255.255.0 > [2012/10/14 10:18:14, 2] nmbd/nmbd_subnetdb.c:180(make_subnet) > making subnet name:192.168.1.2 Broadcast address:192.168.1.255 Subnet mask:255.255.255.0 > [2012/10/14 10:18:14, 2] nmbd/nmbd_subnetdb.c:180(make_subnet) > making subnet name:UNICAST_SUBNET Broadcast address:192.168.1.2 Subnet mask:192.168.1.2 > [2012/10/14 10:18:14, 2] nmbd/nmbd_subnetdb.c:180(make_subnet) > making subnet name:REMOTE_BROADCAST_SUBNET Broadcast address:0.0.0.0 Subnet mask:0.0.0.0 > [2012/10/14 10:18:14, 2] nmbd/nmbd_subnetdb.c:180(make_subnet) > making subnet name:WINS_SERVER_SUBNET Broadcast address:0.0.0.0 Subnet mask:0.0.0.0 > [2012/10/14 10:18:14, 2] nmbd/nmbd_lmhosts.c:43(load_lmhosts_file) > load_lmhosts_file: Can't open lmhosts file /etc/samba/lmhosts. Error was No such file or directory > [2012/10/14 10:18:18, 2] nmbd/nmbd_elections.c:109(check_for_master_browser_fail) > check_for_master_browser_fail: Forcing election on workgroup TEST subnet 192.168.1.2 > [2012/10/14 10:18:20, 2] nmbd/nmbd_nameregister.c:193(wins_registration_timeout) > wins_registration_timeout: WINS server 127.0.0.1 timed out registering IP 192.168.1.2 > [2012/10/14 10:18:20, 2] nmbd/nmbd_nameregister.c:193(wins_registration_timeout) > wins_registration_timeout: WINS server 127.0.0.1 timed out registering IP 192.168.1.2 > [2012/10/14 10:18:20, 2] nmbd/nmbd_nameregister.c:193(wins_registration_timeout) > wins_registration_timeout: WINS server 127.0.0.1 timed out registering IP 192.168.1.2 > [2012/10/14 10:18:20, 2] nmbd/nmbd_nameregister.c:193(wins_registration_timeout) > wins_registration_timeout: WINS server 127.0.0.1 timed out registering IP 192.168.1.2 > [2012/10/14 10:18:20, 2] nmbd/nmbd_nameregister.c:193(wins_registration_timeout) > wins_registration_timeout: WINS server 127.0.0.1 timed out registering IP 192.168.1.2 > [2012/10/14 10:18:21, 2] nmbd/nmbd_elections.c:42(send_election_dgram) > send_election_dgram: Sending election packet for workgroup TEST on subnet 192.168.1.2 > [2012/10/14 10:18:23, 2] nmbd/nmbd_elections.c:42(send_election_dgram) > send_election_dgram: Sending election packet for workgroup TEST on subnet 192.168.1.2 > [2012/10/14 10:18:25, 2] nmbd/nmbd_elections.c:42(send_election_dgram) > send_election_dgram: Sending election packet for workgroup TEST on subnet 192.168.1.2 > [2012/10/14 10:18:27, 2] nmbd/nmbd_elections.c:42(send_election_dgram) > send_election_dgram: Sending election packet for workgroup TEST on subnet 192.168.1.2 > [2012/10/14 10:18:29, 2] nmbd/nmbd_elections.c:42(send_election_dgram) > send_election_dgram: Sending election packet for workgroup TEST on subnet 192.168.1.2 > [2012/10/14 10:18:29, 2] nmbd/nmbd_elections.c:202(run_elections) > run_elections: >>> Won election for workgroup TEST on subnet 192.168.1.2 <<< > [2012/10/14 10:18:29, 2] nmbd/nmbd_become_lmb.c:538(become_local_master_browser) > become_local_master_browser: Starting to become a master browser for workgroup TEST on subnet 192.168.1.2 > [2012/10/14 10:18:37, 0] nmbd/nmbd_become_lmb.c:397(become_local_master_stage2) > ***** > > Samba name server XYZ is now a local master browser for workgroup TEST on subnet 192.168.1.2 > > ***** > [2012/10/14 10:18:37, 1] nmbd/nmbd_incomingrequests.c:328(process_node_status_request) > process_node_status_request: status request for name TEST<1b> from IP 192.168.1.2 on subnet UNICAST_SUBNET - name not found. > [2012/10/14 10:18:43, 1] nmbd/nmbd_incomingrequests.c:328(process_node_status_request) > process_node_status_request: status request for name TEST<1b> from IP 192.168.1.2 on subnet UNICAST_SUBNET - name not found. > [2012/10/14 10:18:48, 1] nmbd/nmbd_incomingrequests.c:328(process_node_status_request) > process_node_status_request: status request for name TEST<1b> from IP 192.168.1.2 on subnet UNICAST_SUBNET - name not found. > [2012/10/14 10:18:53, 1] nmbd/nmbd_incomingrequests.c:328(process_node_status_request) > process_node_status_request: status request for name TEST<1b> from IP 192.168.1.2 on subnet UNICAST_SUBNET - name not found. > [2012/10/14 10:18:58, 0] nmbd/nmbd_browsesync.c:248(domain_master_node_status_fail) > domain_master_node_status_fail: > Doing a node status request to the domain master browser > for workgroup TEST at IP 192.168.1.2 failed. > Cannot sync browser lists. > > > xyz# cat /var/log/samba/log.smbd > > [2012/10/14 10:18:14, 0] smbd/server.c:1053(main) > smbd version 3.6.6 started. > Copyright Andrew Tridgell and the Samba Team 1992-2011 > [2012/10/14 10:18:14, 2] lib/tallocmsg.c:124(register_msg_pool_usage) > Registered MSG_REQ_POOL_USAGE > [2012/10/14 10:18:14, 2] lib/dmallocmsg.c:78(register_dmalloc_msgs) > Registered MSG_REQ_DMALLOC_MARK and LOG_CHANGED > [2012/10/14 10:18:14.449815, 2] param/loadparm.c:4985(max_open_files) > rlimit_max: increasing rlimit_max (1024) to minimum Windows limit (16384) > [2012/10/14 10:18:14.450693, 2] param/loadparm.c:8327(do_section) > Processing section "[upload]" > [2012/10/14 10:18:14.451193, 0] param/loadparm.c:8004(lp_do_parameter) > Global parameter guest account found in service section! > [2012/10/14 10:18:14.453328, 2] lib/interface.c:341(add_interface) > added interface eth0 ip=192.168.1.2 bcast=192.168.1.255 netmask=255.255.255.0 > [2012/10/14 10:18:14.539871, 0] lib/util_sock.c:605(open_socket_in) > open_socket_in(): socket() call failed: Address family not supported by protocol > [2012/10/14 10:18:14.540602, 0] smbd/server.c:578(smbd_open_one_socket) > smbd_open_once_socket: open_socket_in: Address family not supported by protocol > [2012/10/14 10:18:14.547062, 0] printing/print_cups.c:110(cups_connect) > Unable to connect to CUPS server localhost:631 - Connection refused > [2012/10/14 10:18:14.554146, 0] lib/util_sock.c:605(open_socket_in) > open_socket_in(): socket() call failed: Address family not supported by protocol > [2012/10/14 10:18:14.554583, 0] smbd/server.c:578(smbd_open_one_socket) > smbd_open_once_socket: open_socket_in: Address family not supported by protocol > [2012/10/14 10:18:14.556108, 2] smbd/server.c:842(smbd_parent_loop) > waiting for connections > [2012/10/14 10:18:14.556392, 2] smbd/server.c:301(remove_child_pid) > Could not find child 18635 -- ignoring > [2012/10/14 10:18:14.556739, 0] printing/print_cups.c:487(cups_async_callback) > failed to retrieve printer list: NT_STATUS_UNSUCCESSFUL > [2012/10/14 10:19:14.633185, 0] printing/print_cups.c:110(cups_connect) > Unable to connect to CUPS server localhost:631 - Connection refused > [2012/10/14 10:19:14.634388, 0] printing/print_cups.c:487(cups_async_callback) > failed to retrieve printer list: NT_STATUS_UNSUCCESSFUL > [2012/10/14 10:19:14.636090, 2] smbd/server.c:301(remove_child_pid) > Could not find child 18644 -- ignoring > >