Directory issues - (ERROR) (xivo_dird.plugins.xivo_user_plugin): Cannot fetch UUID. No results will be returned

Added by Zach Guithues 4 months ago

i'm trying to integrate my company contact list with wazo but I i'm having an issue... I think there is an underlying issue blocking lookups that's preventing me from moving forward.

every time i search for a contact in the xivo-client or the unicom web interface no results are displayed. However, it makes an entry in the xivo-dird.log:

2017-06-16 13:56:21,925 [7317] (INFO) (xivo_dird): (127.0.0.1) GET https://127.0.0.1:9489/0.1/tenants/ois/phonebooks 200
2017-06-16 13:56:29,002 [7317] (INFO) (xivo_dird.plugins.views.default_json.default_json_view): Lookup for green with profile default
2017-06-16 13:56:29,049 [7317] (ERROR) (xivo_dird.plugins.xivo_user_plugin): Cannot fetch UUID. No results will be returned
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/xivo_dird/plugins/xivo_user_plugin.py", line 98, in _fetch_entries
    uuid = self._get_uuid()
  File "/usr/lib/python2.7/dist-packages/xivo_dird/plugins/xivo_user_plugin.py", line 116, in _get_uuid
    infos = self._client.infos()
  File "/usr/lib/python2.7/dist-packages/xivo_confd_client/commands/infos.py", line 24, in __call__
    return self.get()
  File "/usr/lib/python2.7/dist-packages/xivo_confd_client/commands/infos.py", line 27, in get
    r = self.session.get('/infos')
  File "/usr/lib/python2.7/dist-packages/xivo_confd_client/session.py", line 57, in get
    response = self.session.get(url, **kwargs)
  File "/usr/lib/python2.7/dist-packages/requests/sessions.py", line 469, in get
    return self.request('GET', url, **kwargs)
  File "/usr/lib/python2.7/dist-packages/requests/sessions.py", line 457, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python2.7/dist-packages/requests/sessions.py", line 569, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python2.7/dist-packages/requests/adapters.py", line 420, in send
    raise SSLError(e, request=request)
SSLError: [SSL: UNKNOWN_PROTOCOL] unknown protocol (_ssl.c:581)
2017-06-16 13:56:29,054 [7317] (ERROR) (root): An error occured in search
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/xivo_dird/helpers.py", line 30, in execute
    return function(*args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/xivo_dird/plugins/csv_plugin.py", line 64, in search
    return self._list_from_predicate(fn)
  File "/usr/lib/python2.7/dist-packages/xivo_dird/plugins/csv_plugin.py", line 101, in _list_from_predicate
    return map(self._SourceResult, ifilter(predicate, self._content))
  File "/usr/lib/python2.7/dist-packages/xivo_dird/plugins/csv_plugin.py", line 109, in _low_case_match_entry
    for value in values:
  File "/usr/lib/python2.7/dist-packages/xivo_dird/plugins/csv_plugin.py", line 108, in <genexpr>
    values = (entry[col].lower() for col in columns if col)
KeyError: 'displayname'
2017-06-16 13:56:29,061 [7317] (INFO) (xivo_dird): (127.0.0.1) GET https://phone.MYDOMAIN.com:9489/0.1/directories/lookup/default?term=green 200

I think it's related to: "(xivo_dird.plugins.xivo_user_plugin): Cannot fetch UUID. No results will be returned".

Any Ideas?

Thanks for your help!
-Zach


Replies (1)

RE: Directory issues - (ERROR) (xivo_dird.plugins.xivo_user_plugin): Cannot fetch UUID. No results will be returned - Added by Pascal Cadotte-Michaud 4 months ago

In the web interface in "Configuration" tab, "Directories", select the directory named "wazo" or "xivo" if it's an older install.

Check that the certificates configuration works.

You can also check the output of "xivo-confgen dird/sources.yml" to see if the "confd_config" field is correct.

You CSV source also seems to be misconfigured.

In the web interface in you directory definition

"Services" -> "CTI Server" -> "Definitions"

edit you CSV source.

The direct match field probably contains "displayname" which is not a field in you CSV file.

(1-1/1)