[Server-devel] Installing pathagar in xsce master

Gonzalo Odiard godiard at sugarlabs.org
Thu Jun 18 09:14:09 EDT 2015


Hi Anish,
I was working with upstream (pathagar) solving a lot of little issues I
found,
and adding some optional features needed by Sora's deployment.
You can see my work here
https://github.com/PathagarBooks/pathagar/commits/master

Until now, I have tested install Pathagar with the role provided by xsce,
on a centos 7.1 in a vm, but couldn't finish due to this error  with
Postrgress.

In the field, we installed manually pathagar on a xsce 5.1 and is working
ok,
using a sqlite database.

If you can test, would be great.

Gonzalo

On Thu, Jun 18, 2015 at 4:08 AM, Anish Mangal <anishmangal2002 at gmail.com>
wrote:

> Hi Gonzalo,
>
> Thanks for working on this. I can help with testing (on x64-centos) .. did
> you make any progress on this?
>
> Pathagar has been problematic in the past, and Miguel has a workaround and
> it was good for a while, before (I guess) it broke again :/
>
> Best,
> Anish
>
>
> On Mon, Jun 15, 2015 at 4:17 AM, Gonzalo Odiard <godiard at sugarlabs.org>
> wrote:
>
>> Could be related to
>>
>>
>> https://github.com/XSCE/xsce/commit/5d330f883cf6ddf92818b34e649aa9f6f4b8efe5
>> ?
>>
>> Gonzalo
>>
>> On Sun, Jun 14, 2015 at 7:38 PM, Gonzalo Odiard <godiard at sugarlabs.org>
>> 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=0    unreachable=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 at lists.laptop.org
>> http://lists.laptop.org/listinfo/server-devel
>>
>>
>
>
> --
> Anish
>



-- 
Gonzalo Odiard

SugarLabs - Software for children learning
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.laptop.org/pipermail/server-devel/attachments/20150618/05d618cb/attachment.html>


More information about the Server-devel mailing list