Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
04-17-2003, 11:13 AM
|
#1
|
Member
Registered: Jan 2003
Location: Indiana
Distribution: Centos, RedHat Enterprise, Slackware
Posts: 524
Rep:
|
Can't copy large files in SAMBA
Hello all,
I'm using RH 8 with all the latest updates including Samba 2.2.8a. My problem is I setup a cron job to download large files (over 300MB) at night so I don't tie up the Internet at work. Now I have the files on my server, but I need to move them over to a workstation to be burned to CD. Samba will not let me copy or move these large files. After I try, all my mapped drives on the workstation are deleted, even my Novell maps.
The log shows this:
[2003/04/17 09:13:39, 0] lib/util_sock.c:read_data(436)
read_data: read failure for 4. Error = Connection reset by peer
I've seen this problem posted before elsewhere, but it never seems to get a response. I do the same thing at home with CD ISO's and it works great. Anyone got a clue on this one?
Thanks
|
|
|
04-17-2003, 12:06 PM
|
#2
|
Member
Registered: Jan 2003
Location: Indiana
Distribution: Centos, RedHat Enterprise, Slackware
Posts: 524
Original Poster
Rep:
|
Okay, I'll throw in some more interesting info. My workstation at work in Win98 and cannot copy the info without the error, yet my WinXP laptop can access it and copy it just fine.
Hmmmmmmmmmmm???
|
|
|
04-17-2003, 05:00 PM
|
#3
|
Member
Registered: Nov 2002
Location: Cary, NC
Distribution: Red Hat
Posts: 76
Rep:
|
The problem is most likely with Win98 and not Samba. Is each file about 300 MB or is the total 300 MB? If the later, you might have better luck copying subsets of the group. You might also try to pull the files from the Win98 machine rather than push them from Samba.
I have had terrible luck trying to push large volumes of data to my Win98 machine from Win2K and RH8. Pulling it works somewhat better but still is not 100%.
You are downloading the files at home, then sending them to a corporate server, and then to your work computer? This saves time? CD burners are pretty cheap. Putting one in your linux box would make life much more simple.
|
|
|
04-18-2003, 07:30 AM
|
#4
|
Member
Registered: Jan 2003
Location: Indiana
Distribution: Centos, RedHat Enterprise, Slackware
Posts: 524
Original Poster
Rep:
|
Actually what I'm doing at home and at work are totally separate. I was just passing along the info that the same thing I was doing at work and getting an error was working at home. On my home server I'm downloading 600MB ISOs, on the server at work it is archived databases. Can't install a CD writer at work for security reasons, plus it's a pretty busy server. I doubt it could finish reliably. I'm trying to pull them over to the workstation to make CD copies of the daily archive for long term storage. Trust me, it's the best method I've tried to do what I need to get done.
My home computer is XP too, so I gathered as much about the OS issues. It appears this still hasn't been addressed by MS because the previous posts I've read were from 1999. I was just hoping that someone had a work-around by now. 
|
|
|
07-12-2003, 05:38 AM
|
#5
|
LQ Newbie
Registered: Jul 2003
Location: London
Distribution: Solaris 2.8
Posts: 2
Rep:
|
Ok, here's another interesting slant on this problem.
I'm running Samba 2.2.8a (Just upgraded fron 2.2.2 to try to solve this problem!), on my Solaris 8 box (An old intel P200MMX).
I share all my MP3s from this box, and one of the machines we play the MP3s from over our mini network here at home is a Windows98 box. This Win98 machine is doing *exactly* as described previously in this thread, WinAMP (Or Windows media player - doesn't matter) plays the files just fine, but will eventually cut out for several minutes after which only a few short bursts of music will make it through.
The SAMBA logs report:
[2003/07/11 11:40:41, 0] lib/util_sock.c:read_data(436)
read_data: read failure for 4. Error = Connection reset by peer
[2003/07/11 11:40:41, 1] smbd/service.c:close_cnum(677)
trident (xxx.xxx.xxx.xxx) closed connection to service public
[2003/07/11 11:41:01, 1] smbd/service.c:make_connection(636)
trident (192.168.49.16) connect to service public as user xxxxxx(uid=xxx, gid=xx) (pid 24622)
I can play the *hours* worth of MP3's from my Win2K machine with no problems at all - therefore I strongly suspect something odd about Win98 that's screwing around with the SMB protocol when transferring large files or data streams.
Sean.
|
|
|
07-12-2003, 12:06 PM
|
#6
|
Member
Registered: Jan 2003
Location: Indiana
Distribution: Centos, RedHat Enterprise, Slackware
Posts: 524
Original Poster
Rep:
|
Its a shame isn't it? I wish I had an answer for you by now, but as you can see, the issue still remains. I'm sure it is an issue with the Win98 TCP/IP stack implementation. With Microsoft cutting support for Win98 in the next few weeks, I'd say the only solution would be to upgrade to 2000 or XP.
Sorry
|
|
|
07-12-2003, 04:31 PM
|
#7
|
LQ Guru
Registered: Jan 2002
Posts: 6,042
Rep: 
|
You can try upgrading the NIC drivers and do a Win98 update. You can try adding a line in the registry (I think consistent connections is what it is called).
Go to samba site and look through smb.conf documentation or type man smb.conf .
You may want to add
socket options = IPTOS_THROUGHPUT
This setting is for WAN connections. I don't know why you want to use SAMBA over the internet. To me, its very dangerous. FTP is a little safer.
You can also try large readwrite = yes in the global section. This might fix Win98.
Windows 2000 is more prone to this problem than Win98.
I don't have any problems with my Win98 system. I can copy huge files close to 4 gigabytes in size to my LINUX system and also to my Win98. Though I'm using Mandrake 9. It might be Redhat's TCP/IP settings in its kernel.
|
|
|
07-12-2003, 07:16 PM
|
#8
|
LQ Newbie
Registered: Jul 2003
Location: London
Distribution: Solaris 2.8
Posts: 2
Rep:
|
I have no problem with Win2K - its Win98 that's causing all the problems. Personally I hate it as an OS, but its not my machine...
|
|
|
08-14-2003, 08:35 AM
|
#9
|
LQ Newbie
Registered: Aug 2003
Location: Ohio
Distribution: Debian Woody @ Work, Sarge @ Home
Posts: 11
Rep:
|
I'm getting the exact same problem.
I'm using Xandros 1.0 and Debian's 2.2.8a-woody SAMBA packages.
However, I seem to be getting the problem at the same time on both a Win98 box AND my Win2k laptop. (They both hiccup/disconnect/whatever within 30 seconds of each other.)I've tried running the laptop without having the Win98 box connected, but not vice-versa. I'm averaging about 14 disconnects in an 8 hour shift.
|
|
|
09-03-2003, 12:06 PM
|
#10
|
LQ Newbie
Registered: Sep 2003
Posts: 1
Rep:
|
And the problem persists...
To add to the pile...
I just upgraded one of our RedHat 8.0 servers which was running Samba 2.2.5 without any issues. We are now experiencing the same problem that you have all mentioned:
Error = Connection reset by peer
As well we are seeing "Oplock_break" errors. I have turned oplocks off on that share which resolved the oplock issues but the connection dying has been persisting.
Since this all occured when we did the upgrade it would appear that the kernel changes are to blame (either that or one of the other packages that was upgraded, but it seems unlikely). Currently I have booted into the old kernel 2.4.18 and it is running fine. I am wondering if there were changes made to the kernel that would have effected the sockets. Any thoughts...
|
|
|
09-03-2003, 12:12 PM
|
#11
|
LQ Newbie
Registered: Aug 2003
Location: Ohio
Distribution: Debian Woody @ Work, Sarge @ Home
Posts: 11
Rep:
|
Possible help...
I re-installed Xandros from scratch, used Xandros Networks to upgrade everything BUT Samba, then updated Samba from the 2.2.8a packages.
Two disconnects in four days, and one can be directly attributed to 802.11b. ;P
Apparently something in Samba 2.999 has SEVERE problems.
|
|
|
09-03-2003, 01:59 PM
|
#12
|
Member
Registered: Aug 2003
Distribution: RedHat
Posts: 35
Rep:
|
It may not be much help, but I know that 98 CAN copy files that large into samba shares. I've moved ISO's back and forth, but the performance isn't great (like 6 megabits a second on a 100megabit LAN).
My question is, can you copy smaller files successfully?
And the connection reset by peer "error" is fairly common on samba after version 1.9.x. Doesn't seem to affect anything as far as I can tell.
The day that MS releases the code for their tcp/ip stack will be a great day for samba indeed! (cough, cough)
|
|
|
All times are GMT -5. The time now is 01:47 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|