Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

aiohttp.client_exceptions.ClientConnectorError: Cannot connect to host localhost:5005 ssl:None [Connection refused] #3606

Closed
ghost opened this issue May 27, 2019 · 35 comments
Assignees
Labels
area:rasa-x/backend 🎩 All issues focused on the Rasa X backend status:more-details-needed Waiting for the user to provide more details / stacktraces / answer a question type:bug 🐛 Inconsistencies or issues which will cause an issue or problem for users or implementors.

Comments

@ghost
Copy link

ghost commented May 27, 2019

Rasa version: 1.0.1

Python version: 3.6.5

Operating system (windows, osx, ...): macOS

Issue: I get this error when i enter the mongo tracker store aiohttp.client_exceptions.ClientConnectorError: Cannot connect to host localhost:5005 ssl:None [Connection refused]

Content of configuration file (config.yml):

language: en
pipeline: supervised_embeddings
timezone: "Europe/Istanbul"

# Configuration for Rasa Core.
# https://rasa.com/docs/rasa/core/policies/
policies:
  - name: MemoizationPolicy
  - name: KerasPolicy
  - name: MappingPolicy
  - name: FormPolicy

Content of domain file (endpoints.yml)

tracker_store:
   type: mongod
   url: mongodb://myaddress:port/?ssl=true
   db: mydb
   username: user
   password: pass

Additional rasa is working on my localhost.

console output:
Screen Shot 2019-05-27 at 15 35 54

@tmbo
Copy link
Member

tmbo commented May 27, 2019

Can you please post the whole log, probably good if you rerun with rasa x --debug

@tmbo tmbo added type:bug 🐛 Inconsistencies or issues which will cause an issue or problem for users or implementors. status:more-details-needed Waiting for the user to provide more details / stacktraces / answer a question area:rasa-x/backend 🎩 All issues focused on the Rasa X backend labels May 27, 2019
@ghost
Copy link
Author

ghost commented May 28, 2019

Here all output:


WARNING: The TensorFlow contrib module will not be included in TensorFlow 2.0.
For more information, please see:
  * https://github.com/tensorflow/community/blob/master/rfcs/20180907-contrib-sunset.md
  * https://github.com/tensorflow/addons
If you depend on functionality not listed there, please file an issue.

