Skip to content

Instantly share code, notes, and snippets.

@sld
Created July 31, 2019 15:44
Show Gist options
  • Save sld/88c9a92169dde1a3407027f08f541835 to your computer and use it in GitHub Desktop.
Save sld/88c9a92169dde1a3407027f08f541835 to your computer and use it in GitHub Desktop.
dp-agent logs

AIML console logs:

dp-agent|dev⚡ ⇒ docker-compose exec agent  bash
root@5ac3fdfbe6e2:/dp-agent# python3 -m core.run
[nltk_data] Downloading package punkt to /root/nltk_data...
[nltk_data]   Unzipping tokenizers/punkt.zip.
[nltk_data] Downloading package stopwords to /root/nltk_data...
[nltk_data]   Unzipping corpora/stopwords.zip.
[nltk_data] Downloading package perluniprops to /root/nltk_data...
[nltk_data]   Unzipping misc/perluniprops.zip.
[nltk_data] Downloading package nonbreaking_prefixes to
[nltk_data]     /root/nltk_data...
[nltk_data]   Unzipping corpora/nonbreaking_prefixes.zip.
Provide user id: idris
You (idris): hello
Traceback (most recent call last):
  File "/usr/lib/python3.6/runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "/usr/lib/python3.6/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "/dp-agent/core/run.py", line 210, in <module>
    main()
  File "/dp-agent/core/run.py", line 202, in main
    responses = message_processor([message], [1])
  File "/dp-agent/core/run.py", line 154, in infer_cmd
    date_times=date_times, locations=locations, channel_types=['cmd_client'] * len(messages))
  File "/dp-agent/core/agent.py", line 36, in __call__
    selected_skills = self.skill_manager.get_skill_responses(me_dialogs)
  File "/dp-agent/core/skill_manager.py", line 84, in get_skill_responses
    skill_responses = self.skill_caller(payload=payloads, names=skill_names, urls=skill_urls)
  File "/dp-agent/core/rest_caller.py", line 36, in __call__
    for preprocessed in zip(*self.executor.map(_make_request, names, urls, payload)):
  File "/usr/lib/python3.6/concurrent/futures/_base.py", line 586, in result_iterator
    yield fs.pop().result()
  File "/usr/lib/python3.6/concurrent/futures/_base.py", line 432, in result
    return self.__get_result()
  File "/usr/lib/python3.6/concurrent/futures/_base.py", line 384, in __get_result
    raise self._exception
  File "/usr/lib/python3.6/concurrent/futures/thread.py", line 56, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/dp-agent/core/rest_caller.py", line 10, in _make_request
    raise RuntimeError(f'Got {r.status_code} status code for {url}')
RuntimeError: Got 500 status code for http://eng_faq:2080/skill
root@5ac3fdfbe6e2:/dp-agent#

AIML docker-compose logs

