Rasa run --enable api equivalent in RasaX kubernetes deployment?
No need to do it What’s the problem you’re facing?
1 Like
Implementing dashbot with my kubernetes deployment
Did you install using the Quick Installation or Helm Chart Installation?
And I meant where are you stuck specifically?
1 Like
Ok so i want to install dashbot into my kubernetes deployment to do that i was told to add
additionalEndpoints:
event_broker:
type: dashbot.rasa.rasa
apiKey: ***
This in the values.yml file which i did. To which i got the following error in my production pod
→
←[92mStarting Rasa X in production mode... 🚀←[0m
←[91mYamlSyntaxException: Failed to read YAML. while constructing a mapping
in "<unicode string>", line 1, column 1:
models:
^ (line: 1)
found duplicate key "event_broker" with value "ordereddict([('apiKey', 'LKppLbMu8oEEjXlMZ7z0M16wuL8RZ9SdUSKV3EK0'), ('type', 'dashbot.rasa.rasa')])" (original value: "ordereddict([('type', 'pika'), ('url', 'rasa-x-1638567806-rabbit'), ('username', 'user'), ('password', <ruamel.yaml.comments.TaggedScalar object at 0x7f6a9b6bab20>), ('port', 5672), ('queues', [<ruamel.yaml.comments.TaggedScalar object at 0x7f6a9b6bac70>])])")
in "<unicode string>", line 40, column 1:
event_broker:
^ (line: 40)
I was told to , disable RabbitMQ
rabbitmq:
# Install should be `true` if the rabbitmq subchart should be used
install: true
# Enabled should be `true` if any version of rabbit is used
enabled: false
Doing this caused the following error in the production pod
kubectl -n rasax logs rasa-x-1638803857-rasa-production-868ff786d-2cnhr
←(0lqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqk←(B
←(0x←(B Rasa Open Source reports anonymous usage telemetry to help improve the product ←(0x←(B
←(0x←(B for all its users. ←(0x←(B
←(0x←(B ←(0x←(B
←(0x←(B If you'd like to opt-out, you can use `rasa telemetry disable`. ←(0x←(B
←(0x←(B To learn more, check out https://rasa.com/docs/rasa/telemetry/telemetry. ←(0x←(B
←(0mqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqj←(B
←[92mStarting Rasa X in production mode... 🚀←[0m
Traceback (most recent call last):
File "/opt/venv/bin/rasa", line 8, in <module>
sys.exit(main())
File "/opt/venv/lib/python3.8/site-packages/rasa/__main__.py", line 121, in main
cmdline_arguments.func(cmdline_arguments)
File "/opt/venv/lib/python3.8/site-packages/rasa/cli/x.py", line 355, in rasa_x
run_in_production(args)
File "/opt/venv/lib/python3.8/site-packages/rasa/cli/x.py", line 414, in run_in_production
_rasa_service(args, endpoints, None, credentials_path)
File "/opt/venv/lib/python3.8/site-packages/rasa/cli/x.py", line 89, in _rasa_service
serve_application(
File "/opt/venv/lib/python3.8/site-packages/rasa/core/run.py", line 178, in serve_application
app = configure_app(
File "/opt/venv/lib/python3.8/site-packages/rasa/core/run.py", line 103, in configure_app
app = server.create_app(
File "/opt/venv/lib/python3.8/site-packages/rasa/server.py", line 650, in create_app
Initialize(
File "/opt/venv/lib/python3.8/site-packages/sanic_jwt/initialization.py", line 133, in __init__
self.__load_configuration()
File "/opt/venv/lib/python3.8/site-packages/sanic_jwt/initialization.py", line 306, in __load_configuration
self.config = self.configuration_class(self.app.config, **self.kwargs)
File "/opt/venv/lib/python3.8/site-packages/sanic_jwt/configuration.py", line 283, in __init__
self._validate_secret()
File "/opt/venv/lib/python3.8/site-packages/sanic_jwt/configuration.py", line 308, in _validate_secret
if self.secret() is None or (
File "/opt/venv/lib/python3.8/site-packages/sanic_jwt/configuration.py", line 134, in __call__
if asyncio.get_event_loop().is_running():
File "/usr/lib/python3.8/asyncio/events.py", line 639, in get_event_loop
raise RuntimeError('There is no current event loop in thread %r.'
RuntimeError: There is no current event loop in thread 'MainThread'.
And the even service & production & worker pod keep crashing