Samba - getpeername,socket,write_data error

Discussion related to network/web services such as Apache, BIND Sendmail, etc.

Samba - getpeername,socket,write_data error

Postby FryShadow » 07 Oct 2009, 02:59

Code: Select all
Oct  6 17:50:24 gateway smbd[833]: [2009/10/06 17:50:24,  0] lib/util_sock.c:get_peer_addr_internal(1676)
Oct  6 17:50:24 gateway smbd[833]:   getpeername failed. Error was Socket is not connected
Oct  6 17:50:24 gateway smbd[833]: [2009/10/06 17:50:24,  0] lib/util_sock.c:write_data(1136)
Oct  6 17:50:24 gateway smbd[833]: [2009/10/06 17:50:24,  0] lib/util_sock.c:get_peer_addr_internal(1676)
Oct  6 17:50:24 gateway smbd[833]:   getpeername failed. Error was Socket is not connected
Oct  6 17:50:24 gateway smbd[833]:   write_data: write failure in writing to client 0.0.0.0. Error Socket is not connected
Oct  6 17:50:24 gateway smbd[833]: [2009/10/06 17:50:24,  0] smbd/process.c:srv_send_smb(74)
Oct  6 17:50:24 gateway smbd[833]:   Error writing 4 bytes to client. -1. (Socket is not connected)
Oct  6 17:50:24 gateway smbd[833]: [2009/10/06 17:50:24,  0] lib/util_sock.c:read_socket_with_timeout(939)
Oct  6 17:50:24 gateway smbd[833]: [2009/10/06 17:50:24,  0] lib/util_sock.c:get_peer_addr_internal(1676)
Oct  6 17:50:24 gateway smbd[833]:   getpeername failed. Error was Socket is not connected
Oct  6 17:50:24 gateway smbd[833]:   read_socket_with_timeout: client 0.0.0.0 read error = Socket is not connected.


Hi guys,

as per code above shows some of my log file regarding samba services. Actually, it is working perfectly but I'm curious what caused for that error ?

Thanks in advance :)
FryShadow
Junior Member
 
Posts: 39
Joined: 06 Jan 2009, 03:57

Postby FryShadow » 17 Oct 2009, 00:41

Hi,

since no one got any answer yet, I found some source in this web. I just put :

smb ports = 139

in global configuration (smb.conf) and seems like the warning getpeername is resolve :)
FryShadow
Junior Member
 
Posts: 39
Joined: 06 Jan 2009, 03:57

Thanks!

Postby jimv » 04 Jan 2011, 23:16

Thanks for posting this! My Samba logs are much more helpful, now that they're not cluttered with
Code: Select all
getpeername failed. Error was Socket is not connected
errors. :)
jimv
Junior Member
 
Posts: 2
Joined: 04 Jan 2011, 23:10
Location: Sacramento, CA, USA


Return to Web & Network Services

Who is online

Users browsing this forum: No registered users and 1 guest