PDA

Voir la version complète : [XiVO] CTI ne démarre plus



poukill
21/06/2013, 10h26
Bonjour à tous,

J'ai perdu l'interface Web de XiVO.
Ces dernières semaines j'ai fait pas mal de tests en interne de développement de client SIP, et j'ai du générer trop de logs, du coup /var/log est monté à 2.8Go (100% occupation de la partition).
J'ai libéré de l'espace

Filesystem Size Used Avail Use% Mounted on
/dev/sda6 6.5G 925M 5.6G 15% /
tmpfs 1009M 0 1009M 0% /lib/init/rw
udev 1004M 160K 1004M 1% /dev
tmpfs 1009M 0 1009M 0% /dev/shm
/dev/sda1 236M 22M 202M 10% /boot
/dev/sda7 2.8G 458M 2.4G 17% /var

Mais XiVO refuse de démarrer :


root@xivo:~# xivo-service restart
Closing port 5060.
Waiting for services to stop successfully...
Waiting for services to start successfully...
starting dahdi ... OK

Ca s'arrête là, je vais pas plus loin... :confused:

Si vous avez des idées, je suis preneur !
Merci d'avance,
Bien cordialement,
Poukill

therebel23
21/06/2013, 15h59
Vérifie les fichiers log

/var/log/xivo-*.log
/var/log/pf-*.log
/var/log/syslog
/var/log/daemon.log

..

poukill
21/06/2013, 16h30
Yes, ce que je vois d'anormal :

daemon.log


Jun 20 18:56:23 xivo xivo-sysconfd[1163]: Transforming into a daemon from hell
Jun 20 18:56:23 xivo xivo-sysconfd[1176]: locking PID
Jun 20 18:56:23 xivo xivo-sysconfd[1176]: pidfile ok
Jun 20 18:56:23 xivo xivo-sysconfd[1176]: will now serve
Jun 20 18:56:27 xivo xivo-agid[1295]: xivo-agid starting...
Jun 20 18:56:32 xivo xivo-agid[1295]: executing update command 'update-config'
Jun 20 18:56:33 xivo xivo-agid[1295]: executing update command 'update-phonebook'
Jun 20 18:56:33 xivo xivo-agid[1295]: error while fetching url http://localhost/service/ipbx/json.php/private/pbx_services/phonebook: <urlopen error [Errno 111] Connection refused>
Jun 20 18:56:33 xivo xivo-agid[1295]: sleeping 10 seconds before retrying
Jun 20 18:56:43 xivo xivo-agid[1295]: error while fetching url http://localhost/service/ipbx/json.php/private/pbx_services/phonebook: <urlopen error [Errno 111] Connection refused>
Jun 20 18:56:43 xivo xivo-agid[1295]: sleeping 10 seconds before retrying
Jun 20 18:56:53 xivo xivo-agid[1295]: error while fetching url http://localhost/service/ipbx/json.php/private/pbx_services/phonebook: <urlopen error [Errno 111] Connection refused>
Jun 20 18:56:53 xivo xivo-agid[1295]: sleeping 10 seconds before retrying
Jun 20 18:57:01 xivo monit[921]: Starting monit HTTP server at [localhost:2812]
Jun 20 18:57:01 xivo monit[921]: monit HTTP server started
Jun 20 18:57:01 xivo monit[921]: 'SYSTEM' Monit started
Jun 20 18:57:01 xivo xivo-sysconfd[1176]: 'GET /status-check HTTP/1.1' 200 17
Jun 20 18:57:01 xivo monit[921]: 'xivo-ctid' process is not running
Jun 20 18:57:01 xivo monit[921]: 'xivo-ctid' trying to restart
Jun 20 18:57:01 xivo monit[921]: 'xivo-ctid' start: /etc/init.d/xivo-ctid
Jun 20 18:57:03 xivo xivo-agid[1295]: error while fetching url http://localhost/service/ipbx/json.php/private/pbx_services/phonebook: <urlopen error [Errno 111] Connection refused>
Jun 20 18:57:03 xivo xivo-agid[1295]: sleeping 10 seconds before retrying
Jun 20 18:57:13 xivo xivo-agid[1295]: error while fetching url http://localhost/service/ipbx/json.php/private/pbx_services/phonebook: <urlopen error [Errno 111] Connection refused>
Jun 20 18:57:13 xivo xivo-agid[1295]: sleeping 10 seconds before retrying
Jun 20 18:57:23 xivo xivo-agid[1295]: error while fetching url http://localhost/service/ipbx/json.php/private/pbx_services/phonebook: <urlopen error [Errno 111] Connection refused>
Jun 20 18:57:23 xivo xivo-agid[1295]: sleeping 10 seconds before retrying
Jun 20 18:57:31 xivo monit[921]: 'xivo-ctid' failed to start

Je retrouve ça un peu partout.
Le update_phonebook ne passe pas.

Autre piste :
xivo-agentd.log


