[mpich-discuss] MPID_nem_tcp_init(377)... gethostbyname failed, mac (errno 1)

Reuti reuti at staff.uni-marburg.de
Tue Mar 4 05:59:28 CST 2014


Am 04.03.2014 um 12:10 schrieb Luis Cebamanos:

> It also works with en0:
> 
> lcebaman at mac~/$  mpiexec -iface en0 -n 4 ./hello
> Hello world from process 0 of 4
> Hello world from process 3 of 4
> Hello world from process 1 of 4
> Hello world from process 2 of 4

Interesting, something I never tried before as my name resolution works as expected.

-- Reuti


> And that is what my ifconfig says:
> 
> lcebaman at mac~/$ ifconfig
> lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384
> 	options=3<RXCSUM,TXCSUM>
> 	inet6 ::1 prefixlen 128 
> 	inet 127.0.0.1 netmask 0xff000000 
> 	inet6 fe80::1%lo0 prefixlen 64 scopeid 0x1 
> 	nd6 options=1<PERFORMNUD>
> gif0: flags=8010<POINTOPOINT,MULTICAST> mtu 1280
> stf0: flags=0<> mtu 1280
> en0: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 1500
> 	ether 28:cf:e9:1f:cf:13 
> 	inet6 fe80::2acf:e9ff:fe1f:cf13%en0 prefixlen 64 scopeid 0x4 
> 	inet 172.20.170.189 netmask 0xfffff000 broadcast 172.20.175.255
> 	nd6 options=1<PERFORMNUD>
> 	media: autoselect
> 	status: active
> en4: flags=8963<UP,BROADCAST,SMART,RUNNING,PROMISC,SIMPLEX,MULTICAST> mtu 1500
> 	options=60<TSO4,TSO6>
> 	ether 32:00:17:4d:80:20 
> 	media: autoselect <full-duplex>
> 	status: inactive
> en5: flags=8963<UP,BROADCAST,SMART,RUNNING,PROMISC,SIMPLEX,MULTICAST> mtu 1500
> 	options=60<TSO4,TSO6>
> 	ether 32:00:17:4d:80:21 
> 	media: autoselect <full-duplex>
> 	status: inactive
> p2p0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 2304
> 	ether 0a:cf:e9:1f:cf:13 
> 	media: autoselect
> 	status: inactive
> bridge0: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 1500
> 	options=63<RXCSUM,TXCSUM,TSO4,TSO6>
> 	ether 2a:cf:e9:f1:ef:00 
> 	Configuration:
> 		id 0:0:0:0:0:0 priority 0 hellotime 0 fwddelay 0
> 		maxage 0 holdcnt 0 proto stp maxaddr 100 timeout 1200
> 		root id 0:0:0:0:0:0 priority 0 ifcost 0 port 0
> 		ipfilter disabled flags 0x2
> 	member: en4 flags=3<LEARNING,DISCOVER>
> 	        ifmaxaddr 0 port 5 priority 0 path cost 0
> 	member: en5 flags=3<LEARNING,DISCOVER>
> 	        ifmaxaddr 0 port 6 priority 0 path cost 0
> 	nd6 options=1<PERFORMNUD>
> 	media: <unknown type>
> 	status: inactive
> 
> Cheers,
> Luis
> On 3 Mar 2014, at 22:24, Luis Cebamanos <l.cebamanos at epcc.ed.ac.uk> wrote:
> 
>> 
>> Hi Reuti,
>> 
>> I have done what you suggested and it WORKS with the wireless off
>> 
>> lcebaman at mac~/$  mpiexec -iface lo0 -n 4 ./hello
>> Hello world from process 0 of 4
>> Hello world from process 3 of 4
>> Hello world from process 1 of 4
>> Hello world from process 2 of 4
>> 
>> What is the problem here then?
>> 
>> Cheers,
>> Luis
>> On 3 Mar 2014, at 14:54, Reuti <reuti at staff.uni-marburg.de> wrote:
>> 
>>> Am 03.03.2014 um 11:29 schrieb Luis Cebamanos:
>>> 
>>>> I have also noticed that working without any internet connection does not work either.
>>> 
>>> Just for curiosity:
>>> 
>>> $ mpiexec -iface lo0 -n 4 ./foo
>>> 
>>> -- Reuti
>>> 
>>> 
>>>> On 3 Mar 2014, at 09:53, Luis Cebamanos <l.cebamanos at epcc.ed.ac.uk> wrote:
>>>> 
>>>>> Hi there,
>>>>> 
>>>>> I’ve got more news. The last IP that I showed in my last email it turns out that works OKAY, however now that I am back to the office and working on the wireless, it does not work. And that is the result of nslookup:
>>>>> 
>>>>> lcebaman at mac~/Projects/SPRINT$ nslookup localhost
>>>>> Server:		129.215.205.191
>>>>> Address:	129.215.205.191#53
>>>>> 
>>>>> Name:	localhost.ed.ac.uk
>>>>> Address: 127.0.0.1
>>>>> 
>>>>> lcebaman at mac~/Projects/SPRINT$ nslookup mac
>>>>> Server:		129.215.205.191
>>>>> Address:	129.215.205.191#53
>>>>> 
>>>>> ** server can't find mac: NXDOMAIN
>>>>> 
>>>>> Any thoughts?
>>>>> 
>>>>> Cheers,
>>>>> Luis
>>>>> 
>>>>> On 1 Mar 2014, at 19:40, l.cebamanos <l.cebamanos at epcc.ed.ac.uk> wrote:
>>>>> 
>>>>>> Well, is not fixed. Its just the one I got here, but it changes. Any ideas of how to fix this?
>>>>>> 
>>>>>> -------- Original message --------
>>>>>> From: Reuti <reuti at staff.uni-marburg.de> 
>>>>>> Date:01/03/2014  17:38  (GMT+00:00) 
>>>>>> To: discuss at mpich.org 
>>>>>> Subject: Re: [mpich-discuss] MPID_nem_tcp_init(377)... gethostbyname failed,
>>>>>> 	mac (errno 1) 
>>>>>> 
>>>>>> Am 01.03.2014 um 17:58 schrieb Luis Cebamanos:
>>>>>> 
>>>>>>> Here it is the output of those commands:
>>>>>>> 
>>>>>>> lcebaman at mac~/$ nslookup localhost
>>>>>>> Server:	 192.168.1.1
>>>>>>> Address:	192.168.1.1#53
>>>>>>> 
>>>>>>> Name:	localhost
>>>>>>> Address: 127.0.0.1
>>>>>>> 
>>>>>>> lcebaman at mac~/$ nslookup mac
>>>>>>> Server:	 192.168.1.1
>>>>>>> Address:	192.168.1.1#53
>>>>>>> 
>>>>>>> Name:	mac
>>>>>>> Address: 192.168.1.127
>>>>>> 
>>>>>> Is this a fixed address you get everytime? You could add it to /etc/hosts.
>>>>>> 
>>>>>> Interesting that MPICH throws an error about resolving "mac", although DNS is working.
>>>>>> 
>>>>>> -- Reuti
>>>>>> 
>>>>>> 
>>>>>>> lcebaman at mac~/$ hostname
>>>>>>> mac
>>>>>>> 
>>>>>>> 
>>>>>>> 
>>>>>>> 
>>>>>>> On 28 Feb 2014, at 23:35, Reuti <reuti at staff.uni-marburg.de> wrote:
>>>>>>> 
>>>>>>>> Am 28.02.2014 um 14:39 schrieb Luis Cebamanos:
>>>>>>>> 
>>>>>>>>> Hi Pavan,
>>>>>>>>> 
>>>>>>>>> Yes, that is the output:
>>>>>>>>> 
>>>>>>>>> $ cat /etc/hosts
>>>>>>>>> ##
>>>>>>>>> # Host Database
>>>>>>>>> #
>>>>>>>>> # localhost is used to configure the loopback interface
>>>>>>>>> # when the system is booting.  Do not change this entry.
>>>>>>>>> ##
>>>>>>>>> 127.0.0.1	localhost
>>>>>>>>> 255.255.255.255	broadcasthost
>>>>>>>>> ::1             localhost
>>>>>>>>> fe80::1%lo0	localhost
>>>>>>>> 
>>>>>>>> What is the output of:
>>>>>>>> 
>>>>>>>> $ nslookup localhost
>>>>>>>> $ nslookup mac
>>>>>>>> $ hostname
>>>>>>>> 
>>>>>>>> AFAICS your machine has no domainname, otherwise it would show up in the MPICH error message after "mac".
>>>>>>>> 
>>>>>>>> -- Reuti
>>>>>>>> 
>>>>>>>> 
>>>>>>>>> On 28/02/14 13:35, Balaji, Pavan wrote:
>>>>>>>>>> $ cat /etc/hosts
>>>>>>>>>>>> ##
>>>>>>>>>>>> # Host Database
>>>>>>>>>>>> #
>>>>>>>>>>>> # localhost is used to configure the loopback interface
>>>>>>>>>>>> # when the system is booting.  Do not change this entry.
>>>>>>>>>>>> ##
>>>>>>>>>>>> 127.0.0.1	localhost
>>>>>>>>>>>> 255.255.255.255	broadcasthost
>>>>>>>>>>>> ::1             localhost
>>>>>>>>>>>> fe80::1%lo0	localhost
>>>>>>>>> 
>>>>>>>>> 
>>>>>>>>> -- 
>>>>>>>>> The University of Edinburgh is a charitable body, registered in
>>>>>>>>> Scotland, with registration number SC005336.
>>>>>>>>> 
>>>>>>>>> _______________________________________________
>>>>>>>>> discuss mailing list     discuss at mpich.org
>>>>>>>>> To manage subscription options or unsubscribe:
>>>>>>>>> https://lists.mpich.org/mailman/listinfo/discuss
>>>>>>>> 
>>>>>>>> _______________________________________________
>>>>>>>> discuss mailing list     discuss at mpich.org
>>>>>>>> To manage subscription options or unsubscribe:
>>>>>>>> https://lists.mpich.org/mailman/listinfo/discuss
>>>>>>> 
>>>>>>> The University of Edinburgh is a charitable body, registered in
>>>>>>> Scotland, with registration number SC005336.
>>>>>>> _______________________________________________
>>>>>>> discuss mailing list     discuss at mpich.org
>>>>>>> To manage subscription options or unsubscribe:
>>>>>>> https://lists.mpich.org/mailman/listinfo/discuss
>>>>>> 
>>>>>> _______________________________________________
>>>>>> discuss mailing list     discuss at mpich.org
>>>>>> To manage subscription options or unsubscribe:
>>>>>> https://lists.mpich.org/mailman/listinfo/discuss
>>>>>> 
>>>>>> The University of Edinburgh is a charitable body, registered in
>>>>>> Scotland, with registration number SC005336.
>>>>>> _______________________________________________
>>>>>> discuss mailing list     discuss at mpich.org
>>>>>> To manage subscription options or unsubscribe:
>>>>>> https://lists.mpich.org/mailman/listinfo/discuss
>>>>> 
>>>>> The University of Edinburgh is a charitable body, registered in
>>>>> Scotland, with registration number SC005336.
>>>>> _______________________________________________
>>>>> discuss mailing list     discuss at mpich.org
>>>>> To manage subscription options or unsubscribe:
>>>>> https://lists.mpich.org/mailman/listinfo/discuss
>>>> 
>>>> The University of Edinburgh is a charitable body, registered in
>>>> Scotland, with registration number SC005336.
>>>> _______________________________________________
>>>> discuss mailing list     discuss at mpich.org
>>>> To manage subscription options or unsubscribe:
>>>> https://lists.mpich.org/mailman/listinfo/discuss
>>> 
>>> _______________________________________________
>>> discuss mailing list     discuss at mpich.org
>>> To manage subscription options or unsubscribe:
>>> https://lists.mpich.org/mailman/listinfo/discuss
>> 
>> The University of Edinburgh is a charitable body, registered in
>> Scotland, with registration number SC005336.
>> _______________________________________________
>> discuss mailing list     discuss at mpich.org
>> To manage subscription options or unsubscribe:
>> https://lists.mpich.org/mailman/listinfo/discuss
> 
> The University of Edinburgh is a charitable body, registered in
> Scotland, with registration number SC005336.
> _______________________________________________
> discuss mailing list     discuss at mpich.org
> To manage subscription options or unsubscribe:
> https://lists.mpich.org/mailman/listinfo/discuss




More information about the discuss mailing list