Not sure what to make of this error

I am running into 2 separate issues when trying to deploy:

container ‘rasa-actions-server’ failed with exit code 1.

With the following stacktrace:

2022-11-23 19:48:18.13 UTCrasa-actions-server-5b8b64cd74-qjm4grasa-actions-serverTraceback (most recent call last):
2022-11-23 19:48:18.13 UTCrasa-actions-server-5b8b64cd74-qjm4grasa-actions-server File "/usr/local/bin/rasa", line 5, in <module>
2022-11-23 19:48:18.13 UTCrasa-actions-server-5b8b64cd74-qjm4grasa-actions-server from rasa.__main__ import main
2022-11-23 19:48:18.13 UTCrasa-actions-server-5b8b64cd74-qjm4grasa-actions-server File "/usr/local/lib/python3.8/site-packages/rasa/__main__.py", line 10, in <module>
2022-11-23 19:48:18.13 UTCrasa-actions-server-5b8b64cd74-qjm4grasa-actions-server import rasa.telemetry
2022-11-23 19:48:18.13 UTCrasa-actions-server-5b8b64cd74-qjm4grasa-actions-server File "/usr/local/lib/python3.8/site-packages/rasa/telemetry.py", line 21, in <module>
2022-11-23 19:48:18.13 UTCrasa-actions-server-5b8b64cd74-qjm4grasa-actions-server from rasa import model
2022-11-23 19:48:18.13 UTCrasa-actions-server-5b8b64cd74-qjm4grasa-actions-server File "/usr/local/lib/python3.8/site-packages/rasa/model.py", line 11, in <module>
2022-11-23 19:48:18.13 UTCrasa-actions-server-5b8b64cd74-qjm4grasa-actions-server from rasa.exceptions import ModelNotFound
2022-11-23 19:48:18.13 UTCrasa-actions-server-5b8b64cd74-qjm4grasa-actions-server File "/usr/local/lib/python3.8/site-packages/rasa/exceptions.py", line 5, in <module>
2022-11-23 19:48:18.13 UTCrasa-actions-server-5b8b64cd74-qjm4grasa-actions-server from rasa.shared.exceptions import RasaException
2022-11-23 19:48:18.13 UTCrasa-actions-server-5b8b64cd74-qjm4grasa-actions-server File "/usr/local/lib/python3.8/site-packages/rasa/shared/exceptions.py", line 5, in <module>
2022-11-23 19:48:18.13 UTCrasa-actions-server-5b8b64cd74-qjm4grasa-actions-server from ruamel.yaml.error import (
2022-11-23 19:48:18.13 UTCrasa-actions-server-5b8b64cd74-qjm4grasa-actions-server File "/usr/local/lib/python3.8/site-packages/ruamel/yaml/__init__.py", line 53, in <module>
2022-11-23 19:48:18.13 UTCrasa-actions-server-5b8b64cd74-qjm4grasa-actions-server from .cyaml import * # NOQA
2022-11-23 19:48:18.13 UTCrasa-actions-server-5b8b64cd74-qjm4grasa-actions-server File "/usr/local/lib/python3.8/site-packages/ruamel/yaml/cyaml.py", line 5, in <module>
2022-11-23 19:48:18.13 UTCrasa-actions-server-5b8b64cd74-qjm4grasa-actions-server from _ruamel_yaml import CParser, CEmitter # type: ignore
2022-11-23 19:48:18.13 UTCrasa-actions-server-5b8b64cd74-qjm4grasa-actions-server File "_ruamel_yaml.pyx", line 3, in init _ruamel_yaml
2022-11-23 19:48:18.13 UTCrasa-actions-server-5b8b64cd74-qjm4grasa-actions-serverSystemError: Objects/codeobject.c:131: bad argument to internal function

and separately:

container ‘rasa-server’ failed with exit code 1.

2022-11-23 19:48:29.15 UTCrasa-server-79556d8cfd-66hglrasa-serverTraceback (most recent call last):
2022-11-23 19:48:29.15 UTCrasa-server-79556d8cfd-66hglrasa-server File "/usr/local/bin/rasa", line 5, in <module>
2022-11-23 19:48:29.15 UTCrasa-server-79556d8cfd-66hglrasa-server from rasa.__main__ import main
2022-11-23 19:48:29.15 UTCrasa-server-79556d8cfd-66hglrasa-server File "/usr/local/lib/python3.8/site-packages/rasa/__main__.py", line 10, in <module>
2022-11-23 19:48:29.15 UTCrasa-server-79556d8cfd-66hglrasa-server import rasa.telemetry
2022-11-23 19:48:29.15 UTCrasa-server-79556d8cfd-66hglrasa-server File "/usr/local/lib/python3.8/site-packages/rasa/telemetry.py", line 21, in <module>
2022-11-23 19:48:29.15 UTCrasa-server-79556d8cfd-66hglrasa-server from rasa import model
2022-11-23 19:48:29.15 UTCrasa-server-79556d8cfd-66hglrasa-server File "/usr/local/lib/python3.8/site-packages/rasa/model.py", line 11, in <module>
2022-11-23 19:48:29.15 UTCrasa-server-79556d8cfd-66hglrasa-server from rasa.exceptions import ModelNotFound
2022-11-23 19:48:29.15 UTCrasa-server-79556d8cfd-66hglrasa-server File "/usr/local/lib/python3.8/site-packages/rasa/exceptions.py", line 5, in <module>
2022-11-23 19:48:29.15 UTCrasa-server-79556d8cfd-66hglrasa-server from rasa.shared.exceptions import RasaException
2022-11-23 19:48:29.15 UTCrasa-server-79556d8cfd-66hglrasa-server File "/usr/local/lib/python3.8/site-packages/rasa/shared/exceptions.py", line 5, in <module>
2022-11-23 19:48:29.15 UTCrasa-server-79556d8cfd-66hglrasa-server from ruamel.yaml.error import (
2022-11-23 19:48:29.15 UTCrasa-server-79556d8cfd-66hglrasa-server File "/usr/local/lib/python3.8/site-packages/ruamel/yaml/__init__.py", line 53, in <module>
2022-11-23 19:48:29.15 UTCrasa-server-79556d8cfd-66hglrasa-server from .cyaml import * # NOQA
2022-11-23 19:48:29.15 UTCrasa-server-79556d8cfd-66hglrasa-server File "/usr/local/lib/python3.8/site-packages/ruamel/yaml/cyaml.py", line 5, in <module>
2022-11-23 19:48:29.15 UTCrasa-server-79556d8cfd-66hglrasa-server from _ruamel_yaml import CParser, CEmitter # type: ignore
2022-11-23 19:48:29.15 UTCrasa-server-79556d8cfd-66hglrasa-server File "_ruamel_yaml.pyx", line 3, in init _ruamel_yaml
2022-11-23 19:48:29.15 UTCrasa-server-79556d8cfd-66hglrasa-serverSystemError: Objects/codeobject.c:131: bad argument to internal function

This seems similar to bad argument to internal function · Issue #3812 · aio-libs/aiohttp · GitHub or Bad argument to internal function / 500: server got itself in trouble - haos - Home Assistant Community.

Not an expert on RASA, but could it be that you are using the wrong python version? Or dependencies that work on version X, but not on the version you are using.

If you can share the repository where you are using this, I can help take a look.

I managed to fix this by moving from version 3.8.0b1-stretch to 3.8-buster.

I have one last issue (hopefully last) as I get the error:

container ‘rasa-actions-server’ failed with exit code 1.

with the following output.

2022-11-23 21:20:01.82 UTCrasa-actions-server-79b597c6-4nsprrasa-actions-serverTraceback (most recent call last):
2022-11-23 21:20:01.82 UTCrasa-actions-server-79b597c6-4nsprrasa-actions-server File "/usr/local/bin/rasa", line 8, in <module>
2022-11-23 21:20:01.82 UTCrasa-actions-server-79b597c6-4nsprrasa-actions-server sys.exit(main())
2022-11-23 21:20:01.82 UTCrasa-actions-server-79b597c6-4nsprrasa-actions-server File "/usr/local/lib/python3.8/site-packages/rasa/__main__.py", line 119, in main
2022-11-23 21:20:01.82 UTCrasa-actions-server-79b597c6-4nsprrasa-actions-server cmdline_arguments.func(cmdline_arguments)
2022-11-23 21:20:01.82 UTCrasa-actions-server-79b597c6-4nsprrasa-actions-server File "/usr/local/lib/python3.8/site-packages/rasa/cli/run.py", line 59, in run_actions
2022-11-23 21:20:01.82 UTCrasa-actions-server-79b597c6-4nsprrasa-actions-server sdk.main_from_args(args)
2022-11-23 21:20:01.82 UTCrasa-actions-server-79b597c6-4nsprrasa-actions-server File "/usr/local/lib/python3.8/site-packages/rasa_sdk/__main__.py", line 18, in main_from_args
2022-11-23 21:20:01.82 UTCrasa-actions-server-79b597c6-4nsprrasa-actions-server run(
2022-11-23 21:20:01.82 UTCrasa-actions-server-79b597c6-4nsprrasa-actions-server File "/usr/local/lib/python3.8/site-packages/rasa_sdk/endpoint.py", line 139, in run
2022-11-23 21:20:01.82 UTCrasa-actions-server-79b597c6-4nsprrasa-actions-server app = create_app(
2022-11-23 21:20:01.82 UTCrasa-actions-server-79b597c6-4nsprrasa-actions-server File "/usr/local/lib/python3.8/site-packages/rasa_sdk/endpoint.py", line 82, in create_app
2022-11-23 21:20:01.82 UTCrasa-actions-server-79b597c6-4nsprrasa-actions-server executor.register_package(action_package_name)
2022-11-23 21:20:01.82 UTCrasa-actions-server-79b597c6-4nsprrasa-actions-server File "/usr/local/lib/python3.8/site-packages/rasa_sdk/executor.py", line 262, in register_package
2022-11-23 21:20:01.82 UTCrasa-actions-server-79b597c6-4nsprrasa-actions-server self._import_submodules(package)
2022-11-23 21:20:01.82 UTCrasa-actions-server-79b597c6-4nsprrasa-actions-server File "/usr/local/lib/python3.8/site-packages/rasa_sdk/executor.py", line 225, in _import_submodules
2022-11-23 21:20:01.82 UTCrasa-actions-server-79b597c6-4nsprrasa-actions-server self._import_module(full_name)
2022-11-23 21:20:01.82 UTCrasa-actions-server-79b597c6-4nsprrasa-actions-server File "/usr/local/lib/python3.8/site-packages/rasa_sdk/executor.py", line 239, in _import_module
2022-11-23 21:20:01.82 UTCrasa-actions-server-79b597c6-4nsprrasa-actions-server module = importlib.import_module(name)
2022-11-23 21:20:01.82 UTCrasa-actions-server-79b597c6-4nsprrasa-actions-server File "/usr/local/lib/python3.8/importlib/__init__.py", line 127, in import_module
2022-11-23 21:20:01.82 UTCrasa-actions-server-79b597c6-4nsprrasa-actions-server return _bootstrap._gcd_import(name[level:], package, level)
2022-11-23 21:20:01.82 UTCrasa-actions-server-79b597c6-4nsprrasa-actions-server File "<frozen importlib._bootstrap>", line 1014, in _gcd_import
2022-11-23 21:20:01.82 UTCrasa-actions-server-79b597c6-4nsprrasa-actions-server File "<frozen importlib._bootstrap>", line 991, in _find_and_load
2022-11-23 21:20:01.82 UTCrasa-actions-server-79b597c6-4nsprrasa-actions-server File "<frozen importlib._bootstrap>", line 975, in _find_and_load_unlocked
2022-11-23 21:20:01.82 UTCrasa-actions-server-79b597c6-4nsprrasa-actions-server File "<frozen importlib._bootstrap>", line 671, in _load_unlocked
2022-11-23 21:20:01.82 UTCrasa-actions-server-79b597c6-4nsprrasa-actions-server File "<frozen importlib._bootstrap_external>", line 843, in exec_module
2022-11-23 21:20:01.82 UTCrasa-actions-server-79b597c6-4nsprrasa-actions-server File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
2022-11-23 21:20:01.82 UTCrasa-actions-server-79b597c6-4nsprrasa-actions-server File "/app/actions/actions.py", line 21, in <module>
2022-11-23 21:20:01.82 UTCrasa-actions-server-79b597c6-4nsprrasa-actions-server import pywhatkit
2022-11-23 21:20:01.82 UTCrasa-actions-server-79b597c6-4nsprrasa-actions-server File "/usr/local/lib/python3.8/site-packages/pywhatkit/__init__.py", line 16, in <module>
2022-11-23 21:20:01.82 UTCrasa-actions-server-79b597c6-4nsprrasa-actions-server from pywhatkit.whats import (
2022-11-23 21:20:01.82 UTCrasa-actions-server-79b597c6-4nsprrasa-actions-server File "/usr/local/lib/python3.8/site-packages/pywhatkit/whats.py", line 7, in <module>
2022-11-23 21:20:01.82 UTCrasa-actions-server-79b597c6-4nsprrasa-actions-server import pyautogui as pg
2022-11-23 21:20:01.82 UTCrasa-actions-server-79b597c6-4nsprrasa-actions-server File "/usr/local/lib/python3.8/site-packages/pyautogui/__init__.py", line 249, in <module>
2022-11-23 21:20:01.82 UTCrasa-actions-server-79b597c6-4nsprrasa-actions-server import mouseinfo
2022-11-23 21:20:01.82 UTCrasa-actions-server-79b597c6-4nsprrasa-actions-server File "/usr/local/lib/python3.8/site-packages/mouseinfo/__init__.py", line 223, in <module>
2022-11-23 21:20:01.82 UTCrasa-actions-server-79b597c6-4nsprrasa-actions-server _display = Display(os.environ['DISPLAY'])
2022-11-23 21:20:01.82 UTCrasa-actions-server-79b597c6-4nsprrasa-actions-server File "/usr/local/lib/python3.8/os.py", line 675, in __getitem__
2022-11-23 21:20:01.82 UTCrasa-actions-server-79b597c6-4nsprrasa-actions-server raise KeyError(key) from None
2022-11-23 21:20:01.82 UTCrasa-actions-server-79b597c6-4nsprrasa-actions-serverKeyError: 'DISPLAY'

This is after it already deployed:

image

Looks like your code is expecting a DISPLAY env var to be available?

In the end it was a mismatch between packages and the version. Took me the whole day to figure out but at least it’s done. Thanks!

I have a new issue. As far as I understand it, the URL okteto provides to me is the one I can use to reach the application (URL like: https://my-server-username.cloud.okteto.net). However, if I try to access it via postman I get a 404.

Am I missing something?

Locally, with the same deploy, I would get a “welcome to rasa” if nothing sent or parse the text if something was sent.

Hi @luisarmandom, I had the same issue because I forgot to add “/webhooks/rest/webhook” at the end. So you need to use this URL

https://my-server-username.cloud.okteto.net/webhooks/rest/webhook

Hope that works for you! :slight_smile:

Wait, why rest? wouldn’t it be /telegram/? that’s how I have it in credentials.yml:

https://my-server-username.cloud.okteto.net/webhooks/telegram/webhook

Oh sorry, I though you would want to reach it through a website. Not sure whether Okteto allows deployment with telegram (or whatsapp) though

seems like it doesn’t actually :frowning:

Here are a few things to try:

  1. Is the URL you mentioned displayed in the Okteto UI? (if it’s not, maybe that endpoint you are calling is not being created or is registered with a different URL?)
  2. What happens when you click on it from the UI?
  3. Check the response headers of the 404. They might include a clue as to what you are missing (in other thread, someone was missing the “All all hosts” option).

Hope this helps!