Parallel remote kernel: MathLink connection not active
- To: mathgroup at smc.vnet.net
- Subject: [mg121573] Parallel remote kernel: MathLink connection not active
- From: Andrew <haines42 at gmail.com>
- Date: Tue, 20 Sep 2011 06:10:02 -0400 (EDT)
- Delivered-to: firstname.lastname@example.org
Hi all I'm struggling to set up parallel remote kernels, and searching around it seems that I am not alone but I could not find a solution. In my case, both client and server are running Windows; the server is running CopSSH and I have successfully set up a single remote kernel using mathssh: java -jar "`mathssh`" user@server "math -mathlink -LinkMode Connect - LinkProtocol TCPIP -LinkName `linkname` -LinkHost x.x.x.x" where x.x.x.x is the client's IP. I can set a notebook to use this remote kernel, and executing $MachineName gives the name of the server, so everything is working as expected. However, I can't seem to get the same to work for parallel kernels. I have pretty much just copied the configuration across and tweaked the replacements: java -jar "C:\Program Files\Wolfram \ Research\Mathematica\8.0\SystemFiles\Java\WolframSSH.jar" user@`1` "math -mathlink -LinkMode Connect -LinkProtocol TCPIP -LinkName `2` - LinkHost x.x.x.x -subkernel -noinit >& /dev/null &" However, when it fires up, the server kernel spits out the error LinkConnect::linkc: LinkObject[55512 at x.x.x.x,55513 at x.x.x.x, 1, 1] which "is generated by an attempt to access a MathLink connection that is not active". Any ideas?