Date: Mon, 30 Nov 1998 08:31:25 +1000 From: Stanley.Hopcroft@ipaustralia.gov.au To: questions@FreeBSD.ORG Subject: Samba: Your server software is being unfriendly Message-ID: <4A2566CB.007BCC33.00@noteshub01.aipo.gov.au>
next in thread | raw e-mail | index | archive | help
Dear Ladies and Gentlemen, I am writing to share my experience with this samba error on FreeBSD 2.2.7-STABLE Session request failed (0,0) with myname=TSITC2 destname=TSITC Unspecified error 0x0 Your server software is being unfriendly When the server is running in debug mode (-d3 or more) it logs 1998/11/28 11:43:51 changed root to / open_oplock_ipc: opening loopback UDP socket. open_oplock_ipc: Failed to get local UDP socket for address 100007f. Error was C an't assign requested address This message is generated by server.c when it trys to oplock_sock = open_socket_in(SOCK_DGRAM, 0, 0, htonl(INADDR_LOOPBACK)); if (oplock_sock == -1) { DEBUG(0,("open_oplock_ipc: Failed to get local UDP socket for \ address %x. Error was %s\n", htonl(INADDR_LOOPBACK), strerror(errno))); oplock_port = 0; return(False); which calls 'bind' in util.c if (bind(res, (struct sockaddr * ) &sock,sizeof(sock)) < 0) The samba documentation docs/DIAGNOSIS.txt suggests that this is a nameserver problem and to check resolv.conf, DNS configuration etc. In this case the DNS was resolving both 127.0.0.1 (aka 1000007f) and the servers name and IP addresscorrectly. Here, as is so often the case, rigourous adherence to first level problem determination (what has been changed ?) would have helped rather than fruitlessly pursuing the DNS stuff (change DNS, change to hosts etc). The server had been changed to a new Catalyst 2900 switch and the Intel PRO FX card had failed to work properly at 100 Mbps (characters typed to a telnet session would take up to 10 seconds to echo; responses from the remote host were also delayed) so its media type had been changed to 10baseT/UTP. In the process, the ifconfig for lo0 interface had been accidentally commented out, so it had no IP Address. Restoring 127.0.0.1 to lo0 fixed it up. Thank you, Yours sincerely. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4A2566CB.007BCC33.00>