2013-06-21 10:31:17,498 [1390] (INFO): Starting xivo-agentd
2013-06-21 10:31:17,513 [1390] (ERROR): Unexpected error:
Traceback (most recent call last):
File "/usr/lib/pymodules/python2.6/xivo_agent/bin/agentd.py", line 77, in main
_run()
File "/usr/lib/pymodules/python2.6/xivo_agent/bin/agentd.py", line 112, in _run
with _new_agent_server() as agent_server:
File "/usr/lib/python2.6/contextlib.py", line 16, in __enter__
return self.gen.next()
File "/usr/lib/pymodules/python2.6/xivo_agent/bin/agentd.py", line 171, in _new_agent_server
agent_server = AgentServer()
File "/usr/lib/pymodules/python2.6/xivo_agent/ctl/server.py", line 33, in __init__
self._transport = self._setup_transport()
File "/usr/lib/pymodules/python2.6/xivo_agent/ctl/server.py", line 39, in _setup_transport
transport = AMQPTransportServer.create_and_connect(self._HOST, self._process_next_command)
File "/usr/lib/pymodules/python2.6/xivo_agent/ctl/amqp_transport_server.py", line 28, in create_and_connect
return cls(connection_params, request_callback)
File "/usr/lib/pymodules/python2.6/xivo_agent/ctl/amqp_transport_server.py", line 32, in __init__
self._connect(connection_params)
File "/usr/lib/pymodules/python2.6/xivo_agent/ctl/amqp_transport_server.py", line 35, in _connect
self._connection = pika.BlockingConnection(params)
File "/usr/lib/python2.6/dist-packages/pika/adapters/blocking_connection.py", line 32, in __init__
BaseConnection.__init__(self, parameters, None, reconnection_strategy)
File "/usr/lib/python2.6/dist-packages/pika/adapters/base_connection.py", line 50, in __init__
reconnection_strategy)
File "/usr/lib/python2.6/dist-packages/pika/connection.py", line 170, in __init__
self._connect()
File "/usr/lib/python2.6/dist-packages/pika/connection.py", line 228, in _connect
self.parameters.port or spec.PORT)
File "/usr/lib/python2.6/dist-packages/pika/adapters/blocking_connection.py", line 36, in _adapter_connect
BaseConnection._adapter_connect(self, host, port)
File "/usr/lib/python2.6/dist-packages/pika/adapters/base_connection.py", line 58, in _adapter_connect
self.socket.connect((host, port))
File "<string>", line 1, in connect
error: [Errno 111] Connection refused



Une idée ? :)

therebel23
23/06/2013, 14h49
Que donne les commandes :

ps -ef | grep nginx

et

netstat -tanpu | grep LISTEN

poukill
25/06/2013, 12h31
Salut,

Merci pour ton aide!
Voilà ce que tu demandes:

root@xivo:~# ps -ef | grep nginx
root 27406 27369 0 12:25 pts/0 00:00:00 grep nginx



root@xivo:~# netstat -tanpu | grep LISTEN
tcp 0 0 127.0.0.1:9000 0.0.0.0:* LISTEN 1137/php5-cgi
tcp 0 0 0.0.0.0:5038 0.0.0.0:* LISTEN 1353/asterisk
tcp 0 0 0.0.0.0:2000 0.0.0.0:* LISTEN 1353/asterisk
tcp 0 0 127.0.0.1:8080 0.0.0.0:* LISTEN 1353/asterisk
tcp 0 0 0.0.0.0:4369 0.0.0.0:* LISTEN 994/epmd
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 1156/sshd
tcp 0 0 127.0.0.1:5432 0.0.0.0:* LISTEN 1114/postgres
tcp 0 0 0.0.0.0:25 0.0.0.0:* LISTEN 1298/master
tcp 0 0 0.0.0.0:43033 0.0.0.0:* LISTEN 1061/beam
tcp 0 0 127.0.0.1:8666 0.0.0.0:* LISTEN 1178/python
tcp 0 0 0.0.0.0:8667 0.0.0.0:* LISTEN 1178/python
tcp 0 0 127.0.0.1:2812 0.0.0.0:* LISTEN 937/monit
tcp 0 0 127.0.0.1:8668 0.0.0.0:* LISTEN 1202/python
tcp 0 0 127.0.0.1:4573 0.0.0.0:* LISTEN 1317/python
tcp 0 0 127.0.0.1:8669 0.0.0.0:* LISTEN 1340/confgend
tcp6 0 0 :::22 :::* LISTEN 1156/sshd

therebel23
25/06/2013, 12h58
Le serveur web nginx ne tourne pas. Ce n'est pas normal.

Lance la commande :

/etc/init.d/nginx start

et refait :

ps -ef | grep nginx

Si toujours rien,
regarde dans tes logs ce qui ne va pas

poukill
25/06/2013, 14h04
Merci beaucoup, c'est beaucoup mieux maintenant.
/etc/init.d/nginx start ne fonctionnait pas parce que il ne trouvait pas son répertoire de log. Un p'tit :


mkdir -p /var/log/nginx

et nginx tourne maintenant.

J'ai essayé de lancer l'interface, mais erreur dans le même "cadre".

mkdir -p /var/log/xivo-web-interface
touch xivo.log
chmod 777 xivo.log
Et ce coup-ci j'ai accès à l'interface.
Mais toujours pas de serveur CTI. J'imagine que c'est encore des fichiers de logs auxquels chaque daemon n'a pas accès.

Je crois vraiment que j'ai fait le bourrin en nettoyant mon dossier de log à grand coup de
rm -rf /var/log/*...

poukill
25/06/2013, 14h29
Ok, le dernier problème était rabbitmq. Son repertoire de log n'existait pas, alors il ne se lançait pas...
J'ai normalement tout récupérer maintenant !

Un grand merci à toi. :jap:

sduthil
25/06/2013, 14h38
Si tu veux trouver tous les répertoires de logs manquants, tu peux faire un truc du genre:


for f in $(cat /var/lib/dpkg/info/*.list | grep /var/log/) ; do ls -d $f ; done

Ça te donnera une erreur pour chaque répertoire manquant.

poukill
25/06/2013, 15h13
Hey, merci bien !
Je savais pas comment ça se passait dans /var/lib/dpkg/info !
Merci bien pour le tuyau ! :)