Error response from daemon: Container

Hi,

I’m getting the below error while trying to run sudo python rasa_x_commands.py create --update admin me PASSWORD on a Amazon lightsail instance, as mentioned in Deploy to a Server

WARNING: The DB_USER variable is not set. Defaulting to a blank string.
WARNING: The DB_PASSWORD variable is not set. Defaulting to a blank string.
WARNING: The DB_LOGIN_DB variable is not set. Defaulting to a blank string.
WARNING: The DB_DATABASE variable is not set. Defaulting to a blank string.
Error response from daemon: Container d7d12c892a8de595ebd97fd539a676bc93475aa0b8fa26c85f5ad89562e49635 is restarting, wait until the container is running
ERROR:__main__:Failed to create user.

Status after running sudo docker-compose up -d

Creating rasa_rabbit_1   ... done
Creating rasa_db_1       ... done
Creating rasa_duckling_1 ... done
Creating rasa_rasa-x_1   ... done
Creating rasa_rasa-worker_1     ... done
Creating rasa_rasa-production_1 ... done
Creating rasa_app_1             ... done
Creating rasa_nginx_1           ... done
Creating rasa_logger_1          ... done

Environment:

  • OS: Ubuntu 16.04.6 LTS
  • Python: 3.6.8
  • Docker: 18.09.7, build 2d0083d
  • Docker-compose: 1.24.1, build 4667896b

Please set the environment variables DB_USER, DB_PASSWORD. You can so so by editing them in the .env file in /etc/rasa. E.g.

RASA_X_DEMO_VERSION=0.19.1
RASA_VERSION=1.1.4
CORE_SDK_VERSION=1.1.0
# runtime arguments
RASA_TOKEN=rasatoken
PASSWORD_SALT=saltysalt
JWT_SECRET=jwt
RASA_X_TOKEN=rasaxtoken
RABBITMQ_PASSWORD=password

DB_USER=admin
DB_PASSWORD=password

DB_DATABASE should already be set, same for DB_LOGIN_DB. Can you share your docker-compose file?

Sorry that this step is currently missing in the docs, will update that asap