Skip to content

Error: Cannot run initial script #81

Description

@polycvp

Hi,

I'm getting the following error when I try to run the project with docker:
`> docker-compose run server --env-file local.env python manage.py migrate
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_NAME variable is not set. Defaulting to a blank string.
Creating predict-python_db_1 ... error

ERROR: for predict-python_db_1 Cannot create container for service db: invalid mount config for type "bind": bind source
path does not exist: /home/ubuntu/Willo/nirdizati-research/db

ERROR: for db Cannot create container for service db: invalid mount config for type "bind": bind source path does not exist: /home/ubuntu/Willo/nirdizati-research/db
ERROR: Encountered errors while bringing up the project.`

I have the 3 DB variables set in my local.env file as:
DB_USER=admin DB_PASSWORD=**** DB_NAME=nirdizati
And I don't see any db folder in the project. Am I missing something? I'm running Docker 2.4.0, but I'm not an expert with docker, please help! :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions