[Tangelo-users] No Response From Tangelo Server
Grant Mc Auley
gamcauley at gmail.com
Sun Feb 22 23:07:22 EST 2015
Thank you Roni for your reply.
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.
So, I am off and running with Tangelo ...
On Sun, Feb 22, 2015 at 12:28 PM, Roni Choudhury <roni.choudhury at kitware.com
> wrote:
> Hi Grant!
>
> 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:
>
> 1. If you log into your EC2 instance while Tangelo is running, and do
> something along the lines of
>
> curl http://localhost/now
>
> do you get the expected output from the "now" Tangelo service? This will
> confirm that Tangelo is working properly from "inside" the EC2 instance.
>
> 2. From your computer, what happens if you ping or traceroute to your EC2
> instance?
>
> 3. If you run python -m SimpleHTTPServer from your EC2 instance (in, say,
> the same directory you are launching Tangelo from), what happens when you
> navigate to http://ec2-xx-xx-xx-xx.xx.compute.amazonaws.com:8000/ ? If
> you get the same timeout error, it seems to indicate some more general
> problem regarding connecting to your EC2 instance from the outside.
>
> I thought of #3 last but you should probably try that one first :-D.
>
> Hopefully this bit of digging will give us a better idea of what's going
> on. Let us know.
>
> roni
>
> On Sun, Feb 22, 2015 at 12:26 PM, Grant Mc Auley <gamcauley at gmail.com>
> wrote:
>
>> Hello,
>>
>> 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.
>>
>>
>> #----------------------------------------------------------------------------------
>> It seems the server starts OK (although there is an error message):
>>
>> ubuntu at ip-172-31-44-22:/usr/local/share/tangelo/web$ sudo tangelo -c
>> /etc/tangelo.conf
>> [20/Feb/2015:20:47:36] TANGELO Using configuration file /etc/tangelo.conf
>> [20/Feb/2015:20:47:36] TANGELO Access authentication enabled
>> [20/Feb/2015:20:47:36] TANGELO Sessions enabled
>> [20/Feb/2015:20:47:36] TANGELO Hostname: 0.0.0.0
>> [20/Feb/2015:20:47:36] TANGELO Port: 80
>> [20/Feb/2015:20:47:36] TANGELO Privilege drop enabled (if necessary)
>> [20/Feb/2015:20:47:36] TANGELO User: tangelo
>> [20/Feb/2015:20:47:36] TANGELO Group: tangelo
>> [20/Feb/2015:20:47:36] TANGELO HTTPS disabled
>> [20/Feb/2015:20:47:36] TANGELO Serving content from
>> /usr/local/share/tangelo/web
>> [20/Feb/2015:20:47:36] TANGELO Looking for default plugin configuration
>> file in /usr/local/share/tangelo/plugin/plugin.conf
>> [20/Feb/2015:20:47:36] TANGELO Using plugin configuration file
>> '/usr/local/share/tangelo/plugin/plugin.conf'
>> [20/Feb/2015:20:47:36] PLUGIN Loading plugin girder (from
>> /usr/local/share/tangelo/plugin/girder)
>> [20/Feb/2015:20:47:36] PLUGIN ...loading plugin control module
>> [20/Feb/2015:20:47:36] PLUGIN Could not import control module:
>> Traceback (most recent call last):
>> File "/usr/local/lib/python2.7/dist-packages/tangelo/server.py", line
>> 644, in load
>> control = self.modules.get(control_file)
>> File "/usr/local/lib/python2.7/dist-packages/tangelo/util.py", line
>> 260, in get
>> service = imp.load_source(name, module)
>> File "/usr/local/share/tangelo/plugin/girder/control.py", line 1, in
>> <module>
>> from girder.utility.server import configureServer
>> ImportError: No module named girder.utility.server
>>
>> [20/Feb/2015:20:47:36] PLUGIN Plugin girder failed to load
>> [20/Feb/2015:20:47:36] PLUGIN Loading plugin impala (from
>> /usr/local/share/tangelo/plugin/impala)
>> [20/Feb/2015:20:47:36] PLUGIN Loading plugin mongo (from
>> /usr/local/share/tangelo/plugin/mongo)
>> [20/Feb/2015:20:47:36] PLUGIN Loading plugin stream (from
>> /usr/local/share/tangelo/plugin/stream)
>> [20/Feb/2015:20:47:36] PLUGIN Loading plugin vis (from
>> /usr/local/share/tangelo/plugin/vis)
>> [20/Feb/2015:20:47:36] PLUGIN Loading plugin config (from
>> /usr/local/share/tangelo/plugin/config)
>> [20/Feb/2015:20:47:36] PLUGIN Loading plugin vtkweb (from
>> /usr/local/share/tangelo/plugin/vtkweb)
>> [20/Feb/2015:20:47:36] PLUGIN ...loading plugin control module
>> [20/Feb/2015:20:47:36] PLUGIN Loading plugin mapping (from
>> /usr/local/share/tangelo/plugin/mapping)
>> [20/Feb/2015:20:47:36] PLUGIN Loading plugin svg2pdf (from
>> /usr/local/share/tangelo/plugin/svg2pdf)
>> [20/Feb/2015:20:47:36] PLUGIN Loading plugin bokeh (from
>> /usr/local/share/tangelo/plugin/bokeh)
>> [20/Feb/2015:20:47:36] PLUGIN ...loading python module content
>> [20/Feb/2015:20:47:36] PLUGIN Loading plugin ui (from
>> /usr/local/share/tangelo/plugin/ui)
>> [20/Feb/2015:20:47:36] PLUGIN Loading plugin docs (from
>> /usr/local/share/tangelo/plugin/docs)
>> [20/Feb/2015:20:47:36] PLUGIN Loading plugin data (from
>> /usr/local/share/tangelo/plugin/data)
>> [20/Feb/2015:20:47:36] PLUGIN Loading plugin tangelo (from
>> /usr/local/share/tangelo/plugin/tangelo)
>> [20/Feb/2015:20:47:36] TANGELO Performing privilege drop
>> [20/Feb/2015:20:47:36] ENGINE Bus STARTING
>> [20/Feb/2015:20:47:36] ENGINE Started monitor thread '_TimeoutMonitor'.
>> [20/Feb/2015:20:47:36] ENGINE Serving on 0.0.0.0:80 <http://0.0.0.0/>
>> [20/Feb/2015:20:47:36] ENGINE Started as uid: 'root' gid: 'root'
>> [20/Feb/2015:20:47:36] ENGINE Running as uid: 'tangelo' gid: 'tangelo'
>> [20/Feb/2015:20:47:36] ENGINE umask not set
>> [20/Feb/2015:20:47:36] Starting WebSocket processing
>> [20/Feb/2015:20:47:36] ENGINE Bus STARTED
>> [20/Feb/2015:20:47:36] TANGELO Server is running
>>
>>
>> #----------------------------------------------------------------------------------
>> This is /etc/tangelo/plugin.conf:
>>
>> enabled: true
>> path /usr/local/share/tangelo/plugin/tangelo
>>
>>
>>
>> #----------------------------------------------------------------------------------
>> This is /etc/tangelo.conf:
>>
>> # Network options
>> hostname: 0.0.0.0
>> port: 80
>>
>> # Privilege drop options
>> user: tangelo
>> group: tangelo
>>
>> #Runtime resources
>> root: /usr/local/share/tangelo/web
>>
>>
>>
>> #----------------------------------------------------------------------------------
>> This is url I use (the AWS ec2 instance public DNS name followed by 'now':
>>
>> http://ec2-xx-xx-xx-xx.xx.compute.amazonaws.com/now
>>
>>
>>
>> #----------------------------------------------------------------------------------
>> These are the permissions for now.py:
>>
>> ubuntu at ip-172-31-44-22:/usr/local/share/tangelo/web$ ls -l
>> total 12
>> drwxr-xr-x 2 root root 4096 Feb 20 00:05 img
>> -rw-r--r-- 1 root tangelo 3789 Feb 20 00:05 index.html
>> -rw-r--r-- 1 root tangelo 67 Feb 20 20:45 now.py
>>
>>
>> Pardon me if I am missing something obvious, but any help would be
>> appreciated.
>>
>> _______________________________________________
>> Tangelo-users mailing list
>> Tangelo-users at public.kitware.com
>> http://public.kitware.com/mailman/listinfo/tangelo-users
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/tangelo-users/attachments/20150222/8858535a/attachment-0001.html>
More information about the Tangelo-users
mailing list