�[92mStarting Rasa X in local mode... 🚀�[0m
[2019-05-28 09:09:17 +0300] [3448] [DEBUG] 

                 Sanic
         Build Fast. Run Fast.


[2019-05-28 09:09:17 +0300] [3448] [INFO] Goin' Fast @ http://0.0.0.0:5002
�[92m
The server is running at http://localhost:5002/login?username=me&password=zunvp3VBFc0n
�[0m
[2019-05-28 09:09:17 +0300] [3448] [INFO] Starting worker [3448]
[2019-05-28 09:09:17 +0300] [3448] [DEBUG] CORS: Request to '/login' matches CORS resource '/*'. Using options: {'origins': ['.*'], 'methods': 'DELETE, GET, HEAD, OPTIONS, PATCH, POST, PUT', 'allow_headers': ['.*'], 'expose_headers': 'X-Total-Count', 'supports_credentials': False, 'max_age': None, 'send_wildcard': False, 'automatic_options': True, 'vary_header': True, 'resources': '/*', 'intercept_exceptions': True, 'always_send': True}
[2019-05-28 09:09:17 +0300] [3448] [DEBUG] CORS: CORS was handled in the exception handler, skipping
[2019-05-28 09:09:18 +0300] [3448] [DEBUG] CORS: Request to '/api/auth' matches CORS resource '/*'. Using options: {'origins': ['.*'], 'methods': 'DELETE, GET, HEAD, OPTIONS, PATCH, POST, PUT', 'allow_headers': ['.*'], 'expose_headers': 'X-Total-Count', 'supports_credentials': False, 'max_age': None, 'send_wildcard': False, 'automatic_options': True, 'vary_header': True, 'resources': '/*', 'intercept_exceptions': True, 'always_send': True}
[2019-05-28 09:09:18 +0300] [3448] [DEBUG] CORS: Request to '/api/features' matches CORS resource '/*'. Using options: {'origins': ['.*'], 'methods': 'DELETE, GET, HEAD, OPTIONS, PATCH, POST, PUT', 'allow_headers': ['.*'], 'expose_headers': 'X-Total-Count', 'supports_credentials': False, 'max_age': None, 'send_wildcard': False, 'automatic_options': True, 'vary_header': True, 'resources': '/*', 'intercept_exceptions': True, 'always_send': True}
[2019-05-28 09:09:18 +0300] [3448] [DEBUG] CORS: Request to '/api/conversationIntents' matches CORS resource '/*'. Using options: {'origins': ['.*'], 'methods': 'DELETE, GET, HEAD, OPTIONS, PATCH, POST, PUT', 'allow_headers': ['.*'], 'expose_headers': 'X-Total-Count', 'supports_credentials': False, 'max_age': None, 'send_wildcard': False, 'automatic_options': True, 'vary_header': True, 'resources': '/*', 'intercept_exceptions': True, 'always_send': True}
[2019-05-28 09:09:18 +0300] [3448] [DEBUG] CORS: Request to '/api/conversationPolicies' matches CORS resource '/*'. Using options: {'origins': ['.*'], 'methods': 'DELETE, GET, HEAD, OPTIONS, PATCH, POST, PUT', 'allow_headers': ['.*'], 'expose_headers': 'X-Total-Count', 'supports_credentials': False, 'max_age': None, 'send_wildcard': False, 'automatic_options': True, 'vary_header': True, 'resources': '/*', 'intercept_exceptions': True, 'always_send': True}
[2019-05-28 09:09:18 +0300] [3448] [DEBUG] CORS: Request to '/api/conversationEntities' matches CORS resource '/*'. Using options: {'origins': ['.*'], 'methods': 'DELETE, GET, HEAD, OPTIONS, PATCH, POST, PUT', 'allow_headers': ['.*'], 'expose_headers': 'X-Total-Count', 'supports_credentials': False, 'max_age': None, 'send_wildcard': False, 'automatic_options': True, 'vary_header': True, 'resources': '/*', 'intercept_exceptions': True, 'always_send': True}
[2019-05-28 09:09:18 +0300] [3448] [DEBUG] CORS: Request to '/api/conversationActions' matches CORS resource '/*'. Using options: {'origins': ['.*'], 'methods': 'DELETE, GET, HEAD, OPTIONS, PATCH, POST, PUT', 'allow_headers': ['.*'], 'expose_headers': 'X-Total-Count', 'supports_credentials': False, 'max_age': None, 'send_wildcard': False, 'automatic_options': True, 'vary_header': True, 'resources': '/*', 'intercept_exceptions': True, 'always_send': True}
[2019-05-28 09:09:18 +0300] [3448] [DEBUG] CORS: Request to '/api/projects/default/entities' matches CORS resource '/*'. Using options: {'origins': ['.*'], 'methods': 'DELETE, GET, HEAD, OPTIONS, PATCH, POST, PUT', 'allow_headers': ['.*'], 'expose_headers': 'X-Total-Count', 'supports_credentials': False, 'max_age': None, 'send_wildcard': False, 'automatic_options': True, 'vary_header': True, 'resources': '/*', 'intercept_exceptions': True, 'always_send': True}
[2019-05-28 09:09:18 +0300] [3448] [DEBUG] CORS: Request to '/api/conversations' matches CORS resource '/*'. Using options: {'origins': ['.*'], 'methods': 'DELETE, GET, HEAD, OPTIONS, PATCH, POST, PUT', 'allow_headers': ['.*'], 'expose_headers': 'X-Total-Count', 'supports_credentials': False, 'max_age': None, 'send_wildcard': False, 'automatic_options': True, 'vary_header': True, 'resources': '/*', 'intercept_exceptions': True, 'always_send': True}
[2019-05-28 09:09:19 +0300] [3448] [ERROR] Exception occurred while handling uri: 'http://localhost:5002/api/conversations/undefined'
Traceback (most recent call last):
  File "/Users/admin/Projects/rasa-x/env/lib/python3.6/site-packages/aiohttp/connector.py", line 924, in _wrap_create_connection
    await self._loop.create_connection(*args, **kwargs))
  File "uvloop/loop.pyx", line 1904, in create_connection
  File "uvloop/loop.pyx", line 1883, in uvloop.loop.Loop.create_connection
ConnectionRefusedError: [Errno 61] Connection refused

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/Users/admin/Projects/rasa-x/env/lib/python3.6/site-packages/sanic/app.py", line 917, in handle_request
    response = await response
  File "/Users/admin/Projects/rasa-x/env/lib/python3.6/site-packages/rasax/community/api/decorators.py", line 184, in decorated_function
    return await await_and_return_response(args, kwargs, request)
  File "/Users/admin/Projects/rasa-x/env/lib/python3.6/site-packages/rasax/community/api/decorators.py", line 114, in await_and_return_response
    response = await response
  File "/Users/admin/Projects/rasa-x/env/lib/python3.6/site-packages/rasax/community/api/decorators.py", line 52, in decorated_function
    return await response
  File "/Users/admin/Projects/rasa-x/env/lib/python3.6/site-packages/rasax/community/api/blueprints/stack.py", line 145, in get_events
    until=until_time)
  File "/Users/admin/Projects/rasa-x/env/lib/python3.6/site-packages/rasax/community/services/stack_service.py", line 205, in tracker_json
    subpath=url, method="get")
  File "/Users/admin/Projects/rasa-x/env/lib/python3.6/site-packages/rasax/community/services/stack_service.py", line 118, in request
    **kwargs) as resp:
  File "/Users/admin/Projects/rasa-x/env/lib/python3.6/site-packages/aiohttp/client.py", line 1005, in __aenter__
    self._resp = await self._coro
  File "/Users/admin/Projects/rasa-x/env/lib/python3.6/site-packages/aiohttp/client.py", line 476, in _request
    timeout=real_timeout
  File "/Users/admin/Projects/rasa-x/env/lib/python3.6/site-packages/aiohttp/connector.py", line 522, in connect
    proto = await self._create_connection(req, traces, timeout)
  File "/Users/admin/Projects/rasa-x/env/lib/python3.6/site-packages/aiohttp/connector.py", line 854, in _create_connection
    req, traces, timeout)
  File "/Users/admin/Projects/rasa-x/env/lib/python3.6/site-packages/aiohttp/connector.py", line 992, in _create_direct_connection
    raise last_exc
  File "/Users/admin/Projects/rasa-x/env/lib/python3.6/site-packages/aiohttp/connector.py", line 974, in _create_direct_connection
    req=req, client_error=client_error)
  File "/Users/admin/Projects/rasa-x/env/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:5005 ssl:None [Connection refused]
