Not able to start Rasa server

Hi, I have trained the rasa model with the intents and stories . Also I have tested the same in rasa X and Rasa shell and it is working fine. But I need to integrate it with the website , hence I need to start the server but when I run the command ‘rasa run --enable-api’ it is giving me error and I am not able to start the server.

Error : -

D:\Pratik_Python\Chatbot_NLP_RASA_NLU>rasa run --enable-api 2020-02-19 15:00:29 INFO root - Starting Rasa server on http://localhost:5005 2020-02-19 15:00:36 INFO absl - Entry Point [tensor2tensor.envs.tic_tac_toe_env:TicTacToeEnv] registered with id [T2TEnv-TicTacToeEnv-v0] c:\python36\lib\site-packages\gym\envs\registration.py:14: PkgResourcesDeprecationWarning: Parameters to load are deprecated. Call .resolve and .require separately. result = entry_point.load(False) 2020-02-19 15:00:38 INFO rasa.nlu.selectors.embedding_response_selector - Retrieval intent parameter was left to its default value. This response selector will be trainedon training examples combining all retrieval intents. [2020-02-19 15:00:39 +0530] [84424] [ERROR] Unable to start server Traceback (most recent call last): File “c:\python36\lib\asyncio\base_events.py”, line 1062, in create_server sock.bind(sa) OSError: [WinError 10048] Only one usage of each socket address (protocol/network address/port) is normally permitted

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File “c:\python36\lib\site-packages\sanic\server.py”, line 860, in serve http_server = loop.run_until_complete(server_coroutine) File “c:\python36\lib\asyncio\base_events.py”, line 484, in run_until_complete return future.result() File “c:\python36\lib\asyncio\base_events.py”, line 1066, in create_server % (sa, err.strerror.lower())) OSError: [Errno 10048] error while attempting to bind on address (‘0.0.0.0’, 5005): only one usage of each socket address (protocol/network address/port) is normally permitted

D:\Pratik_Python\Chatbot_NLP_RASA_NLU>rasa run -m models --enable-api 2020-02-19 15:01:15 INFO root - Starting Rasa server on http://localhost:5005 2020-02-19 15:01:23 INFO absl - Entry Point [tensor2tensor.envs.tic_tac_toe_env:TicTacToeEnv] registered with id [T2TEnv-TicTacToeEnv-v0] c:\python36\lib\site-packages\gym\envs\registration.py:14: PkgResourcesDeprecationWarning: Parameters to load are deprecated. Call .resolve and .require separately. result = entry_point.load(False) 2020-02-19 15:01:24 INFO rasa.nlu.selectors.embedding_response_selector - Retrieval intent parameter was left to its default value. This response selector will be trainedon training examples combining all retrieval intents. [2020-02-19 15:01:26 +0530] [104004] [ERROR] Unable to start server Traceback (most recent call last): File “c:\python36\lib\asyncio\base_events.py”, line 1062, in create_server sock.bind(sa) OSError: [WinError 10048] Only one usage of each socket address (protocol/network address/port) is normally permitted

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File “c:\python36\lib\site-packages\sanic\server.py”, line 860, in serve http_server = loop.run_until_complete(server_coroutine) File “c:\python36\lib\asyncio\base_events.py”, line 484, in run_until_complete return future.result() File “c:\python36\lib\asyncio\base_events.py”, line 1066, in create_server % (sa, err.strerror.lower())) OSError: [Errno 10048] error while attempting to bind on address (‘0.0.0.0’, 5005): only one usage of each socket address (protocol/network address/port) is normally permitted

I have also uploaded the screenshot of the error.

Kindly help.

Have you solved this @prapends?

What Rasa version are you using? Are you sure there is no other server running on port 5005?

Hi All, I have changed the port as there was some other application running on port 5005. By doing this , it solved the problem. Thanks for the support anyway.

Hi , Actually yes there was some other service running on port 5005, hence I changed the port. That worked for me . Thanks for the reply though.