Erreur : Does not exist xivo-ctid

Bonjour,

Depuis lundi je recois des notifications d’erreurs comme:

Cron root@wazo /usr/bin/wazo-call-logs

/usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:624: SAWarning: Multiple rows returned with uselist=False for lazily-loaded attribute 'CallLog.destination_participant' % self.parent_property)

Et surtout plus inquiétant j’ai des “monit alert” avec les erreurs “Does not exist xivo-ctid” et “monit alert – Does not exist asterisk” puis “Exist xivo-ctid” et “monit alert – Exist asterisk”.

Je suis en version 18.03 (oui je sais…) j’ai redemarré la VM, j’ai réalisé une seule modification le lundi l’ajout dans un IVR d’une touche 5 apres controle mon IVR est bon (j’ai une dizaine d’IVR en place).

Ma question est surtout comment faire le debug ? Auriez-vous des pistes ?

Merci,

En cherchant un peu j’ai un arrêt du service xivo-ctid avec une erreur dans les log /var/log/xivo-ctid.log :

2020-12-10 16:39:40,001 [29879] (WARNING) (xivo_cti.services.current_call.manager): No tracked calls for channel SIP/a4l56dwt-00000413 to set hold to True
2020-12-10 16:52:23,434 [29879] (WARNING) (main): AMI: CLOSING (Thu Dec 10 16:52:23 2020)
2020-12-10 16:52:23,485 [29879] (INFO) (main): STOPPING XiVO CTI Server (pid 29879) / uptime 7130 s (since Thu Dec 10 14:53:33 2020)
2020-12-10 16:52:24,136 [29879] (INFO) (service_discovery): Deregistering xivo-ctid from Consul services: 68ebbeb0-3b83-4be7-a25f-18cfed153caf
2020-12-10 16:54:02,887 [18885] (INFO) (xivo_cti.remote_service): adding service xivo-ctid on localhost:9495 c2beee42-c1fa-4933-8a02-b27da0fa1ae2
2020-12-10 16:54:02,928 [18885] (INFO) (cti_config): Config successfully updated in 0.022659 seconds
2020-12-10 16:54:02,993 [18891] (INFO) (main): STARTING XiVO CTI Server (pid 18891))
2020-12-10 16:54:02,993 [18891] (INFO) (main): Retrieving data
2020-12-10 16:54:03,697 [18891] (INFO) (main): Listening for HTTP requests
2020-12-10 16:54:03,703 [18891] (INFO) (main): Local AMI socket connection
2020-12-10 16:54:03,704 [18891] (INFO) (interface_ami): connecting ami …
2020-12-10 16:54:03,705 [18891] (WARNING) (xivo_ami): unable to connect to localhost:5038 - reason 111
2020-12-10 16:54:03,705 [18891] (WARNING) (interface_ami): unable to connect/login
2020-12-10 16:54:03,705 [18891] (WARNING) (main): AMI: CLOSING (Thu Dec 10 16:54:03 2020)
2020-12-10 16:54:03,743 [18891] (INFO) (main): STOPPING XiVO CTI Server (pid 18891) / uptime 1 s (since Thu Dec 10 16:54:02 2020)
2020-12-10 16:54:04,745 [18891] (INFO) (service_discovery): Deregistering xivo-ctid from Consul services: bb6c7b1f-ab9c-4e93-8321-a1030c4435db
2020-12-10 16:54:27,363 [19219] (INFO) (xivo_cti.remote_service): adding service xivo-ctid on localhost:9495 c2beee42-c1fa-4933-8a02-b27da0fa1ae2
2020-12-10 16:54:27,401 [19219] (INFO) (cti_config): Config successfully updated in 0.021877 seconds
2020-12-10 16:54:27,468 [19239] (INFO) (main): STARTING XiVO CTI Server (pid 19239))
2020-12-10 16:54:27,468 [19239] (INFO) (main): Retrieving data
2020-12-10 16:54:28,178 [19239] (INFO) (main): Listening for HTTP requests
2020-12-10 16:54:28,186 [19239] (INFO) (main): Local AMI socket connection
2020-12-10 16:54:28,186 [19239] (INFO) (interface_ami): connecting ami …
2020-12-10 16:54:28,187 [19239] (INFO) (main): Listening sockets
2020-12-10 16:54:28,187 [19239] (INFO) (main): CTI Fully Booted in 0.808509 seconds
2020-12-10 16:54:28,187 [19239] (INFO) (interface_ami): Asterisk Call Manager/4.0.2

D’après une ancienne documentation il faudrait :

To enable the ami-proxy, you must:

  1. Add a file /etc/systemd/system/xivo-ctid.service.d/ami-proxy.conf :
    mkdir -p /etc/systemd/system/xivo-ctid.service.d cat >/etc/systemd/system/xivo-ctid.service.d/ami-proxy.conf <<EOF [Service] Environment=XIVO_CTID_AMI_PROXY=1 EOF systemctl daemon-reload
  2. Restart the CTI server:
    systemctl restart xivo-ctid.service

