Project

General

Profile

[RESOLU] Installation Wazo sur apu

Added by Nicolas SCHEUBEL 11 days ago

Bonjour,

Je viens vers vous car je suis entrain d'installer Wazo sur une carte PcEngine APU.3.

J'ai d'abord installer Debian 9.6.0 sur le ssd.
Ensuite, comme marqué dans la doc, j'ai fait "wget http://mirror.wazo.community/fai/xivo-migration/wazo_install.sh" puis "chmod +x wazo_install.sh" puis "./wazo_install.sh".

La, j'ai une erreur au niveau de nginx :

Setting up nginx-full (1.10.3-1+deb9u2) ...
Job for nginx.service failed because the control process exited with error code.
See "systemctl status nginx.service" and "journalctl -xe" for details.
invoke-rc.d: initscript nginx, action "start" failed.
  • nginx.service - A high performance web server and a reverse proxy server
    Loaded: loaded (/lib/systemd/system/nginx.service; enabled; vendor preset: enabled)
    Active: failed (Result: exit-code) since Wed 2018-12-05 08:19:55 CET; 35ms ago
    Docs: man:nginx(8)
    Process: 6311 ExecStart=/usr/sbin/nginx -g daemon on; master_process on; (code=exited, status=1/FAILURE)
    Process: 6308 ExecStartPre=/usr/sbin/nginx -t -q -g daemon on; master_process on; (code=exited, status=0/SUCCESS)
