Anyone know what's up with the dashboard?

39 views
Skip to first unread message

Lisha Sterling

unread,
Dec 2, 2015, 6:32:31 AM12/2/15
to taari...@googlegroups.com

Hi guys!

Does anyone know what's happening with the instance of Taarifa at
http://dashboard.taarifa.org/#/dashboard

When I run it, it just gets stuck at loading data. It says it may take a while, but even after a half hour it isn't loaded.

Is this a bug in the currently deployed software? Is it a problem with the database?

If no one knows, odds there someone with server access who can look at the logs and see if it's fixable?

Thanks.

Lisha Sterling
Executive Director, Geeks Without Bounds

Sent from my phone. Apologies for any autocorrectese.

Dirk Gorissen

unread,
Dec 2, 2015, 7:19:57 AM12/2/15
to taarifa-dev
Hi Lisha,

Been like this for a while since heroku upgraded mongo.

https://github.com/taarifa/TaarifaWaterpoints/issues/187
https://github.com/taarifa/TaarifaWaterpoints/issues/188

Its non trivial to get it all working again and guidance I got from WB
was to hold off investing to much time.

Cheers
Dirk
_________________________________________
Dr. Dirk Gorissen
Research - Tech4Good - Flying Robots
Skype: dirk.gorissen
Mob: +44-7763-806-809
Web: http://dirkgorissen.com
Twitter : https://twitter.com/dirkgor
LinkedIn: http://www.linkedin.com/in/dirkgorissen
> --
> You received this message because you are subscribed to the Google Groups
> "Taarifa-Dev" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to taarifa-dev...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

Lisha Sterling

unread,
Dec 3, 2015, 1:51:52 AM12/3/15
to taari...@googlegroups.com
Trying to install a local copy of waterpoints on a new laptop, but it won't even start. I'm guessing this may have to do with the same Eve 6.0  problem.

___
(TaarifaAPI)lishevita@Monotropa-uniflora ~/Code/TaarifaAPI $ python taarifa_api/taarifa_api.py 
Traceback (most recent call last):
  File "taarifa_api/taarifa_api.py", line 3, in <module>
    from eve import Eve
  File "/home/lishevita/.virtualenvs/TaarifaAPI/local/lib/python2.7/site-packages/Eve-0.6-py2.7.egg/eve/__init__.py", line 87, in <module>
    from eve.flaskapp import Eve  # noqa
  File "/home/lishevita/.virtualenvs/TaarifaAPI/local/lib/python2.7/site-packages/Eve-0.6-py2.7.egg/eve/flaskapp.py", line 17, in <module>
    from events import Events
ImportError: No module named events
____

So, which versions of Eve and Mongo do work? Are you able to run a local version with current code from github and those downgraded versions? Or do you see some other obvious problem here that I've failed to notice?

We have an end use feedback opportunity today with COWSOs and the district water engineer in Bunda town. The intent here is to use TaarifaWaterpoints as the base for the web-based ticketing and reporting system while SEMA works as the report intake tool. In order to build the right user interface, though, we need information from the stakeholders that would actually be using that web front end (as opposed to the USSD tool used by field reporters which is from SEMA).

 I don't even so much as have screenshots of the different kinds of reports, so getting feedback is going to be impossible unless I can get a local version TaarifaWaterpoints working. 

Thank you for your eyes and ideas!

--
Lisha Sterling
Executive Director,  Geeks Without Bounds  

Lisha Sterling

unread,
Dec 3, 2015, 2:07:29 AM12/3/15
to taari...@googlegroups.com
Oh, by the way, 

The ImportError says No module named events but...

____
(TaarifaAPI)lishevita@Monotropa-uniflora ~/Code/TaarifaAPI $ sudo pip install events
Requirement already satisfied (use --upgrade to upgrade): events in /usr/local/lib/python2.7/dist-packages
Cleaning up...
__________

Events is there. *shrug*

Florian Rathgeber

unread,
Dec 3, 2015, 2:22:56 AM12/3/15
to taari...@googlegroups.com
On 03/12/15 06:51, Lisha Sterling wrote:
> Trying to install a local copy of waterpoints on a new laptop, but it
> won't even start. I'm guessing this may have to do with the same Eve 6.0
> problem.

The same? Same as what?

> ___
> (TaarifaAPI)lishevita@Monotropa-uniflora ~/Code/TaarifaAPI $ python
> taarifa_api/taarifa_api.py
> Traceback (most recent call last):
> File "taarifa_api/taarifa_api.py", line 3, in <module>
> from eve import Eve
> File
> "/home/lishevita/.virtualenvs/TaarifaAPI/local/lib/python2.7/site-packages/Eve-0.6-py2.7.egg/eve/__init__.py",
> line 87, in <module>
> from eve.flaskapp import Eve # noqa
> File
> "/home/lishevita/.virtualenvs/TaarifaAPI/local/lib/python2.7/site-packages/Eve-0.6-py2.7.egg/eve/flaskapp.py",
> line 17, in <module>
> from events import Events
> ImportError: No module named events
> ____
>
> So, which versions of Eve and Mongo do work? Are you able to run a local
> version with current code from github and those downgraded versions? Or
> do you see some other obvious problem here that I've failed to notice?

I don't understand what you mean by downgraded versions?

TaarifaAPI definitely works with Eve 0.6 (in fact that is now required).
How did you install the dependencies? Running `pip install -r
requirements.txt` in your virtualenv should get you correct versions.

> We have an end use feedback opportunity today with COWSOs and the
> district water engineer in Bunda town. The intent here is to use
> TaarifaWaterpoints as the base for the web-based ticketing and reporting
> system while SEMA works as the report intake tool. In order to build the
> right user interface, though, we need information from the stakeholders
> that would actually be using that web front end (as opposed to the USSD
> tool used by field reporters which is from SEMA).

