LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Search this Thread
Old 02-03-2010, 08:22 AM   #1
Iskendar
Member
 
Registered: Jul 2003
Posts: 30

Rep: Reputation: 15
Large file transfer over scp or samba crashes wireless connection


Hi all,

I'm setting up a htpc system (Zotac IONITX-F based) based upon a minimal install of ubuntu 9.10, with no GUI other than xbmc. It's connected to my router (d-link dir-615) over a wifi connection configured for static IP (ath9k driver), with the following /etc/network/interfaces:

Code:
auto lo
iface lo inet loopback

# The primary network interface
#auto eth0
#iface eth0 inet dhcp

# Wireless
auto wlan0
#iface wlan0 inet dhcp
iface wlan0 inet static
	address 192.168.0.111
	netmask 255.255.255.0
	gateway 192.168.0.1
pre-up /sbin/wpa_supplicant -B -Dwext -iwlan0 -c/etc/wpa_supplicant.conf
post-down killall -q wpa_supplicant
Network is fine, samba share to the media direction works, until I try to upload a large file to it from my desktop system. Then it downloads a couple of percents at a really nice speed, but then it stalls and the box becomes unpingable (Destination Host Unreachable), even after canceling the transfer, requiring a restart of the network.
Same thing when I scp the file from my desktop system to the htpc, same thing when I ssh into the htpc, and scp the file from there. Occasionally (rarely) the file does pass through, but most of the time the problem repeats itself. Transfer of small text files causes no problems, and the same goes for the fanart downloads done by xbmc.
I tried the solution proposed in this thread, and set mtu to 800 in the interfaces file, but the problem persists. Any ideas on what could cause this problem, and how to solve it?

P.S. If this is more appropriate for the network forum, I'll move it, it seems to be something in between.

Last edited by Iskendar; 02-03-2010 at 08:23 AM. Reason: typo
 
Old 02-03-2010, 01:03 PM   #2
kschmitt
Member
 
Registered: Jul 2009
Location: Chicago Suburbs
Distribution: Crux, CentOS, RHEL, Ubuntu
Posts: 96

Rep: Reputation: 23
I had the exact same symptoms before for two different reasons.

Once it was a bum broadcom wireless card in an HP laptop. After much argument HP finally replaced the card, and it was fixed.

Currently I have similar problems with my Asus 1005HA, which also uses the ath9k driver. I'm pretty sure it's a driver issue, because unlike when I had the hardware issue, if I rmmod and then modprobe ath9k, then it's fine again.

One thing I've found helps, but doesn't solve the problem, is to set the rate.

When I check my rate using iwconfig, it shows 0. If I iwconfig it to 54M it's stable longer. I'm tempted to try configing it to 24 or 11, but like you, this only happens when trying a large transfer...so in that case I want speed!

BTW, if your connection is dying when transferring large numbers of smallish files (say 24G of raw pictures), try rsync. It won't re-send any files that are already complete, so it saves a bit of hassle.

Good luck, and if you find a permanent solution, let me know too!
 
Old 11-07-2011, 09:07 AM   #3
ucurboy
LQ Newbie
 
Registered: Nov 2011
Posts: 1

Rep: Reputation: Disabled
Samba large file upload issue

I experienced similar symptoms. I could copy (> 20GB) files from the Ubuntu (10.04.3 LTS) Samba (3.4.7) server to my Windows 7 laptop. I could copy small (<1GB) files from the Windows 7 laptop to the Ubuntu Samba server. However, when trying to copy a large file (>20GB) from the Windows 7 laptop to the Ubuntu Samba server, the transfer dialog would start as expected with "Calculating...". Eventually, the dialog would be replaced by the error dialog "There is a problem accessing Z:\ Make sure you are connected to the network and try again." The file appears to be the correct size on the server, but it is corrupt. I scoured the message boards and even changed my Reltek NIC driver from r8169 to r8168, but that did not seem to resolve the issue. My issue is that the user created on the server was created with an encrypted home directory. I set up a new user without an encrypted directory and now file transfers (>20GB) can be uploaded/downloaded without corruption.
 
Old 02-03-2013, 11:52 AM   #4
tmax
LQ Newbie
 
Registered: Feb 2013
Posts: 1

Rep: Reputation: Disabled
this config helped me to solve the same problem
Code:
auto wlan1
iface wlan1 inet static
	address 192.168.1.2
	netmask 255.255.255.0
	network 192.168.1.0
	broadcast 192.168.1.255
	gateway 192.168.1.1
	# wireless-* options are implemented by the wireless-tools package
	wpa-driver nl80211
	wpa-ssid mynetwork
	wpa-psk plaintextsecret
	wpa-key-mgmt WPA-PSK
	wpa-pairwise TKIP CCMP
	wpa-group TKIP CCMP
	wpa-proto WPA RSN
I suppose the key is wpa-driver option nl80211 instead of default wext driver.
 
  


Reply

Tags
file, samba, scp, ubuntu, wireless


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to find whether file transfer has completed on scp or mysqldump. ganesh_k Linux - Newbie 7 08-06-2008 09:00 AM
prematurely terminated connection during a large file transfer rob_xx17 Linux - Networking 7 03-22-2006 10:15 AM
cannot transfer (FTP) 10GB file, also scp dont work freebies Linux - Software 2 02-25-2005 12:38 AM
Large file transfer hang adrielus Linux - Networking 0 12-21-2003 06:50 PM


All times are GMT -5. The time now is 11:20 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration