Failed to set socket option problems Samba 2.0.6/Solaris 7
Eric Boehm
boehm at nortelnetworks.com
Fri Mar 10 20:49:39 GMT 2000
I am seeing the following errors under Samba 2.0.6/Solarisy 7.
I saw discussions of this on the Samba list but couldn't find any resolution.
I saw the following message from Jeremy Allison
> Message-ID: <387B949C.B499EC9C at valinux.com>
> Date: Tue, 11 Jan 2000 12:37:48 -0800
> From: Jeremy Allison <jeremy at valinux.com>
> Subject: Re: Error when setting socket options
> References: <4.1.20000111162104.00a65d80 at rasmus.uib.no>
Eirik Thorsnes wrote:
>
> I posted this to the samba list - but didn't get any answers
> so I try again on the technical.
>
> I get the following error in the smb log:
>
> [2000/01/06 11:17:46, 0] lib/util_sock.c:set_socket_options(148)
> Failed to set socket option SO_KEEPALIVE (Error Bad file descriptor)
> [2000/01/06 11:17:46, 0] lib/util_sock.c:set_socket_options(148)
> Failed to set socket option TCP_NODELAY (Error Bad file descriptor)
> [2000/01/06 11:17:46, 0] lib/util_sock.c:set_socket_options(148)
> Failed to set socket option SO_RCVBUF (Error Bad file descriptor)
> [2000/01/06 11:17:46, 0] lib/util_sock.c:set_socket_options(148)
> Failed to set socket option SO_SNDBUF (Error Bad file descriptor)
> [2000/01/06 11:17:46, 1] lib/util_sock.c:client_name(997)
>
> Any suggestions on what to do to solve this / get more
> information? Should I try increase the loglevel?
Yes, try going to debug level 10 - or look back in the logs
to see if there are any other messages that could show why
this fd was closed.
I set my debug level to 10, but I don't see anything to indicate what the
problem is. Has this issue been solved or the cause identified?
Here's the relevant portion from the log:
Got SIGUSR1; set debug level to 10.
[2000/03/10 10:38:33, 6] param/loadparm.c:lp_file_list_changed(1855)
lp_file_list_changed()
file /usr/local/samba/lib/smb.conf -> /usr/local/samba/lib/smb.conf last mod_time: Thu Mar 9 14:12:40 2000
file /usr/local/samba/lib/smb.conf modified: Fri Mar 10 09:32:56 2000
[2000/03/10 10:38:33, 5] param/loadparm.c:free_service(1435)
free_service: Freeing service vobstore
[2000/03/10 10:38:33, 5] param/loadparm.c:free_service(1435)
free_service: Freeing service IPC$
[2000/03/10 10:38:33, 3] param/loadparm.c:init_globals(867)
Initialising global parameters
[2000/03/10 10:38:33, 3] param/params.c:pm_process(538)
params.c:pm_process() - Processing configuration file "/usr/local/samba/lib/smb.conf"
doing parameter workgroup = AMERICASE
doing parameter security = server
doing parameter encrypt passwords = yes
doing parameter password server = NRTPDE11, NRTPDE10, NRTPI915
doing parameter client code page = 437
doing parameter max open files = 1014
doing parameter wins server = 47.156.160.179
doing parameter comment = "Samba %v server"
doing parameter share modes = yes
doing parameter getwd cache = yes
doing parameter browseable = yes
doing parameter load printers = no
doing parameter local master = no
doing parameter server string = "IP Services ClearCase VOB Server %h (%L), Samba"
doing parameter username map = /usr/local/samba/lib/username.map
doing parameter interfaces = "47.111.69.171/20 47.140.7.148/20"
doing parameter debug level = 10
[2000/03/10 10:38:33, 2] param/loadparm.c:do_section(2300)
Processing section "[vobstore]"
doing parameter comment = IP Services VOB storage
doing parameter path = /export/vobstore/03
doing parameter admin users = vobadmip
doing parameter hosts allow = brtpsfac, prtpd2d6, @SPM_TPS_HOSTS, prtpd2pg, Wen_Liu, Eric_Boehm, prtpd2zq, zrtps00g, prtpd2zt, prtpd2zr, prtpd2zs
doing parameter valid users = boehm, josiemr, vobadmip, @SPM_TPS_USERS, wliu
doing parameter oplocks = No
doing parameter guest ok = no
doing parameter directory mask = 0775
doing parameter map archive = No
doing parameter writeable = yes
doing parameter group = ipsvc
[2000/03/10 10:38:33, 3] param/loadparm.c:lp_load(2622)
pm_process() returned Yes
[2000/03/10 10:38:33, 7] param/loadparm.c:lp_servicenumber(2714)
lp_servicenumber: couldn't find homes
[2000/03/10 10:38:33, 3] param/loadparm.c:lp_add_ipc(1566)
adding IPC service
[2000/03/10 10:38:33, 7] param/loadparm.c:lp_servicenumber(2714)
lp_servicenumber: couldn't find printers
[2000/03/10 10:38:33, 2] lib/interface.c:add_interface(83)
added interface ip=47.111.69.171 bcast=47.111.79.255 nmask=255.255.240.0
[2000/03/10 10:38:33, 2] lib/interface.c:add_interface(83)
added interface ip=47.140.7.148 bcast=47.140.15.255 nmask=255.255.240.0
[2000/03/10 10:38:33, 0] lib/util_sock.c:set_socket_options(148)
Failed to set socket option SO_KEEPALIVE (Error Bad file number)
[2000/03/10 10:38:33, 0] lib/util_sock.c:set_socket_options(148)
Failed to set socket option TCP_NODELAY (Error Bad file number)
There's another 7000 lines of log after this but it didn't seem to be of much
use.
Any suggestions/advice would be appreciated.
--
Eric M. Boehm boehm at nortelnetworks.com
More information about the samba
mailing list