'gem up' hangs

Hi,

I found ‘gem up’ command hangs on one of the machines.

$ sudo gem up
Updating installed gems…

(hangs here…)

ERROR: While executing gem … (Errno::ETIMEDOUT)
Connection timed out - connect(2)

Strange, so I tried with strace(1):

$ sudo strace gem up
connect(3, {sa_family=AF_INET, sin_port=htons(80),
sin_addr=inet_addr(“66.92.150.242”)}, 16) = -1 EINPROGRESS (Operation
now in progress)
select(4, NULL, [3], [3], NULL) = 1 (out [3]) # hangs here…
connect(3, {sa_family=AF_INET, sin_port=htons(80),
sin_addr=inet_addr(“66.92.150.242”)}, 16) = -1 ETIMEDOUT (Connection
timed out)
fcntl64(3, F_SETFL, O_RDWR) = 0
close(3) = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
write(2, "ERROR: While executing gem … "…, 88ERROR: While
executing gem … (Errno::ETIMEDOUT)
Connection timed out - connect(2)) = 88
write(2, “\n”, 1
) = 1
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
rt_sigaction(SIGINT, {SIG_DFL}, {0x80b04dc, [],
SA_RESTORER|SA_RESTART, 0x55f8c8}, 8) = 0
munmap(0xb7ec3000, 4096) = 0
exit_group(1) = ?

What’s this 66.92.150.242?
It seems this host has no internet connection.
select(2)'s hanging on seems another problem.

Any thoughts?

On 7/5/06, Gyoung-Yoon N. [email protected] wrote:

fcntl64(3, F_SETFL, O_RDWR) = 0
munmap(0xb7ec3000, 4096) = 0
http://nohmad.sub-port.net

This problem was caused by nscd(name server cache daemon).
However gem should be able to handle such network error.