[mpich-discuss] MPI on two machines (HYDU_sock_connect (./utils/sock/sock.c:171): unable to get host address for ... )

Pavan Balaji balaji at mcs.anl.gov
Mon Jul 9 19:40:22 CDT 2012


Did you check the /etc/hosts files to ensure they are consistent on all 
machines?  The MPICH FAQ page has more information on this:

http://wiki.mcs.anl.gov/mpich2/index.php/Frequently_Asked_Questions

  -- Pavan

On 06/08/2012 09:43 AM, Piotr Cal wrote:
> Hi,
>
> I have a problem with runing mpi program on few machines. First I try to test MPI configuration only on my computer (name: aristo-linux-PC) and on virtual machine (VirtualBox) (name: image-laptop).
> On aristo-linux-PC I have Ubuntu 11.10 , and on image-laptop 10.04
>
> I manualy install MPICH2-1.4.1p1 on both machines, and after puting SHEL$ mpiexec -info i get folowing information:
> piotrek at aristo-linux-PC:~$ mpiexec -info
> HYDRA build details:
>      Version:                                 1.4.1p1
>      Release Date:                            Thu Sep  1 13:53:02 CDT 2011
> ....
>
> Only one diference is that on virtual machine I disable fortran compiler.
> MPICH2 is located in /usr/local/mpich2/ directory on both machines
> Both machines have same named accouts (name: piotrek) and passwords.
> I configure ssh conections in way that  when I put ssh ip_address_second_machines, I can establish connection (without password)
> Now when I try to run any program on both machines I have problem:
> I write: SHEL$ mpiexec -f hostfile -n 4 hostname  (hostname is a simple linux program to test if its work)
>
> piotrek at aristo-linux-PC:~$ mpiexec -f ./hostfile -n 4 hostname
> [proxy:0:0 at image-laptop] HYDU_sock_connect (./utils/sock/sock.c:171): unable to get host address for aristo-linux-PC (1)
> [proxy:0:0 at image-laptop] main (./pm/pmiserv/pmip.c:209): unable to connect to server aristo-linux-PC at port 50234 (check for firewalls!)
>
> hostfile consist:
>
> 192.168.0.134
>
> it is address of image-laptop.
>
> What I need to do to siply run MPI program? Do I need additional software or add something in hostfile file. I check firewall by put:
> piotrek at aristo-linux-PC:~$ sudo iptables -L -n
> Chain INPUT (policy ACCEPT)
> target     prot opt source               destination
>
> Chain FORWARD (policy ACCEPT)
> target     prot opt source               destination
>
> Chain OUTPUT (policy ACCEPT)
> target     prot opt source               destination
> piotrek at aristo-linux-PC:~$ hostname
> aristo-linux-PC
>
> And its ok.
>
> I will be greatfull for any help.
>
> Best regards,
> Piotrek
>
>
>
>
>
>
> _______________________________________________
> mpich-discuss mailing list     mpich-discuss at mcs.anl.gov
> To manage subscription options or unsubscribe:
> https://lists.mcs.anl.gov/mailman/listinfo/mpich-discuss
>

-- 
Pavan Balaji
http://www.mcs.anl.gov/~balaji




More information about the mpich-discuss mailing list