Björn Mayer
2006-Mar-07 10:41 UTC
[Samba] [Samba Version 3.0.20b-3.4-SUSE]: WinXP-Error writing to share
Hello mailing-list, this is my first post and i hope that you enjoy my very bad but sometimes funny english. My Problem is the following: First of all, my server-config: Samba Version 3.0.20b-3.4-SUSE on a SUSE Linux Enterprise Server 9 with Kernel 2.6.5-7.252-smp Now the problem is, that samba generally works fine, but it doesn't work to work with a special application directly on a samba-share. This app is EPLAN, who is configured to save his project-data on the servershare, because of the fact that there everything will be backuped regularly. All this worked prior with a Windows Server 2003, which now should be replaced with the linux samba-server. Now when we switched to Samba for testing purposes the error occured, that Windows throws the following Error while working with EPLAN on the networkshare: ----------------------------------------------------------------------- Windows - Datenverlust beim schreiben Es konnten nicht alle Daten f?r die Datei \\UNC-Path-to-share\file.ext gespeichert werden. Die Daten gingen verloren. M?gliche Ursache k?nnten Computerhardware oder Netzwerkverbindung sein. Versuchen Sie, die Dateien... ----------------------------------------------------------------------- which in english means something like ----------------------------------------------------------------------- Windows - data loss at writing It was not possible to save all data for the file \\UNC-Path-to-share\file.ext. The data was lossed. Possible reasons can be the Hardware or networkconnection. ... ----------------------------------------------------------------------- Copying data on the share while using copy ans paste with the explorer seems to be working fine. I have no idea which reason this can have. Maybe some pro here outside has an idea. Of course there can be recognized something in the /var/log/messages: ------------------------------------------------------------------------ Mar 7 11:14:47 mve-server2 smbd[8195]: [2006/03/07 11:14:47, 0] lib/util_sock.c:write_data(554) Mar 7 11:14:47 mve-server2 smbd[8195]: write_data: write failure in writing to client 0.0.0.0. Error Connection reset by peer Mar 7 11:14:47 mve-server2 smbd[8195]: [2006/03/07 11:14:47, 0] lib/util_sock.c:send_smb(762) Mar 7 11:14:47 mve-server2 smbd[8195]: Error writing 5 bytes to client. -1. (Connection reset by peer) Mar 7 11:18:55 mve-server2 smbd[8244]: [2006/03/07 11:18:55, 0] lib/util_sock.c:get_peer_addr(1222) Mar 7 11:18:55 mve-server2 smbd[8244]: getpeername failed. Error was Transport endpoint is not connected Mar 7 11:18:55 mve-server2 smbd[8250]: [2006/03/07 11:18:55, 0] lib/util_sock.c:get_peer_addr(1222) Mar 7 11:18:55 mve-server2 smbd[8250]: getpeername failed. Error was Transport endpoint is not connected Mar 7 11:18:55 mve-server2 smbd[8250]: [2006/03/07 11:18:55, 0] lib/util_sock.c:get_peer_addr(1222) Mar 7 11:18:55 mve-server2 smbd[8250]: getpeername failed. Error was Transport endpoint is not connected Mar 7 11:18:55 mve-server2 smbd[8250]: [2006/03/07 11:18:55, 0] lib/access.c:check_access(328) Mar 7 11:18:55 mve-server2 smbd[8250]: [2006/03/07 11:18:55, 0] lib/util_sock.c:get_peer_addr(1222) Mar 7 11:18:55 mve-server2 smbd[8250]: getpeername failed. Error was Transport endpoint is not connected Mar 7 11:18:55 mve-server2 smbd[8250]: Denied connection from (0.0.0.0) Mar 7 11:18:55 mve-server2 smbd[8250]: [2006/03/07 11:18:55, 0] lib/util_sock.c:get_peer_addr(1222) Mar 7 11:18:55 mve-server2 smbd[8250]: getpeername failed. Error was Transport endpoint is not connected Mar 7 11:18:55 mve-server2 smbd[8250]: Connection denied from 0.0.0.0 Mar 7 11:18:55 mve-server2 smbd[8250]: [2006/03/07 11:18:55, 0] lib/util_sock.c:write_data(554) Mar 7 11:18:55 mve-server2 smbd[8250]: write_data: write failure in writing to client 0.0.0.0. Error Connection reset by peer Mar 7 11:18:55 mve-server2 smbd[8250]: [2006/03/07 11:18:55, 0] lib/util_sock.c:send_smb(762) Mar 7 11:18:55 mve-server2 smbd[8250]: Error writing 5 bytes to client. -1. (Connection reset by peer) ------------------------------------------------------------------------ After some search i put the following params into my smb.conf, but this didn't help: ------------------------------------------------------------------------ use sendfile = no large readwrite = no max xmit = 16644 ------------------------------------------------------------------------ Of course i will show you my complete smb.conf: ------------------------------------------------------------------------ [global] workgroup = mve socket options = SO_KEEPALIVE IPTOS_LOWDELAY TCP_NODELAY encrypt passwords = yes unix extensions = yes create mask = 0777 directory mask = 0777 username map = /etc/samba/smbusers wins server = 172.20.6.104 wins support = no domain logons = No domain master = No netbios name = mve-server security = user server string = mve-server use sendfile = no large readwrite = no max xmit = 16644 hosts allow = 172.20. 192. [mve] path = /daten/mve-server valid users = @mve, @mv admin users = @mve read list = @mve, @mv write list = @mve guest ok = No read only = No printable = No browseable = Yes ------------------------------------------------------------------------ mve is the share that causes the problem. i never tested anotherone, because of the fact that there is no other share ;). I hope for any ideas, Bj?rn Mayer
Robert Schetterer
2006-Mar-07 11:01 UTC
[Samba] [Samba Version 3.0.20b-3.4-SUSE]: WinXP-Error writing to share
Hi Bjoern, in general there is no problem with suse samba etc ich have very large samba domains up and running, but dont forget samba 3 is acting like win nt 4 server ( pdc ) its not an active dir controller as win 2003 server if you need acitve dir for i.e exchange version higher than 5.5 you have to wait until samba 4 gets released, so think about that before your migration. at a look at your logs this seems a network problem have you any firewalls enabled on the suse or/and on the win client? -Transport endpoint is not connected for testing do not use this parameters use sendfile large readwrite max xmit hosts allow your conf does not look very logical to me why dont try edit the suse default conf create mask = 0777 directory mask = 0777 dont do this in global perhaps you should study more in the smb faqs which are online in german too, ther are easy examples in it for testing and migration examples. dont mess around with groups etc at starting with samba Best Regards Bj?rn Mayer schrieb:> Hello mailing-list, > > this is my first post and i hope that you enjoy my very bad but > sometimes funny english. > > My Problem is the following: > > First of all, my server-config: > Samba Version 3.0.20b-3.4-SUSE > on a > SUSE Linux Enterprise Server 9 > with Kernel 2.6.5-7.252-smp > > > Now the problem is, that samba generally works fine, but it doesn't work > to work with a special application directly on a samba-share. > This app is EPLAN, who is configured to save his project-data on the > servershare, because of the fact that there everything will be backuped > regularly. > > All this worked prior with a Windows Server 2003, which now should be > replaced with the linux samba-server. > > Now when we switched to Samba for testing purposes the error occured, > that Windows throws the following Error while working with EPLAN on the > networkshare: > > ----------------------------------------------------------------------- > Windows - Datenverlust beim schreiben > > Es konnten nicht alle Daten f?r die Datei \\UNC-Path-to-share\file.ext > gespeichert werden. Die Daten gingen verloren. M?gliche Ursache k?nnten > Computerhardware oder Netzwerkverbindung sein. Versuchen Sie, die > Dateien... > ----------------------------------------------------------------------- > > which in english means something like > ----------------------------------------------------------------------- > Windows - data loss at writing > > It was not possible to save all data for the file > \\UNC-Path-to-share\file.ext. The data was lossed. Possible reasons can > be the Hardware or networkconnection. ... > ----------------------------------------------------------------------- > > Copying data on the share while using copy ans paste with the explorer > seems to be working fine. > > I have no idea which reason this can have. Maybe some pro here outside > has an idea. > Of course there can be recognized something in the /var/log/messages: > ------------------------------------------------------------------------ > Mar 7 11:14:47 mve-server2 smbd[8195]: [2006/03/07 11:14:47, 0] > lib/util_sock.c:write_data(554) > Mar 7 11:14:47 mve-server2 smbd[8195]: write_data: write failure in > writing to client 0.0.0.0. Error Connection reset by peer > Mar 7 11:14:47 mve-server2 smbd[8195]: [2006/03/07 11:14:47, 0] > lib/util_sock.c:send_smb(762) > Mar 7 11:14:47 mve-server2 smbd[8195]: Error writing 5 bytes to > client. -1. (Connection reset by peer) > Mar 7 11:18:55 mve-server2 smbd[8244]: [2006/03/07 11:18:55, 0] > lib/util_sock.c:get_peer_addr(1222) > Mar 7 11:18:55 mve-server2 smbd[8244]: getpeername failed. Error was > Transport endpoint is not connected > Mar 7 11:18:55 mve-server2 smbd[8250]: [2006/03/07 11:18:55, 0] > lib/util_sock.c:get_peer_addr(1222) > Mar 7 11:18:55 mve-server2 smbd[8250]: getpeername failed. Error was > Transport endpoint is not connected > Mar 7 11:18:55 mve-server2 smbd[8250]: [2006/03/07 11:18:55, 0] > lib/util_sock.c:get_peer_addr(1222) > Mar 7 11:18:55 mve-server2 smbd[8250]: getpeername failed. Error was > Transport endpoint is not connected > Mar 7 11:18:55 mve-server2 smbd[8250]: [2006/03/07 11:18:55, 0] > lib/access.c:check_access(328) > Mar 7 11:18:55 mve-server2 smbd[8250]: [2006/03/07 11:18:55, 0] > lib/util_sock.c:get_peer_addr(1222) > Mar 7 11:18:55 mve-server2 smbd[8250]: getpeername failed. Error was > Transport endpoint is not connected > Mar 7 11:18:55 mve-server2 smbd[8250]: Denied connection from (0.0.0.0) > Mar 7 11:18:55 mve-server2 smbd[8250]: [2006/03/07 11:18:55, 0] > lib/util_sock.c:get_peer_addr(1222) > Mar 7 11:18:55 mve-server2 smbd[8250]: getpeername failed. Error was > Transport endpoint is not connected > Mar 7 11:18:55 mve-server2 smbd[8250]: Connection denied from 0.0.0.0 > Mar 7 11:18:55 mve-server2 smbd[8250]: [2006/03/07 11:18:55, 0] > lib/util_sock.c:write_data(554) > Mar 7 11:18:55 mve-server2 smbd[8250]: write_data: write failure in > writing to client 0.0.0.0. Error Connection reset by peer > Mar 7 11:18:55 mve-server2 smbd[8250]: [2006/03/07 11:18:55, 0] > lib/util_sock.c:send_smb(762) > Mar 7 11:18:55 mve-server2 smbd[8250]: Error writing 5 bytes to > client. -1. (Connection reset by peer) > ------------------------------------------------------------------------ > > After some search i put the following params into my smb.conf, but this > didn't help: > ------------------------------------------------------------------------ > use sendfile = no > large readwrite = no > max xmit = 16644 > ------------------------------------------------------------------------ > > Of course i will show you my complete smb.conf: > ------------------------------------------------------------------------ > [global] > workgroup = mve > socket options = SO_KEEPALIVE IPTOS_LOWDELAY TCP_NODELAY > encrypt passwords = yes > unix extensions = yes > create mask = 0777 > directory mask = 0777 > username map = /etc/samba/smbusers > wins server = 172.20.6.104 > wins support = no > domain logons = No > domain master = No > netbios name = mve-server > security = user > server string = mve-server > use sendfile = no > large readwrite = no > max xmit = 16644 > hosts allow = 172.20. 192. > > > [mve] > path = /daten/mve-server > valid users = @mve, @mv > admin users = @mve > read list = @mve, @mv > write list = @mve > guest ok = No > read only = No > printable = No > browseable = Yes > ------------------------------------------------------------------------ > > mve is the share that causes the problem. i never tested anotherone, > because of the fact that there is no other share ;). > > I hope for any ideas, > Bj?rn Mayer >
Beschorner Daniel
2006-Mar-07 14:50 UTC
[Samba] [Samba Version 3.0.20b-3.4-SUSE]: WinXP-Error writing to share
We have a similar or same problem with one of our servers after upgrade from 3.0.14 to 3.0.21x (incidentally??). The log shows things like: write_data: write failure in writing to client 192.168.17.249. Error Broken pipe [2006/03/06 20:46:47, 0] lib/util_sock.c:get_peer_addr(1225) getpeername failed. Error was Transport endpoint is not connected [2006/03/06 20:46:47, 0] lib/access.c:check_access(328) [2006/03/06 20:46:47, 0] lib/util_sock.c:get_peer_addr(1225) getpeername failed. Error was Transport endpoint is not connected Denied connection from (0.0.0.0) [2006/03/06 20:46:47, 1] smbd/process.c:process_smb(1187) [2006/03/06 20:46:47, 0] lib/util_sock.c:get_peer_addr(1225) getpeername failed. Error was Transport endpoint is not connected Connection denied from 0.0.0.0 [2006/03/06 20:46:47, 0] lib/util_sock.c:write_data(557) write_data: write failure in writing to client 192.168.17.250. Error Connection reset by peer [2006/03/06 20:46:47, 0] lib/util_sock.c:send_smb(765) Error writing 5 bytes to client. -1. (Connection reset by peer) Clients are XP x64. When saving fails the Windows log reports "mrxsmb - delayed write failed". I still suspect the network hardware (switch? NICs?) to do something wrong, but can't Samba take out yet.
Beschorner Daniel
2006-Mar-10 14:19 UTC
[Samba] [Samba Version 3.0.20b-3.4-SUSE]: WinXP-Error writing to share
> My money is on the switch :-). This is a classic "my tcp connection > went away and I don't know why" error message. > > Jeremy.Your money was invested well ;-) In our situation the problems disappeared for now (cross the fingers!) with a new hub, what makes sense because of a fine working Win2003 Server x64 + Samba in an other network. Still got these (but doesnt' seem to harm): [2006/03/10 13:20:35, 0] lib/util_sock.c:get_peer_addr(1225) getpeername failed. Error was Transport endpoint is not connected [2006/03/10 13:20:35, 0] lib/access.c:check_access(328) [2006/03/10 13:20:35, 0] lib/util_sock.c:get_peer_addr(1225) getpeername failed. Error was Transport endpoint is not connected [2006/03/10 13:20:35, 1] smbd/process.c:process_smb(1187) [2006/03/10 13:20:35, 0] lib/util_sock.c:get_peer_addr(1225) getpeername failed. Error was Transport endpoint is not connected [2006/03/10 13:20:35, 0] lib/util_sock.c:write_data(557) write_data: write failure in writing to client 0.0.0.0. Error Connection reset by peer [2006/03/10 13:20:35, 0] lib/util_sock.c:send_smb(765) Error writing 5 bytes to client. -1. (Connection reset by peer) Thank you Jeremy & Robert!