RASA X on WSL ubuntu, 5002 refused

Version: Rasa X 0.39 I run rasa x on windows WSL2 ubuntu, rasa X 0.39. I use rasa init, then train model. Rasa shell works well. then I try rasa x but have error 5002 connection refused. below is https link localhost

seems there is SSL errot. should I need to specified rasa x login credentials? Thanks for help.

then I run rasa x --debug, please see following logs:

(venv) weiping@DESKTOP-LKTE884:~/Desktop/rasa_demo$ rasa x --debug 2021-05-10 12:31:06 DEBUG rasax.community.config - Environment variable RASA_X_HOST is not set, defaulting to ‘http://localhost:5002’. 2021-05-10 12:31:06 DEBUG git.cmd - Popen([‘git’, ‘version’], cwd=/home/weiping/Desktop/rasa_demo, universal_newlines=False, shell=None, istream=None) 2021-05-10 12:31:06 DEBUG urllib3.connectionpool - Starting new HTTPS connection (1): api.segment.io:443 2021-05-10 12:31:08 DEBUG rasa.cli.utils - Parameter ‘credentials’ not set. Using default location ‘credentials.yml’ instead. 2021-05-10 12:31:08 DEBUG rasa.core.utils - Available web server routes: /conversations/<conversation_id:path>/messages POST add_message /conversations/<conversation_id:path>/tracker/events POST append_events /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:path>/execute POST execute_action /domain GET get_domain / GET hello /model PUT load_model /model/parse POST parse /conversations/<conversation_id:path>/predict POST predict /conversations/<conversation_id:path>/tracker/events PUT replace_events /conversations/<conversation_id:path>/story GET retrieve_story /conversations/<conversation_id:path>/tracker GET retrieve_tracker /status GET status /model/predict POST tracker_predict /model/train POST train /conversations/<conversation_id:path>/trigger_intent POST trigger_intent /model DELETE unload_model /version GET version 2021-05-10 12:31:08 INFO root - Starting Rasa server on http://localhost:5005 2021-05-10 12:31:08 DEBUG rasa.core.utils - Using the default number of Sanic workers (1). 2021-05-10 12:31:08 DEBUG urllib3.connectionpool - Starting new HTTPS connection (1): api.segment.io:443 2021-05-10 12:31:09 DEBUG urllib3.connectionpool - https://api.segment.io:443 “POST /v1/track HTTP/1.1” 200 21 Starting Rasa X in local mode… :rocket: 2021-05-10 12:31:09 DEBUG rasax.community.utils.common - Generating JWT RSA key pair. 2021-05-10 12:31:09 DEBUG rasax.community.telemetry - Started consuming telemetry events. 2021-05-10 12:31:09 DEBUG rasax.community.utils.common - Saved RSA private key to temporary file ‘/tmp/tmpj9p4qx8g’. 2021-05-10 12:31:09 DEBUG sanic_jwt.configuration - validating provided secret 2021-05-10 12:31:09 DEBUG sanic_jwt.configuration - validating keys (if needed) 2021-05-10 12:31:09 DEBUG sanic_jwt.configuration - loading secret and/or keys (if needed) 2021-05-10 12:31:09 DEBUG rasax.community.sql_migrations - Start running schema migrations. 2021-05-10 12:31:09 DEBUG rasax.community.database.utils - Turned SQLite foreign key enforcement on. 2021-05-10 12:31:09 DEBUG rasax.community.database.utils - Turned on SQLite WAL mode. 2021-05-10 12:31:09 DEBUG rasax.community.database.utils - Turned SQLite foreign key enforcement off. 2021-05-10 12:31:09 DEBUG rasax.community.database.utils - Turned on SQLite WAL mode. 2021-05-10 12:31:09 DEBUG rasax.community.database.utils - Turned SQLite foreign key enforcement on. 2021-05-10 12:31:09 DEBUG rasax.community.database.utils - Turned on SQLite WAL mode. 2021-05-10 12:31:09 DEBUG rasax.community.sql_migrations - Schema migrations finished. 2021-05-10 12:31:09 DEBUG rasax.community.database.utils - Turned SQLite foreign key enforcement on. 2021-05-10 12:31:09 DEBUG rasax.community.database.utils - Turned on SQLite WAL mode. 2021-05-10 12:31:09 DEBUG rasax.community.database.utils - Turned SQLite foreign key enforcement on. 2021-05-10 12:31:09 DEBUG rasax.community.database.utils - Turned on SQLite WAL mode. 2021-05-10 12:31:09 DEBUG rasax.community.database.utils - Turned SQLite foreign key enforcement on. 2021-05-10 12:31:09 DEBUG rasax.community.database.utils - Turned on SQLite WAL mode. 2021-05-10 12:31:09 DEBUG rasax.community.sql_migrations - Found existing system system user ‘system_user’. 2021-05-10 12:31:09 DEBUG rasax.community.services.user_service - Found user: ‘me’. 2021-05-10 12:31:09 DEBUG rasax.community.services.user_service - Updated password for user ‘me’ to ‘s2Tew7mlFT3N’. 2021-05-10 12:31:09 DEBUG rasax.community.services.settings_service - {‘language’: ‘en’, ‘pipeline’: None, ‘policies’: None} 2021-05-10 12:31:09 DEBUG rasax.community.initialise - Loaded local configuration from ‘/home/weiping/Desktop/rasa_demo/config.yml’ into database 2021-05-10 12:31:09 DEBUG rasa.shared.nlu.training_data.loading - Training data format of ‘data/nlu.yml’ is ‘rasa_yml’. 2021-05-10 12:31:09 DEBUG rasa.shared.nlu.training_data.loading - Training data format of ‘data/rules.yml’ is ‘unk’. 2021-05-10 12:31:09 DEBUG rasa.shared.nlu.training_data.loading - Training data format of ‘data/stories.yml’ is ‘unk’. 2021-05-10 12:31:09 DEBUG rasax.community.services.story_service - Injecting stories from file ‘data/rules.yml’ to database (test stories: False). 2021-05-10 12:31:09 DEBUG rasax.community.services.story_service - Injecting stories from file ‘data/stories.yml’ to database (test stories: False). 2021-05-10 12:31:10 DEBUG rasax.community.services.domain_service - Intents ‘[‘deny’, ‘mood_great’, ‘greet’, ‘bot_challenge’, ‘affirm’, ‘mood_unhappy’, ‘goodbye’]’ are already contained in domain for project_id ‘default’. 2021-05-10 12:31:10 DEBUG rasax.community.services.story_service - Injecting stories from file ‘tests/test_stories.yml’ to database (test stories: True). 2021-05-10 12:31:10 INFO rasa.shared.utils.validation - The ‘version’ key is missing in the training data file /tmp/tmp1lho4dp0. Rasa Open Source will read the file as a version ‘2.0’ file. See Training Data Format. 2021-05-10 12:31:10 DEBUG rasax.community.services.domain_service - Intents ‘[‘deny’, ‘mood_great’, ‘greet’, ‘bot_challenge’, ‘affirm’, ‘mood_unhappy’, ‘goodbye’]’ are already contained in domain for project_id ‘default’. 2021-05-10 12:31:10 DEBUG rasax.community.initialise - Injected 5 Core stories. 2021-05-10 12:31:10 DEBUG rasax.community.initialise - Injected 7 test stories. 2021-05-10 12:31:10 DEBUG rasax.community.services.data_service - Injecting NLU data from file ‘data/nlu.yml’ to database. 2021-05-10 12:31:10 DEBUG rasa.shared.nlu.training_data.loading - Training data format of ‘data/nlu.yml’ is ‘rasa_yml’. 2021-05-10 12:31:10 DEBUG rasax.community.database.utils - Turned SQLite foreign key enforcement on. 2021-05-10 12:31:10 DEBUG rasax.community.database.utils - Turned on SQLite WAL mode. 2021-05-10 12:31:10 DEBUG rasax.community.services.domain_service - Intents ‘[‘greet’, ‘goodbye’, ‘affirm’, ‘deny’, ‘mood_great’, ‘mood_unhappy’, ‘bot_challenge’]’ are already contained in domain for project_id ‘default’. 2021-05-10 12:31:10 DEBUG rasax.community.initialise - Injected 69 NLU training data examples. 2021-05-10 12:31:10 WARNING rasax.community.services.insights.insight_service - No local evaluation result files found. 2021-05-10 12:31:10 DEBUG rasax.community.caches.cached_query - Rasa X will use <class ‘rasax.community.caches.stub_cache.StubCache’> for caching queries. 2021-05-10 12:31:10 DEBUG urllib3.connectionpool - Starting new HTTPS connection (1): api.segment.io:443 2021-05-10 12:31:10 DEBUG rasax.community.caches.cached_query - Cache miss, executed SQL query: SELECT conversation.sender_id, conversation.number_user_messages, conversation.latest_input_channel, conversation.latest_event_time, conversation.in_training_data, conversation.review_status, conversation.minimum_action_confidence, conversation.maximum_action_confidence, conversation.minimum_intent_confidence, conversation.maximum_intent_confidence, conversation.evaluation, conversation.interactive, conversation.created_by FROM conversation; Query result: 0 2021-05-10 12:31:10 DEBUG rasax.community.caches.cached_query - Cache miss, executed SQL query: SELECT conversation_event.id, conversation_event.conversation_id, conversation_event.type_name, conversation_event.timestamp, conversation_event.intent_name, conversation_event.action_name, conversation_event.slot_name, conversation_event.slot_value, conversation_event.policy, conversation_event.is_flagged, conversation_event.data, conversation_event.evaluation, conversation_event.rasa_environment FROM conversation_event; Query result: 0 2021-05-10 12:31:10 DEBUG urllib3.connectionpool - https://api.segment.io:443 “POST /v1/track HTTP/1.1” 200 21 2021-05-10 12:31:10 INFO root - Enabling coroutine debugging. Loop id 92280864. 2021-05-10 12:31:10 DEBUG root - Could not load interpreter from ‘None’. 2021-05-10 12:31:11 DEBUG rasa.core.brokers.sql - SQLEventBroker: Connecting to database: ‘sqlite:///events.db’. 2021-05-10 12:31:11 DEBUG rasa.core.brokers.broker - Instantiated event broker to ‘SQLEventBroker’. 2021-05-10 12:31:11 DEBUG rasa.core.tracker_store - Connected to InMemoryTrackerStore. 2021-05-10 12:31:11 DEBUG rasa.core.lock_store - Connected to lock store ‘InMemoryLockStore’. 2021-05-10 12:31:11 DEBUG rasa.core.nlg.generator - Instantiated NLG to ‘TemplatedNaturalLanguageGenerator’. 2021-05-10 12:31:11 DEBUG rasa.core.agent - Requesting model from server http://localhost:5002/api/projects/default/models/tags/production… 2021-05-10 12:31:11 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:default [Connection refused]. 2021-05-10 12:31:11 DEBUG rasa.core.agent - No new model found at URL http://localhost:5002/api/projects/default/models/tags/production 2021-05-10 12:31:11 INFO root - Rasa server is up and running. 2021-05-10 12:31:12 DEBUG urllib3.connectionpool - https://api.segment.io:443 “POST /v1/track HTTP/1.1” 200 21 2021-05-10 12:31:12 DEBUG urllib3.connectionpool - Starting new HTTPS connection (1): api.segment.io:443 2021-05-10 12:31:13 ERROR asyncio - Task was destroyed but it is pending! task: <Task pending name=‘Task-8’ coro=<TCPConnector._resolve_host() running at /home/weiping/Desktop/venv/lib/python3.8/site-packages/aiohttp/connector.py:865> wait_for=<Future finished exception=gaierror(-2, ‘Name or service not known’)> cb=[TCPConnector._create_direct_connection..drop_exception() at /home/weiping/Desktop/venv/lib/python3.8/site-packages/aiohttp/connector.py:1002]> 2021-05-10 12:31:13 ERROR asyncio - Unhandled exception in event loop Traceback (most recent call last): File “uvloop/dns.pyx”, line 389, in uvloop.loop.__on_addrinfo_resolved [2021-05-10 12:31:17 +0800] [2124] [INFO] Starting worker [2124] 2021-05-10 12:31:17 INFO sanic.root - Starting worker [2124] 2021-05-10 12:31:19 DEBUG rasa.core.agent - Requesting model from server http://localhost:5002/api/projects/default/models/tags/production… 2021-05-10 12:31:19 DEBUG rasax.community.services.model_service - Model discovery completed. 2021-05-10 12:31:19 DEBUG rasax.community.database.utils - Turned SQLite foreign key enforcement on. 2021-05-10 12:31:19 DEBUG rasax.community.database.utils - Turned on SQLite WAL mode. 2021-05-10 12:31:20 DEBUG rasa.core.agent - Unzipped model to ‘/tmp/tmpmyc6ptee’ 2021-05-10 12:31:20 DEBUG rasa.core.agent - Found new model with fingerprint 94a28bef3c63303bab3a1af2dfbf20ce. Loading… 2021-05-10 12:31:20 DEBUG rasa.utils.tensorflow.models - Loading the model from /tmp/tmpmyc6ptee/nlu/component_5_DIETClassifier.tf_model with finetune_mode=False… 2021-05-10 12:31:20 DEBUG rasa.nlu.classifiers.diet_classifier - Following metrics will be logged during training: 2021-05-10 12:31:20 DEBUG rasa.nlu.classifiers.diet_classifier - t_loss (total loss) 2021-05-10 12:31:20 DEBUG rasa.nlu.classifiers.diet_classifier - i_acc (intent acc) 2021-05-10 12:31:20 DEBUG rasa.nlu.classifiers.diet_classifier - i_loss (intent loss) 2021-05-10 12:31:28 DEBUG rasa.utils.tensorflow.models - Finished loading the model. /home/weiping/Desktop/venv/lib/python3.8/site-packages/rasa/utils/train_utils.py:561: UserWarning: model_confidence is set to softmax. It is recommended to try using model_confidence=linear_norm to make it easier to tune fallback thresholds. rasa.shared.utils.io.raise_warning( 2021-05-10 12:31:28 DEBUG rasa.nlu.classifiers.diet_classifier - Failed to load model for ‘ResponseSelector’. Maybe you did not provide enough training data and no model was trained or the path ‘/tmp/tmpmyc6ptee/nlu’ doesn’t exist? 2021-05-10 12:31:28 DEBUG rasa.utils.tensorflow.models - Loading the model from /tmp/tmpmyc6ptee/core/policy_1_TEDPolicy/ted_policy.tf_model with finetune_mode=False…