[2019-05-28 09:09:19 +0300] [3448] [DEBUG] CORS: Request to '/api/conversations/undefined' matches CORS resource '/*'. Using options: {'origins': ['.*'], 'methods': 'DELETE, GET, HEAD, OPTIONS, PATCH, POST, PUT', 'allow_headers': ['.*'], 'expose_headers': 'X-Total-Count', 'supports_credentials': False, 'max_age': None, 'send_wildcard': False, 'automatic_options': True, 'vary_header': True, 'resources': '/*', 'intercept_exceptions': True, 'always_send': True}
[2019-05-28 09:09:19 +0300] [3448] [DEBUG] CORS: CORS was handled in the exception handler, skipping
[2019-05-28 09:09:22 +0300] [3448] [ERROR] Exception occurred while handling uri: 'http://localhost:5002/api/conversations/undefined'
Traceback (most recent call last):
  File "/Users/admin/Projects/rasa-x/env/lib/python3.6/site-packages/aiohttp/connector.py", line 924, in _wrap_create_connection
    await self._loop.create_connection(*args, **kwargs))
  File "uvloop/loop.pyx", line 1904, in create_connection
  File "uvloop/loop.pyx", line 1883, in uvloop.loop.Loop.create_connection
ConnectionRefusedError: [Errno 61] Connection refused

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/Users/admin/Projects/rasa-x/env/lib/python3.6/site-packages/sanic/app.py", line 917, in handle_request
    response = await response
  File "/Users/admin/Projects/rasa-x/env/lib/python3.6/site-packages/rasax/community/api/decorators.py", line 184, in decorated_function
    return await await_and_return_response(args, kwargs, request)
  File "/Users/admin/Projects/rasa-x/env/lib/python3.6/site-packages/rasax/community/api/decorators.py", line 114, in await_and_return_response
    response = await response
  File "/Users/admin/Projects/rasa-x/env/lib/python3.6/site-packages/rasax/community/api/decorators.py", line 52, in decorated_function
    return await response
  File "/Users/admin/Projects/rasa-x/env/lib/python3.6/site-packages/rasax/community/api/blueprints/stack.py", line 145, in get_events
    until=until_time)
  File "/Users/admin/Projects/rasa-x/env/lib/python3.6/site-packages/rasax/community/services/stack_service.py", line 205, in tracker_json
    subpath=url, method="get")
  File "/Users/admin/Projects/rasa-x/env/lib/python3.6/site-packages/rasax/community/services/stack_service.py", line 118, in request
    **kwargs) as resp:
  File "/Users/admin/Projects/rasa-x/env/lib/python3.6/site-packages/aiohttp/client.py", line 1005, in __aenter__
    self._resp = await self._coro
  File "/Users/admin/Projects/rasa-x/env/lib/python3.6/site-packages/aiohttp/client.py", line 476, in _request
    timeout=real_timeout
  File "/Users/admin/Projects/rasa-x/env/lib/python3.6/site-packages/aiohttp/connector.py", line 522, in connect
    proto = await self._create_connection(req, traces, timeout)
  File "/Users/admin/Projects/rasa-x/env/lib/python3.6/site-packages/aiohttp/connector.py", line 854, in _create_connection
    req, traces, timeout)
  File "/Users/admin/Projects/rasa-x/env/lib/python3.6/site-packages/aiohttp/connector.py", line 992, in _create_direct_connection
    raise last_exc
  File "/Users/admin/Projects/rasa-x/env/lib/python3.6/site-packages/aiohttp/connector.py", line 974, in _create_direct_connection
    req=req, client_error=client_error)
  File "/Users/admin/Projects/rasa-x/env/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:5005 ssl:None [Connection refused]