eng_faq    | [INFO] 2019-07-31 15:28:16,906 (/base/DeepPavlov/deeppavlov/skills/aiml_skill/aiml_skill.py:42) path_to_aiml_scripts is: `/root/.deeppavlov/downloads/aiml_scripts`
eng_faq    |  * Tip: There are .env files present. Do "pip install python-dotenv" to use them.
eng_faq    |  * Serving Flask app "run_dp_servers" (lazy loading)
eng_faq    |  * Environment: production
eng_faq    |    WARNING: Do not use the development server in a production environment.
eng_faq    |    Use a production WSGI server instead.
eng_faq    |  * Debug mode: off
eng_faq    | [INFO] 2019-07-31 15:28:16,956 (/usr/local/lib/python3.6/site-packages/Werkzeug-0.15.4-py3.6.egg/werkzeug/_internal.py:122)  * Running on http://0.0.0.0:2080/ (Press CTRL+C to quit)
mongo_1    | 2019-07-31T15:28:42.357+0000 I NETWORK  [initandlisten] connection accepted from 192.168.48.4:51448 #1 (1 connection now open)
mongo_1    | 2019-07-31T15:28:42.360+0000 I NETWORK  [initandlisten] connection accepted from 192.168.48.4:51450 #2 (2 connections now open)
eng_faq    | [ERROR] 2019-07-31 15:28:51,870 (/dp-agent/core/run_dp_servers.py:79) exception
eng_faq    | Traceback (most recent call last):
eng_faq    |   File "/dp-agent/core/run_dp_servers.py", line 77, in interact_skill
eng_faq    |     result = model(batch)
eng_faq    |   File "/base/DeepPavlov/deeppavlov/core/common/chainer.py", line 204, in __call__
eng_faq    |     return self._compute(*args, param_names=self.in_x, pipe=self.pipe, targets=self.out_params)
eng_faq    |   File "/base/DeepPavlov/deeppavlov/core/common/chainer.py", line 223, in _compute
eng_faq    |     x = [mem[k] for k in in_params]
eng_faq    |   File "/base/DeepPavlov/deeppavlov/core/common/chainer.py", line 223, in <listcomp>
eng_faq    |     x = [mem[k] for k in in_params]
eng_faq    | KeyError: 'history_batch'
eng_faq    | [ERROR] 2019-07-31 15:28:51,893 (/dp-agent/core/run_dp_servers.py:80) Got an exception when trying to infer the model: KeyError: 'history_batch'
eng_faq    | [INFO] 2019-07-31 15:28:51,898 (/usr/local/lib/python3.6/site-packages/Werkzeug-0.15.4-py3.6.egg/werkzeug/_internal.py:122) 192.168.48.4 - - [31/Jul/2019 15:28:51] "POST /skill HTTP/1.1" 500 -
mongo_1    | 2019-07-31T15:28:52.594+0000 I NETWORK  [conn2] end connection 192.168.48.4:51450 (1 connection now open)
mongo_1    | 2019-07-31T15:28:52.594+0000 I NETWORK  [conn1] end connection 192.168.48.4:51448 (0 connections now open)

TFIDF docker-compose logs

eng_faq    | [INFO] 2019-07-31 15:24:39,429 (/usr/local/lib/python3.6/site-packages/Werkzeug-0.15.4-py3.6.egg/werkzeug/_internal.py:122)  * Running on http://0.0.0.0:2080/ (Press CTRL+C to quit)
mongo_1    | 2019-07-31T15:24:51.804+0000 I NETWORK  [initandlisten] connection accepted from 192.168.48.4:51198 #1 (1 connection now open)
mongo_1    | 2019-07-31T15:24:51.820+0000 I NETWORK  [initandlisten] connection accepted from 192.168.48.4:51200 #2 (2 connections now open)
eng_faq    | [ERROR] 2019-07-31 15:24:54,954 (/dp-agent/core/run_dp_servers.py:79) exception
eng_faq    | Traceback (most recent call last):
eng_faq    |   File "/dp-agent/core/run_dp_servers.py", line 77, in interact_skill
eng_faq    |     result = model(batch)
eng_faq    |   File "/base/DeepPavlov/deeppavlov/core/common/chainer.py", line 204, in __call__
eng_faq    |     return self._compute(*args, param_names=self.in_x, pipe=self.pipe, targets=self.out_params)
eng_faq    |   File "/base/DeepPavlov/deeppavlov/core/common/chainer.py", line 227, in _compute
eng_faq    |     res = component(*x)
eng_faq    |   File "/base/DeepPavlov/deeppavlov/models/tokenizers/spacy_tokenizer.py", line 117, in __call__
eng_faq    |     "StreamSpacyTokenizer.__call__() is not implemented for `{}`".format(type(batch[0])))
eng_faq    | TypeError: StreamSpacyTokenizer.__call__() is not implemented for `<class 'dict'>`
eng_faq    | [ERROR] 2019-07-31 15:24:54,955 (/dp-agent/core/run_dp_servers.py:80) Got an exception when trying to infer the model: TypeError: StreamSpacyTokenizer.__call__() is not implemented for `<class 'dict'>`
eng_faq    | [INFO] 2019-07-31 15:24:54,956 (/usr/local/lib/python3.6/site-packages/Werkzeug-0.15.4-py3.6.egg/werkzeug/_internal.py:122) 192.168.48.4 - - [31/Jul/2019 15:24:54] "POST /skill HTTP/1.1" 500 -

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment