IPython 0.14 rewrites the connection/handshake step, as well as serialization. It is not compatible with 0.13, so you have to upgrade all IPythons in a given cluster (engine, controller, and client) at once.<br><br><div class="gmail_quote">
On Thu, Oct 25, 2012 at 12:50 PM, Alessandro Gagliardi <span dir="ltr"><<a href="mailto:alessandro@path.com" target="_blank">alessandro@path.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I had been able to run IPython Notebook locally and connect to StarCluster using:<div>rc = Client('/home/alessandro/.starcluster/ipcluster/myfourthcluster-us-west-1.json', sshkey='/home/alessandro/.ssh/path-ops.pem', packer='pickle')</div>
<div>I upgraded IPython from 0.12 to 0.13 and it worked for the most part, though I had some trouble at times, so following the advice at <a href="https://github.com/ipython/ipython/issues/2171" target="_blank">https://github.com/ipython/ipython/issues/2171</a> I upgraded to 0.14. After restarting myfourthcluster I was no longer able to connect. I was still running 0.13 locally and was able to generate the attached crash report. I noticed that my local copy of IPython was looking for a "url" field in the JSON file which now looks like:</div>
<div><div style="color:rgb(34,34,34);font-size:13px;font-family:arial,sans-serif">{</div><div style="color:rgb(34,34,34);font-size:13px;font-family:arial,sans-serif">
"control": XXXXX, </div><div style="color:rgb(34,34,34);font-size:13px;font-family:arial,sans-serif"> "task": XXXXX, </div><div style="color:rgb(34,34,34);font-size:13px;font-family:arial,sans-serif">
"notification": XXXXX, </div><div style="color:rgb(34,34,34);font-size:13px;font-family:arial,sans-serif"> "exec_key": "XXXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX",</div>
<div style="color:rgb(34,34,34);font-size:13px;font-family:arial,sans-serif"> "task_scheme": "leastload", </div><div style="color:rgb(34,34,34);font-size:13px;font-family:arial,sans-serif">
"mux": XXXXX, </div><div style="color:rgb(34,34,34);font-size:13px;font-family:arial,sans-serif"> "iopub": XXXXX, </div><div style="color:rgb(34,34,34);font-size:13px;font-family:arial,sans-serif">
"ssh": "<a href="mailto:sgeadmin@ec2-XX-XX-XX-XX.us-west-1.compute.amazonaws.com" style="color:rgb(17,85,204)" target="_blank">sgeadmin@ec2-XX-XX-XX-XX.us-west-1.compute.amazonaws.com</a>", </div><div style="color:rgb(34,34,34);font-size:13px;font-family:arial,sans-serif">
"registration": XXXXX, </div><div style="color:rgb(34,34,34);font-size:13px;font-family:arial,sans-serif"> "interface": "tcp://XX.XX.XX.XX", </div><div style="color:rgb(34,34,34);font-size:13px;font-family:arial,sans-serif">
"pack": "pickle", </div><div style="color:rgb(34,34,34);font-size:13px;font-family:arial,sans-serif"> "unpack": "pickle", </div><div style="color:rgb(34,34,34);font-size:13px;font-family:arial,sans-serif">
"location": "XX.XX.XX.XX"</div><div style="color:rgb(34,34,34);font-size:13px;font-family:arial,sans-serif">}</div></div><div style="color:rgb(34,34,34);font-size:13px;font-family:arial,sans-serif">
I noticed that a JSON file I had for an older instance looked quite different:</div><div style="color:rgb(34,34,34);font-size:13px;font-family:arial,sans-serif"><div>{</div><div> "url": "tcp:///XX.XX.XX.XX:XXXXX", </div>
<div> "exec_key": XXXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX, </div><div> "ssh": "<a href="mailto:sgeadmin@ec2-XX-XX-XX-XX.us-west-1.compute.amazonaws.com" style="color:rgb(17,85,204)" target="_blank">sgeadmin@ec2-XX-XX-XX-XX.us-west-1.compute.amazonaws.com</a>", </div>
<div> "location": "XX.XX.XX.XX"</div><div>}</div><div>I tried adding a "url" field but could not figure out what to fill it with.</div><div>I then figured that the problem could be because of a mismatch between 0.13 on my local machine and 0.14 remotely, so I upgraded.</div>
<div>Now when I try the above Client command, it hangs indefinitely.</div><div><br></div><div>Please help!</div><div><br></div><div>Thank you,</div><div>-Alessandro</div></div>
<br>_______________________________________________<br>
StarCluster mailing list<br>
<a href="mailto:StarCluster@mit.edu">StarCluster@mit.edu</a><br>
<a href="http://mailman.mit.edu/mailman/listinfo/starcluster" target="_blank">http://mailman.mit.edu/mailman/listinfo/starcluster</a><br>
<br></blockquote></div><br>