Closed sushilr007 closed 3 years ago
Hello @degiz Can you please suggest me something about this? I am waiting for your response. Thank you.
Your issue is not with your action server, it's from your Rasa server; the logs show that the action server started, but rasa-server
returned with exit code 0.
Try this for your docker-compose.yml file (it basically just runs both servers explicitly)`:
version: '3'
services:
rasa:
container_name: "rasa_server"
build:
context: backend
command:
- run
ports:
- "5005:5005"
action_server:
container_name: "action_server"
build:
context: actions
command:
- start
volumes:
- ./actions:/app/actions
ports:
- 5055:5055
@ortsaCniveK I have tried that now I am getting this...
endpoints.yml
action_endpoint:
url: "http://localhost:5055/webhook"
Building rasa
Step 1/10 : FROM rasa/rasa:1.10.0-full
---> 540ad250374c
Step 2/10 : USER root
---> Using cache
---> f64308a2acc6
Step 3/10 : WORKDIR /app
---> Using cache
---> 8242852fc836
Step 4/10 : COPY . /app
---> Using cache
---> 8bffc3b54b5c
Step 5/10 : COPY ./data /app/data
---> Using cache
---> c5d9782ce076
Step 6/10 : RUN rasa train -c ./config.yml -d ./domain.yml --data ./data --debug
---> Using cache
---> 4b546f65eef8
Step 7/10 : VOLUME /app
---> Using cache
---> ca626a8960d4
Step 8/10 : VOLUME /app/data
---> Using cache
---> 69ca5ac09967
Step 9/10 : VOLUME /app/models
---> Using cache
---> f4f61cb9b9a5
Step 10/10 : CMD ["run", "--cors" ,"*", "-m" ,"/app/models" ,"--enable-api" ,"--log-file", "out.log" ,"--endpoints" ,"endpoints.yml" ,"--debug"]
---> Using cache
---> 49ac9b429eb1
Successfully built 49ac9b429eb1
Successfully tagged velementchatbot_rasa:latest
Building action_server
Step 1/6 : FROM rasa/rasa-sdk:1.10.0
---> 5114b1f9a8af
Step 2/6 : WORKDIR /app
---> Using cache
---> 40adaf479d4c
Step 3/6 : USER root
---> Using cache
---> faf6811128e8
Step 4/6 : RUN python -m pip install --upgrade pip
---> Using cache
---> 8392307b8b01
Step 5/6 : COPY . /app/actions
---> Using cache
---> 702ece7e52ea
Step 6/6 : VOLUME /app
---> Using cache
---> 08ab8fd27ba0
Successfully built 08ab8fd27ba0
Successfully tagged velementchatbot_action_server:latest
Recreating rasa_server ... done Starting action_server ... done Attaching to action_server, rasa_server
action_server | 2020-05-22 04:23:56 INFO rasa_sdk.endpoint - Starting action endpoint server...
rasa_server | 2020-05-22 04:24:09 DEBUG rasa.cli.utils - Parameter 'credentials' not set. Using default location 'credentials.yml' instead.
rasa_server | 2020-05-22 04:24:12 DEBUG rasa.core.utils - Available web server routes:
rasa_server | /conversations/<conversation_id>/messages POST add_message
rasa_server | /conversations/<conversation_id>/tracker/events POST append_events
rasa_server | /webhooks/rasa GET custom_webhook_RasaChatInput.health
rasa_server | /webhooks/rasa/webhook POST custom_webhook_RasaChatInput.receive
rasa_server | /webhooks/rest GET custom_webhook_RestInput.health
rasa_server | /webhooks/rest/webhook POST custom_webhook_RestInput.receive
rasa_server | /model/test/intents POST evaluate_intents
rasa_server | /model/test/stories POST evaluate_stories
rasa_server | /conversations/<conversation_id>/execute POST execute_action
rasa_server | /domain GET get_domain
rasa_server | /socket.io OPTIONS handle_request
rasa_server | / GET hello
rasa_server | /model PUT load_model
rasa_server | /model/parse POST parse
rasa_server | /conversations/<conversation_id>/predict POST predict
rasa_server | /conversations/<conversation_id>/tracker/events PUT replace_events
rasa_server | /conversations/<conversation_id>/story GET retrieve_story
rasa_server | /conversations/<conversation_id>/tracker GET retrieve_tracker
rasa_server | /webhooks/socketio GET socketio_webhook.health
rasa_server | /status GET status
rasa_server | /model/predict POST tracker_predict
rasa_server | /model/train POST train
rasa_server | /conversations/<conversation_id>/trigger_intent POST trigger_intent
rasa_server | /model DELETE unload_model
rasa_server | /version GET version
rasa_server | 2020-05-22 04:24:12 INFO root - Starting Rasa server on http://localhost:5005
rasa_server | 2020-05-22 04:24:12 DEBUG rasa.core.utils - Using the default number of Sanic workers (1).
rasa_server | 2020-05-22 04:24:12 INFO root - Enabling coroutine debugging. Loop id 94726074988688.
rasa_server | 2020-05-22 04:24:12 DEBUG rasa.model - Extracted model to '/tmp/tmpab95wyly'.
rasa_server | 2020-05-22 04:24:36 INFO rasa.nlu.components - Added 'SpacyNLP' to component cache. Key 'SpacyNLP-en'.
rasa_server | 2020-05-22 04:24:36 DEBUG rasa.utils.tensorflow.models - Loading the model ...
rasa_server | 2020-05-22 04:24:36.619528: E tensorflow/stream_executor/cuda/cuda_driver.cc:351] failed call to cuInit: UNKNOWN ERROR (303)
rasa_server | 2020-05-22 04:24:38 DEBUG rasa.utils.tensorflow.models - Finished loading the model.
rasa_server | 2020-05-22 04:24:38 DEBUG rasa.utils.tensorflow.models - Building tensorflow prediction graph...
rasa_server | 2020-05-22 04:24:44 DEBUG rasa.utils.tensorflow.models - Finished building tensorflow prediction graph.
rasa_server | 2020-05-22 04:24:44 DEBUG rasa.core.tracker_store - Attempting to connect to database via 'sqlite:///vElementChatbot.db'.
rasa_server | 2020-05-22 04:24:44 DEBUG rasa.core.tracker_store - Connection to SQL database 'vElementChatbot.db' successful.
rasa_server | 2020-05-22 04:24:44 DEBUG rasa.core.tracker_store - Connected to SQLTrackerStore.
rasa_server | 2020-05-22 04:24:44 DEBUG rasa.core.lock_store - Connected to lock store 'InMemoryLockStore'.
rasa_server | 2020-05-22 04:24:44 DEBUG rasa.model - Extracted model to '/tmp/tmpbtqxxbwp'.
rasa_server | 2020-05-22 04:24:44 DEBUG pykwalify.compat - Using yaml library: /opt/venv/lib/python3.7/site-packages/ruamel/yaml/__init__.py
rasa_server | 2020-05-22 04:24:44 DEBUG rasa.utils.tensorflow.models - Loading the model ...
rasa_server | 2020-05-22 04:24:44 DEBUG rasa.utils.tensorflow.models - Finished loading the model.
rasa_server | 2020-05-22 04:24:44 DEBUG rasa.utils.tensorflow.models - Building tensorflow prediction graph...
rasa_server | 2020-05-22 04:24:46 DEBUG rasa.utils.tensorflow.models - Finished building tensorflow prediction graph.
rasa_server | 2020-05-22 04:24:46 INFO rasa.core.policies.ensemble - MappingPolicy not included in policy ensemble. Default intents 'restart and back will not trigger actions 'action_restart' and 'action_back'.
rasa_server | 2020-05-22 04:24:46 DEBUG rasa.core.nlg.generator - Instantiated NLG to 'TemplatedNaturalLanguageGenerator'.
rasa_server | 2020-05-22 04:24:50 DEBUG rasa.core.channels.socketio - User 78aebd46d2e043b987d81262993cc391 connected to socketIO endpoint.
rasa_server | 2020-05-22 04:24:50 DEBUG rasa.core.channels.socketio - User 76cb586c5f954e77b94e6b6ba5fb10b3 connected to socketIO endpoint.
rasa_server | 2020-05-22 04:24:51 DEBUG rasa.core.channels.socketio - User 76cb586c5f954e77b94e6b6ba5fb10b3 connected to socketIO endpoint.
rasa_server | 2020-05-22 04:24:55 DEBUG rasa.core.tracker_store - Recreating tracker from sender id '2951e148ede342719e99f67f3ba69a01'
rasa_server | 2020-05-22 04:24:55 DEBUG rasa.core.processor - The latest session for conversation ID '2951e148ede342719e99f67f3ba69a01' has expired.
rasa_server | 2020-05-22 04:24:55 DEBUG rasa.core.processor - Starting a new session for conversation ID '2951e148ede342719e99f67f3ba69a01'.
rasa_server | 2020-05-22 04:24:55 DEBUG rasa.core.processor - Action 'action_session_start' ended with events '[<rasa.core.events.SessionStarted object at 0x7f658799a6d0>, <rasa.core.events.ActionExecuted object at 0x7f657c3141d0>]'.
rasa_server | 2020-05-22 04:24:55 DEBUG rasa.core.processor - Received user message 'partners' with intent '{'name': 'partners', 'confidence': 0.9998556971549988}' and entities '[]'
rasa_server | 2020-05-22 04:24:55 DEBUG rasa.core.processor - Logged UserUtterance - tracker now has 18 events.
rasa_server | 2020-05-22 04:24:55 DEBUG rasa.core.policies.memoization - Current tracker state [None, None, None, {}, {'intent_partners': 1.0, 'prev_action_listen': 1.0}]
rasa_server | 2020-05-22 04:24:55 DEBUG rasa.core.policies.memoization - There is a memorised next action 'action_partner'
rasa_server | 2020-05-22 04:24:55 DEBUG rasa.core.policies.ensemble - Predicted next action using policy_0_MemoizationPolicy
rasa_server | 2020-05-22 04:24:55 DEBUG rasa.core.processor - Predicted next action 'action_partner' with confidence 1.00.
rasa_server | 2020-05-22 04:24:55 DEBUG rasa.core.actions.action - Calling action endpoint to run action 'action_partner'.
rasa_server | 2020-05-22 04:24:55 ERROR rasa.core.actions.action - Failed to run custom action 'action_partner'. Couldn't connect to the server at 'http://localhost:5055/webhook'. Is the server running? Error: Cannot connect to host localhost:5055 ssl:default [Cannot assign requested address]
rasa_server | 2020-05-22 04:24:55 ERROR rasa.core.processor - Encountered an exception while running action 'action_partner'. Bot will continue, but the actions events are lost. Please check the logs of your action server for more information.
rasa_server | 2020-05-22 04:24:55 DEBUG rasa.core.processor - Failed to execute custom action.
rasa_server | Traceback (most recent call last):
rasa_server | File "/opt/venv/lib/python3.7/site-packages/aiohttp/connector.py", line 936, in _wrap_create_connection
rasa_server | return await self._loop.create_connection(*args, **kwargs) # type: ignore # noqa
rasa_server | File "uvloop/loop.pyx", line 1974, in create_connection
rasa_server | File "uvloop/loop.pyx", line 1950, in uvloop.loop.Loop.create_connection
rasa_server | File "uvloop/handles/tcp.pyx", line 180, in uvloop.loop.TCPTransport.connect
rasa_server | File "uvloop/handles/tcp.pyx", line 202, in uvloop.loop._TCPConnectRequest.connect
rasa_server | OSError: [Errno 99] Cannot assign requested address
rasa_server |
rasa_server | The above exception was the direct cause of the following exception:
rasa_server |
rasa_server | Traceback (most recent call last):
rasa_server | File "/opt/venv/lib/python3.7/site-packages/rasa/core/actions/action.py", line 549, in run
rasa_server | json=json_body, method="post", timeout=DEFAULT_REQUEST_TIMEOUT
rasa_server | File "/opt/venv/lib/python3.7/site-packages/rasa/utils/endpoints.py", line 146, in request
rasa_server | **kwargs,
rasa_server | File "/opt/venv/lib/python3.7/site-packages/aiohttp/client.py", line 1012, in __aenter__
rasa_server | self._resp = await self._coro
rasa_server | File "/opt/venv/lib/python3.7/site-packages/aiohttp/client.py", line 483, in _request
rasa_server | timeout=real_timeout
rasa_server | File "/opt/venv/lib/python3.7/site-packages/aiohttp/connector.py", line 523, in connect
rasa_server | proto = await self._create_connection(req, traces, timeout)
rasa_server | File "/opt/venv/lib/python3.7/site-packages/aiohttp/connector.py", line 859, in _create_connection
rasa_server | req, traces, timeout)
rasa_server | File "/opt/venv/lib/python3.7/site-packages/aiohttp/connector.py", line 1004, in _create_direct_connection
rasa_server | raise last_exc
rasa_server | File "/opt/venv/lib/python3.7/site-packages/aiohttp/connector.py", line 986, in _create_direct_connection
rasa_server | req=req, client_error=client_error)
rasa_server | File "/opt/venv/lib/python3.7/site-packages/aiohttp/connector.py", line 943, in _wrap_create_connection
rasa_server | raise client_error(req.connection_key, exc) from exc
rasa_server | aiohttp.client_exceptions.ClientConnectorError: Cannot connect to host localhost:5055 ssl:default [Cannot assign requested address]
rasa_server |
rasa_server | During handling of the above exception, another exception occurred:
rasa_server |
rasa_server | Traceback (most recent call last):
rasa_server | File "/opt/venv/lib/python3.7/site-packages/rasa/core/processor.py", line 644, in _run_action
rasa_server | events = await action.run(output_channel, nlg, tracker, self.domain)
rasa_server | File "/opt/venv/lib/python3.7/site-packages/rasa/core/actions/action.py", line 580, in run
rasa_server | raise Exception("Failed to execute custom action.")
rasa_server | Exception: Failed to execute custom action.
rasa_server | 2020-05-22 04:24:55 DEBUG rasa.core.processor - Action 'action_partner' ended with events '[]'.
rasa_server | 2020-05-22 04:24:55 DEBUG rasa.core.policies.memoization - Current tracker state [None, None, {}, {'intent_partners': 1.0, 'prev_action_listen': 1.0}, {'prev_action_partner': 1.0, 'intent_partners': 1.0}]
rasa_server | 2020-05-22 04:24:55 DEBUG rasa.core.policies.memoization - There is a memorised next action 'action_listen'
rasa_server | 2020-05-22 04:24:55 DEBUG rasa.core.policies.ensemble - Predicted next action using policy_0_MemoizationPolicy
rasa_server | 2020-05-22 04:24:55 DEBUG rasa.core.processor - Predicted next action 'action_listen' with confidence 1.00.
rasa_server | 2020-05-22 04:24:55 DEBUG rasa.core.processor - Action 'action_listen' ended with events '[]'.
rasa_server | 2020-05-22 04:24:56 DEBUG rasa.core.tracker_store - Tracker with sender_id '2951e148ede342719e99f67f3ba69a01' stored to database
rasa_server | 2020-05-22 04:24:56 DEBUG rasa.core.lock_store - Deleted lock for conversation '2951e148ede342719e99f67f3ba69a
Ah I see; you need to change your endpoints.yml
to match the action server name. Your rasa container is looking for the action server in http://localhost:5055/webhook
. You'll want to change your config's action_endpoint
to match the container name, so http://action_server:5055/webhook
. You'll also want to make sure to network the containers together, just as the example docker-compose.yml
does.
Unable to run rasa server from Dockerfile
Issue: : After executing docker-compose up --build -d
my rasa server and action server logs are just showing that it is "starting" but they are not up and running. I have attached the folder screenshot of "Actions" and "Backend". I have followed the same folder structure as mentioned in the issue #5869 .
Now my docker-compose build output is as below.
Creating network "backend2_rasa-network" with the default driver Building rasa Step 1/10 : FROM rasa/rasa:1.10.0-full ---> 540ad250374c Step 2/10 : USER root ---> Running in e830ce429a69 Removing intermediate container e830ce429a69 ---> 422974b92415 Step 3/10 : WORKDIR /app ---> Running in cc70f451e8a5 Removing intermediate container cc70f451e8a5 ---> 26842bd42af3 Step 4/10 : COPY . /app ---> cf1ff3c74949 Step 5/10 : COPY ./data /app/data ---> 3c52544e9e6e Step 6/10 : RUN rasa train -c ./config.yml -d ./domain.yml --data ./data --debug ---> Running in 626120a02a6a 2020-08-01 13:21:53 DEBUG rasa.nlu.training_data.loading - Training data format of './data/nlu.md' is 'md'. 2020-08-01 13:21:53 DEBUG rasa.nlu.training_data.loading - Training data format of './data/stories.md' is 'unk'. 2020-08-01 13:21:53 DEBUG pykwalify.compat - Using yaml library: /opt/venv/lib/python3.7/site-packages/ruamel/yaml/init.py 2020-08-01 13:21:53 DEBUG rasa.nlu.training_data.loading - Training data format of './data/nlu.md' is 'md'. 2020-08-01 13:21:53 DEBUG rasa.nlu.training_data.loading - Training data format of './data/nlu.md' is 'md'. 2020-08-01 13:21:55 DEBUG rasa.core.nlg.generator - Instantiated NLG to 'TemplatedNaturalLanguageGenerator'. 2020-08-01 13:21:55 DEBUG rasa.core.training.generator - Generated trackers will be deduplicated based on their unique last 5 states. 2020-08-01 13:21:55 DEBUG rasa.core.training.generator - Number of augmentation rounds is 3 2020-08-01 13:21:55 DEBUG rasa.core.training.generator - Starting data generation round 0 ... (with 1 trackers) Processed Story Blocks: 100%|██████████| 10/10 [00:00<00:00, 2020.96it/s, # trackers=1] 2020-08-01 13:21:55 DEBUG rasa.core.training.generator - Finished phase (10 training samples found). 2020-08-01 13:21:55 DEBUG rasa.core.training.generator - Data generation rounds finished. 2020-08-01 13:21:55 DEBUG rasa.core.training.generator - Found 0 unused checkpoints 2020-08-01 13:21:55 DEBUG rasa.core.training.generator - Starting augmentation round 0 ... (with 10 trackers) Processed Story Blocks: 100%|██████████| 10/10 [00:00<00:00, 462.07it/s, # trackers=10] 2020-08-01 13:21:55 DEBUG rasa.core.training.generator - Finished phase (110 training samples found). 2020-08-01 13:21:55 DEBUG rasa.core.training.generator - Starting augmentation round 1 ... (with 50 trackers) Processed Story Blocks: 100%|██████████| 10/10 [00:00<00:00, 107.02it/s, # trackers=50] 2020-08-01 13:21:55 DEBUG rasa.core.training.generator - Finished phase (560 training samples found). 2020-08-01 13:21:55 DEBUG rasa.core.training.generator - Starting augmentation round 2 ... (with 50 trackers) Processed Story Blocks: 100%|██████████| 10/10 [00:00<00:00, 95.27it/s, # trackers=50] 2020-08-01 13:21:55 DEBUG rasa.core.training.generator - Finished phase (990 training samples found). 2020-08-01 13:21:55 DEBUG rasa.core.training.generator - Found 990 training trackers. 2020-08-01 13:21:55 DEBUG rasa.core.training.generator - Subsampled to 500 augmented training trackers. 2020-08-01 13:21:55 DEBUG rasa.core.training.generator - There are 10 original trackers. 2020-08-01 13:21:55 DEBUG rasa.core.agent - Agent trainer got kwargs: {} 2020-08-01 13:21:55 DEBUG rasa.core.featurizers - Creating states and action examples from collected trackers (by MaxHistoryTrackerFeaturizer(NoneType))... Processed trackers: 100%|██████████| 10/10 [00:00<00:00, 775.82it/s, # actions=21] 2020-08-01 13:21:55 DEBUG rasa.core.featurizers - Created 21 action examples. Processed actions: 21it [00:00, 3649.49it/s, # examples=21] 2020-08-01 13:21:55 DEBUG rasa.core.policies.memoization - Memorized 21 unique examples. 2020-08-01 13:21:55 DEBUG rasa.core.featurizers - Creating states and action examples from collected trackers (by MaxHistoryTrackerFeaturizer(LabelTokenizerSingleStateFeaturizer))... Processed trackers: 100%|██████████| 510/510 [00:00<00:00, 613.84it/s, # actions=995] 2020-08-01 13:21:56 DEBUG rasa.core.featurizers - Created 995 action examples. 2020-08-01 13:21:56.271640: E tensorflow/stream_executor/cuda/cuda_driver.cc:351] failed call to cuInit: UNKNOWN ERROR (303) 2020-08-01 13:21:56 DEBUG rasa.utils.tensorflow.models - Building tensorflow train graph... 2020-08-01 13:22:06 DEBUG rasa.utils.tensorflow.models - Finished building tensorflow train graph. Epochs: 100%|██████████| 100/100 [01:28<00:00, 1.13it/s, t_loss=0.081, loss=0.005, acc=1.000] 2020-08-01 13:23:35 INFO rasa.utils.tensorflow.models - Finished training. 2020-08-01 13:23:36 INFO rasa.core.agent - Persisted model to '/tmp/tmpcig525ib/core' 2020-08-01 13:23:36 DEBUG rasa.nlu.training_data.loading - Training data format of './data/nlu.md' is 'md'. 2020-08-01 13:23:36 INFO rasa.nlu.training_data.training_data - Training data stats: 2020-08-01 13:23:36 INFO rasa.nlu.training_data.training_data - Number of intent examples: 43 (7 distinct intents) 2020-08-01 13:23:36 INFO rasa.nlu.training_data.training_data - Found intents: 'mood_unhappy', 'goodbye', 'bot_challenge', 'mood_great', 'greet', 'affirm', 'deny' 2020-08-01 13:23:36 INFO rasa.nlu.training_data.training_data - Number of response examples: 0 (0 distinct responses) 2020-08-01 13:23:36 INFO rasa.nlu.training_data.training_data - Number of entity examples: 0 (0 distinct entities) 2020-08-01 13:23:36 DEBUG rasa.nlu.training_data.training_data - Validating training data... 2020-08-01 13:23:36 INFO rasa.nlu.model - Starting to train component WhitespaceTokenizer 2020-08-01 13:23:36 INFO rasa.nlu.model - Finished training component. 2020-08-01 13:23:36 INFO rasa.nlu.model - Starting to train component RegexFeaturizer 2020-08-01 13:23:36 INFO rasa.nlu.model - Finished training component. 2020-08-01 13:23:36 INFO rasa.nlu.model - Starting to train component LexicalSyntacticFeaturizer 2020-08-01 13:23:36 INFO rasa.nlu.model - Finished training component. 2020-08-01 13:23:36 INFO rasa.nlu.model - Starting to train component CountVectorsFeaturizer 2020-08-01 13:23:36 DEBUG rasa.nlu.featurizers.sparse_featurizer.count_vectors_featurizer - No text provided for response attribute in any messages of training data. Skipping training a CountVectorizer for it. 2020-08-01 13:23:36 INFO rasa.nlu.model - Finished training component. 2020-08-01 13:23:36 INFO rasa.nlu.model - Starting to train component CountVectorsFeaturizer 2020-08-01 13:23:36 DEBUG rasa.nlu.featurizers.sparse_featurizer.count_vectors_featurizer - No text provided for response attribute in any messages of training data. Skipping training a CountVectorizer for it. 2020-08-01 13:23:36 INFO rasa.nlu.model - Finished training component. 2020-08-01 13:23:36 INFO rasa.nlu.model - Starting to train component DIETClassifier /opt/venv/lib/python3.7/site-packages/rasa/utils/common.py:351: UserWarning: You specified 'DIET' to train entities, but no entities are present in the training data. Skip training of entities. 2020-08-01 13:23:36 DEBUG rasa.utils.tensorflow.models - Building tensorflow train graph... 2020-08-01 13:23:45 DEBUG rasa.utils.tensorflow.models - Finished building tensorflow train graph. Epochs: 100%|██████████| 100/100 [00:15<00:00, 6.27it/s, t_loss=1.455, i_loss=0.066, i_acc=1.000] 2020-08-01 13:24:01 INFO rasa.utils.tensorflow.models - Finished training. 2020-08-01 13:24:01 INFO rasa.nlu.model - Finished training component. 2020-08-01 13:24:01 INFO rasa.nlu.model - Starting to train component EntitySynonymMapper 2020-08-01 13:24:01 INFO rasa.nlu.model - Finished training component. 2020-08-01 13:24:01 INFO rasa.nlu.model - Starting to train component ResponseSelector 2020-08-01 13:24:01 INFO rasa.nlu.selectors.response_selector - Retrieval intent parameter was left to its default value. This response selector will be trained on training examples combining all retrieval intents. 2020-08-01 13:24:01 DEBUG rasa.nlu.classifiers.diet_classifier - Cannot train 'ResponseSelector'. No data was provided. Skipping training of the classifier. 2020-08-01 13:24:01 INFO rasa.nlu.model - Finished training component. 2020-08-01 13:24:02 INFO rasa.nlu.model - Successfully saved model into '/tmp/tmpcig525ib/nlu' Training Core model... Core model training completed. Training NLU model... NLU model training completed. Your Rasa model is trained and saved at '/app/models/20200801-132402.tar.gz'. Removing intermediate container 626120a02a6a ---> 72e67a294f8d Step 7/10 : VOLUME /app ---> Running in 211ede077b6f Removing intermediate container 211ede077b6f ---> 694574dbe7d3 Step 8/10 : VOLUME /app/data ---> Running in a4ae0873ccb2 Removing intermediate container a4ae0873ccb2 ---> 60a54ac4ef0e Step 9/10 : VOLUME /app/models ---> Running in a033d61cd329 Removing intermediate container a033d61cd329 ---> 9786b4e0c7aa Step 10/10 : CMD ["run", "--cors" ,"*", "-m" ,"/app/models" ,"--enable-api","--endpoints" ,"endpoints.yml" ,"--debug"] ---> Running in 2cf4560d60ae Removing intermediate container 2cf4560d60ae ---> 2e068c09cae3 Successfully built 2e068c09cae3 Successfully tagged backend2_rasa:latest Building action_server Step 1/6 : FROM rasa/rasa-sdk:1.10.0 ---> 5114b1f9a8af Step 2/6 : WORKDIR /app ---> Using cache ---> c0c5fcb29ea4 Step 3/6 : USER root ---> Using cache ---> dc00e63cd64a Step 4/6 : RUN python -m pip install --upgrade pip --index-url=http://infynexus.ad.infosys.com/nexus/repository/Python_Proxy/simple --trusted-host=infynexus.ad.infosys.com ---> Using cache ---> 112729490a47 Step 5/6 : COPY . /app/actions ---> Using cache ---> 903f5b3d0a0f Step 6/6 : VOLUME /app ---> Using cache ---> 31d8d88be331 Successfully built 31d8d88be331 Successfully tagged backend2_action_server:latest Creating rasa_server ... done Creating backend2_duckling_1 ... done Creating action_server ... done
Can someone please help me what am I missing?
@ortsaCniveK @degiz
Hey @sushilr007 @ShwethaMGitHub
Sorry for the late response. Do you still experience the problem?
@degiz It's working now. thanks!
@ShwethaMGitHub do you still have an issue?
@sushilr007 Is it working for you i am struggling for building docker image please help i need action server to run+ rasa server
@degiz It's working now. thanks!
hi all will you help me?
@sushilr007 i also need help on how did you connected to the UI?
@sushilr007 Is it working for you i am struggling for building docker image please help i need action server to run+ rasa server
This is my docker but I am not using action server.
FROM rasa/rasa:1.9.7 USER root
ENTRYPOINT [] ADD . /app/
RUN python -m pip install --no-cache --upgrade pip
RUN ls /app RUN chmod +x /app/server.sh CMD /app/server.sh
@sushilr007 i also need help on how did you connected to the UI?
For UI I have used botfront/webchat. there you will get whole documentation.
ok so you have only kept the rasa server running on cloud and then connected to the UI witht the URL
@sushilr007 and what about our data does it trains the data what we have (in nlu ,stories , domain) or is it the same data as we have when we do rasa init i mean to say default data and custom data Thanks for helping 👍
I try to run botfront webchat but can not get it working. I copied same folder structure as above . I'm running it in Virtualbox Ubuntu 18:04 environment
docker-compose.yml
version: '3'
services:
rasa:
container_name: "rasa_server"
networks: ['rasa-network']
build:
context: backend
command:
- run
ports:
- "5005:5005"
action_server:
container_name: "action_server"
networks: ['rasa-network']
build:
context: actions
command:
- start
volumes:
- ./actions:/app/actions
ports:
- 5055:5055
networks: {rasa-network: {}}
index.html
I tried here these
socketUrl: "http://rasa_server:5005", socketUrl: "http://localhost:5005", socketUrl: "http://rasa-network:5005",
Nothing worked
<!doctype html>
<html>
<head>
</head>
<body>
<div id="webchat"></div>
<script src="https://cdn.jsdelivr.net/npm/rasa-webchat/lib/index.min.js"></script>
// you can add a version tag if you need, e.g for version 0.11.5 https://cdn.jsdelivr.net/npm/rasa-webchat@0.11.5/lib/index.min.js
<script>
WebChat.default.init({
selector: "#webchat",
initPayload: "/aloitus",
customData: {"language": "en"}, // arbitrary custom data. Stay minimal as this will be added to the socket
socketUrl: "http://rasa_server:5005",
socketPath: "/socket.io/",
title: "TalHal bot",
subtitle: "alaotsikko",
params: {"storage": "session"} // can be set to "local" or "session". details in storage section.
})
</script>
</body>
</html>
endpoints.yml If I uncomment these rasa server starts but exits in few seconds
#action_endpoint:
#url: "http://action_server:5055/webhook"
containers running
linttu@linttu-VirtualBox:~/rasaProd/rasaTalHal$ docker ps -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
1dd0cf8ee2e3 rasatalhal_rasa "rasa run" 52 minutes ago Up 52 minutes 0.0.0.0:5005->5005/tcp rasa_server
427254084d41 rasatalhal_action_server "./entrypoint.sh sta…" 52 minutes ago Up 52 minutes 0.0.0.0:5055->5055/tcp action_server
Active servers
linttu@linttu-VirtualBox:~/rasaProd/rasaTalHal$ sudo netstat -plnt
[sudo] password for linttu:
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 127.0.0.53:53 0.0.0.0:* LISTEN 319/systemd-resolve
tcp 0 0 127.0.0.1:631 0.0.0.0:* LISTEN 476/cupsd
tcp6 0 0 ::1:631 :::* LISTEN 476/cupsd
tcp6 0 0 :::5055 :::* LISTEN 7745/docker-proxy
tcp6 0 0 :::5005 :::* LISTEN 7853/docker-proxy
tcp6 0 0 :::80 :::* LISTEN 579/apache2
Rasa version: 1.10.0
Rasa SDK version: 1.10.0
Python version: 3.6.5
Operating system: Windows 10
Issue: I have docker-compose file In that I have two container rasa server and action server. but only rasa server is starting not action one. I have actions.py and init.py in the actions folder. folder structure: docker-compose.yml actions └─── actions.py Dockerfile init.py backend └─── Dockerfile config.yml credentials.yml domain.yml endpoints.yml └───data nlu.md stories.md
Error (including full traceback):
Command or request that led to error:
docker-compose.yml:
Dockerfile from action folder:
Dockerfile of rasa server :