Sorry, but if you'd like us to help out we need much more notice than
this. I work full time and it's only by chance I have a few mins this
morning before heading off to work.

> I don't even so much as have screenshots of the different kinds of
> reports, so getting feedback is going to be impossible unless I can get
> a local version TaarifaWaterpoints working.

Indeed. Dirk already pointed you to the relevant gh issue #187, where I
describe the problem: Heroku now enforces a 30s limit on any request and
we're failing that for *all* the XHR requests we're serving on the
dashboard. You can confirm that by watching the network tab in the
Chrome dev tools (filter for XHR requests).

There's no quick fix for this. It will require a complete redesign of
the dashboard architecture and neither Dirk nor I have the capacity to
work on this in our spare time.

> Thank you for your eyes and ideas!

I don't think anybody else will be able to jump in to help you with this
on such short notice.

Best of luck!
Florian

Florian Rathgeber

unread,
Dec 3, 2015, 2:24:44 AM12/3/15
to taari...@googlegroups.com
Events is a requirement of Eve==0.6 so should be pulled in that way. Why
do you use sudo for installing in a virtualenv?

Try `pip freeze` to see what you have installed in the current env.

Lisha Sterling

unread,
Dec 3, 2015, 2:38:24 AM12/3/15
to taari...@googlegroups.com
pip freeze output:

Eve==0.6
Eve-docs==0.1.4
Flask-Compress==1.3.0
wheel==0.24.0
/home/lishevita/.virtualenvs/TaarifaAPI/local/lib/python2.7/site-packages/pip/_vendor/requests/packages/urllib3/util/ssl_.py:90: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning.
  InsecurePlatformWarning

--------

I did "pip install -r requirements.txt"
I followed the install instructions for Linux exactly.
Except for the part where I had to go and add

export WORKON_HOME=$HOME/.virtualenvs
source /usr/local/bin/virtualenvwrapper.sh

To my .bashrc because virtualenv wasn't working.

I sudo'ed the pip in the virtualenv out of habit.

I didn't expect to be having to install a local version of a piece of software that had been functional in a public space previously. I also didn't expect for that local install to be difficult to install. (Everyone keeps insisting that its so easy!) I'm not asking you to write code or work on this. I was just asking for information on why things might not be working.  I understand that this is last minute, and I accept that that means that I might not get the answers I need in time. I do thank you for taking the moment to look at my problem and give me your insight. I've been working on this for the last two days trying not to bother others, but I've had no success.

Florian Rathgeber

unread,
Dec 3, 2015, 3:16:57 AM12/3/15
to taari...@googlegroups.com
On 03/12/15 07:38, Lisha Sterling wrote:
> pip freeze output:
>
> Eve==0.6
> Eve-docs==0.1.4
> Flask-Compress==1.3.0
> -e
> git+https://github.com/taarifa/TaarifaAPI@a38c07ad5c25aa9f8daf5daa5b77dc4b553bbfee#egg=TaarifaAPI-master
> wheel==0.24.0
> /home/lishevita/.virtualenvs/TaarifaAPI/local/lib/python2.7/site-packages/pip/_vendor/requests/packages/urllib3/util/ssl_.py:90:
> InsecurePlatformWarning: A true SSLContext object is not available. This
> prevents urllib3 from configuring SSL appropriately and may cause
> certain SSL connections to fail. For more information, see
> https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning.
> InsecurePlatformWarning
>
> --------

Seems you don't have the Eve dependencies, not sure what's going on
there. Try `pip install Eve==0.6` and see if that fixes it.

> I did "pip install -r requirements.txt"
> I followed the install instructions for Linux exactly.

This is on which Linux distro?

> Except for the part where I had to go and add
>
> export WORKON_HOME=$HOME/.virtualenvs
> source /usr/local/bin/virtualenvwrapper.sh
>
> To my .bashrc because virtualenv wasn't working.

OK, that's useful feedback. Add this to the README and submit a pr.

> I sudo'ed the pip in the virtualenv out of habit.

OK. Please don't because you'll mess up your permissions.

> I didn't expect to be having to install a local version of a piece of
> software that had been functional in a public space previously. I also
> didn't expect for that local install to be difficult to install.
> (Everyone keeps insisting that its so easy!) I'm not asking you to write
> code or work on this. I was just asking for information on why things
> might not be working. I understand that this is last minute, and I
> accept that that means that I might not get the answers I need in time.
> I do thank you for taking the moment to look at my problem and give me
> your insight. I've been working on this for the last two days trying not
> to bother others, but I've had no success.

I understand your frustration but have to make 2 points really clear:

1) Taarifa is TOTALLY UNSUPPORTED, which means that you cannot and
should not rely on any of the current deployments to work at any time.

2) I have NEVER heard anyone say or claim that Taarifa is easy to set
up. It clearly isn't and I hope Dirk and I have been very clear on this.

That said kudos for getting this far. If you have any feedback please
update and fix the documentation and submit a pr.

Meanwhile I think I managed to fix dashboard.taarifa.org with some
aggressive caching. Make sure to preload the page to warm the cache.

Good luck!
Florian

Lisha Sterling

unread,
Dec 3, 2015, 3:29:09 AM12/3/15
to taari...@googlegroups.com
Oh my gods, you rock, Florian. Thank you so much. 

I have made more progress on getting the local version of Taarifa running, by which I mean that the last problem is fixed and now I have new ones.

I will come back to getting a local version running for myself later and focus on the workshop that's happening around me. 

Thank you, thank you!
Reply all
Reply to author
Forward
0 new messages