Cannot create a user in Rasa X

I followed this guide for installing Rasa X on a server using docker, but when I arrived at the last step, the one for creating a new user I get an error saying that the docker container is restarting. Then I looked into the logs and found this error:

2020-03-13T12:53:09.859853059Z INFO:alembic.runtime.migration:Will assume transactional DDL.
2020-03-13T12:53:09.866294115Z INFO:rasax.community.services.event_service:Check for database migrations completed.
2020-03-13T12:53:09.987313483Z INFO:rasax.community.services.event_consumers.sqlite_consumer:Start consuming SQLite events from database 'events.db'.
2020-03-13T12:53:10.163876264Z INFO:alembic.runtime.migration:Context impl PostgresqlImpl.
2020-03-13T12:53:10.163920501Z INFO:alembic.runtime.migration:Will assume transactional DDL.
2020-03-13T12:53:10.391005465Z Traceback (most recent call last):
2020-03-13T12:53:10.391041257Z   File "/usr/local/lib/python3.6/runpy.py", line 193, in _run_module_as_main
2020-03-13T12:53:10.391049700Z     "__main__", mod_spec)
2020-03-13T12:53:10.391056967Z   File "/usr/local/lib/python3.6/runpy.py", line 85, in _run_code
2020-03-13T12:53:10.391063843Z     exec(code, run_globals)
2020-03-13T12:53:10.391070468Z   File "/usr/local/lib/python3.6/site-packages/rasax/community/server.py", line 108, in <module>
2020-03-13T12:53:10.391077917Z     main()
2020-03-13T12:53:10.391084329Z   File "/usr/local/lib/python3.6/site-packages/rasax/community/server.py", line 35, in main
2020-03-13T12:53:10.391091088Z     configure_for_server_mode(session)
2020-03-13T12:53:10.391097709Z   File "/usr/local/lib/python3.6/site-packages/rasax/community/server.py", line 71, in configure_for_server_mode
2020-03-13T12:53:10.391122378Z     config.project_name, config.default_environments_config_path
2020-03-13T12:53:10.391129583Z   File "/usr/local/lib/python3.6/site-packages/rasax/community/services/settings_service.py", line 199, in inject_environments_config_from_file
2020-03-13T12:53:10.391136183Z     _config = io_utils.read_yaml_file(filename)
2020-03-13T12:53:10.391142311Z   File "/usr/local/lib/python3.6/site-packages/rasa/utils/io.py", line 210, in read_yaml_file
2020-03-13T12:53:10.391148606Z     return read_yaml(read_file(filename, DEFAULT_ENCODING))
2020-03-13T12:53:10.391154666Z   File "/usr/local/lib/python3.6/site-packages/rasa/utils/io.py", line 137, in read_file
2020-03-13T12:53:10.391160906Z     with open(filename, encoding=encoding) as f:
2020-03-13T12:53:10.391166986Z IsADirectoryError: [Errno 21] Is a directory: 'environments.yml'
2020-03-13T12:54:14.695496226Z ERROR:rasax.community.services.event_service:Encountered unexpected error reading endpoint config file at path /app/endpoints.yml:
2020-03-13T12:54:14.695567020Z [Errno 21] Is a directory: '/app/endpoints.yml'
2020-03-13T12:54:14.695612748Z INFO:rasax.community.services.event_service:Waiting until database migrations have been executed...
2020-03-13T12:54:14.764568190Z INFO:alembic.runtime.migration:Context impl PostgresqlImpl.
2020-03-13T12:54:14.764824403Z INFO:alembic.runtime.migration:Will assume transactional DDL.
2020-03-13T12:54:14.772864739Z INFO:rasax.community.services.event_service:Check for database migrations completed.
2020-03-13T12:54:14.915750427Z INFO:rasax.community.services.event_consumers.sqlite_consumer:Start consuming SQLite events from database 'events.db'.
2020-03-13T12:54:15.157870597Z INFO:alembic.runtime.migration:Context impl PostgresqlImpl.
2020-03-13T12:54:15.158141574Z INFO:alembic.runtime.migration:Will assume transactional DDL.
2020-03-13T12:54:15.374388137Z Traceback (most recent call last):
2020-03-13T12:54:15.374427177Z   File "/usr/local/lib/python3.6/runpy.py", line 193, in _run_module_as_main
2020-03-13T12:54:15.374439857Z     "__main__", mod_spec)
2020-03-13T12:54:15.374450937Z   File "/usr/local/lib/python3.6/runpy.py", line 85, in _run_code
2020-03-13T12:54:15.374466275Z     exec(code, run_globals)
2020-03-13T12:54:15.374482584Z   File "/usr/local/lib/python3.6/site-packages/rasax/community/server.py", line 108, in <module>
2020-03-13T12:54:15.374494483Z     main()
2020-03-13T12:54:15.374504564Z   File "/usr/local/lib/python3.6/site-packages/rasax/community/server.py", line 35, in main
2020-03-13T12:54:15.374514949Z     configure_for_server_mode(session)
2020-03-13T12:54:15.374525984Z   File "/usr/local/lib/python3.6/site-packages/rasax/community/server.py", line 71, in configure_for_server_mode
2020-03-13T12:54:15.374541389Z     config.project_name, config.default_environments_config_path
2020-03-13T12:54:15.374556273Z   File "/usr/local/lib/python3.6/site-packages/rasax/community/services/settings_service.py", line 199, in inject_environments_config_from_file
2020-03-13T12:54:15.374597664Z     _config = io_utils.read_yaml_file(filename)
2020-03-13T12:54:15.374610335Z   File "/usr/local/lib/python3.6/site-packages/rasa/utils/io.py", line 210, in read_yaml_file
2020-03-13T12:54:15.374620632Z     return read_yaml(read_file(filename, DEFAULT_ENCODING))
2020-03-13T12:54:15.374630331Z   File "/usr/local/lib/python3.6/site-packages/rasa/utils/io.py", line 137, in read_file
2020-03-13T12:54:15.374640496Z     with open(filename, encoding=encoding) as f:
2020-03-13T12:54:15.374650224Z IsADirectoryError: [Errno 21] Is a directory: 'environments.yml'

How can I solve it?

Thank you, Tiziano

@tiziano to be clear, you just ran the install.sh script provided on that page to install? It seems like for some reason the environments.yml file got created as a directory, when it should be a file

Yes you are right, I don’t know why but it automatically created environments.yml as a directory. I solved that issue, but I have others now. I will mark this thread as solved, but can you please help me with the problems I’m struggling with at the moment? (this and this)

Thank you!