[2019-05-28 09:09:22 +0300] [3448] [DEBUG] CORS: Request to '/api/conversations/undefined' matches CORS resource '/*'. Using options: {'origins': ['.*'], 'methods': 'DELETE, GET, HEAD, OPTIONS, PATCH, POST, PUT', 'allow_headers': ['.*'], 'expose_headers': 'X-Total-Count', 'supports_credentials': False, 'max_age': None, 'send_wildcard': False, 'automatic_options': True, 'vary_header': True, 'resources': '/*', 'intercept_exceptions': True, 'always_send': True}
[2019-05-28 09:09:22 +0300] [3448] [DEBUG] CORS: CORS was handled in the exception handler, skipping

@akelad
Copy link
Contributor

akelad commented May 28, 2019

@tmbo i think i've seen a few people get this error now, seems to be something to do with aiohttp and SSL... not 100% sure how to fix it. Do you have any other ideas? This is the other issue it was mentioned in: #3548

@akelad akelad closed this as completed May 28, 2019
@akelad akelad reopened this May 28, 2019
@tmbo
Copy link
Member

tmbo commented May 28, 2019

Ok so for me to fully understand this:

  • if you remove the mongo configuration it works?
  • what happens if you run rasa x --debug and while it is running visit http://localhost:5005/version?
  • do you have another rasa server running at the same time?

@ghost
Copy link
Author

ghost commented May 28, 2019

ok. I answer again

  1. Yes
  2. I got the following response
    {"version":"1.0.1","minimum_compatible_version":"1.0.0rc1"}
  3. No does not work

@no-response no-response bot removed the status:more-details-needed Waiting for the user to provide more details / stacktraces / answer a question label May 28, 2019
@tmbo
Copy link
Member

tmbo commented Jun 3, 2019

@wochinge can you please try to reproduce this using the mongo db?

@fallik
Copy link

fallik commented Jun 4, 2019

Hi there,

I think I am facing the same issue. I just installed rasa, initialized it and wanted to check out the all new rasa x.

Rasa version: 1.0.6
Python version: 3.6.8
Operating system: macOS

As I just wanted to see how it works, I did not set up any database for persistance.
Here is what I get when trying to start rasa x:

2019-06-04 12:04:50 DEBUG    rasa.cli.utils  - Parameter 'endpoints' not set. Using default location 'endpoints.yml' instead.
Starting Rasa X in local mode... 🚀
2019-06-04 12:04:50 DEBUG    sanic_jwt.configuration  - validating provided secret
2019-06-04 12:04:50 DEBUG    sanic_jwt.configuration  - validating keys (if needed)
2019-06-04 12:04:50 DEBUG    sanic_jwt.configuration  - loading secret and/or keys (if needed)
2019-06-04 12:04:53 DEBUG    rasa.cli.utils  - Parameter 'credentials' not set. Using default location 'credentials.yml' instead.
2019-06-04 12:04:53 DEBUG    rasa.core.utils  - Available web server routes: 
/conversations/<conversation_id>/messages          POST                           add_message
/conversations/<conversation_id>/tracker/events    POST                           append_event
/webhooks/rasa                                     GET                            custom_webhook_RasaChatInput.health
/webhooks/rasa/webhook                             POST                           custom_webhook_RasaChatInput.receive
/webhooks/rest                                     GET                            custom_webhook_RestInput.health
/webhooks/rest/webhook                             POST                           custom_webhook_RestInput.receive
/model/test/intents                                POST                           evaluate_intents
/model/test/stories                                POST                           evaluate_stories
/conversations/<conversation_id>/execute           POST                           execute_action
/domain                                            GET                            get_domain
/                                                  GET                            hello
/model                                             PUT                            load_model
/model/parse                                       POST                           parse
/conversations/<conversation_id>/predict           POST                           predict
/conversations/<conversation_id>/tracker/events    PUT                            replace_events
/conversations/<conversation_id>/story             GET                            retrieve_story
/conversations/<conversation_id>/tracker           GET                            retrieve_tracker
/status                                            GET                            status
/model/predict                                     POST                           tracker_predict
/model/train                                       POST                           train
/model                                             DELETE                         unload_model
/version                                           GET                            version
2019-06-04 12:04:53 INFO     root  - Starting Rasa Core server on http://localhost:5005
2019-06-04 12:04:53 INFO     root  - Enabling coroutine debugging. Loop id 112344436760.
2019-06-04 12:04:53 DEBUG    root  - Could not load interpreter from 'None'
2019-06-04 12:04:53 DEBUG    rasa.core.tracker_store  - Attempting to connect to database via "sqlite:///tracker.db"
2019-06-04 12:04:53 DEBUG    rasa.core.tracker_store  - Connection to SQL database 'tracker.db' successful
2019-06-04 12:04:53 DEBUG    rasa.core.agent  - Requesting model from server http://localhost:5002/api/projects/default/models/tags/production...
2019-06-04 12:04:53 DEBUG    rasa.core.agent  - Tried to fetch model from server, but couldn't reach server. We'll retry later... Error: Cannot connect to host localhost:5002 ssl:None [Connection refused].
2019-06-04 12:04:53 DEBUG    rasa.core.agent  - No new model found at URL http://localhost:5002/api/projects/default/models/tags/production
[2019-06-04 12:04:54 +0200] [42851] [DEBUG] 

                 Sanic
         Build Fast. Run Fast.


[2019-06-04 12:04:54 +0200] [42851] [INFO] Goin' Fast @ http://0.0.0.0:5002

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

[2019-06-04 12:04:54 +0200] [42851] [INFO] Starting worker [42851]
[2019-06-04 12:04:55 +0200] [42851] [ERROR] Exception occurred while handling uri: unknown
Traceback (most recent call last):
  File "/anaconda3/envs/py36/lib/python3.6/site-packages/sanic/server.py", line 267, in data_received
    self.parser.feed_data(data)
  File "httptools/parser/parser.pyx", line 193, in httptools.parser.parser.HttpParser.feed_data
httptools.parser.errors.HttpParserInvalidMethodError: invalid HTTP method
[2019-06-04 12:04:55 +0200] [42851] [ERROR] Exception occurred while handling uri: unknown
Traceback (most recent call last):
  File "/anaconda3/envs/py36/lib/python3.6/site-packages/sanic/server.py", line 267, in data_received
    self.parser.feed_data(data)
  File "httptools/parser/parser.pyx", line 193, in httptools.parser.parser.HttpParser.feed_data
