Fireworks WebGui not launching

20 views
Skip to first unread message

esiv...@lbl.gov

unread,
Apr 25, 2017, 4:50:15 PM4/25/17
to fireworkflows
Hello,

I'm having issues launching the lpad webgui. It was working previously, but now i'm getting the following error:

 * Running on http://127.0.0.1:5000/ (Press CTRL+C to quit)

/Users/sivonxay/anaconda3/lib/python3.5/site-packages/pymongo-3.4.0-py3.5-macosx-10.6-x86_64.egg/pymongo/topology.py:145: UserWarning: MongoClient opened before fork. Create MongoClient with connect=False, or create client after forking. See PyMongo's documentation for details: http://api.mongodb.org/python/current/faq.html#pymongo-fork-safe>

  "MongoClient opened before fork. Create MongoClient "

[2017-04-25 13:04:20,953] ERROR in app: Exception on / [GET]

Traceback (most recent call last):

  File "/Users/sivonxay/anaconda3/lib/python3.5/site-packages/flask/app.py", line 1982, in wsgi_app

    response = self.full_dispatch_request()

  File "/Users/sivonxay/anaconda3/lib/python3.5/site-packages/flask/app.py", line 1614, in full_dispatch_request

    rv = self.handle_user_exception(e)

  File "/Users/sivonxay/anaconda3/lib/python3.5/site-packages/flask/app.py", line 1517, in handle_user_exception

    reraise(exc_type, exc_value, tb)

  File "/Users/sivonxay/anaconda3/lib/python3.5/site-packages/flask/_compat.py", line 33, in reraise

    raise value

  File "/Users/sivonxay/anaconda3/lib/python3.5/site-packages/flask/app.py", line 1612, in full_dispatch_request

    rv = self.dispatch_request()

  File "/Users/sivonxay/anaconda3/lib/python3.5/site-packages/flask/app.py", line 1598, in dispatch_request

    return self.view_functions[rule.endpoint](**req.view_args)

  File "/Users/sivonxay/anaconda3/fireworks/fireworks/flask_site/app.py", line 63, in decorated

    return f(*args, **kwargs)

  File "/Users/sivonxay/anaconda3/fireworks/fireworks/flask_site/app.py", line 132, in home

    "id": item['nodes'][0],

IndexError: list index out of range

127.0.0.1 - - [25/Apr/2017 13:04:20] "GET / HTTP/1.1" 500 -


I am able to run lpad get_wflows command for all states except for COMPLETED workflows, where it throws this list index out of range error. Does anyone have any suggestions to fix this error?

Thanks,
Eric

Anubhav Jain

unread,
Apr 25, 2017, 4:55:31 PM4/25/17
to esiv...@lbl.gov, fireworkflows
Hi Eric

Can you tell me:

i) Which update to the FireWorks code seems to break the feature (you said it was working before, but no longer - does reverting to an older version of FWS fix it)?

ii) What exactly is the query you are using?

iii) If you are comfortable with modifying the source, you can add a quick debug print above the offending line (line 132 in app.py) that prints out what the variable "item" looks like. Let me know if you are able to do that and what the result is.


Best
Anubhav

--
You received this message because you are subscribed to the Google Groups "fireworkflows" group.
To unsubscribe from this group and stop receiving emails from it, send an email to fireworkflows+unsubscribe@googlegroups.com.
To post to this group, send email to firewo...@googlegroups.com.
Visit this group at https://groups.google.com/group/fireworkflows.
To view this discussion on the web visit https://groups.google.com/d/msgid/fireworkflows/94d80631-268e-46f0-b537-7d1224b7101c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Best,
Anubhav

esiv...@lbl.gov

unread,
Apr 25, 2017, 5:15:06 PM4/25/17
to fireworkflows, esiv...@lbl.gov
Hi Anubhav,

1) I haven't updated Fireworks. I'm new to fireworks, so this was probably the first time a workflow was marked as completed. I think the issue stems from this.

2) i get errors when I use
lpad webgui
lpad get_wflows -s COMPLETED
but no errors when I use any of the following commands
 lpad get_wflows -s {RUNNING, PAUSE, READY, WAITING, DEFUSED}

3) printing item gives the following output:


{'metadata': {}, 'name': 'Li64 Si64_longruns', 'parent_links': {}, 'fw_states': {}, 'links': {}, 'state': 'COMPLETED', 'updated_on': datetime.datetime(2017, 4, 25, 17, 22, 49, 245000), '_id': ObjectId('58ff85e937cea8c8d89240b1'), 'created_on': datetime.datetime(2017, 4, 25, 17, 22, 49, 245000), 'nodes': []}



Thanks,
Eric
To unsubscribe from this group and stop receiving emails from it, send an email to fireworkflow...@googlegroups.com.



--
Best,
Anubhav

Anubhav Jain

unread,
Apr 28, 2017, 12:31:19 PM4/28/17
to fireworkflows, esiv...@lbl.gov
To anyone following this thread: Eric and I followed up. We think Eric might have had some dynamic workflows created that were empty, i.e., had zero Fireworks inside. This was unintentional on his part and indeed should not even have been possible with FireWorks. I pushed an update to FireWorks to not allow the creation of empty workflows which should prevent this problem from happening again.
Reply all
Reply to author
Forward
0 new messages