Re: [Server-devel] Installing pathagar in xsce master

2015-06-14 Thread Gonzalo Odiard
Could be related to

https://github.com/XSCE/xsce/commit/5d330f883cf6ddf92818b34e649aa9f6f4b8efe5
?

Gonzalo

On Sun, Jun 14, 2015 at 7:38 PM, Gonzalo Odiard 
wrote:

> I am trying to install Pathagar on a CentOs 7.1 vm using
> the method detailed here https://github.com/XSCE/xsce
> and modifying the file /opt/schoolserver/xsce/vars/local_vars.yml
> to add the line: "pathagar_enabled: True"
>
> Later I run:
>
> ./runoption pathagar
>
> And start to install but finish with a error:
>
> PLAY [all]
> 
>
> GATHERING FACTS
> ***
> ok: [127.0.0.1]
>
> TASK: [postgresql | Install postgresql packages]
> **
> ok: [127.0.0.1] => (item=postgresql,postgresql-server)
>
> TASK: [postgresql | Create postgresql-xs systemd service]
> *
> ok: [127.0.0.1]
>
> TASK: [postgresql | Create postgres data directory]
> ***
> ok: [127.0.0.1]
>
> TASK: [postgresql | Discover if the postgresql database data directory has
> already been created] ***
> ok: [127.0.0.1]
>
> TASK: [postgresql | Initialize the postgres db]
> ***
> skipping: [127.0.0.1]
>
> TASK: [postgresql | Configure postgres]
> ***
> ok: [127.0.0.1]
>
> TASK: [postgresql | Disable stock postgresql service]
> *
> skipping: [127.0.0.1]
>
> TASK: [postgresql | Enable postgresql service]
> 
> skipping: [127.0.0.1]
>
> TASK: [pathagar | Remove if exist pathagar rpm version]
> ***
> ok: [127.0.0.1]
>
> TASK: [pathagar | Install pathagar pre requisites]
> 
> ok: [127.0.0.1] =>
> (item=python-virtualenv,python-pip,python-psycopg2,mod_wsgi)
>
> TASK: [pathagar | Create destination folder]
> **
> ok: [127.0.0.1]
>
> TASK: [pathagar | Create books destination folder]
> 
> ok: [127.0.0.1]
>
> TASK: [pathagar | Clone pathagar repo]
> 
> ok: [127.0.0.1]
>
> TASK: [pathagar | download pathagar requirements in a virtualenv]
> *
> ok: [127.0.0.1] => (item=Django==1.4.5)
> ok: [127.0.0.1] => (item=django-tagging==0.3.1)
> ok: [127.0.0.1] => (item=django-sendfile==0.3.6)
> ok: [127.0.0.1] => (item=django-taggit==0.10)
>
> TASK: [pathagar | Install pathagar requirements in a virtualenv]
> **
> ok: [127.0.0.1] => (item=Django==1.4.5)
> ok: [127.0.0.1] => (item=django-tagging==0.3.1)
> ok: [127.0.0.1] => (item=django-sendfile==0.3.6)
> ok: [127.0.0.1] => (item=django-taggit==0.10)
>
> TASK: [pathagar | Create pathagar postgresql user]
> 
> failed: [127.0.0.1] => {"failed": true}
> msg: unable to connect to database: could not connect to server: No such
> file or directory
> Is the server running locally and accepting
> connections on Unix domain socket "/var/run/postgresql/.s.PGSQL.5432"?
>
>
> FATAL: all hosts have already failed -- aborting
>
> PLAY RECAP
> 
>to retry, use: --limit @/root/xsce.retry
>
> 127.0.0.1  : ok=13   changed=0unreachable=0
>  failed=1
>
> Any idea about what could be the problem?
>
> I have tried run:
>
> ./runoption postgresql
>
> But the result and retry, but the result is the same.
>
> In a separated note, I have sent a pr to update the pathagar repository
> and
> dependencies https://github.com/XSCE/xsce/pull/324
>
> --
> Gonzalo Odiard
>
> SugarLabs - Software for children learning
>



-- 
Gonzalo Odiard

SugarLabs - Software for children learning
___
Server-devel mailing list
Server-devel@lists.laptop.org
http://lists.laptop.org/listinfo/server-devel


[Server-devel] Installing pathagar in xsce master