Dec 05 08:19:53 wazo nginx6311: nginx: [emerg] listen() to 0.0.0.0:80, ba…use)
Dec 05 08:19:53 wazo nginx6311: nginx: [emerg] listen() to 0.0.0.0:80, ba…use)
Dec 05 08:19:54 wazo nginx6311: nginx: [emerg] listen() to 0.0.0.0:80, ba…use)
Dec 05 08:19:54 wazo nginx6311: nginx: [emerg] listen() to 0.0.0.0:80, ba…use)
Dec 05 08:19:55 wazo nginx6311: nginx: [emerg] listen() to 0.0.0.0:80, ba…use)
Dec 05 08:19:55 wazo nginx6311: nginx: [emerg] still could not bind()
Dec 05 08:19:55 wazo systemd1: nginx.service: Control process exited, cod…us=1
Dec 05 08:19:55 wazo systemd1: Failed to start A high performance web ser…ver.
Dec 05 08:19:55 wazo systemd1: nginx.service: Unit entered failed state.
Dec 05 08:19:55 wazo systemd1: nginx.service: Failed with result 'exit-code'.
Hint: Some lines were ellipsized, use -l to show in full.
dpkg: error processing package nginx-full (--configure):
subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
nginx-full
E: Sub-process /usr/bin/dpkg returned an error code (1)
./wazo_install.sh: line 65: xivo-service: command not found
dSetting up nginx-full (1.10.3-1+deb9u2) ...e 65: xivo-service: command not found
bash: syntax error near unexpected token `('
ournalctl -xe" for details.
invoke-rc.d: initscript nginx, action "start" failed.
  • nginx.service - A high performance web server and a reverse proxy server
    Loaded: loaded (/lib/systemd/system/nginx.service; enabled; vendor preset: enabled)
    Active: failed (Result: exit-code) since Wed 2018-12-05 08:19:55 CET; 35ms ago
    Docs: man:nginx(8)
    Process: 6311 ExecStart=/usr/sbin/nginx -g daemon on; master_process on; (code=exited, status=1/FAILURE)
    Process: 6308 ExecStartPre=/usr/sbin/nginx -ttatus=0/SUCCn on; master_process on; (code=exited, sbin/nginx -tESS)

Dec 05 08:19:53 wazo nginx6311: nginx: [emerg] listen() to 0.0.0.0:80, ba…use)
Dec 05 08:19:53 wazo nginx6311: nginx: [emerg] listen() to 0.0.0.0:80, ba…use)
Dec 05 08:19:54 wazo nginx6311: nginx: [emerg] listen() to 0.0.0.0:80, ba…use)
Dec 05 08:19:54 wazo nginx6311: nginx: [emerg] listen() to 0.0.0.0:80, ba…use)
Dec 05 08:19:55 wazo nginx6311: nginx: [emerg] listen() to 0.0.0.0:80, ba…use)
Dec 05 08:19:55 wazo nginx6311: nginx: [emerg] still could not bind()
Dec 05 08:19:55 wazo systemd1: nginx.service: Control process exited, cod…us=1
Dec 05 08:19:55 wazo systemd1:t A high performance web ser…ver.
Dec 05 08:19:azo systemd1:55 wazo systemd1: nginx.service: Unit entered failed state.
Dec 05 08:19:55 wazo systemd1: nginx.service: Failed with result 'exit-code'.
Hint: Some lines were ellipsized, use -l to show in full.
dpkg: error processing package nginx-full (--configure):
subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
nginx-full
E: Sub-process /usr/bin/dpkg returned an error code (1)

Seriez vous d’où cela peux venir?

Merci.


Replies (14)

RE: Installation Wazo sur apu - Added by Sylvain Boily 11 days ago

Tu as probablement un service qui tourne sur le port 80. Ta debian est-elle une installation tout neuve avec le minimum ? Le log dit que nginx n'arrive pas a démarrer.

RE: Installation Wazo sur apu - Added by Nicolas SCHEUBEL 11 days ago

Merci de ta réponse .
Oui, c'est une installation neuve avec webserveur (il me semble) openssh,...

RE: Installation Wazo sur apu - Added by Nicolas SCHEUBEL 11 days ago

Je suis entrain de ré installer. J'ai un doute d'avoir mis le serveur web.

Je te tiens au courant.

RE: Installation Wazo sur apu - Added by Nicolas SCHEUBEL 11 days ago

Voici ce que je viens de choisir.

RE: Installation Wazo sur apu - Added by Sébastien Duthil 11 days ago

Salut,

Pour savoir quel processus écoute sur le port 80, tu peux faire:

apt install net-tools
netstat -npat | grep ':80 '

RE: Installation Wazo sur apu - Added by Nicolas SCHEUBEL 11 days ago

Bonsoir.

Merci Sébastien.
je suis entrain de remettre Debian avec sortie vers le port console car il y a pas d’écran sur ces cartes mères.
Debian est presque fini.

Je passe ensuite à l'installation de Wazo via le script.

RE: Installation Wazo sur apu - Added by Nicolas SCHEUBEL 10 days ago

Je viens de faire la ré installation et voici une nouvelle erreur que j'ai à la fin :

Processing triggers for xivo-nginx (18.01~20180110.152958.906b28d.deb9) ...
Errors were encountered while processing:
xivo-dird
wazo-webhookd
xivo-manage-db
xivo-base
wazo-auth
xivo-confd
xivo
wazo-service
E: Sub-process /usr/bin/dpkg returned an error code (1)
Warning: xivo-service is a deprecated alias to wazo-service: use wazo-service instead
Closing port 5060.
Waiting for services to stop successfully...
Waiting for services to start successfully...
starting rabbitmq-server ... OK
starting consul ... OK
starting ... OK
starting nginx ... OK
starting mongooseim ... OK
starting dahdi ... OK
starting wazo-admin-ui ... OK
starting wazo-plugind ... OK
starting wazo-webhookd ... OK
starting xivo-sysconfd ... OK
starting xivo-confgend ... OK
starting xivo-confd ... OK
starting wazo-auth ...Job for wazo-auth.service failed because the control process exited with error code.
See "systemctl status wazo-auth.service" and "journalctl -xe" for details.
NOK
Opening port 5060.
root@wazo:/home/wazo# systemctl status wazo-auth.service
  • wazo-auth.service - wazo-auth server
    Loaded: loaded (/lib/systemd/system/wazo-auth.service; disabled; vendor prese
    Active: failed (Result: exit-code) since Wed 2018-12-05 22:03:01 CET; 31min a
    Process: 2784 ExecStartPost=/usr/bin/wazo-auth-bootstrap complete (code=exited
    Process: 2770 ExecStart=/usr/bin/wazo-auth (code=exited, status=0/SUCCESS)
    Process: 2767 ExecStartPre=/usr/bin/install -d -o wazo-auth -g wazo-auth /var/
    Main PID: 2781 (code=exited, status=0/SUCCESS)

Ca vous dit quelque chose?

RE: Installation Wazo sur apu - Added by Nicolas SCHEUBEL 10 days ago

Apres la commande suivante : wazo-service restart all

Closing port 5060.
Waiting for services to stop successfully...
Waiting for services to start successfully...
starting rabbitmq-server ... OK
starting consul ... OK
starting ... OK
starting nginx ... OK
starting mongooseim ... OK
starting dahdi ... OK
starting wazo-admin-ui ... OK
starting wazo-plugind ... OK
starting wazo-webhookd ... OK
starting xivo-sysconfd ... OK
starting xivo-confgend ... OK
starting xivo-confd ... OK
starting wazo-auth ...Job for wazo-auth.service failed because the control process exited with error code.
See "systemctl status wazo-auth.service" and "journalctl -xe" for details.
NOK
Opening port 5060.

RE: Installation Wazo sur apu - Added by Nicolas SCHEUBEL 10 days ago

Je viens de redémarrer le systeme et essayer de me connecter avec l'adresse ip. Voici ce que j'obtiens :

xivo-confd must be running: Failed to connect to 127.0.0.1 port 9487: Connection refused

Si vous avez des idées pour tout cela, je suis preneur.

Merci à vous.

RE: Installation Wazo sur apu - Added by Nicolas SCHEUBEL 10 days ago

Bonjour.

Bon, je m'y suis remis ce matin. je viens de suivre la procédure de : [[https://projects.wazo.community/boards/8/topics/13312]]
Presque à la fin, il y a cette ligne : rm /var/lib/wazo-auth/init.key

Ca a fonctionné :

root@wazo:/home/wazo# rm /var/lib/wazo-auth/init.key
root@wazo:/home/wazo# wazo-service restart all
Closing port 5060.
Waiting for services to stop successfully...
Waiting for services to start successfully...
starting rabbitmq-server ... OK
starting consul ... OK
starting ... OK
starting nginx ... OK
starting mongooseim ... OK
starting dahdi ... OK
starting wazo-admin-ui ... OK
starting wazo-plugind ... OK
starting wazo-webhookd ... OK
starting xivo-sysconfd ... OK
starting xivo-confgend ... OK
starting xivo-confd ... OK
starting wazo-auth ... OK
xivo-dxtora is disabled
xivo-provd is disabled
xivo-agid is disabled
asterisk is disabled
xivo-amid is disabled
wazo-call-logd is disabled
xivo-agentd is disabled
xivo-ctid is disabled
xivo-dird is disabled
xivo-dird-phoned is disabled
xivo-ctid-ng is disabled
xivo-websocketd is disabled
Opening port 5060.
Wazo fully booted

J'ai essayé de me connecter à l'interface mais j'ai un autre message : xivo-confd must be running:

Je continue ! Je vais y arriver !!

RE: Installation Wazo sur apu - Added by Nicolas SCHEUBEL 10 days ago

root@wazo:/home/wazo# wazo-upgrade
Upgrading wazo-upgrade
Reading package lists...
Building dependency tree...
Reading state information...
xivo-upgrade is already the newest version (18.03~20180223.161652.682bfef.deb9).
xivo-upgrade set to manually installed.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
8 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up xivo-dird (18.04~20180312.173827.76239a0.deb9) ...
Traceback (most recent call last):
File "/usr/bin/xivo-dird-init-db", line 75, in <module>
main()
File "/usr/bin/xivo-dird-init-db", line 66, in main
db_helper.create_db(cursor, args.db, args.owner)
File "/usr/lib/python2.7/dist-packages/xivo/db_helper.py", line 38, in create_db
cursor.execute(sql)
psycopg2.DataError: new encoding (UTF8) is incompatible with the encoding of the template database (SQL_ASCII)
HINT: Use the same encoding as in the template database, or use template0 as template.

dpkg: error processing package xivo-dird (--configure):
subprocess installed post-installation script returned error exit status 1
Setting up wazo-webhookd (18.04~20180312.173151.11cbe9a.deb9) ...
usermod: no changes
Traceback (most recent call last):
File "/usr/bin/wazo-webhookd-init-db", line 11, in <module>
load_entry_point('wazo-webhookd==1.0', 'console_scripts', 'wazo-webhookd-init-db')()
File "/usr/lib/python3/dist-packages/wazo_webhookd/bin/init_db.py", line 54, in main
db_helper.create_db(cursor, args.db, args.owner)
File "/usr/lib/python3/dist-packages/xivo/db_helper.py", line 38, in create_db
cursor.execute(sql)
psycopg2.DataError: new encoding (UTF8) is incompatible with the encoding of the template database (SQL_ASCII)
HINT: Use the same encoding as in the template database, or use template0 as template.

dpkg: error processing package wazo-webhookd (--configure):
subprocess installed post-installation script returned error exit status 1
Setting up xivo-manage-db (18.04~20180312.181636.4ad258e.deb9) ...
Traceback (most recent call last):
File "/usr/bin/xivo-init-db", line 5, in <module>
main()
File "/usr/lib/python2.7/dist-packages/xivo_db/bin/init_db.py", line 68, in main
_init_db()
File "/usr/lib/python2.7/dist-packages/xivo_db/bin/init_db.py", line 54, in _init_db
postgres.init_db()
File "/usr/lib/python2.7/dist-packages/xivo_db/postgres.py", line 39, in decorator
res = f(*args, **kwargs)
File "/usr/lib/python2.7/dist-packages/xivo_db/postgres.py", line 67, in init_db
db_helper.create_db(cursor, db_name, db_user)
File "/usr/lib/python2.7/dist-packages/xivo/db_helper.py", line 38, in create_db
cursor.execute(sql)
psycopg2.DataError: new encoding (UTF8) is incompatible with the encoding of the template database (SQL_ASCII)
HINT: Use the same encoding as in the template database, or use template0 as template.

dpkg: error processing package xivo-manage-db (--configure):
subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of xivo-base:
xivo-base depends on wazo-webhookd; however:
Package wazo-webhookd is not configured yet.
xivo-base depends on xivo-dird; however:
Package xivo-dird is not configured yet.
xivo-base depends on xivo-manage-db; however:
Package xivo-manage-db is not configured yet.

dpkg: error processing package xivo-base (--configure):
dependency problems - leaving unconfigured
Setting up wazo-auth (18.04~20180312.174512.089fbe1.deb9) ...
2018-12-06 06:08:17,322 [495] (CRITICAL) (root): new encoding (UTF8) is incompatible with the encoding of the template database (SQL_ASCII)
HINT: Use the same encoding as in the template database, or use template0 as template.
Traceback (most recent call last):
File "/usr/bin/wazo-auth-init-db", line 66, in <module>
main()
File "/usr/bin/wazo-auth-init-db", line 57, in main
db_helper.create_db(cursor, args.db, args.owner)
File "/usr/lib/python2.7/dist-packages/xivo/db_helper.py", line 38, in create_db
cursor.execute(sql)
DataError: new encoding (UTF8) is incompatible with the encoding of the template database (SQL_ASCII)
HINT: Use the same encoding as in the template database, or use template0 as template.

dpkg: error processing package wazo-auth (--configure):
subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of xivo-confd:
xivo-confd depends on xivo-manage-db (>> 16.01); however:
Package xivo-manage-db is not configured yet.

dpkg: error processing package xivo-confd (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of xivo:
xivo depends on xivo-base (= 14:18.03~20180212.153210.c5ff859.deb9); however:
Package xivo-base is not configured yet.

dpkg: error processing package xivo (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of wazo-service:
wazo-service depends on xivo-manage-db; however:
Package xivo-manage-db is not configured yet.

dpkg: error processing package wazo-service (--configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
xivo-dird
wazo-webhookd
xivo-manage-db
xivo-base
wazo-auth
xivo-confd
xivo
wazo-service
E: Sub-process /usr/bin/dpkg returned an error code (1)
ERROR: You must configure Wazo by running the web wizard before using wazo-upgrade
root@wazo:/home/wazo#

RE: Installation Wazo sur apu - Added by Sylvain Boily 10 days ago

Le problème vient que ton installation ne supporte pas l'utf8.

As tu lu correctement la page http://documentation.wazo.community/en/stable/installation/installsystem.html ?

C'est marqué dans les pré requis.

RE: Installation Wazo sur apu - Added by Nicolas SCHEUBEL 10 days ago

Hé non, j'ai lu en diagonal !! Désolé.

J'ai vu en cherchant ce post : https://projects.wazo.community/boards/8/topics/12598?r=12635 ou il parlent justement de UTF8. J'ai essayé de remettre mais ca ne fonctionne pas.

J'avais fais une copie de mon disque dur avec juste Debian. Je viens de refaire en sélectionnant UTF8 FR et EN avec FR de base.

C'est ca quand ont lit pas les choses et que l'ont ne fait pas attention.

Désolé du dérangement pour cela!

Je continu.

RE: Installation Wazo sur apu - Added by Nicolas SCHEUBEL 10 days ago

Re,

Bon, tout est ok. ca fonctionne trés bien.
comme quoi quand ont prends le temps de lire les choses, ca vas bcp mieux.

Désolé du dérangement.

Bonne après midi.

    (1-14/14)