Mais comment expliquer ce probleme ou puis-je faire une recherche plus approfondie ?

Merci,

Bonjour,

Finalement apres restauration hier soir de ma VM en version de vendredi dernier je pensais qu’il s’agissait bien d’un coquille mais finalement à nouveau le problème à l’instant et j’ai des erreurs dans les logs du xivo-ctid.log

Par exemple:

 2020-12-11 08:47:58,900 [2921] (ERROR) (interface_ami): Exception caught in callback list for event: {u'ConnectedLineNum': u'0022345XXXX', u'Linkedid': u'1607672848.271', u'Uniqueid': u'1607672853.273', u'Language': u'fr_FR', u'AccountCode': u'', u'ChannelState': u'6', u'Exten': u'', u'CallerIDNum': u'1402', u'MusicClass': u'default', u'Priority': u'1', u'ConnectedLineName': u'<unknown>', u'ChanVariable': u'WAZO_DEREFERENCED_USERUUID=', u'Context': u'default', u'CallerIDName': u'C\xe9line Tollemer', u'Privilege': u'call,all', u'Event': u'Hold', u'Channel': u'SIP/s8gk5rbx-0000010d', u'ChannelStateDesc': u'Up'}
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/xivo_cti/interfaces/interface_ami.py", line 225, in _run_functions_with_event
    function(event)
  File "/usr/lib/python2.7/dist-packages/xivo_cti/services/current_call/parser.py", line 33, in parse_hold
    self._current_call_manager.hold_channel(channel)
  File "/usr/lib/python2.7/dist-packages/xivo_cti/services/current_call/manager.py", line 218, in hold_channel
    self._change_hold_status(holded_channel, True)
  File "/usr/lib/python2.7/dist-packages/xivo_cti/services/current_call/manager.py", line 310, in _change_hold_status
    for call in self._calls_per_line[peer_line]:

Pouvez-vous m’aiguiller ?

Merci,

Bonjour,

Je monitore a present mon Wazo avec Zabbix car malgre un ajout de RAM et de CPU j’ai rencontre à nouveau le probleme ce matin voici le message d’erreur:

2020-12-15 08:51:55,065 [3129] (ERROR) (interface_ami): Exception caught in callback list for event: {u’ConnectedLineNum’: u’0023348xxxx’, u’Linkedid’: u’1608018666.4800’, u’Uniqueid’: u’1608018680.4802’, u’Language’: u’fr_FR’, u’AccountCode’: u’’, u’ChannelState’: u’6’, u’Exten’: u’’, u’CallerIDNum’: u’1211’, u’MusicClass’: u’default’, u’Priority’: u’1’, u’ConnectedLineName’: u’’, u’ChanVariable’: u’WAZO_DEREFERENCED_USERUUID=’, u’Context’: u’default’, u’CallerIDName’: u’Arnaud Michel’, u’Privilege’: u’call,all’, u’Event’: u’Hold’, u’Channel’: u’SIP/9ysklxxx-00001277’, u’ChannelStateDesc’: u’Up’}
Traceback (most recent call last):
File “/usr/lib/python2.7/dist-packages/xivo_cti/interfaces/interface_ami.py”, line 225, in _run_functions_with_event
function(event)
File “/usr/lib/python2.7/dist-packages/xivo_cti/services/current_call/parser.py”, line 33, in parse_hold
self._current_call_manager.hold_channel(channel)
File “/usr/lib/python2.7/dist-packages/xivo_cti/services/current_call/manager.py”, line 218, in hold_channel
self._change_hold_status(holded_channel, True)
File “/usr/lib/python2.7/dist-packages/xivo_cti/services/current_call/manager.py”, line 310, in _change_hold_status
for call in self._calls_per_line[peer_line]:
KeyError: u’sip/bretagne_telecom’

Pourriez vous m’aiguiller sur la recherche de la panne ?

Merci,

Bonjour,

xivo-cti n’existe plus dans wazo depuis 2 ans, ça doit sûrement être un bug. Nous conseillons de passer sur une version récente pour avoir de l’aide en ligne.

Oui je sais mais en attendant une migration est impossible, j’ai déjà posté en avril de mémoire j’arrive à monter en version mais divers problème ce présente par la suite IVR, pas d’appels sortants… J’ai corrigé des problèmes mais elle n’est pas encore fonctionnelle.

En fait je souhaite juste une piste sur le comment déceler la source du plantage ? Commande ? car clairement Wazo tourne sans problème depuis 4 ans et du jour au lendemain.

Au cas ou je viens d’appliquer la procedure Xivo avec le proxy ctid.

Merci