[Server-devel] XO Visualization Feature

Anish Mangal anish at activitycentral.com
Sun Jun 1 23:04:23 EDT 2014


Martin,

Thanks for fixing the permissions. The install went along just fine.

Best,
Anish


On Sun, Jun 1, 2014 at 10:39 AM, Anish Mangal <anish at activitycentral.com>
wrote:

> Hi Martin,
>
> Thanks for submitting the feature. I was experimenting with trying to
> install the xovis system through the ansible task. The first time, it got
> stuck here...
>
> TASK: [xovis | Install Couchdb and other necessary packages]
> ******************
> changed: [127.0.0.1] => (item=couchdb,curl)
>
> TASK: [xovis | Allow access to Couchdb from other hosts]
> **********************
> changed: [127.0.0.1]
>
> TASK: [xovis | Enable Couchdb service]
> ****************************************
> changed: [127.0.0.1]
>
> TASK: [xovis | Add admin user]
> ************************************************
> failed: [127.0.0.1] => {"changed": true, "cmd": ["curl", "-X", "PUT", "
> 127.0.0.1:5984/_config/admins/admin", "-d", "\"admin\""], "delta":
> "0:00:00.556050", "end": "2014-06-01 06:00:26.021649", "item": "", "rc": 7,
> "start": "2014-06-01 06:00:25.465599"}
> stderr:   % Total    % Received % Xferd  Average Speed   Time    Time
> Time  Current
>                                  Dload  Upload   Total   Spent    Left
>  Speed
>   0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--
>   0curl: (7) couldn't connect to host
>
> FATAL: all hosts have already failed -- aborting
>
> I ran it again, and the playbook went beyond this step fine, but now is
> stuck while trying to fetch the database dump getting a 403 ... log below...
>
> TASK: [xovis | Add admin user]
> ************************************************
> changed: [127.0.0.1]
>
> TASK: [xovis | Remove Couch database if it already exists]
> ********************
> changed: [127.0.0.1]
>
> TASK: [xovis | Create Couchdb database]
> ***************************************
> changed: [127.0.0.1]
>
> TASK: [xovis | Install the latest XOstats script]
> *****************************
> changed: [127.0.0.1]
>
> TASK: [xovis | Install xovis and xostats python dependencies]
> *****************
> changed: [127.0.0.1]
>
> TASK: [xovis | Fetch database dump to the server]
> *****************************
> failed: [127.0.0.1] => {"changed": true, "cmd": ["wget", "-O",
> "/opt/xovis/xovis.json", "https://s3.amazonaws.com/xovis/xovis.json"],
> "delta": "0:00:06.945208", "end": "2014-06-01 06:06:41.045964", "item": "",
> "rc": 8, "start": "2014-06-01 06:06:34.100756"}
> stderr: --2014-06-01 06:06:34--  https://s3.amazonaws.com/xovis/xovis.json
> Resolving s3.amazonaws.com (s3.amazonaws.com)... 207.171.185.200
> Connecting to s3.amazonaws.com (s3.amazonaws.com)|207.171.185.200|:443...
> connected.
> HTTP request sent, awaiting response... 403 Forbidden
> 2014-06-01 06:06:41 ERROR 403: Forbidden.
>
> FATAL: all hosts have already failed -- aborting
>
>
> Any pointers would help.
>
> Best,
> Anish
>
>
>
> On Mon, Apr 21, 2014 at 8:45 PM, Martin Dluhos <martin at gnu.org> wrote:
>
>> Hi everyone,
>>
>> I would like to give you an update about XOvis, XO data visualization
>> application that I would like to integrate with XSCE. What is XOvis? It's
>> so-called couchapp- an HTML/Js application that stored and served from a
>> Couch
>> database. The app uses HighCharts Javascript library to create charts
>> from data
>> gathered from XO Journal backups on XS.
>>
>> Recently, I have published a blog post on OLE's blog about deploying the
>> app on
>> schoolservers in Nepali schools:
>>
>> http://blog.olenepal.org/index.php/archives/842
>>
>> There are two main parts of the application. First, there is a python
>> script
>> process_journal_stats.py, which access raw Journal backup data from
>> /library/users and loads them into a couch database. This script lives in
>>
>> http://github.com/martasd/xo-stats
>>
>> Then there is the HTML/JS app itself, which visualizes the data stored in
>> the
>> browser. This is the couch app which is also stored in the database
>> itself. To
>> install the app, one simply needs to install CouchDB and then get the
>> database
>> either through so-called replication or loaded from a db dump.
>>
>> Thus far, I've been using Cloudant to host the database with the
>> application,
>> but have run into errors when trying to replicate it from there. I am
>> currently
>> in the process of setting up the publicly accessible instance on
>> sunjammer,
>> where much of Sugarlabs infrastructure is hosted, but before that's
>> available
>> the best option for installing the database is to load it from a db dump
>> (which
>> I fetch from my GitHub repo).
>>
>> To install the application, I've written deploy_xovis.sh, which I have now
>> translated into ansible's language, so that it can be integrated with
>> XSCE. I
>> have tested it on 64 bit Fedora 18 and made sure it can be run
>> idempotently
>> there. Currently, I don't have access to other machines to test the
>> feature on.
>>
>> I've added XOvis as a feature to
>>
>> http://wiki.laptop.org/go/XS_Community_Edition/Features#Features_Planned
>>
>> and just created a pull request on GitHub which includes the ansible role
>> 'xovis' as well as its corresponding tag. I am looking forward to working
>> to
>> integrate this change with you!
>>
>> Cheers,
>> Martin
>> _______________________________________________
>> Server-devel mailing list
>> Server-devel at lists.laptop.org
>> http://lists.laptop.org/listinfo/server-devel
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.laptop.org/pipermail/server-devel/attachments/20140602/7e884e9e/attachment.html>


More information about the Server-devel mailing list