From Martin.Morgan at roswellpark.org  Fri Jan 15 15:49:00 2016
From: Martin.Morgan at roswellpark.org (Morgan, Martin)
Date: Fri, 15 Jan 2016 14:49:00 +0000
Subject: [Rd] Error in socketConnection(master, port = port,
 blocking = TRUE, open = "a+b", :    cannot open the connection
In-Reply-To: <930069797.4964946.1452841521886.JavaMail.yahoo@mail.yahoo.com>
References: <930069797.4964946.1452841521886.JavaMail.yahoo.ref@mail.yahoo.com>,
	<930069797.4964946.1452841521886.JavaMail.yahoo@mail.yahoo.com>
Message-ID: <DF23DAC5A53912408040FF04D8B780AAE5B46B@EXMB3RSC.roswellpark.org>

Arrange to make the ssh connection passwordless. Do this by copying your 'public key' to the machine that you are trying to connect to. Google will be your friend in accomplishing this.

It might be that a firewall stands between you and the other machine, or that the other machine does not allow connections to port 11001. Either way, the direction toward a solution is to speak with your system administrator. If it is firewall, then they are unlikely to accommodate you; the strategy is to run your cluster exclusively on one side of the firewall.

Martin Morgan
________________________________________
From: R-devel [r-devel-bounces at r-project.org] on behalf of Soumen Pal via R-devel [r-devel at r-project.org]
Sent: Friday, January 15, 2016 2:05 AM
To: r-devel at r-project.org
Subject: [Rd] Error in socketConnection(master, port = port, blocking = TRUE, open = "a+b", :    cannot open the connection

Dear All

I have sucessfully created cluster of four nodes using localhost in my local machine by executing the following command

> cl<-makePSOCKcluster(c(rep("localhost",4)),outfile='',homogeneous=FALSE,port=11001)
starting worker pid=4271 on localhost:11001 at 12:12:26.164
starting worker pid=4280 on localhost:11001 at 12:12:26.309
starting worker pid=4289 on localhost:11001 at 12:12:26.456
starting worker pid=4298 on localhost:11001 at 12:12:26.604
>
> stopCluster(cl)

Now I am trying to create a cluster of 2 nodes (one in my local machine and another remote machine) by using "makePSOCKcluster" command. Both machine have identical settings and connected by SSH. OS is Ubuntu 14.04 LTS & R version 3.2.1. I have executed the follwoing command to create cluster but getting the following error message and R Session is getting hanged.

cl<-makePSOCKcluster(c(rep("soumen at 10.10.2.32",1)),outfile='',homogeneous=FALSE,port=11001)
soumen at 10.10.2.32's password:
starting worker pid=2324 on soumen-HP-ProBook-440-G2:11001 at 12:11:59.349
Error in socketConnection(master, port = port, blocking = TRUE, open = "a+b",  :
  cannot open the connection
Calls: <Anonymous> ... doTryCatch -> recvData -> makeSOCKmaster -> socketConnection
In addition: Warning message:
In socketConnection(master, port = port, blocking = TRUE, open = "a+b",  :
  soumen-HP-ProBook-440-G2:11001 cannot be opened
Execution halted


My sessionInfo() is as follwos

sessionInfo()
R version 3.2.1 (2015-06-18)
Platform: x86_64-unknown-linux-gnu (64-bit)
Running under: Ubuntu 14.04.1 LTS

locale:
 [1] LC_CTYPE=en_IN       LC_NUMERIC=C         LC_TIME=en_IN
 [4] LC_COLLATE=en_IN     LC_MONETARY=en_IN    LC_MESSAGES=en_IN
 [7] LC_PAPER=en_IN       LC_NAME=C            LC_ADDRESS=C
[10] LC_TELEPHONE=C       LC_MEASUREMENT=en_IN LC_IDENTIFICATION=C

attached base packages:
[1] parallel  stats     graphics  grDevices utils     datasets  methods
[8] base


I dont know how to solve this problem.Plese help me to solve this problem.

Thanks

Soumen Pal

        [[alternative HTML version deleted]]

______________________________________________
R-devel at r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel

This email message may contain legally privileged and/or confidential information.  If you are not the intended recipient(s), or the employee or agent responsible for the delivery of this message to the intended recipient(s), you are hereby notified that any disclosure, copying, distribution, or use of this email message is prohibited.  If you have received this message in error, please notify the sender immediately by e-mail and delete this email message from your computer. Thank you.


[Rd] Error in socketConnection(master, port = port, blocking = TRUE, open = "a+b", : cannot open the connection
Morgan, Martin