Samba problems (major!)

Soldato
Joined
9 Dec 2004
Posts
5,700
Location
Dorset
Hi,

Just set up my Samba file server. Its a little PIII 866, 256MB Ram etc etc. Its running CentOS 4.3.

Configured it for 2 users on my home network, works a treat. Limiting ip's from 192.168.0. n all that.

The 2 clients are both Windows machines. I've only got access to 1 at the moment, but whenever I try to write a file onto the samba share, the transfer rate chugs along and it starts copying, then about 2 seconds later progress stops. Monitoring using scp (via ssh utils) shows the transfer rate just peetering out slow. Eventually, whatever app it is, crashes be it iTunes or Explorer.exe. Thing is, read performance is fabulous and there are no problems there. Anyone have any ideas why its doing this?

Thanks.
 
Yes that would help wouldn't it :D

Code:
sapphire (192.168.0.4) connect to service filestore initially as user firebar (uid=500, gid=501) (pid 3533)
[2006/04/13 23:29:59, 1] smbd/service.c:close_cnum(836)
  sapphire (192.168.0.4) closed connection to service filestore
[2006/04/13 23:33:19, 0] lib/util_sock.c:get_peer_addr(1000)
  getpeername failed. Error was Transport endpoint is not connected
[2006/04/13 23:33:19, 0] lib/access.c:check_access(328)
[2006/04/13 23:33:19, 0] lib/util_sock.c:get_peer_addr(1000)
  getpeername failed. Error was Transport endpoint is not connected
  Denied connection from  (0.0.0.0)
[2006/04/13 23:33:19, 1] smbd/process.c:process_smb(1084)
[2006/04/13 23:33:19, 0] lib/util_sock.c:get_peer_addr(1000)
  getpeername failed. Error was Transport endpoint is not connected
  Connection denied from 0.0.0.0
[2006/04/13 23:33:19, 0] lib/util_sock.c:write_socket_data(430)
  write_socket_data: write failure. Error = Connection reset by peer
[2006/04/13 23:33:19, 0] lib/util_sock.c:write_socket(455)
  write_socket: Error writing 5 bytes to socket 23: ERRNO = Connection reset by peer
[2006/04/13 23:33:19, 0] lib/util_sock.c:send_smb(647)
  Error writing 5 bytes to client. -1. (Connection reset by peer)
[2006/04/13 23:33:19, 1] smbd/service.c:make_connection_snum(648)
  sapphire (192.168.0.4) connect to service filestore initially as user firebar (uid=500, gid=501) (pid 3
576)
[2006/04/13 23:36:20, 1] smbd/service.c:close_cnum(836)
  sapphire (192.168.0.4) closed connection to service filestore
[2006/04/13 23:41:40, 0] smbd/server.c:main(760)
  smbd version 3.0.10-1.4E.6 started.
  Copyright Andrew Tridgell and the Samba Team 1992-2004
[2006/04/13 23:45:10, 1] smbd/service.c:make_connection_snum(648)
  sapphire (192.168.0.4) connect to service filestore initially as user firebar (uid=500, gid=501) (pid 3
654)
[2006/04/13 23:46:40, 1] smbd/service.c:close_cnum(836)
  sapphire (192.168.0.4) closed connection to service filestore

There we go :) Seems to just connect then disconnect. Looking at the top part of this snippet it shows something like this;

Code:
[2006/04/13 23:28:13, 0] lib/util_sock.c:send_smb(647)
  Error writing 5 bytes to client. -1. (Connection reset by peer)

So XP isn't letting the Linux box chat back to it perhaps? Don't know how to rectify this..
 
Ok another worrying thing :)

I copied over a CD iso from my windows machine and as usual it crashed shortly after transfer started. I left it there for a while, 10 mins or so seeing if it would recover. I've just checked the shared folder and the CD ISO is there, downloaded it onto my Gentoo laptop and ran a checksum - its all there!

I'm mighty confused now :S
 
[2006/04/13 23:28:13, 0] lib/util_sock.c:send_smb(647)
Error writing 5 bytes to client. -1. (Connection reset by peer)

thats "normal" on win2k or above you could close port 445 and should see these errors go.

Which version of linux is samba running on? quite an old version of samba.

will see what else i can find out.

Cheers
deano
 
Thank for your help.

Yeah I've looked into closing that port, as you said those errors are normal. Lazy Windows connection management stuff I guess.

I'm using CentOS 4.3, I've also tried Ubuntu 5.10 grabbing samba from the standard repos.
 
Hi

have a look see whats in /var/log/messages also have you tried over at the centos forums?

cheers
deano
 
Hey,

Yeah I've asked, but no reply.

Just on my W2k machine I seem to have it working. Seem being the word there...

I just added the name and IP of the machine to the hosts file on my XP box.... dun dun duuuun.
 
Back
Top Bottom