<div dir="ltr"><div>Thank you Roni for your reply.<br><br>While the issue was essentially the unopened port 80, your three suggestions helped with some additional trouble shooting: I was getting an error about an extra argument in run() and finally realized that by using '/now/' instead of '/now', the last forward slash was being considered an argument to the run() method.<br><br></div>So, I am off and running with Tangelo ...<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Feb 22, 2015 at 12:28 PM, Roni Choudhury <span dir="ltr"><<a href="mailto:roni.choudhury@kitware.com" target="_blank">roni.choudhury@kitware.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">Hi Grant!</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif"><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">I don't know too much about administering/using EC2 instances, but I wonder if the problem is actual connectivity from the outside. Off the top of my head, I would try these experiments to gather a bit of debug data:</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif"><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">1. If you log into your EC2 instance while Tangelo is running, and do something along the lines of</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif"><br></div><div class="gmail_default"><span style="font-family:arial,helvetica,sans-serif"> </span><font face="monospace, monospace">curl <a href="http://localhost/now" target="_blank">http://localhost/now</a></font></div><div class="gmail_default"><font face="monospace, monospace"><br></font></div><div class="gmail_default"><font face="arial, helvetica, sans-serif">do you get the expected output from the "now" Tangelo service? This will confirm that Tangelo is working properly from "inside" the EC2 instance.</font></div><div class="gmail_default"><font face="arial, helvetica, sans-serif"><br></font></div><div class="gmail_default"><font face="arial, helvetica, sans-serif">2. From your computer, what happens if you </font><font face="monospace, monospace">ping</font><font face="arial, helvetica, sans-serif"> or </font><font face="monospace, monospace">traceroute</font><font face="arial, helvetica, sans-serif"> to your EC2 instance?</font></div><div class="gmail_default"><font face="arial, helvetica, sans-serif"><br></font></div><div class="gmail_default"><font face="arial, helvetica, sans-serif">3. If you run </font><font face="monospace, monospace">python -m SimpleHTTPServer</font><font face="arial, helvetica, sans-serif"> from your EC2 instance (in, say, the same directory you are launching Tangelo from), what happens when you navigate to <a href="http://ec2-xx-xx-xx-xx.xx.compute.amazonaws.com:8000/" target="_blank">http://ec2-xx-xx-xx-xx.xx.compute.amazonaws.com:8000/</a> ? If you get the same timeout error, it seems to indicate some more general problem regarding connecting to your EC2 instance from the outside.</font></div><div class="gmail_default"><font face="arial, helvetica, sans-serif"><br></font></div><div class="gmail_default"><font face="arial, helvetica, sans-serif">I thought of #3 last but you should probably try that one first :-D.</font></div><div class="gmail_default"><span style="font-family:arial,helvetica,sans-serif"><br></span></div><div class="gmail_default"><span style="font-family:arial,helvetica,sans-serif">Hopefully this bit of digging will give us a better idea of what's going on. Let us know.</span><span class="HOEnZb"><font color="#888888"><br></font></span></div><span class="HOEnZb"><font color="#888888"><div class="gmail_default"><font face="arial, helvetica, sans-serif"><br></font></div><div class="gmail_default"><font face="arial, helvetica, sans-serif">roni</font></div></font></span></div><div class="gmail_extra"><br><div class="gmail_quote"><div><div class="h5">On Sun, Feb 22, 2015 at 12:26 PM, Grant Mc Auley <span dir="ltr"><<a href="mailto:gamcauley@gmail.com" target="_blank">gamcauley@gmail.com</a>></span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5"><div dir="ltr"><div style="font-size:12.8000001907349px"><div>Hello,</div><div><br></div><div>I am excited to try Tangelo, but am having trouble running it on an AWS ec2 instance of Ubuntu LTS 14.04. I am trying to run the 'now.py' example given in a blog post, but am getting a message in the Chrome debugger that the connection is timing out.</div><div><br></div><div>#----------------------------------------------------------------------------------<br></div><div>It seems the server starts OK (although there is an error message):</div><div><br></div><div>ubuntu@ip-172-31-44-22:/usr/local/share/tangelo/web$ sudo tangelo -c /etc/tangelo.conf</div><div>[20/Feb/2015:20:47:36] TANGELO Using configuration file /etc/tangelo.conf</div><div>[20/Feb/2015:20:47:36] TANGELO Access authentication enabled</div><div>[20/Feb/2015:20:47:36] TANGELO Sessions enabled</div><div>[20/Feb/2015:20:47:36] TANGELO Hostname: 0.0.0.0</div><div>[20/Feb/2015:20:47:36] TANGELO Port: 80</div><div>[20/Feb/2015:20:47:36] TANGELO Privilege drop enabled (if necessary)</div><div>[20/Feb/2015:20:47:36] TANGELO User: tangelo</div><div>[20/Feb/2015:20:47:36] TANGELO Group: tangelo</div><div>[20/Feb/2015:20:47:36] TANGELO HTTPS disabled</div><div>[20/Feb/2015:20:47:36] TANGELO Serving content from /usr/local/share/tangelo/web</div><div>[20/Feb/2015:20:47:36] TANGELO Looking for default plugin configuration file in /usr/local/share/tangelo/plugin/plugin.conf</div><div>[20/Feb/2015:20:47:36] TANGELO Using plugin configuration file '/usr/local/share/tangelo/plugin/plugin.conf'</div><div>[20/Feb/2015:20:47:36] PLUGIN Loading plugin girder (from /usr/local/share/tangelo/plugin/girder)</div><div>[20/Feb/2015:20:47:36] PLUGIN ...loading plugin control module</div><div>[20/Feb/2015:20:47:36] PLUGIN Could not import control module:</div><div>Traceback (most recent call last):</div><div> File "/usr/local/lib/python2.7/dist-packages/tangelo/server.py", line 644, in load</div><div> control = self.modules.get(control_file)</div><div> File "/usr/local/lib/python2.7/dist-packages/tangelo/util.py", line 260, in get</div><div> service = imp.load_source(name, module)</div><div> File "/usr/local/share/tangelo/plugin/girder/control.py", line 1, in <module></div><div> from girder.utility.server import configureServer</div><div>ImportError: No module named girder.utility.server</div><div><br></div><div>[20/Feb/2015:20:47:36] PLUGIN Plugin girder failed to load</div><div>[20/Feb/2015:20:47:36] PLUGIN Loading plugin impala (from /usr/local/share/tangelo/plugin/impala)</div><div>[20/Feb/2015:20:47:36] PLUGIN Loading plugin mongo (from /usr/local/share/tangelo/plugin/mongo)</div><div>[20/Feb/2015:20:47:36] PLUGIN Loading plugin stream (from /usr/local/share/tangelo/plugin/stream)</div><div>[20/Feb/2015:20:47:36] PLUGIN Loading plugin vis (from /usr/local/share/tangelo/plugin/vis)</div><div>[20/Feb/2015:20:47:36] PLUGIN Loading plugin config (from /usr/local/share/tangelo/plugin/config)</div><div>[20/Feb/2015:20:47:36] PLUGIN Loading plugin vtkweb (from /usr/local/share/tangelo/plugin/vtkweb)</div><div>[20/Feb/2015:20:47:36] PLUGIN ...loading plugin control module</div><div>[20/Feb/2015:20:47:36] PLUGIN Loading plugin mapping (from /usr/local/share/tangelo/plugin/mapping)</div><div>[20/Feb/2015:20:47:36] PLUGIN Loading plugin svg2pdf (from /usr/local/share/tangelo/plugin/svg2pdf)</div><div>[20/Feb/2015:20:47:36] PLUGIN Loading plugin bokeh (from /usr/local/share/tangelo/plugin/bokeh)</div><div>[20/Feb/2015:20:47:36] PLUGIN ...loading python module content</div><div>[20/Feb/2015:20:47:36] PLUGIN Loading plugin ui (from /usr/local/share/tangelo/plugin/ui)</div><div>[20/Feb/2015:20:47:36] PLUGIN Loading plugin docs (from /usr/local/share/tangelo/plugin/docs)</div><div>[20/Feb/2015:20:47:36] PLUGIN Loading plugin data (from /usr/local/share/tangelo/plugin/data)</div><div>[20/Feb/2015:20:47:36] PLUGIN Loading plugin tangelo (from /usr/local/share/tangelo/plugin/tangelo)</div><div>[20/Feb/2015:20:47:36] TANGELO Performing privilege drop</div><div>[20/Feb/2015:20:47:36] ENGINE Bus STARTING</div><div>[20/Feb/2015:20:47:36] ENGINE Started monitor thread '_TimeoutMonitor'.</div><div>[20/Feb/2015:20:47:36] ENGINE Serving on <a href="http://0.0.0.0/" target="_blank">0.0.0.0:80</a></div><div>[20/Feb/2015:20:47:36] ENGINE Started as uid: 'root' gid: 'root'</div><div>[20/Feb/2015:20:47:36] ENGINE Running as uid: 'tangelo' gid: 'tangelo'</div><div>[20/Feb/2015:20:47:36] ENGINE umask not set</div><div>[20/Feb/2015:20:47:36] Starting WebSocket processing</div><div>[20/Feb/2015:20:47:36] ENGINE Bus STARTED</div><div>[20/Feb/2015:20:47:36] TANGELO Server is running</div><div><br></div><div>#----------------------------------------------------------------------------------</div><div>This is /etc/tangelo/plugin.conf:</div><div><br></div><div><div>enabled: true</div><div>path /usr/local/share/tangelo/plugin/tangelo</div></div><div><br></div><div><br></div><div>#----------------------------------------------------------------------------------<br></div><div><div>This is /etc/tangelo.conf:</div><div><br></div><div># Network options</div><div>hostname: 0.0.0.0</div><div>port: 80</div><div><br></div><div># Privilege drop options</div><div>user: tangelo</div><div>group: tangelo</div><div><br></div><div>#Runtime resources</div><div>root: /usr/local/share/tangelo/web</div></div><div><br></div><div><br></div></div><div style="font-size:12.8000001907349px">#----------------------------------------------------------------------------------<br></div><div style="font-size:12.8000001907349px">This is url I use (the AWS ec2 instance public DNS name followed by 'now':</div><div style="font-size:12.8000001907349px"><br></div><div style="font-size:12.8000001907349px"><a href="http://ec2-xx-xx-xx-xx.xx.compute.amazonaws.com/now" target="_blank">http://ec2-xx-xx-xx-xx.xx.compute.amazonaws.com/now</a><br></div><div style="font-size:12.8000001907349px"><br></div><div style="font-size:12.8000001907349px"><br></div><div style="font-size:12.8000001907349px">#----------------------------------------------------------------------------------<br></div><div style="font-size:12.8000001907349px">These are the permissions for now.py:</div><div style="font-size:12.8000001907349px"><br></div><div style="font-size:12.8000001907349px">ubuntu@ip-172-31-44-22:/usr/local/share/tangelo/web$ ls -l</div><div style="font-size:12.8000001907349px">total 12</div><div style="font-size:12.8000001907349px">drwxr-xr-x 2 root root 4096 Feb 20 00:05 img</div><div style="font-size:12.8000001907349px">-rw-r--r-- 1 root tangelo 3789 Feb 20 00:05 index.html</div><div style="font-size:12.8000001907349px">-rw-r--r-- 1 root tangelo 67 Feb 20 20:45 now.py</div><div style="font-size:12.8000001907349px"><br></div><div style="font-size:12.8000001907349px"><br></div><div style="font-size:12.8000001907349px">Pardon me if I am missing something obvious, but any help would be appreciated.</div></div>
<br></div></div><span class="">_______________________________________________<br>
Tangelo-users mailing list<br>
<a href="mailto:Tangelo-users@public.kitware.com" target="_blank">Tangelo-users@public.kitware.com</a><br>
<a href="http://public.kitware.com/mailman/listinfo/tangelo-users" target="_blank">http://public.kitware.com/mailman/listinfo/tangelo-users</a><br>
<br></span></blockquote></div><br></div>
</blockquote></div><br></div>