Cannot run Rasa with Docker on a Mac M1

Hi, I just go into Building a Rasa Assistant in Docker

and after run

docker run -v $(pwd):/app rasa/rasa:3.6.4-full init --no-prompt

I even try using platform linux:

docker run --platform linux/amd64 -v $(pwd):/app rasa/rasa:3.6.4-full init --no-prompt

In both cases, the project files (except models) are created, but then the error below happens.

I already searched through Jira and Google but can’t find anything useful.

Can someone please help me with this?

/opt/venv/lib/python3.10/site-packages/rasa/core/tracker_store.py:1042: MovedIn20Warning: Deprecated API features detected! These feature(s) are not compatible with SQLAlchemy 2.0. To prevent incompatible upgrades prior to updating applications, ensure requirements files are pinned to "sqlalchemy<2.0". Set environment variable SQLALCHEMY_WARN_20=1 to show all deprecation warnings.  Set environment variable SQLALCHEMY_SILENCE_UBER_WARNING=1 to silence this message. (Background on SQLAlchemy 2.0 at: https://sqlalche.me/e/b8d9)
  Base: DeclarativeMeta = declarative_base()
/opt/venv/lib/python3.10/site-packages/rasa/shared/utils/validation.py:134: DeprecationWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html
  import pkg_resources
/opt/venv/lib/python3.10/site-packages/pkg_resources/__init__.py:2871: DeprecationWarning: Deprecated call to `pkg_resources.declare_namespace('google')`.
Implementing implicit namespace packages (as specified in PEP 420) is preferred to `pkg_resources.declare_namespace`. See https://setuptools.pypa.io/en/latest/references/keywords.html#keyword-namespace-packages
  declare_namespace(pkg)
/opt/venv/lib/python3.10/site-packages/pkg_resources/__init__.py:2871: DeprecationWarning: Deprecated call to `pkg_resources.declare_namespace('mpl_toolkits')`.
Implementing implicit namespace packages (as specified in PEP 420) is preferred to `pkg_resources.declare_namespace`. See https://setuptools.pypa.io/en/latest/references/keywords.html#keyword-namespace-packages
  declare_namespace(pkg)
/opt/venv/lib/python3.10/site-packages/pkg_resources/__init__.py:2871: DeprecationWarning: Deprecated call to `pkg_resources.declare_namespace('ruamel')`.
Implementing implicit namespace packages (as specified in PEP 420) is preferred to `pkg_resources.declare_namespace`. See https://setuptools.pypa.io/en/latest/references/keywords.html#keyword-namespace-packages
  declare_namespace(pkg)
/opt/venv/lib/python3.10/site-packages/pkg_resources/__init__.py:2871: DeprecationWarning: Deprecated call to `pkg_resources.declare_namespace('ruamel.yaml')`.
Implementing implicit namespace packages (as specified in PEP 420) is preferred to `pkg_resources.declare_namespace`. See https://setuptools.pypa.io/en/latest/references/keywords.html#keyword-namespace-packages
  declare_namespace(pkg)
Warning: Input is not a terminal (fd=0).
2023-07-25 16:06:44 INFO     root  - copying /opt/venv/lib/python3.10/site-packages/rasa/cli/initial_project/endpoints.yml -> .
2023-07-25 16:06:44 INFO     root  - copying /opt/venv/lib/python3.10/site-packages/rasa/cli/initial_project/credentials.yml -> .
2023-07-25 16:06:44 INFO     root  - copying /opt/venv/lib/python3.10/site-packages/rasa/cli/initial_project/domain.yml -> .
2023-07-25 16:06:44 INFO     root  - copying /opt/venv/lib/python3.10/site-packages/rasa/cli/initial_project/config.yml -> .
2023-07-25 16:06:44 INFO     root  - copying /opt/venv/lib/python3.10/site-packages/rasa/cli/initial_project/tests/test_stories.yml -> ./tests
2023-07-25 16:06:44 INFO     root  - copying /opt/venv/lib/python3.10/site-packages/rasa/cli/initial_project/data/stories.yml -> ./data
2023-07-25 16:06:44 INFO     root  - copying /opt/venv/lib/python3.10/site-packages/rasa/cli/initial_project/data/nlu.yml -> ./data
2023-07-25 16:06:44 INFO     root  - copying /opt/venv/lib/python3.10/site-packages/rasa/cli/initial_project/data/rules.yml -> ./data
2023-07-25 16:06:44 INFO     root  - copying /opt/venv/lib/python3.10/site-packages/rasa/cli/initial_project/actions/__pycache__/actions.cpython-310.pyc -> ./actions/__pycache__
2023-07-25 16:06:44 INFO     root  - copying /opt/venv/lib/python3.10/site-packages/rasa/cli/initial_project/actions/__pycache__/__init__.cpython-310.pyc -> ./actions/__pycache__
2023-07-25 16:06:44 INFO     root  - copying /opt/venv/lib/python3.10/site-packages/rasa/cli/initial_project/actions/__init__.py -> ./actions
2023-07-25 16:06:44 INFO     root  - copying /opt/venv/lib/python3.10/site-packages/rasa/cli/initial_project/actions/actions.py -> ./actions
[libprotobuf ERROR external/com_google_protobuf/src/google/protobuf/descriptor_database.cc:560] Invalid file descriptor data passed to EncodedDescriptorDatabase::Add().
[libprotobuf FATAL external/com_google_protobuf/src/google/protobuf/descriptor.cc:1986] CHECK failed: GeneratedDatabase()->Add(encoded_file_descriptor, size): 
terminate called after throwing an instance of 'google::protobuf::FatalException'
  what():  CHECK failed: GeneratedDatabase()->Add(encoded_file_descriptor, size): 
qemu: uncaught target signal 6 (Aborted) - core dumped

Hi! I have the same problem, have you managed to solve it?

@SerafimaK For now I’m using this image khalosa/rasa-aarch64

1 Like

Hi, thanks for this solution, I have been at this for days. However, I am having issue with the port

I cant seem to the rasa server.