2015-06-14 Thread Gonzalo Odiard
I am trying to install Pathagar on a CentOs 7.1 vm using
the method detailed here https://github.com/XSCE/xsce
and modifying the file /opt/schoolserver/xsce/vars/local_vars.yml
to add the line: "pathagar_enabled: True"

Later I run:

./runoption pathagar

And start to install but finish with a error:

PLAY [all]


GATHERING FACTS
***
ok: [127.0.0.1]

TASK: [postgresql | Install postgresql packages]
**
ok: [127.0.0.1] => (item=postgresql,postgresql-server)

TASK: [postgresql | Create postgresql-xs systemd service]
*
ok: [127.0.0.1]

TASK: [postgresql | Create postgres data directory]
***
ok: [127.0.0.1]

TASK: [postgresql | Discover if the postgresql database data directory has
already been created] ***
ok: [127.0.0.1]

TASK: [postgresql | Initialize the postgres db]
***
skipping: [127.0.0.1]

TASK: [postgresql | Configure postgres]
***
ok: [127.0.0.1]

TASK: [postgresql | Disable stock postgresql service]
*
skipping: [127.0.0.1]

TASK: [postgresql | Enable postgresql service]

skipping: [127.0.0.1]

TASK: [pathagar | Remove if exist pathagar rpm version]
***
ok: [127.0.0.1]

TASK: [pathagar | Install pathagar pre requisites]

ok: [127.0.0.1] =>
(item=python-virtualenv,python-pip,python-psycopg2,mod_wsgi)

TASK: [pathagar | Create destination folder]
**
ok: [127.0.0.1]

TASK: [pathagar | Create books destination folder]

ok: [127.0.0.1]

TASK: [pathagar | Clone pathagar repo]

ok: [127.0.0.1]

TASK: [pathagar | download pathagar requirements in a virtualenv]
*
ok: [127.0.0.1] => (item=Django==1.4.5)
ok: [127.0.0.1] => (item=django-tagging==0.3.1)
ok: [127.0.0.1] => (item=django-sendfile==0.3.6)
ok: [127.0.0.1] => (item=django-taggit==0.10)

TASK: [pathagar | Install pathagar requirements in a virtualenv]
**
ok: [127.0.0.1] => (item=Django==1.4.5)
ok: [127.0.0.1] => (item=django-tagging==0.3.1)
ok: [127.0.0.1] => (item=django-sendfile==0.3.6)
ok: [127.0.0.1] => (item=django-taggit==0.10)

TASK: [pathagar | Create pathagar postgresql user]

failed: [127.0.0.1] => {"failed": true}
msg: unable to connect to database: could not connect to server: No such
file or directory
Is the server running locally and accepting
connections on Unix domain socket "/var/run/postgresql/.s.PGSQL.5432"?


FATAL: all hosts have already failed -- aborting

PLAY RECAP

   to retry, use: --limit @/root/xsce.retry

127.0.0.1  : ok=13   changed=0unreachable=0failed=1


Any idea about what could be the problem?

I have tried run:

./runoption postgresql

But the result and retry, but the result is the same.

In a separated note, I have sent a pr to update the pathagar repository and
dependencies https://github.com/XSCE/xsce/pull/324

-- 
Gonzalo Odiard

SugarLabs - Software for children learning
___
Server-devel mailing list
Server-devel@lists.laptop.org
http://lists.laptop.org/listinfo/server-devel


Re: [Server-devel] [XSCE] RE: [UKids] Re: [support-gang] Taking OpenStreetMap Offline - DESIGN Call - Thur June 11, 10AM EDT / 2PM UTC

2015-06-14 Thread Tim Moody
couple of observations:

 

As expected, the new tiles have a lot more detail.

 

There are more levels of zoom in the new ones.

 

Some names have changed - the old map had Lalitpur and the new one has Patan 
(both are used)

 

I don't see any boxes for unprintable characters, but there is a lot less 
Devanagari. (Google maps has more)

 

Is it possible to merge individually generated regional tiles?  for example if 
you rendered India and Nepal separately would you get both?

 

What happens if you render the world at level 10 and then specific countries at 
16?

 

