[Tangelo-users] Tangelo Service Crashes Sometimes?

Roni Choudhury roni.choudhury at kitware.com
Wed Oct 2 12:12:19 EDT 2013


On Wed, Oct 2, 2013 at 11:44 AM, Jeffrey Borowitz <
Jeffrey.borowitz at giantoak.com> wrote:

> So I've checked out master and tried reinstalling it.  So far, stability
> seems better!
>

Excellent.  Let me know if anything wonky happens.


> I think I installed stuff right.  But then when I look in 'deploy' there's
> no longer an 'app' directory.  And when I started the server, I got errors
> that ws4py and autobahn weren't there.
>

The "app" directory should now be called "examples".  To get it to show up
automatically, you have to enable the DEPLOY_EXAMPLES option during the
cmake phase.  But don't worry about that too much if you've got a working
setup going already.


> So I just created the 'app' directory and put my stuff in there, and
> installed the dependencies, and that seemed to work.
>

Fantastic.  The dependencies on ws4py and autobahn were the trouble I
referred to earlier, but I'm glad to hear they were easy to install (I
couldn't remember how much was involved in getting those two packages
installed).  I'm planning to make these dependencies optional so that this
isn't such a snag.

Very cool.  Please let me know if you run into further issues.  Happy
hacking!

roni


> On Wed, Oct 2, 2013 at 10:55 AM, Jeffrey Borowitz <
> Jeffrey.borowitz at giantoak.com> wrote:
>
>> Thanks so much Roni,
>>
>> I'll just check out master, and hope that works :)  Hopefully even with
>> any other issues, we'll be able to see if this fixed my main issue.
>>
>> I'll use the mailing list, for posterity :)
>>
>> Jeff
>>
>>
>>
>>
>> On Wed, Oct 2, 2013 at 10:49 AM, Roni Choudhury <
>> roni.choudhury at kitware.com> wrote:
>>
>>> On Wed, Oct 2, 2013 at 10:13 AM, Jeffrey Borowitz <
>>> Jeffrey.borowitz at giantoak.com> wrote:
>>>
>>>> Thanks for your quick reply Roni!
>>>>
>>>
>>> No worries!  I'm very happy to see people using Tangelo, so I want to
>>> make sure your experience with it is as perfect as possible!
>>>
>>> I've attached my two python files and my html w/ javascript.
>>>>
>>>
>>> Thank you.  I haven't gotten a chance to really drill into these yet,
>>> but I have an idea of what might be causing the problem.  We saw an issue
>>> like this in our own projects about a month ago, which we believe we have
>>> now fixed.  If you check out commit
>>> db5d30c37ad373aa9c5bb84f18b722489e1d4c4b, the problem *should* go away
>>> - if it does, we'll know we got it.  I would have you simply check out the
>>> current master branch, but there's a bit of a problem with it which I will
>>> fix ASAP and get back to you.
>>>
>>> In the meantime, let me know if you see an improvement with commit
>>> db5d30.
>>>
>>>
>>>> BTW, I was between sending you an email directly and emailing the list
>>>> this morning.  Graham Mueller, who's a performer for Giant Oak on XDATA
>>>> gave me your name as the person to talk to about tangelo.
>>>>
>>>
>>> Ah good, I'm glad my name got to you through XDATA channels :-D.  The
>>> benefit of the mailing list is simply that the responses, etc., will be
>>> archived for future users.  Feel free to ask questions on either the
>>> mailing list, or my work email.  As I said above, I want people to make the
>>> best possible use of Tangelo, and that will include my responding to
>>> problems they run into!
>>>
>>> roni
>>>
>>>
>>>> On Wed, Oct 2, 2013 at 10:07 AM, Roni Choudhury <
>>>> roni.choudhury at kitware.com> wrote:
>>>>
>>>>> Hi Jeff-
>>>>>
>>>>> This is curious.  Would you mind sending me the files for your web
>>>>> app?  The important part is the python service files themselves, but seeing
>>>>> your HTML and JavaScript etc. may be helpful as well.
>>>>>
>>>>> roni
>>>>>
>>>>>
>>>>> On Wed, Oct 2, 2013 at 9:36 AM, Jeffrey Borowitz <
>>>>> Jeffrey.borowitz at giantoak.com> wrote:
>>>>>
>>>>>> I've been using the Tangelo framework to put together a web app.
>>>>>>  I've found one of my python service calls seems to throw an error only
>>>>>> sometimes.  The error that I get is:
>>>>>>
>>>>>> <!doctype html>
>>>>>> <h2>501 Error in Python Service</h2>
>>>>>> <p>There was an error executing service
>>>>>> /app/ice_images/ltquery/:<br><pre>Traceback (most recent call last):
>>>>>>   File "./tangelo", line 170, in invoke_service
>>>>>>     result = service.run(*pargs, **kwargs)
>>>>>> TypeError: run() got an unexpected keyword argument 'ltnum'
>>>>>> </pre>
>>>>>> <hr>
>>>>>> <p><em>Powered by Tangelo</em> <img src=/img/tangelo.ico>
>>>>>>
>>>>>>
>>>>>> But 'run()' does expect an ltnum keyword argument, and happily
>>>>>> receives it sometimes.  I also sometimes get the same error with another
>>>>>> call on the same page, to network.run().  Once I get one of these errors,
>>>>>> the tangelo server crashes and I can't call any more python services
>>>>>> without restarting.
>>>>>>
>>>>>> Anyone have any thoughts as to what might be going on?
>>>>>>
>>>>>> I've been using commit 266ed76575c51a55e4acdd450b4f578e1c104c17
>>>>>>
>>>>>> Thanks,
>>>>>>
>>>>>> Jeff Borowitz
>>>>>> Social Scientist
>>>>>> Giant Oak
>>>>>>
>>>>>>
>>>>>> _______________________________________________
>>>>>> Tangelo-users mailing list
>>>>>> Tangelo-users at public.kitware.com
>>>>>> http://public.kitware.com/cgi-bin/mailman/listinfo/tangelo-users
>>>>>>
>>>>>>
>>>>>
>>>>
>>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/tangelo-users/attachments/20131002/bbc2a27f/attachment.html>


More information about the Tangelo-users mailing list