httptools.parser.errors.HttpParserInvalidMethodError: invalid HTTP method
[2019-06-04 12:04:55 +0200] [42851] [ERROR] Exception occurred while handling uri: unknown
Traceback (most recent call last):
  File "/anaconda3/envs/py36/lib/python3.6/site-packages/sanic/server.py", line 267, in data_received
    self.parser.feed_data(data)
  File "httptools/parser/parser.pyx", line 193, in httptools.parser.parser.HttpParser.feed_data
httptools.parser.errors.HttpParserInvalidMethodError: invalid HTTP method

(BTW I noticed that there is no /login server route, why is that?)
The following line (can also be found above) led me to this issue:
2019-06-04 12:04:53 DEBUG rasa.core.agent - Tried to fetch model from server, but couldn't reach server. We'll retry later... Error: Cannot connect to host localhost:5002 ssl:None [Connection refused].

Regards,
Nick

@wochinge
Copy link
Contributor

wochinge commented Jun 4, 2019

@harunkelesoglu

  1. Rasa X does not support other tracker stores then SQL in local mode. If you want to use other tracker stores you have to deploy it (https://rasa.com/docs/rasa-x/deploy/). I think we should have a check at the startup to give a better error message here.
  2. How did you start mongo? If Rasa cannot connect to mongo (e.g. if the mongo server was started without SSL support), it will fail to start which will lead to errors in Rasa X trying to connect. You can also check your mongo logs, if that's the issue

@fallik
I think that's a different issue. Did you run this in a fresh directory after running rasa init, or on an existing project?

@fallik
Copy link

fallik commented Jun 4, 2019

Hi @wochinge
i ran it from inside a fresh directory after rasa init. Wouldn't that work?

@wochinge
Copy link
Contributor

wochinge commented Jun 4, 2019

@fallik Did you do any changes to the endpoint config? Can you check if you have sqlite installed?

@fallik
Copy link

fallik commented Jun 4, 2019

@wochinge no, I left everything as it is. And no, I do not have sqlite installed. Do I need that?

@wochinge
Copy link
Contributor

wochinge commented Jun 4, 2019

It should be installed by default on a Mac. What happens if you type sqlite or sqlite3 in your command line? You can also try installing it via https://brewinstall.org/Install-sqlite-on-Mac-with-Brew/

@fallik
Copy link

fallik commented Jun 5, 2019

sqlite3 it is. Version 3.26.0 is installed.

@wochinge
Copy link
Contributor

wochinge commented Jun 5, 2019

@fallik Could you please share the content of your endpoints.yml file?

@fallik
Copy link

fallik commented Jun 5, 2019

Sure:

# This file contains the different endpoints your bot can use.

# Server where the models are pulled from.
# https://rasa.com/docs/rasa/user-guide/running-the-server/#fetching-models-from-a-server/

#models:
#  url: http://my-server.com/models/default_core@latest
#  wait_time_between_pulls:  10   # [optional](default: 100)

# Server which runs your custom actions.
# https://rasa.com/docs/rasa/core/actions/#custom-actions/

action_endpoint:
  url: "http://localhost:5055/webhook"

# Tracker store which is used to store the conversations.
# By default the conversations are stored in memory.
# https://rasa.com/docs/rasa/api/tracker-stores/

#tracker_store:
#    type: redis
#    url: <host of the redis instance, e.g. localhost>
#    port: <port of your redis instance, usually 6379>
#    db: <number of your database within redis, e.g. 0>
#    password: <password used for authentication>

#tracker_store:
#    type: mongod
#    url: <url to your mongo instance, e.g. mongodb://localhost:27017>
#    db: <name of the db within your mongo instance, e.g. rasa>
#    username: <username used for authentication>
#    password: <password used for authentication>

# Event broker which all conversation events should be streamed to.
# https://rasa.com/docs/rasa/api/event-brokers/

#event_broker:
#  url: localhost
#  username: username
#  password: password
#  queue: queue

Only thing I uncommented is the action_endpoint. What else do I need for rasa x?

@wochinge
Copy link
Contributor

wochinge commented Jun 5, 2019

Hm 😕 Do you have anything else running on port 5005 or 5002?

@fallik
Copy link

fallik commented Jun 5, 2019

I am pretty sure that I don't. Do I need to run with some flag? I just tried --cors "*", but it did not do the trick :/
Would it help to set up a database like mongoDB?

@wochinge
Copy link
Contributor

wochinge commented Jun 5, 2019

@fallik

Would it help to set up a database like mongoDB?

Unfortunately not since Rasa X uses SQLite.

Do any more logs show up if let Rasa X running for 5 minutes? Like an exception or so?

@fallik
Copy link

fallik commented Jun 6, 2019

Hi @wochinge
I attached a log.txt. I let it run by rasa x -vv. The logs after "Available web server routes" seem like I may have to set up some things?
logs.txt

@wochinge
Copy link
Contributor

@fallik Which sanic version are you running?
@ricwo Could this be connected to the missing HEAD annotations which you recently added?

@fallik
Copy link

fallik commented Jun 11, 2019

@wochinge I found those:

sanic==19.3.1
sanic-jwt==1.3.2

I did not install them manually. I guess those came with pip install rasa-x --extra-index-url https://pypi.rasa.com/simple.

@ricwo
Copy link
Contributor

ricwo commented Jun 12, 2019

@wochinge I don't see how - but it's possible. let's check if this problem persists with rasa@master and the latest development version of X

@wochinge
Copy link
Contributor

I did not install them manually. I guess those came with pip install rasa-x --extra-index-url https://pypi.rasa.com/simple.

Yes, these are by Rasa x

@fallik Could you please try using Rasa X version 0.19.2?

@wochinge wochinge added the status:more-details-needed Waiting for the user to provide more details / stacktraces / answer a question label Jun 24, 2019
@ErikTromp
Copy link

Exact same issue here except that it works fine for me on my local Windows brick with Anaconda but fails on my Ubuntu server. Googling around hasn't brought an answer yet but hints point towards IPv6 settings.

@no-response
Copy link

no-response bot commented Jul 8, 2019

This issue has been automatically closed because there has been no response to our request for more information from the original author. Without this, we don't have enough information to help you. Please comment below with the requested information if you still need help.

@laxmikantG
Copy link

I am also facing same issue, but did not find any solution yet.
@fallik - Did you get any solution?

@fallik
Copy link

fallik commented Aug 16, 2019

Hi @laxmikantG,
I set up an all new conda env and reinstalled rasa x. Now I am running rasa version 1.1.3 and it works fine.
However, it does not work in Safari. Also have an eye on the fact, that some browsers try to use https.

@laxmikantG
Copy link

@fallik -Ok, thank you.
What commands do you use to run the app end to end. For me it runs without rasa run actions. but if I use action server it breaks with above error. (obviously for me it does not work for custom actions, so started run actions and got in to this issue.)

@fallik
Copy link

fallik commented Aug 16, 2019

I am running rasa x and rasa run actions (from within my actions dir). Do you get the sanic error from above from the action server?

@laxmikantG
Copy link

Yes. Facing exactly similar issue.

@fallik
Copy link

fallik commented Aug 16, 2019

I did not get the error running rasa run actions but I got it from rasa x startup.

@wochinge
Copy link
Contributor

wochinge commented Aug 19, 2019

@laxmikantG Could you please create a new issue including

  • the versions you are running
  • detailed steps to reproduce

and maybe link to this one? Then we can deal with it properly :-)

@bitsofsteve
Copy link

I am currently having same issue runnig rasa x , it does not seem to listen on port 5002 and 5005

@wochinge
Copy link
Contributor

wochinge commented Nov 5, 2019

@cyberdroidmann Same as @laxmikantG ,

could you please provide us some more information so that we can reproduce the error?

@tomlin7
Copy link

tomlin7 commented Dec 3, 2020

the issue is fixed here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:rasa-x/backend 🎩 All issues focused on the Rasa X backend status:more-details-needed Waiting for the user to provide more details / stacktraces / answer a question type:bug 🐛 Inconsistencies or issues which will cause an issue or problem for users or implementors.
Projects
None yet
Development

No branches or pull requests

9 participants