Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 384427

Summary: Portage sometimes hangs when downloading binary packages using sftp
Product: Portage Development Reporter: Markos Chandras (RETIRED) <hwoarang>
Component: Binary packages supportAssignee: Portage team <dev-portage>
Status: RESOLVED INVALID    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Markos Chandras (RETIRED) gentoo-dev 2011-09-25 12:01:42 UTC
Hi, sometimes ( especially when there are lot of packages to fetch ) portage hangs when downloading a binary package using sftp protocol


Connected to XXXXXXX.
Fetching /packages/eternity/dev-libs/apr-util-1.3.12.tbz2 to /usr/portage/packages/eternity/dev-libs/apr-util-1.3.12.tbz2
/packages/eternity/dev-libs/apr-uti 100%  160KB  39.9KB/s 127.6KB/s   00:04    
 * apr-util-1.3.12.tbz2 MD5 SHA1 size ;-) ...                            [ ok ]

>>> Fetching (154 of 227) sys-apps/openrc-0.9.3-r1
Connected to XXXXXXXX.
Fetching /packages/eternity/sys-apps/openrc-0.9.3-r1.tbz2 to /usr/portage/packages/eternity/sys-apps/openrc-0.9.3-r1.tbz2
/packages/eternity/sys-apps/openrc- 100%  245KB  81.8KB/s  96.0KB/s   00:03    
 * openrc-0.9.3-r1.tbz2 MD5 SHA1 size ;-) ...                            [ ok ]

>>> Fetching (155 of 227) sys-fs/mtools-4.0.17
<stays here forever>

If I stop it and resume it i stalls again but on a different package

I am not sure how to debug it
Comment 1 Zac Medico gentoo-dev 2011-09-25 17:26:59 UTC
It just calls FETCHCOMMAND_SFTP, which is no different from how FETCHCOMMAND_* is called for any other protocol. No issues like this have been reported for any other protocol, so it seems like an issue between the sftp program and the server, or maybe the sftp program is just deadlocking with ssh-agent or something.
Comment 2 Markos Chandras (RETIRED) gentoo-dev 2011-09-28 00:28:38 UTC
Hmm ok so I will close this for now and check the connectivity of the two hosts once again :)