Skip to content

Error in socketConnection(master, port = port, blocking = TRUE, open = "a+b", : cannot open the connection

2 messages · Soumen Pal, Martin Morgan

#
Dear All

I have sucessfully created cluster of four nodes using localhost in my local machine by executing the following command
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
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
#
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