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âŚ
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âŚ