Arg, it looks like the pipes.quote fix in <a href="https://github.com/ipython/ipython/pull/2126">#2126</a> should have been applied to SSH as well.  The workaround for this one is to manually specify `c.SSHEngineSetLauncher.engine_cmd = [&#39;ipengine&#39;]`, which won&#39;t need to be quoted.<div>

<br></div><div>This should be fixed by <a href="https://github.com/ipython/ipython/pull/2270">PR #2270</a></div><div><br></div><div>There&#39;s also clearly another bug in ipengine, where disambiguation of ip=* with location={not local}, where it&#39;s coming up with localhost instead of location.  The workaround for this is to explicitly use an engine-visible IP on the controller (ip=1.2.3.4).  This part does not affect 0.13, and should be fixed by <a href="https://github.com/ipython/ipython/pull/2269">PR #2269</a>.</div>

<div><br></div><div><br></div><div>So, to sum up (hopefully), for 0.13 the necessary workarounds for 0.13:</div><div><br></div><div>SSHEngineSetLauncher.engine_cmd = [&#39;ipengine&#39;]</div><div>SSHLauncher.remote_profile_dir = &#39;.ipython/profile_ssh&#39; # as appropriate for your own profile</div>

<div><br></div><div>-MinRK<br><br><div class="gmail_quote">On Wed, Aug 8, 2012 at 2:08 PM, Johann Rohwer <span dir="ltr">&lt;<a href="mailto:jr@sun.ac.za" target="_blank">jr@sun.ac.za</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<u></u>
<div style="font-family:&#39;Ubuntu&#39;;font-size:10pt;font-weight:400;font-style:normal"><div class="im">
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">On Wednesday 08 August 2012 11:55:48 Min RK wrote:</p>
</div><div><div class="h5"><p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">&gt; Ah, it sounds like this is #2163, which should be fixed in master.</p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">&gt; </p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">&gt; Can you do</p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">&gt; </p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">&gt; A. Set remote_profile_dir explicitly in your ipcluster_config.py</p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">&gt; B. update to master</p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">&gt; </p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">&gt; And see if either/both fix the issue?</p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px"> </p>
</div></div><p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">OK that took care of the profile directory and copying of the json files :-)</p><div class="im">
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px"> </p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">However, I&#39;m getting another error which prevents ipcluster from starting. Here is the log excerpt. Using persistent json files. If I just run separate commands &quot;ipcontroller --profile home&quot; on 192.168.0.4 and &quot;ipengine --profile home&quot; on 192.168.0.2 , then the engine connects without problems. But with ipcluster it complains about a bash syntax error near unexpected token `--profile-dir&#39; (see below).</p>


<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px"> </p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">This is on master, but seeing the same error on 0.13.</p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px"> </p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">--Johann</p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px"> </p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">----------------------------------------</p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px"> </p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">$ ipcluster start --profile=home --log-level=DEBUG</p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px"> </p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">&gt;&gt;&gt;snip&lt;&lt;&lt;</p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">2012-08-08 23:01:27.679 [IPClusterStart] sending /home/jr/.config/ipython/profile_home/security/ipcontroller-client.json to 192.168.0.2:.config/ipython/profile_home/security/ipcontroller-client.json</p>


<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">2012-08-08 23:01:29.001 [IPClusterStart] sending /home/jr/.config/ipython/profile_home/security/ipcontroller-engine.json to 192.168.0.2:.config/ipython/profile_home/security/ipcontroller-engine.json</p>


<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">2012-08-08 23:01:30.312 [IPClusterStart] Starting SSHEngineLauncher: [&#39;ssh&#39;, &#39;-tt&#39;, u&#39;192.168.0.2&#39;, &#39;/usr/bin/python&#39;, &#39;-c&#39;, &#39;from IPython.parallel.apps.ipengineapp import launch_new_instance; launch_new_instance()&#39;, &#39;--profile-dir&#39;, u&#39;.config/ipython/profile_home&#39;, &#39;--log-to-file&#39;, &#39;--log-level=20&#39;]</p>


<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">2012-08-08 23:01:30.325 [IPClusterStart] Process &#39;ssh&#39; started: 8272</p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">2012-08-08 23:01:30.430 [IPClusterStart] Starting SSHEngineLauncher: [&#39;ssh&#39;, &#39;-tt&#39;, u&#39;192.168.0.2&#39;, &#39;/usr/bin/python&#39;, &#39;-c&#39;, &#39;from IPython.parallel.apps.ipengineapp import launch_new_instance; launch_new_instance()&#39;, &#39;--profile-dir&#39;, u&#39;.config/ipython/profile_home&#39;, &#39;--log-to-file&#39;, &#39;--log-level=20&#39;]</p>


<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">2012-08-08 23:01:30.442 [IPClusterStart] Process &#39;ssh&#39; started: 8273</p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">2012-08-08 23:01:30.444 [IPClusterStart] Process &#39;engine set&#39; started: [None, None]</p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">2012-08-08 23:01:32.182 [IPClusterStart] bash: -c: line 0: syntax error near unexpected token `--profile-dir&#39;</p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">2012-08-08 23:01:32.183 [IPClusterStart] Connection to 192.168.0.2 closed.</p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">2012-08-08 23:01:32.183 [IPClusterStart] bash: -c: line 0: `/usr/bin/python -c from IPython.parallel.apps.ipengineapp import launch_new_instance; launch_new_instance() --profile-dir .config/ipython/profile_home --log-to-file --log-level=20&#39;</p>


<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">2012-08-08 23:01:32.184 [IPClusterStart] Process &#39;ssh&#39; stopped: {&#39;pid&#39;: 8272, &#39;exit_code&#39;: 1}</p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">2012-08-08 23:01:32.279 [IPClusterStart] bash: -c: line 0: syntax error near unexpected token `--profile-dir&#39;</p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">2012-08-08 23:01:32.280 [IPClusterStart] bash: -c: line 0: `/usr/bin/python -c from IPython.parallel.apps.ipengineapp import launch_new_instance; launch_new_instance() --profile-dir .config/ipython/profile_home --log-to-file --log-level=20&#39;</p>


<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">2012-08-08 23:01:32.280 [IPClusterStart] Connection to 192.168.0.2 closed.</p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">2012-08-08 23:01:32.280 [IPClusterStart] Process &#39;ssh&#39; stopped: {&#39;pid&#39;: 8273, &#39;exit_code&#39;: 1}</p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">2012-08-08 23:01:32.281 [IPClusterStart] Process &#39;engine set&#39; stopped: {&#39;<a href="http://192.168.0.2/1" target="_blank">192.168.0.2/1</a>&#39;: {&#39;pid&#39;: 8273, &#39;exit_code&#39;: 1}, &#39;<a href="http://192.168.0.2/0" target="_blank">192.168.0.2/0</a>&#39;: {&#39;pid&#39;: 8272, &#39;exit_code&#39;: 1}}</p>


</div><p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">2012-08-08 23:01:32.281 [IPClusterStart] </p><div class="im">
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">            Engines shutdown early, they probably failed to connect.</p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">            </p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">            Check the engine log files for output.</p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">            </p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">            If your controller and engines are not on the same machine, you probably</p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">            have to instruct the controller to listen on an interface other than localhost.</p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">            </p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">            You can set this by adding &quot;--ip=&#39;*&#39;&quot; to your ControllerLauncher.controller_args.</p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">            </p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">            Be sure to read our security docs before instructing your controller to listen on</p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">            a public interface.</p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">            </p>
</div><p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">2012-08-08 23:01:32.282 [IPClusterStart] IPython cluster: stopping</p><div class="im">
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">2012-08-08 23:01:32.336 [IPClusterStart] Process &#39;/usr/bin/python&#39; stopped: {&#39;pid&#39;: 8249, &#39;exit_code&#39;: 0}</p>


<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px"> </p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px"> </p></div></div><br>_______________________________________________<br>
IPython-User mailing list<br>
<a href="mailto:IPython-User@scipy.org">IPython-User@scipy.org</a><br>
<a href="http://mail.scipy.org/mailman/listinfo/ipython-user" target="_blank">http://mail.scipy.org/mailman/listinfo/ipython-user</a><br>
<br></blockquote></div><br></div>