2020-02-22 05:14:27 ERROR rasa.core.processor - Encountered an exception while running action ‘action_check_weather’. Bot will continue, but the actions events are lost. Please check the logs of your action server for more information.
DEBUG:rasa_sdk.executor:Received request to run ‘action_check_weather’
ERROR:rasa_sdk.endpoint:No registered action found for name ‘action_check_weather’.
Below is my information on rasa-app pod.
root@rasa-app-65b68df565-b7tdz:/app# ls -lrt actions/actions.py
-rw-r–r--. 1 root root 571 Feb 23 08:13 actions/actions.py
root@rasa-app-65b68df565-b7tdz:/app# cat actions/actions.py
from typing import List, Dict, Text, Any
from rasa_sdk import Action, Tracker
from rasa_sdk.events import SlotSet
from rasa_sdk.executor import ActionExecutor, CollectingDispatcher
from rasa_sdk.utils import is_coroutine_action
class ActionCheckWeather(Action):
def name(self) -> Text:
return “utter_action_check_weather”
if name == “main”:
logging.basicConfig(level=logging.DEBUG)
logging.getLogger(“matplotlib”).setLevel(logging.WARN)
# if you create custom actions, use a module path for the action package to
# point the server to them e.g. "mymodule.actions"
endpoint.run(
None, # action package
constants.DEFAULT_SERVER_PORT, # port of the web server
"*" # cors origins
)
Hi @nhha1602. Your actions.py should not be mounted on your kubernetes cluster. The code for it should be copied into your Docker image for your custom action server: Deploy in a Cluster Environment
It seems you are still on the demo image, and haven’t added your own image. A super simple image might look like:
FROM rasa/rasa-sdk:1.7.0
COPY ./actions /app/actions
if you don’t have any extra dependencies to add to the image.
For example, you can see the Dockerfile we use to create the custom actions image of our demobot: rasa-demo/Dockerfile at master · RasaHQ/rasa-demo · GitHub you can see that we copy all of the actions code inside demo into the container.