Re: [Server-devel] XO Visualization Feature

2014-07-03 Thread Martin Dluhos
On 06/04/2014 03:26 PM, Anish Mangal wrote:
 Hi Martin, 
 
 I should point out that while I got it to install eventually, the first fail 
 on
 the add admin user is a common problem I noticed across multiple installs..
 
 The goes like this.
 ./runansible 
 ... fails at add admin user
 ./runansible (again)
 goes past the step just fine, and install works as expected.

Hi Anish,

Tim updated the ansible playbook for xovis and merged it into master. I haven't
seen this issue when testing the latest master. Could you please try again and
see if the problem persists?

Thanks,
Martin

___
Server-devel mailing list
Server-devel@lists.laptop.org
http://lists.laptop.org/listinfo/server-devel


Re: [Server-devel] XO Visualization Feature

2014-06-04 Thread Anish Mangal
Hi Martin,

I should point out that while I got it to install eventually, the first
fail on the add admin user is a common problem I noticed across multiple
installs..

The goes like this.
./runansible
... fails at add admin user
./runansible (again)
goes past the step just fine, and install works as expected.

I have limited bandwidth this week to debug why this is happening, so it
would be great if you could also maybe look into it.

Thanks,
Anish


On Mon, Jun 2, 2014 at 8:34 AM, Anish Mangal an...@activitycentral.com
wrote:

 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 an...@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   TimeTime
 Time  Current
  Dload  Upload   Total   SpentLeft
  Speed
   0 00 00 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 mar...@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 

Re: [Server-devel] XO Visualization Feature

2014-06-01 Thread Anish Mangal
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 an...@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   TimeTime
 Time  Current
  Dload  Upload   Total   SpentLeft
  Speed
   0 00 00 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 mar...@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
 

Re: [Server-devel] XO Visualization Feature

2014-05-31 Thread Anish Mangal
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   TimeTime
Time  Current
 Dload  Upload   Total   SpentLeft
 Speed
  0 00 00 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 mar...@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@lists.laptop.org
 http://lists.laptop.org/listinfo/server-devel

___
Server-devel mailing list
Server-devel@lists.laptop.org

[Server-devel] XO Visualization Feature

2014-04-21 Thread Martin Dluhos
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@lists.laptop.org
http://lists.laptop.org/listinfo/server-devel