[Server-devel] Installing pathagar in xsce master

Gonzalo Odiard godiard at sugarlabs.org
Sun Jun 14 18:38:55 EDT 2015


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.laptop.org/pipermail/server-devel/attachments/20150614/5e40f084/attachment.html>


More information about the Server-devel mailing list