skip to Main Content

Following the steps provided in this guide while installing Apache Superset on Windows,
I’ve had errors while setting up a docker container using Docker Compose (after cloning the project in apache/superset).

docker compose pull
and
docker compose up -d
gives me:

time="2024-04-20T21:18:08-03:00" level=warning msg="The "CYPRESS_CONFIG" variable is not set. Defaulting to a blank string."
time="2024-04-20T21:18:08-03:00" level=warning msg="The "SCARF_ANALYTICS" variable is not set. Defaulting to a blank string."
time="2024-04-20T21:18:08-03:00" level=warning msg="The "CYPRESS_CONFIG" variable is not set. Defaulting to a blank string."
validating C:supersetsupersetdocker-compose.yml: services.superset.env_file.0 must be a string

I don’t know how to fix this error, since it says it can’t find the environment variables and it can’t read properly the env file. I have searched in the whole internet, github discussions and stackoverflow but had zero success.

2

Answers


  1. Modify your C:supersetsupersetdocker-compose.yml file and add following lines to yml file under services :

    env_file:
      - path: docker/.env # default
        required: true
      - path: docker/.env-local # optional override
        required: false
    

    For others two variables set them in docker-compose.yml file as true/false depending upon your requirements.

    Login or Signup to reply.
  2. Update your docker version to latest(on windows update docker desktop), because you are using compose plugin. Compose also will be updated to ~ v2.26.X. This is a latest feature of docker compose 2.24.

    Added to superset here: https://github.com/apache/superset/pull/28039

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search