Rasa x is starting but couldnt load my model for testing on web.....please help

Starting Rasa X in local mode... �
2022-02-24 19:58:04 WARNING  rasax.community.services.insights.insight_service  - No local evaluation result files found.
2022-02-24 19:58:07 ERROR    concurrent.futures  - exception calling callback for <Future at 0x2760b999a30 state=finished raised gaierror>
Traceback (most recent call last):
  File "c:\users\lenovo\anaconda3\envs\rasachat\lib\concurrent\futures\thread.py", line 57, in run
    result = self.fn(*self.args, **self.kwargs)
  File "c:\users\lenovo\anaconda3\envs\rasachat\lib\socket.py", line 918, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno 11001] getaddrinfo failed

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "c:\users\lenovo\anaconda3\envs\rasachat\lib\concurrent\futures\_base.py", line 328, in _invoke_callbacks
    callback(self)
  File "c:\users\lenovo\anaconda3\envs\rasachat\lib\asyncio\futures.py", line 374, in _call_set_state
    dest_loop.call_soon_threadsafe(_set_state, destination, source)
  File "c:\users\lenovo\anaconda3\envs\rasachat\lib\asyncio\base_events.py", line 764, in call_soon_threadsafe
    self._check_closed()
  File "c:\users\lenovo\anaconda3\envs\rasachat\lib\asyncio\base_events.py", line 508, in _check_closed
    raise RuntimeError('Event loop is closed')
RuntimeError: Event loop is closed
2022-02-24 19:58:07 ERROR    concurrent.futures  - exception calling callback for <Future at 0x2760ba03a90 state=finished returned list>
Traceback (most recent call last):
  File "c:\users\lenovo\anaconda3\envs\rasachat\lib\concurrent\futures\_base.py", line 328, in _invoke_callbacks
    callback(self)
  File "c:\users\lenovo\anaconda3\envs\rasachat\lib\asyncio\futures.py", line 374, in _call_set_state
    dest_loop.call_soon_threadsafe(_set_state, destination, source)
  File "c:\users\lenovo\anaconda3\envs\rasachat\lib\asyncio\base_events.py", line 764, in call_soon_threadsafe
    self._check_closed()
  File "c:\users\lenovo\anaconda3\envs\rasachat\lib\asyncio\base_events.py", line 508, in _check_closed
    raise RuntimeError('Event loop is closed')
RuntimeError: Event loop is closed
2022-02-24 19:58:15 ERROR    asyncio  - Task was destroyed but it is pending!
task: <Task pending name='Task-8' coro=<TCPConnector._resolve_host() done, defined at c:\users\lenovo\anaconda3\envs\rasachat\lib\site-packages\aiohttp\connector.py:806> wait_for=<Future
pending cb=[_chain_future.<locals>._call_check_cancel() at c:\users\lenovo\anaconda3\envs\rasachat\lib\asyncio\futures.py:360, <TaskWakeupMethWrapper object at 0x000002760B940D30>()]> cb=
[TCPConnector._create_direct_connection.<locals>.drop_exception() at c:\users\lenovo\anaconda3\envs\rasachat\lib\site-packages\aiohttp\connector.py:1002]>
[2022-02-24 19:58:17 +0530] [4936] [INFO] Goin' Fast @ http://0.0.0.0:5002
2022-02-24 19:58:17 INFO     sanic.root  - Goin' Fast @ http://0.0.0.0:5002

The server is running at http://localhost:5002/login?username=me&password=iouPB1cQ8OCZ

[2022-02-24 19:58:18 +0530] [4936] [INFO] Starting worker [4936]
2022-02-24 19:58:18 INFO     sanic.root  - Starting worker [4936]
2022-02-24 19:58:22 ERROR    asyncio  - Task was destroyed but it is pending!
task: <Task pending name='Task-9' coro=<TCPConnector._resolve_host() running at c:\users\lenovo\anaconda3\envs\rasachat\lib\site-packages\aiohttp\connector.py:865> wait_for=<Future pendin
g cb=[_chain_future.<locals>._call_check_cancel() at c:\users\lenovo\anaconda3\envs\rasachat\lib\asyncio\futures.py:360, <TaskWakeupMethWrapper object at 0x000002760BA03700>()]> cb=[TCPCo
nnector._create_direct_connection.<locals>.drop_exception() at c:\users\lenovo\anaconda3\envs\rasachat\lib\site-packages\aiohttp\connector.py:1002]>

@rupendra please share your rasa --version whilst activating the environment?

@rupendra can you clear your browser cache and cookies and make chrome a default browser, I hope this will solve your issue (doubt still), if that does not work I will guide you alternative process.

thanks the model is working but I’m getting this error in starting

2022-03-07 17:26:15 ERROR asyncio - Task was destroyed but it is pending! task: <Task pending name=‘Task-9’ coro=<TCPConnector._resolve_host() running at c:\users\lenovo\anaconda3\envs\rasachat\lib\site-packages\aiohttp\connector.py:865> wait_for=<Future pendin g cb=[_chain_future.._call_check_cancel() at c:\users\lenovo\anaconda3\envs\rasachat\lib\asyncio\futures.py:360, <TaskWakeupMethWrapper object at 0x0000026A5E13B7F0>()]> cb=[TCPCo nnector._create_direct_connection..drop_exception() at c:\users\lenovo\anaconda3\envs\rasachat\lib\site-packages\aiohttp\connector.py:1002]>

@rupendra confirm with me are you able to chat with the bot? I again doubt you can’t?

@rupendra I am not available as much on the forum nowadays, so please always tag me for a faster response.

yeah I can chat with my bot, train it and can do most of work… @nik202

@rupendra If its working fine, then nothing to worries as its a persistent issue.

can you share rasa and rasa x version please? I know you shared above but still want to see type rasa --version in env please.

1 Like

here it is @nik202

Thanks for the share Rupendra and good luck with your project.

Do remember as soon as you update the rasa and rasa sdk to the latest version 2.x it can stop working rasa x (I wish I can be wrong but still just for your information) and rasa x is not compatible with 3.x.

@rupendra If in case you trying to update to 2.x i.e 2.8.1 please see this thread: Rasa X runs with several Errors & Warnings - #7 by vio_lovis

Have a nice day!

1 Like