agora-dev-box

28 views
Skip to first unread message

Daniel Garcia

unread,
Oct 29, 2014, 10:24:16 AM10/29/14
to agora-...@googlegroups.com
Hola,

Como el puppet me ha dado bastantes problemas y no me gusta demasiado he
empezado un proyecto nuevo que despliega una máquina con agora para
desarrollo usando ansible [1].

Ahora mismo en teoría despliega lo mismo que el puppet, pero mi idea es ir
metiendo las cosas nuevas que se han hecho para la última votación de
podemos, como el agora-api y el agora-core-view.

Un saludo.

[1] https://github.com/agoravoting/agora-dev-box

--
Daniel Garcia Moreno
It's not magic, it's wadobo!
http://wadobo.com

Félix Robles

unread,
Oct 29, 2014, 1:22:39 PM10/29/14
to agora-...@googlegroups.com
Pues genial, en un rato lo probaré a ver qué tal. El otro día intenté arrancar el puppet y no me tiraba (qué raro).

Saludos

Félix Robles

unread,
Oct 29, 2014, 4:41:22 PM10/29/14
to agora-...@googlegroups.com
Cuando hago vagrant up en agora-dev-box me dice (y /var/run/postgresql/.s.PGSQL.5432 no existe):

TASK: [eorchestra database setup] ********************************************* 
failed: [default] => {"changed": true, "cmd": "/tmp/rsetup.sh", "delta": "0:00:00.231979", "end": "2014-10-29 20:18:14.302702", "rc": 1, "start": "2014-10-29 20:18:14.070723"}
stderr: psql: 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"?
createuser: could not connect to database postgres: 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"?
createuser: could not connect to database postgres: 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"?
createdb: could not connect to database template1: 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 @/home/felix/playbook.retry

Saludos

Daniel Garcia

unread,
Nov 1, 2014, 3:44:00 AM11/1/14
to agora-...@googlegroups.com
No funciona tan bien como esperaba :P Este problema es de la base de datos,
que parece que no la lanza correctamente y por eso falla. Voy a revisarlo.
> --
> You received this message because you are subscribed to the Google Groups "Ágora Voting" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to agora-voting...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

Félix Robles

unread,
Nov 1, 2014, 4:23:06 AM11/1/14
to agora-...@googlegroups.com
He añadido un pull request [0] que soluciona el problema. Creo una carpeta y le cambio los permisos, y luego creo e inicio el postgresql database cluster en esa carpeta. Ahora me furula del tirón. Aunque como initdb y pg_ctl no están en el PATH he puesto su path a lo burro :p

Reply all
Reply to author
Forward
0 new messages