You are not logged in.

#1 2013-08-16 11:42:24

replabrobin
Member
Registered: 2010-05-06
Posts: 236

[SOLVED] mercurial aborts

I have an up to date x86_64 (rebooted) machine which shows this message contacting my local mercurial repositories

$ hg clone http://reposhost/hg/myrepos
abort: error: Resource temporarily unavailable
robin@bunyip ~/tmp:

I can browse to the repository using its URL http://reposhost/hg/myrepos and that seems to show the correct behaviour.
Similarly I can execute the clone command from another machine on the same network.

ping works and reposhost is in the hosts file

$ ping reposhost
PING reposhost (192.168.0.9) 56(84) bytes of data.
64 bytes from reposhost (192.168.0.9): icmp_seq=1 ttl=64 time=0.183 ms
64 bytes from reposhost (192.168.0.9): icmp_seq=2 ttl=64 time=0.483 ms
^C
--- reposhost ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 999ms
rtt min/avg/max/mdev = 0.183/0.333/0.483/0.150 ms
robin@bunyip ~/tmp:
$ grep reposhost /etc/hosts
192.168.0.9		reposhost
robin@bunyip ~/tmp:
$ 

I used strace and that seems to suggest that the error message comes just after /etc/hosts gets read

open("/etc/hosts", O_RDONLY|O_CLOEXEC)  = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=1090, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f2ccb0b8000
read(3, "#\n# /etc/hosts: static lookup ta"..., 4096) = 1090
read(3, "", 4096)                       = 0
close(3)                                = 0
munmap(0x7f2ccb0b8000, 4096)            = 0
write(2, "abort: error: Resource temporari"..., 47abort: error: Resource temporarily unavailable
) = 47

any ideas what's going wrong?

Last edited by replabrobin (2013-08-16 12:32:47)

Offline

#2 2013-08-16 12:35:59

replabrobin
Member
Registered: 2010-05-06
Posts: 236

Re: [SOLVED] mercurial aborts

I found I had a misconfigured /etc/nsswitch.conf I had a hosts: line like this

hosts: hosts files mdns4_minimal dns mdns4 wins

after I fixed this the hg started working OK. Sorry for noise.

Offline

Board footer

Powered by FluxBB