Connection refused error

rasa shell working fine in my local system while running shell on a server showing this:

Traceback (most recent call last): File “/root/.local/lib/python3.6/site-packages/rasa/core/run.py”, line 126, in run_cmdline_io server_url=constants.DEFAULT_SERVER_FORMAT.format(port) File “/root/.local/lib/python3.6/site-packages/rasa/core/channels/console.py”, line 137, in record_messages async for response in bot_responses: File “/root/.local/lib/python3.6/site-packages/async_generator/_impl.py”, line 366, in step return await ANextIter(self._it, start_fn, *args) File “/root/.local/lib/python3.6/site-packages/async_generator/_impl.py”, line 205, in throw return self._invoke(self._it.throw, type, value, traceback) File “/root/.local/lib/python3.6/site-packages/async_generator/_impl.py”, line 209, in _invoke result = fn(*args) File “/root/.local/lib/python3.6/site-packages/rasa/core/channels/console.py”, line 100, in send_message_receive_stream async with session.post(url, json=payload, raise_for_status=True) as resp: File “/root/.local/lib/python3.6/site-packages/aiohttp/client.py”, line 1005, in aenter self._resp = await self._coro File “/root/.local/lib/python3.6/site-packages/aiohttp/client.py”, line 476, in _request timeout=real_timeout File “/root/.local/lib/python3.6/site-packages/aiohttp/connector.py”, line 522, in connect proto = await self._create_connection(req, traces, timeout) File “/root/.local/lib/python3.6/site-packages/aiohttp/connector.py”, line 854, in _create_connection req, traces, timeout) File “/root/.local/lib/python3.6/site-packages/aiohttp/connector.py”, line 992, in _create_direct_connection raise last_exc File “/root/.local/lib/python3.6/site-packages/aiohttp/connector.py”, line 974, in _create_direct_connection req=req, client_error=client_error) File “/root/.local/lib/python3.6/site-packages/aiohttp/connector.py”, line 931, in _wrap_create_connection raise client_error(req.connection_key, exc) from exc aiohttp.client_exceptions.ClientConnectorError: Cannot connect to host localhost:3004 ssl:None [Connection refused]

hey @Juste @amn41 @akelad please help

@shubham1140 what does your setup look like on the server where you’re running this?