From: xsce-de...@googlegroups.com [mailto:xsce-de...@googlegroups.com] On 
Behalf Of Anish Mangal
Sent: Saturday, June 13, 2015 10:06 PM
To: Jérôme Gagnon-Voyer
Cc: xsce-devel; Community Support Volunteers -- who help respond to help AT 
laptop.org; Unleash Kids!; server-devel; iaep; Internet In a Box Working Group; 
Jaakko Helleranta
Subject: Re: [XSCE] RE: [UKids] Re: [support-gang] Taking OpenStreetMap Offline 
- DESIGN Call - Thur June 11, 10AM EDT / 2PM UTC

 

Hi,

Following from the skype call this week, I uploaded Nepal's OSM data in 
postgres and render tiles to see performance, and as expected, everything is 
blazing fast. 

The pbf file went into the postgress in less than 5 minutes, and tiles are 
being rendered pretty fast as well.

You can check it yourself by going to 
http://home.braddock.com:28112/osm/slippymap.html

* Select Mapnik

* Zoom out and center over Nepal

* Select Local tiles

* Zoom in

I don't know what this "proves" as the bottleneck still is doing this for the 
entire planet, which we need to figure out a way for anyway.

Best,

Anish

 

 

On Sun, Jun 14, 2015 at 6:02 AM, Anish Mangal mailto:anis...@umich.edu> > wrote:

Hi Jérôme,

I incorporated one of your comments; as for the other I think Timm, Nick would 
be better suited for the discussion (python backend v/s frontend js). :-)

Best,

Anish

 

On Sun, Jun 14, 2015 at 3:22 AM, Jérôme Gagnon-Voyer mailto:gagno...@gmail.com> > wrote:

Hi Anish

 

Great document. I've added 2 comments to the document, feel free to incorporate 
into the document if that makes sense.

 

Also added a TODO for myself to do more research about the various search 
solutions. 

I've used Nominatim in the past (on the client side, not the server 
infrastructure) and it was overall very good, but I'll want to know more about 
the other ones.

 

On Sat, Jun 13, 2015 at 12:51 PM, Tim Moody mailto:t...@timmoody.com> > wrote:

Thanks, Anish for an excellent start at getting this down on paper (so to 
speak).  I think this covers things pretty well and gives us the necessary 
hooks on which to hang the details as we begin fleshing out solutions to the 
requirements you documented.

 

Under issues I added one point about rendering non-Roman character sets.

 

From: unleashk...@googlegroups.com   
[mailto:unleashk...@googlegroups.com  ] On 
Behalf Of Anish Mangal
Sent: Saturday, June 13, 2015 12:15 PM
To: Community Support Volunteers -- who help respond to help AT laptop.org 
 
Cc: Unleash Kids!; server-devel; xsce-devel; iaep; Internet In a Box Working 
Group; Jaakko Helleranta
Subject: [UKids] Re: [support-gang] Taking OpenStreetMap Offline - DESIGN Call 
- Thur June 11, 10AM EDT / 2PM UTC

 

Okay, so I tried to encapsulate whatever we discussed into a design document, 
which can hopefully serve as a base for reaching out to the OSM community and 
to better organize our own thoughts. 

https://docs.google.com/document/d/1LWsN-cPH3lvMuXS-f0Tk8IWVh-3X808WoIt0OJ-QNt8/edit#
 

 

Please feel free to edit the information there as I may have missed some 
points, or interpreted them differently than as intended. 

Best,

Anish

 

On Fri, Jun 5, 2015 at 12:00 AM, Adam Holt mailto:h...@laptop.org> > wrote:

Who's attending http://stateofthemap.us at the UN in NYC this weekend?

Who's most serious about bringing OpenStreetMap's opportunities and rapid 
progress into the hands of the world's offline poor -- kids and all, American 
and Swahili?  Wanna Take This Map Outside, offline and off the grid, where we 
all belong/began?

http://Internet-in-a-Box.org and similar efforts have made a gigantic 1st step: 
in Ghana and Rwanda I could never have imagined better reviews to our 2015 
deployments begun there in recent months.  Many are now changing the game 
increasingly for the Bottom BillionS, among many who've literally never seen a 
globe before, nevermind a map of their own towns.  Both in OLPC (school) 
contexts, in libraries, on Nepali hillsides where folks don't have proper 
homes, and far beyond --- perspectives (literally) are about to change.

But modern phones today contain more than enough gigabytes to display ALL 
OpenStreetMap map detail within most countries, and yet they do not yet, WHY?  
Where a