Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Networking & Security
  • Search

HELP: SFTP stalls consistently at 160KB

Having problems getting connected to the internet or running a server? Wondering about securing your box? Ask here.
Post Reply
Advanced search
7 posts • Page 1 of 1
Author
Message
theosib
Apprentice
Apprentice
Posts: 207
Joined: Tue Mar 09, 2004 1:22 pm

HELP: SFTP stalls consistently at 160KB

  • Quote

Post by theosib » Mon May 28, 2012 1:04 pm

I'm having a problem with git push over ssh that I traced down to ssh being the problem. If I try to upload a file larger than 160KB, then sftp will stall at 160KB. I can't find any setting that would cause this, and I haven't been able to find anything really useful by google search. Can anyone help me figure out what's going wrong here?

BTW, this happens regardless of whether the client is on the local network or elsewhere.

I tried adding the "-vvv" flag to sftp. I get tons of messages before the transfer starts but none during the transfer and little after it stalls. Now, it stalls at 224K, and I see this:

Code: Select all

debug2: tcpwinsz: 66608 for connection: 3
debug2: tcpwinsz: 66608 for connection: 3
debug2: tcpwinsz: 66608 for connection: 3
MacOSXUpdCombo10.7.3.dmg                                                                      0%  224KB   0.4KB/s   0.0KB/s - stalled -
debug2: tcpwinsz: 66608 for connection: 3
debug2: tcpwinsz: 66608 for connection: 3
debug2: tcpwinsz: 66608 for connection: 3
MacOSXUpdCombo10.7.3.dmg                                                                      0%  224KB   0.0KB/s   0.0KB/s - stalled -

Thanks!
Top
theosib
Apprentice
Apprentice
Posts: 207
Joined: Tue Mar 09, 2004 1:22 pm

/var/log/messages

  • Quote

Post by theosib » Mon May 28, 2012 1:19 pm

Noting interesting in the log:

Code: Select all

May 28 09:14:32 compute0 sshd[11110]: SSH: Server;Ltype: Version;Remote: 192.168.1.107-53894;Protocol: 2.0;Client: OpenSSH_5.9p1-hpn13v11
May 28 09:14:32 compute0 sshd[11110]: SSH: Server;Ltype: Kex;Remote: 192.168.1.107-53894;Enc: aes128-ctr;MAC: hmac-md5;Comp: none [preauth]
May 28 09:14:33 compute0 sshd[11110]: SSH: Server;Ltype: Authname;Remote: 192.168.1.107-53894;Name: millerti [preauth]
May 28 09:14:33 compute0 sshd[11110]: Accepted publickey for millerti from 192.168.1.107 port 53894 ssh2
May 28 09:14:33 compute0 sshd[11110]: pam_unix(sshd:session): session opened for user millerti by (uid=0)
May 28 09:14:33 compute0 sshd[11119]: subsystem request for sftp by user millerti
May 28 09:16:56 compute0 sshd[11119]: Received disconnect from 192.168.1.107: 11: disconnected by user
May 28 09:16:56 compute0 sshd[11110]: pam_unix(sshd:session): session closed for user millerti
Top
theosib
Apprentice
Apprentice
Posts: 207
Joined: Tue Mar 09, 2004 1:22 pm

Stall point varies with client

  • Quote

Post by theosib » Mon May 28, 2012 1:25 pm

I tried sending from a remote machine to my server via sftp, and then it stalled at 448K. Not much difference between lan-local and remote here, other than speed. In any case, it always stalls out at some point. And since it's not 100% consistent, then it's not some hard limit being set in a config file.
Top
EatMeerkats
Apprentice
Apprentice
User avatar
Posts: 234
Joined: Wed Mar 15, 2006 7:46 pm

  • Quote

Post by EatMeerkats » Mon May 28, 2012 5:38 pm

http://forums.gentoo.org/viewtopic-p-7036250.html
Top
theosib
Apprentice
Apprentice
Posts: 207
Joined: Tue Mar 09, 2004 1:22 pm

Thanks!

  • Quote

Post by theosib » Mon May 28, 2012 8:49 pm

EatMeerkats wrote:http://forums.gentoo.org/viewtopic-p-7036250.html
I wish this forum has a "this was very helpful" button. :)

Thanks!
Top
EatMeerkats
Apprentice
Apprentice
User avatar
Posts: 234
Joined: Wed Mar 15, 2006 7:46 pm

  • Quote

Post by EatMeerkats » Mon May 28, 2012 8:51 pm

Glad that was it… not an easy problem to fix, unless you know where to look. I just happened to remember reading that thread recently… :)
Top
cach0rr0
Bodhisattva
Bodhisattva
User avatar
Posts: 4123
Joined: Thu Nov 13, 2008 11:14 pm
Location: Houston, Republic of Texas

  • Quote

Post by cach0rr0 » Mon May 28, 2012 11:38 pm

EatMeerkats wrote:Glad that was it… not an easy problem to fix, unless you know where to look. I just happened to remember reading that thread recently… :)
same. that burned me earlier this week on an scp job that was less than 3MB.
I'd have been scratching my head for weeks otherwise. downgraded to 1.0.0j, restarted openssh, and things were lovely
Lost configuring your system?
dump lspci -n here | see Pappy's guide | Link Stash
Top
Post Reply

7 posts • Page 1 of 1

Return to “Networking & Security”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic