cookiecutter / cookiecutter-django

Cookiecutter Django is a framework for jumpstarting production-ready Django projects quickly.
https://cookiecutter-django.readthedocs.io
BSD 3-Clause "New" or "Revised" License
11.98k stars 2.88k forks source link

Local Docker: python: can't open file 'manage.py': [Errno 2] No such file or directory #2074

Closed philiphoyos closed 5 years ago

philiphoyos commented 5 years ago

What happened?

I get this error message python: can't open file 'manage.py': [Errno 2] No such file or directory after running the following commands:

docker-compose -f local.yml build
docker-compose -f local.yml up -d

What should've happened instead?

Django should have been running on my local docker-machine

Steps to reproduce


# cookiecutter https://github.com/pydanny/cookiecutter-django
You've downloaded C:\Users\ph\.cookiecutters\cookiecutter-django before. Is it okay to delete and re-download it? [yes]: yes
project_name [My Awesome Project]: mytestproject.nu
project_slug [mytestproject_nu]:
description [Behold My Awesome Project!]: My Test Project
author_name [Daniel Roy Greenfeld]: Philip
domain_name [example.com]: mytestproject.nu
email [philip-hoyos@example.com]: ph@mytestproject.nu
version [0.1.0]:
Select open_source_license:
Choose from 1, 2, 3, 4, 5 [1]: 1
timezone [UTC]: Europe/Copenhagen
windows [n]: y
use_pycharm [n]: y
use_docker [n]: y
Select postgresql_version:
Choose from 1, 2, 3, 4, 5, 6, 7, 8 [1]: 1
Select js_task_runner:
Choose from 1, 2 [1]: 1
Select cloud_provider:
Choose from 1, 2 [1]: 2
custom_bootstrap_compilation [n]: n
use_compressor [n]: y
use_celery [n]: y
use_mailhog [n]: y
use_sentry [n]: y
use_whitenoise [n]: n
use_heroku [n]: n
use_travisci [n]: n
keep_local_envs_in_vcs [y]: y
debug [n]: n
 [SUCCESS]: Project initialized, keep up the good work!

docker-compose -f local.yml build docker-compose -f local.yml up -d

# docker-machine --version
Docker-machine version 0.16.1, build cce350d7

# docker --version
Docker version 18.09.2, build 6247962

Microsoft Windows 10 Pro Version 10.0.17134 Build 17134

# docker-compose -f local.yml logs
 Attaching to mytestproject_nu_celeryworker_1, mytestproject_nu_django_1, mytestproject_nu_flower_1, mytestproject_nu_celerybeat_1, mytestproject_nu_postgres_1, mytestproject_nu_mailhog_1, mytestproject_nu_redis_1
celeryworker_1  | Waiting for PostgreSQL to become available...
celeryworker_1  | Waiting for PostgreSQL to become available...
celeryworker_1  | PostgreSQL is available
celeryworker_1  | Error:
celeryworker_1  | Unable to load celery application.
celeryworker_1  | The module config was not found.
celeryworker_1  |
django_1        | Waiting for PostgreSQL to become available...
postgres_1      | The files belonging to this database system will be owned by user "postgres".
postgres_1      | This user must also own the server process.
postgres_1      |
django_1        | Waiting for PostgreSQL to become available...
postgres_1      | The database cluster will be initialized with locale "en_US.utf8".
django_1        | PostgreSQL is available
postgres_1      | The default database encoding has accordingly been set to "UTF8".
postgres_1      | The default text search configuration will be set to "english".
postgres_1      |
postgres_1      | Data page checksums are disabled.
postgres_1      |
postgres_1      | fixing permissions on existing directory /var/lib/postgresql/data ... ok
postgres_1      | creating subdirectories ... ok
postgres_1      | selecting default max_connections ... 100
postgres_1      | selecting default shared_buffers ... 128MB
postgres_1      | selecting dynamic shared memory implementation ... posix
postgres_1      | creating configuration files ... ok
postgres_1      | running bootstrap script ... ok
postgres_1      | performing post-bootstrap initialization ... ok
postgres_1      | syncing data to disk ... ok
postgres_1      |
postgres_1      | WARNING: enabling "trust" authentication for local connections
django_1        | python: can't open file 'manage.py': [Errno 2] No such file or directory
postgres_1      | You can change this by editing pg_hba.conf or using the option -A, or
postgres_1      | --auth-local and --auth-host, the next time you run initdb.
postgres_1      |
postgres_1      | Success. You can now start the database server using:
postgres_1      |
postgres_1      |     pg_ctl -D /var/lib/postgresql/data -l logfile start
postgres_1      |
postgres_1      | waiting for server to start....2019-05-19 09:32:59.577 UTC [40] LOG:  listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
postgres_1      | 2019-05-19 09:32:59.596 UTC [41] LOG:  database system was shut down at 2019-05-19 09:32:59 UTC
postgres_1      | 2019-05-19 09:32:59.601 UTC [40] LOG:  database system is ready to accept connections
mailhog_1       | 2019/05/19 09:32:57 Using in-memory storage
postgres_1      |  done
postgres_1      | server started
mailhog_1       | 2019/05/19 09:32:57 [SMTP] Binding to address: 0.0.0.0:1025
mailhog_1       | [HTTP] Binding to address: 0.0.0.0:8025
mailhog_1       | 2019/05/19 09:32:57 Serving under http://0.0.0.0:8025/
postgres_1      | CREATE DATABASE
mailhog_1       | Creating API v1 with WebPath:
postgres_1      |
mailhog_1       | Creating API v2 with WebPath:
postgres_1      |
postgres_1      | /usr/local/bin/docker-entrypoint.sh: ignoring /docker-entrypoint-initdb.d/*
postgres_1      |
postgres_1      | 2019-05-19 09:33:00.080 UTC [40] LOG:  received fast shutdown request
postgres_1      | waiting for server to shut down....2019-05-19 09:33:00.087 UTC [40] LOG:  aborting any active transactions
postgres_1      | 2019-05-19 09:33:00.090 UTC [40] LOG:  worker process: logical replication launcher (PID 47) exited with exit code 1
postgres_1      | 2019-05-19 09:33:00.090 UTC [42] LOG:  shutting down
postgres_1      | 2019-05-19 09:33:00.110 UTC [40] LOG:  database system is shut down
postgres_1      |  done
postgres_1      | server stopped
postgres_1      |
postgres_1      | PostgreSQL init process complete; ready for start up.
postgres_1      |
postgres_1      | 2019-05-19 09:33:00.191 UTC [1] LOG:  listening on IPv4 address "0.0.0.0", port 5432
redis_1         | 1:C 19 May 09:32:57.284 # Warning: no config file specified, using the default config. In order to specify a config file use redis-server /path/to/redis.conf
postgres_1      | 2019-05-19 09:33:00.191 UTC [1] LOG:  listening on IPv6 address "::", port 5432
redis_1         |                 _._
postgres_1      | 2019-05-19 09:33:00.197 UTC [1] LOG:  listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
postgres_1      | 2019-05-19 09:33:00.212 UTC [58] LOG:  database system was shut down at 2019-05-19 09:33:00 UTC
postgres_1      | 2019-05-19 09:33:00.217 UTC [1] LOG:  database system is ready to accept connections
redis_1         |            _.-``__ ''-._
redis_1         |       _.-``    `.  `_.  ''-._           Redis 3.2.12 (00000000/0) 64 bit
redis_1         |   .-`` .-```.  ```\/    _.,_ ''-._
redis_1         |  (    '      ,       .-`  | `,    )     Running in standalone mode
redis_1         |  |`-._`-...-` __...-.``-._|'` _.-'|     Port: 6379
redis_1         |  |    `-._   `._    /     _.-'    |     PID: 1
redis_1         |   `-._    `-._  `-./  _.-'    _.-'
redis_1         |  |`-._`-._    `-.__.-'    _.-'_.-'|
redis_1         |  |    `-._`-._        _.-'_.-'    |           http://redis.io
redis_1         |   `-._    `-._`-.__.-'_.-'    _.-'
redis_1         |  |`-._`-._    `-.__.-'    _.-'_.-'|
redis_1         |  |    `-._`-._        _.-'_.-'    |
redis_1         |   `-._    `-._`-.__.-'_.-'    _.-'
redis_1         |       `-._    `-.__.-'    _.-'
redis_1         |           `-._        _.-'
redis_1         |               `-.__.-'
redis_1         |
redis_1         | 1:M 19 May 09:32:57.288 # WARNING: The TCP backlog setting of 511 cannot be enforced because /proc/sys/net/core/somaxconn is set to the lower value of 128.
redis_1         | 1:M 19 May 09:32:57.288 # Server started, Redis version 3.2.12
celerybeat_1    | Waiting for PostgreSQL to become available...
celerybeat_1    | Waiting for PostgreSQL to become available...
redis_1         | 1:M 19 May 09:32:57.288 # WARNING overcommit_memory is set to 0! Background save may fail under low memory condition. To fix this issue add 'vm.overcommit_memory = 1' to /etc/sysctl.conf and then reboot or run the command 'sysctl vm.overcommit_memory=1' for this to take effect.
redis_1         | 1:M 19 May 09:32:57.288 * The server is now ready to accept connections on port 6379
celerybeat_1    | PostgreSQL is available
celerybeat_1    | Error:
celerybeat_1    | Unable to load celery application.
celerybeat_1    | The module config was not found.
celerybeat_1    |
flower_1        | Waiting for PostgreSQL to become available...
flower_1        | Waiting for PostgreSQL to become available...
flower_1        | PostgreSQL is available
flower_1        | Error:
flower_1        | Unable to load celery application.
flower_1        | The module config was not found.
flower_1        |
browniebroke commented 5 years ago

Potentially related to #2070

browniebroke commented 5 years ago

Can you try again now? A change has been merged which might help. Thanks.

philiphoyos commented 5 years ago

@browniebroke I've tried again using the same settings as above. Same problem though.

I noticed that there are actually two errors:

celerybeat_1    | Error:
celerybeat_1    | Unable to load celery application.
celerybeat_1    | The module config was not found.

And

django_1 | python: can't open file 'manage.py': [Errno 2] No such file or directory

I tried the fix from #2070 last night, but that did not work either. Is there anything else I can do or anyway I can help?

Here is the full log.

# docker-compose -f local.yml logs
Attaching to mit_hjem_celerybeat_1, mit_hjem_django_1, mit_hjem_flower_1, mit_hjem_celeryworker_1, mit_hjem_redis_1, mit_hjem_postgres_1, mit_hjem_mailhog_1
celerybeat_1    | Waiting for PostgreSQL to become available...
celerybeat_1    | Waiting for PostgreSQL to become available...
celerybeat_1    | PostgreSQL is available
celerybeat_1    | Error:
celerybeat_1    | Unable to load celery application.
celerybeat_1    | The module config was not found.
celerybeat_1    |
postgres_1      | The files belonging to this database system will be owned by user "postgres".
postgres_1      | This user must also own the server process.
postgres_1      |
postgres_1      | The database cluster will be initialized with locale "en_US.utf8".
postgres_1      | The default database encoding has accordingly been set to "UTF8".
postgres_1      | The default text search configuration will be set to "english".
postgres_1      |
postgres_1      | Data page checksums are disabled.
postgres_1      |
postgres_1      | fixing permissions on existing directory /var/lib/postgresql/data ... ok
postgres_1      | creating subdirectories ... ok
postgres_1      | selecting default max_connections ... 100
postgres_1      | selecting default shared_buffers ... 128MB
postgres_1      | selecting dynamic shared memory implementation ... posix
postgres_1      | creating configuration files ... ok
postgres_1      | running bootstrap script ... ok
postgres_1      | performing post-bootstrap initialization ... ok
postgres_1      | syncing data to disk ... ok
postgres_1      |
postgres_1      | WARNING: enabling "trust" authentication for local connections
postgres_1      | You can change this by editing pg_hba.conf or using the option -A, or
postgres_1      | --auth-local and --auth-host, the next time you run initdb.
postgres_1      |
postgres_1      | Success. You can now start the database server using:
postgres_1      |
postgres_1      |     pg_ctl -D /var/lib/postgresql/data -l logfile start
postgres_1      |
postgres_1      | waiting for server to start....2019-05-22 05:13:30.080 UTC [40] LOG:  listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
postgres_1      | 2019-05-22 05:13:30.117 UTC [41] LOG:  database system was shut down at 2019-05-22 05:13:29 UTC
postgres_1      | 2019-05-22 05:13:30.123 UTC [40] LOG:  database system is ready to accept connections
postgres_1      |  done
postgres_1      | server started
postgres_1      | CREATE DATABASE
postgres_1      |
postgres_1      |
postgres_1      | /usr/local/bin/docker-entrypoint.sh: ignoring /docker-entrypoint-initdb.d/*
postgres_1      |
postgres_1      | 2019-05-22 05:13:30.486 UTC [40] LOG:  received fast shutdown request
postgres_1      | waiting for server to shut down....2019-05-22 05:13:30.489 UTC [40] LOG:  aborting any active transactions
postgres_1      | 2019-05-22 05:13:30.492 UTC [40] LOG:  background worker "logical replication launcher" (PID 47) exited with exit code 1
postgres_1      | 2019-05-22 05:13:30.492 UTC [42] LOG:  shutting down
postgres_1      | 2019-05-22 05:13:30.513 UTC [40] LOG:  database system is shut down
postgres_1      |  done
postgres_1      | server stopped
postgres_1      |
postgres_1      | PostgreSQL init process complete; ready for start up.
postgres_1      |
postgres_1      | 2019-05-22 05:13:30.597 UTC [1] LOG:  listening on IPv4 address "0.0.0.0", port 5432
postgres_1      | 2019-05-22 05:13:30.597 UTC [1] LOG:  listening on IPv6 address "::", port 5432
postgres_1      | 2019-05-22 05:13:30.604 UTC [1] LOG:  listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
postgres_1      | 2019-05-22 05:13:30.621 UTC [58] LOG:  database system was shut down at 2019-05-22 05:13:30 UTC
postgres_1      | 2019-05-22 05:13:30.626 UTC [1] LOG:  database system is ready to accept connections
flower_1        | Waiting for PostgreSQL to become available...
flower_1        | Waiting for PostgreSQL to become available...
celeryworker_1  | Waiting for PostgreSQL to become available...
celeryworker_1  | Waiting for PostgreSQL to become available...
celeryworker_1  | PostgreSQL is available
celeryworker_1  | Error:
celeryworker_1  | Unable to load celery application.
celeryworker_1  | The module config was not found.
celeryworker_1  |
flower_1        | PostgreSQL is available
flower_1        | Error:
flower_1        | Unable to load celery application.
flower_1        | The module config was not found.
flower_1        |
redis_1         | 1:C 22 May 05:13:27.722 # Warning: no config file specified, using the default config. In order to specify a config file use redis-server /path/to/redis.conf
redis_1         |                 _._
redis_1         |            _.-``__ ''-._
redis_1         |       _.-``    `.  `_.  ''-._           Redis 3.2.12 (00000000/0) 64 bit
redis_1         |   .-`` .-```.  ```\/    _.,_ ''-._
redis_1         |  (    '      ,       .-`  | `,    )     Running in standalone mode
redis_1         |  |`-._`-...-` __...-.``-._|'` _.-'|     Port: 6379
redis_1         |  |    `-._   `._    /     _.-'    |     PID: 1
redis_1         |   `-._    `-._  `-./  _.-'    _.-'
redis_1         |  |`-._`-._    `-.__.-'    _.-'_.-'|
redis_1         |  |    `-._`-._        _.-'_.-'    |           http://redis.io
redis_1         |   `-._    `-._`-.__.-'_.-'    _.-'
redis_1         |  |`-._`-._    `-.__.-'    _.-'_.-'|
redis_1         |  |    `-._`-._        _.-'_.-'    |
redis_1         |   `-._    `-._`-.__.-'_.-'    _.-'
redis_1         |       `-._    `-.__.-'    _.-'
redis_1         |           `-._        _.-'
redis_1         |               `-.__.-'
redis_1         |
redis_1         | 1:M 22 May 05:13:27.723 # WARNING: The TCP backlog setting of 511 cannot be enforced because /proc/sys/net/core/somaxconn is set to the lower value of 128.
redis_1         | 1:M 22 May 05:13:27.723 # Server started, Redis version 3.2.12
redis_1         | 1:M 22 May 05:13:27.723 # WARNING overcommit_memory is set to 0! Background save may fail under low memory condition. To fix this issue add 'vm.overcommit_memory = 1' to /etc/sysctl.conf and then reboot or run the command 'sysctl vm.overcommit_memory=1' for this to take effect.
redis_1         | 1:M 22 May 05:13:27.724 * The server is now ready to accept connections on port 6379
django_1        | Waiting for PostgreSQL to become available...
django_1        | Waiting for PostgreSQL to become available...
django_1        | PostgreSQL is available
django_1        | python: can't open file 'manage.py': [Errno 2] No such file or directory
mailhog_1       | 2019/05/22 05:13:27 Using in-memory storage
mailhog_1       | 2019/05/22 05:13:27 [SMTP] Binding to address: 0.0.0.0:1025
mailhog_1       | [HTTP] Binding to address: 0.0.0.0:8025
mailhog_1       | 2019/05/22 05:13:27 Serving under http://0.0.0.0:8025/
mailhog_1       | Creating API v1 with WebPath:
mailhog_1       | Creating API v2 with WebPath:
browniebroke commented 5 years ago

I realise that use Celery while it was not the case in the other issue, could you please try without Celery? I want to see whether your problem is maybe related to the use of that option...

philiphoyos commented 5 years ago

It seems that solved some of the problem, however, now I get a password issue with postgres. I've tested 3 times now, and it seems to be the same issue. Not sure if it actually related to the problem above, but all three tests yielded the same result

# docker-compose -f local.yml logs
Attaching to mytestproject_nudjango_1, mytestproject_nupostgres_1, mytestproject_numailhog_1
django_1    | Waiting for PostgreSQL to become available...
django_1    | Waiting for PostgreSQL to become available...
django_1    | Waiting for PostgreSQL to become available...
django_1    | Waiting for PostgreSQL to become available...
django_1    | Waiting for PostgreSQL to become available...
django_1    | Waiting for PostgreSQL to become available...
django_1    | Waiting for PostgreSQL to become available...
django_1    | Waiting for PostgreSQL to become available...
django_1    | Waiting for PostgreSQL to become available...
postgres_1  | 2019-05-23 16:00:42.090 UTC [1] LOG:  listening on IPv4 address "0.0.0.0", port 5432
postgres_1  | 2019-05-23 16:00:42.090 UTC [1] LOG:  listening on IPv6 address "::", port 5432
postgres_1  | 2019-05-23 16:00:42.099 UTC [1] LOG:  listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
postgres_1  | 2019-05-23 16:00:42.180 UTC [21] LOG:  database system was shut down at 2019-05-23 15:42:00 UTC
postgres_1  | 2019-05-23 16:00:42.230 UTC [1] LOG:  database system is ready to accept connections
postgres_1  | 2019-05-23 16:00:43.062 UTC [28] FATAL:  password authentication failed for user "IsRYRoddbmNOocMqOoWsDZtdqUJVoiEP"
postgres_1  | 2019-05-23 16:00:43.062 UTC [28] DETAIL:  Role "IsRYRoddbmNOocMqOoWsDZtdqUJVoiEP" does not exist.
postgres_1  |   Connection matched pg_hba.conf line 95: "host all all all md5"
postgres_1  | 2019-05-23 16:00:44.330 UTC [29] FATAL:  password authentication failed for user "IsRYRoddbmNOocMqOoWsDZtdqUJVoiEP"
postgres_1  | 2019-05-23 16:00:44.330 UTC [29] DETAIL:  Role "IsRYRoddbmNOocMqOoWsDZtdqUJVoiEP" does not exist.
postgres_1  |   Connection matched pg_hba.conf line 95: "host all all all md5"
postgres_1  | 2019-05-23 16:00:45.588 UTC [30] FATAL:  password authentication failed for user "IsRYRoddbmNOocMqOoWsDZtdqUJVoiEP"
postgres_1  | 2019-05-23 16:00:45.588 UTC [30] DETAIL:  Role "IsRYRoddbmNOocMqOoWsDZtdqUJVoiEP" does not exist.
postgres_1  |   Connection matched pg_hba.conf line 95: "host all all all md5"
postgres_1  | 2019-05-23 16:00:46.848 UTC [31] FATAL:  password authentication failed for user "IsRYRoddbmNOocMqOoWsDZtdqUJVoiEP"
postgres_1  | 2019-05-23 16:00:46.848 UTC [31] DETAIL:  Role "IsRYRoddbmNOocMqOoWsDZtdqUJVoiEP" does not exist.
postgres_1  |   Connection matched pg_hba.conf line 95: "host all all all md5"
postgres_1  | 2019-05-23 16:00:48.115 UTC [32] FATAL:  password authentication failed for user "IsRYRoddbmNOocMqOoWsDZtdqUJVoiEP"
postgres_1  | 2019-05-23 16:00:48.115 UTC [32] DETAIL:  Role "IsRYRoddbmNOocMqOoWsDZtdqUJVoiEP" does not exist.
postgres_1  |   Connection matched pg_hba.conf line 95: "host all all all md5"
postgres_1  | 2019-05-23 16:00:49.388 UTC [33] FATAL:  password authentication failed for user "IsRYRoddbmNOocMqOoWsDZtdqUJVoiEP"
postgres_1  | 2019-05-23 16:00:49.388 UTC [33] DETAIL:  Role "IsRYRoddbmNOocMqOoWsDZtdqUJVoiEP" does not exist.
postgres_1  |   Connection matched pg_hba.conf line 95: "host all all all md5"
postgres_1  | 2019-05-23 16:00:50.674 UTC [34] FATAL:  password authentication failed for user "IsRYRoddbmNOocMqOoWsDZtdqUJVoiEP"
postgres_1  | 2019-05-23 16:00:50.674 UTC [34] DETAIL:  Role "IsRYRoddbmNOocMqOoWsDZtdqUJVoiEP" does not exist.
postgres_1  |   Connection matched pg_hba.conf line 95: "host all all all md5"
postgres_1  | 2019-05-23 16:00:51.953 UTC [35] FATAL:  password authentication failed for user "IsRYRoddbmNOocMqOoWsDZtdqUJVoiEP"
postgres_1  | 2019-05-23 16:00:51.953 UTC [35] DETAIL:  Role "IsRYRoddbmNOocMqOoWsDZtdqUJVoiEP" does not exist.
postgres_1  |   Connection matched pg_hba.conf line 95: "host all all all md5"
postgres_1  | 2019-05-23 16:00:53.256 UTC [36] FATAL:  password authentication failed for user "IsRYRoddbmNOocMqOoWsDZtdqUJVoiEP"
postgres_1  | 2019-05-23 16:00:53.256 UTC [36] DETAIL:  Role "IsRYRoddbmNOocMqOoWsDZtdqUJVoiEP" does not exist.
postgres_1  |   Connection matched pg_hba.conf line 95: "host all all all md5"
mailhog_1   | 2019/05/23 16:00:41 Using in-memory storage
mailhog_1   | 2019/05/23 16:00:41 [SMTP] Binding to address: 0.0.0.0:1025
mailhog_1   | [HTTP] Binding to address: 0.0.0.0:8025
mailhog_1   | 2019/05/23 16:00:41 Serving under http://0.0.0.0:8025/
mailhog_1   | Creating API v1 with WebPath:
mailhog_1   | Creating API v2 with WebPath:
browniebroke commented 5 years ago

That's because the Postgres DB is reusing the volume you created earlier (in project 1). Now your new project 2 has different credentials.

docker-compose -f local.yml down --rmi all -v

Should remove all the volumes and images. If you rebuild that should work 🤞

philiphoyos commented 5 years ago

Unfortunately not :/

I get the following:

# docker-compose -f local.yml logs
Attaching to mit_hjem_django_1, mit_hjem_postgres_1, mit_hjem_mailhog_1
django_1    | Waiting for PostgreSQL to become available...
django_1    | Waiting for PostgreSQL to become available...
django_1    | PostgreSQL is available
django_1    | python: can't open file 'manage.py': [Errno 2] No such file or directory
postgres_1  | The files belonging to this database system will be owned by user "postgres".
postgres_1  | This user must also own the server process.
postgres_1  |
postgres_1  | The database cluster will be initialized with locale "en_US.utf8".
postgres_1  | The default database encoding has accordingly been set to "UTF8".
postgres_1  | The default text search configuration will be set to "english".
postgres_1  |
postgres_1  | Data page checksums are disabled.
postgres_1  |
postgres_1  | fixing permissions on existing directory /var/lib/postgresql/data ... ok
postgres_1  | creating subdirectories ... ok
postgres_1  | selecting default max_connections ... 100
postgres_1  | selecting default shared_buffers ... 128MB
postgres_1  | selecting dynamic shared memory implementation ... posix
postgres_1  | creating configuration files ... ok
postgres_1  | running bootstrap script ... ok
postgres_1  | performing post-bootstrap initialization ... ok
postgres_1  | syncing data to disk ... ok
postgres_1  |
postgres_1  | WARNING: enabling "trust" authentication for local connections
postgres_1  | You can change this by editing pg_hba.conf or using the option -A, or
postgres_1  | --auth-local and --auth-host, the next time you run initdb.
postgres_1  |
postgres_1  | Success. You can now start the database server using:
postgres_1  |
postgres_1  |     pg_ctl -D /var/lib/postgresql/data -l logfile start
postgres_1  |
postgres_1  | waiting for server to start....2019-05-23 17:37:49.239 UTC [40] LOG:  listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
postgres_1  | 2019-05-23 17:37:49.262 UTC [41] LOG:  database system was shut down at 2019-05-23 17:37:48 UTC
postgres_1  | 2019-05-23 17:37:49.269 UTC [40] LOG:  database system is ready to accept connections
postgres_1  |  done
postgres_1  | server started
postgres_1  | CREATE DATABASE
postgres_1  |
postgres_1  |
postgres_1  | /usr/local/bin/docker-entrypoint.sh: ignoring /docker-entrypoint-initdb.d/*
postgres_1  |
postgres_1  | 2019-05-23 17:37:49.652 UTC [40] LOG:  received fast shutdown request
postgres_1  | waiting for server to shut down....2019-05-23 17:37:49.656 UTC [40] LOG:  aborting any active transactions
postgres_1  | 2019-05-23 17:37:49.657 UTC [40] LOG:  background worker "logical replication launcher" (PID 47) exited with exit code 1
postgres_1  | 2019-05-23 17:37:49.658 UTC [42] LOG:  shutting down
postgres_1  | 2019-05-23 17:37:49.676 UTC [40] LOG:  database system is shut down
postgres_1  |  done
postgres_1  | server stopped
postgres_1  |
postgres_1  | PostgreSQL init process complete; ready for start up.
postgres_1  |
postgres_1  | 2019-05-23 17:37:49.764 UTC [1] LOG:  listening on IPv4 address "0.0.0.0", port 5432
postgres_1  | 2019-05-23 17:37:49.764 UTC [1] LOG:  listening on IPv6 address "::", port 5432
postgres_1  | 2019-05-23 17:37:49.770 UTC [1] LOG:  listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
postgres_1  | 2019-05-23 17:37:49.786 UTC [58] LOG:  database system was shut down at 2019-05-23 17:37:49 UTC
postgres_1  | 2019-05-23 17:37:49.791 UTC [1] LOG:  database system is ready to accept connections
mailhog_1   | 2019/05/23 17:37:47 Using in-memory storage
mailhog_1   | 2019/05/23 17:37:47 [SMTP] Binding to address: 0.0.0.0:1025
mailhog_1   | [HTTP] Binding to address: 0.0.0.0:8025
mailhog_1   | 2019/05/23 17:37:47 Serving under http://0.0.0.0:8025/
mailhog_1   | Creating API v1 with WebPath:
mailhog_1   | Creating API v2 with WebPath:
browniebroke commented 5 years ago

Ok, so it's NOT related to Celery, there is still this same error...

django_1    | python: can't open file 'manage.py': [Errno 2] No such file or directory

Thanks for your patience and help in providing all of these. I don't know why you have this though 😞

philiphoyos commented 5 years ago

Of course. Anyway I can help. Would it be useful with a different configuration, leaving out more to only get the bare minimum?

philiphoyos commented 5 years ago

I've tried with only

same result though

# cookiecutter https://github.com/pydanny/cookiecutter-django
You've downloaded C:\Users\PhilipHoyos\.cookiecutters\cookiecutter-django before. Is it okay to delete and re-download it? [yes]: yes
project_name [My Awesome Project]: my home
project_slug [my_home]:
description [Behold My Awesome Project!]: Behold my home!
author_name [Daniel Roy Greenfeld]: Philip
domain_name [example.com]: myhome.nu
email [philip@example.com]: ph@myhome.nu
version [0.1.0]:
Select open_source_license:
1 - MIT
2 - BSD
3 - GPLv3
4 - Apache Software License 2.0
5 - Not open source
Choose from 1, 2, 3, 4, 5 [1]: 1
timezone [UTC]: Europe/Copenhagen
windows [n]: y
use_pycharm [n]: n
use_docker [n]: y
Select postgresql_version:
1 - 11.3
2 - 10.8
3 - 9.6
4 - 9.5
5 - 9.4
Choose from 1, 2, 3, 4, 5 [1]: 1
Select js_task_runner:
1 - None
2 - Gulp
Choose from 1, 2 [1]:
Select cloud_provider:
1 - AWS
2 - GCE
Choose from 1, 2 [1]: 2
custom_bootstrap_compilation [n]:
use_compressor [n]:
use_celery [n]:
use_mailhog [n]: y
use_sentry [n]:
use_whitenoise [n]:
use_heroku [n]:
use_travisci [n]:
keep_local_envs_in_vcs [y]:
debug [n]:
 [SUCCESS]: Project initialized, keep up the good work!
# docker-compose -f local.yml logs
Attaching to myhome_django_1, myhome_postgres_1, myhome_mailhog_1
postgres_1  | The files belonging to this database system will be owned by user "postgres".
postgres_1  | This user must also own the server process.
postgres_1  |
postgres_1  | The database cluster will be initialized with locale "en_US.utf8".
postgres_1  | The default database encoding has accordingly been set to "UTF8".
postgres_1  | The default text search configuration will be set to "english".
postgres_1  |
postgres_1  | Data page checksums are disabled.
postgres_1  |
postgres_1  | fixing permissions on existing directory /var/lib/postgresql/data ... ok
postgres_1  | creating subdirectories ... ok
postgres_1  | selecting default max_connections ... 100
postgres_1  | selecting default shared_buffers ... 128MB
postgres_1  | selecting dynamic shared memory implementation ... posix
postgres_1  | creating configuration files ... ok
postgres_1  | running bootstrap script ... ok
postgres_1  | performing post-bootstrap initialization ... ok
postgres_1  | syncing data to disk ... ok
postgres_1  |
postgres_1  | WARNING: enabling "trust" authentication for local connections
postgres_1  | You can change this by editing pg_hba.conf or using the option -A, or
postgres_1  | --auth-local and --auth-host, the next time you run initdb.
postgres_1  |
postgres_1  | Success. You can now start the database server using:
postgres_1  |
postgres_1  |     pg_ctl -D /var/lib/postgresql/data -l logfile start
postgres_1  |
postgres_1  | waiting for server to start....2019-05-24 13:09:49.680 UTC [40] LOG:  listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
postgres_1  | 2019-05-24 13:09:49.704 UTC [41] LOG:  database system was shut down at 2019-05-24 13:09:49 UTC
postgres_1  | 2019-05-24 13:09:49.711 UTC [40] LOG:  database system is ready to accept connections
postgres_1  |  done
postgres_1  | server started
postgres_1  | CREATE DATABASE
postgres_1  |
postgres_1  |
postgres_1  | /usr/local/bin/docker-entrypoint.sh: ignoring /docker-entrypoint-initdb.d/*
postgres_1  |
postgres_1  | 2019-05-24 13:09:50.152 UTC [40] LOG:  received fast shutdown request
postgres_1  | waiting for server to shut down....2019-05-24 13:09:50.155 UTC [40] LOG:  aborting any active transactions
postgres_1  | 2019-05-24 13:09:50.160 UTC [40] LOG:  background worker "logical replication launcher" (PID 47) exited with exit code 1
postgres_1  | 2019-05-24 13:09:50.160 UTC [42] LOG:  shutting down
postgres_1  | 2019-05-24 13:09:50.187 UTC [40] LOG:  database system is shut down
postgres_1  |  done
postgres_1  | server stopped
postgres_1  |
postgres_1  | PostgreSQL init process complete; ready for start up.
postgres_1  |
postgres_1  | 2019-05-24 13:09:50.267 UTC [1] LOG:  listening on IPv4 address "0.0.0.0", port 5432
postgres_1  | 2019-05-24 13:09:50.267 UTC [1] LOG:  listening on IPv6 address "::", port 5432
postgres_1  | 2019-05-24 13:09:50.274 UTC [1] LOG:  listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
postgres_1  | 2019-05-24 13:09:50.295 UTC [58] LOG:  database system was shut down at 2019-05-24 13:09:50 UTC
postgres_1  | 2019-05-24 13:09:50.302 UTC [1] LOG:  database system is ready to accept connections
django_1    | Waiting for PostgreSQL to become available...
django_1    | Waiting for PostgreSQL to become available...
django_1    | Waiting for PostgreSQL to become available...
django_1    | PostgreSQL is available
django_1    | python: can't open file 'manage.py': [Errno 2] No such file or directory
mailhog_1   | 2019/05/24 13:09:47 Using in-memory storage
mailhog_1   | 2019/05/24 13:09:47 [SMTP] Binding to address: 0.0.0.0:1025
mailhog_1   | [HTTP] Binding to address: 0.0.0.0:8025
mailhog_1   | 2019/05/24 13:09:47 Serving under http://0.0.0.0:8025/
mailhog_1   | Creating API v1 with WebPath:
mailhog_1   | Creating API v2 with WebPath:
philiphoyos commented 5 years ago

Test with just

The problem persists

# cookiecutter https://github.com/pydanny/cookiecutter-django
You've downloaded C:\Users\PhilipHoyos\.cookiecutters\cookiecutter-django before. Is it okay to delete and re-download it? [yes]: yes
project_name [My Awesome Project]: myhome
project_slug [myhome]:
description [Behold My Awesome Project!]: behold my home
author_name [Daniel Roy Greenfeld]: Philip
domain_name [example.com]: myhome.nu
email [philip@example.com]: ph@myhome.nu
version [0.1.0]:
Select open_source_license:
1 - MIT
2 - BSD
3 - GPLv3
4 - Apache Software License 2.0
5 - Not open source
Choose from 1, 2, 3, 4, 5 [1]: 5
timezone [UTC]: Europe/Copenhagen
windows [n]: y
use_pycharm [n]:
use_docker [n]: y
Select postgresql_version:
1 - 11.3
2 - 10.8
3 - 9.6
4 - 9.5
5 - 9.4
Choose from 1, 2, 3, 4, 5 [1]: 1
Select js_task_runner:
1 - None
2 - Gulp
Choose from 1, 2 [1]:
Select cloud_provider:
1 - AWS
2 - GCE
Choose from 1, 2 [1]: 2
custom_bootstrap_compilation [n]:
use_compressor [n]:
use_celery [n]:
use_mailhog [n]:
use_sentry [n]:
use_whitenoise [n]:
use_heroku [n]:
use_travisci [n]:
keep_local_envs_in_vcs [y]:
debug [n]:
 [SUCCESS]: Project initialized, keep up the good work!
# docker-compose -f local.yml logs
Attaching to myhome_django_1, myhome_postgres_1
postgres_1  | The files belonging to this database system will be owned by user "postgres".
postgres_1  | This user must also own the server process.
postgres_1  |
postgres_1  | The database cluster will be initialized with locale "en_US.utf8".
postgres_1  | The default database encoding has accordingly been set to "UTF8".
postgres_1  | The default text search configuration will be set to "english".
postgres_1  |
postgres_1  | Data page checksums are disabled.
postgres_1  |
postgres_1  | fixing permissions on existing directory /var/lib/postgresql/data ... ok
postgres_1  | creating subdirectories ... ok
postgres_1  | selecting default max_connections ... 100
postgres_1  | selecting default shared_buffers ... 128MB
postgres_1  | selecting dynamic shared memory implementation ... posix
postgres_1  | creating configuration files ... ok
postgres_1  | running bootstrap script ... ok
postgres_1  | performing post-bootstrap initialization ... ok
postgres_1  | syncing data to disk ... ok
postgres_1  |
postgres_1  | WARNING: enabling "trust" authentication for local connections
postgres_1  | You can change this by editing pg_hba.conf or using the option -A, or
postgres_1  | --auth-local and --auth-host, the next time you run initdb.
postgres_1  |
postgres_1  | Success. You can now start the database server using:
postgres_1  |
postgres_1  |     pg_ctl -D /var/lib/postgresql/data -l logfile start
postgres_1  |
postgres_1  | waiting for server to start....2019-05-24 13:22:33.635 UTC [40] LOG:  listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
postgres_1  | 2019-05-24 13:22:33.659 UTC [41] LOG:  database system was shut down at 2019-05-24 13:22:33 UTC
postgres_1  | 2019-05-24 13:22:33.666 UTC [40] LOG:  database system is ready to accept connections
postgres_1  |  done
postgres_1  | server started
postgres_1  | CREATE DATABASE
postgres_1  |
postgres_1  |
postgres_1  | /usr/local/bin/docker-entrypoint.sh: ignoring /docker-entrypoint-initdb.d/*
postgres_1  |
postgres_1  | 2019-05-24 13:22:34.146 UTC [40] LOG:  received fast shutdown request
postgres_1  | waiting for server to shut down....2019-05-24 13:22:34.150 UTC [40] LOG:  aborting any active transactions
postgres_1  | 2019-05-24 13:22:34.154 UTC [40] LOG:  background worker "logical replication launcher" (PID 47) exited with exit code 1
postgres_1  | 2019-05-24 13:22:34.155 UTC [42] LOG:  shutting down
postgres_1  | 2019-05-24 13:22:34.178 UTC [40] LOG:  database system is shut down
postgres_1  |  done
postgres_1  | server stopped
postgres_1  |
postgres_1  | PostgreSQL init process complete; ready for start up.
postgres_1  |
postgres_1  | 2019-05-24 13:22:34.262 UTC [1] LOG:  listening on IPv4 address "0.0.0.0", port 5432
postgres_1  | 2019-05-24 13:22:34.262 UTC [1] LOG:  listening on IPv6 address "::", port 5432
postgres_1  | 2019-05-24 13:22:34.276 UTC [1] LOG:  listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
postgres_1  | 2019-05-24 13:22:34.297 UTC [58] LOG:  database system was shut down at 2019-05-24 13:22:34 UTC
postgres_1  | 2019-05-24 13:22:34.304 UTC [1] LOG:  database system is ready to accept connections
django_1    | Waiting for PostgreSQL to become available...
django_1    | Waiting for PostgreSQL to become available...
django_1    | Waiting for PostgreSQL to become available...
django_1    | PostgreSQL is available
django_1    | python: can't open file 'manage.py': [Errno 2] No such file or directory
browniebroke commented 5 years ago

Can you try to open a shell inside the Django container:

docker-compose -f local.yml run django sh

From there you explore the content with ls -la or try to run things manually. You can check that python is correctly installed python --version.

Here is what is should look like:

> docker-compose -f local.yml run django sh
Starting mytestproject_nu_postgres_1 ... done
PostgreSQL is availablenu_mailhog_1  ... done
/app # ls -la
total 68
drwxr-xr-x   25 root     root           800 May 24 16:09 .
drwxr-xr-x    1 root     root          4096 May 24 16:18 ..
-rw-r--r--    1 root     root           101 May 24 16:09 .coveragerc
-rw-r--r--    1 root     root            33 May 24 16:09 .dockerignore
-rw-r--r--    1 root     root           488 May 24 16:09 .editorconfig
drwxr-xr-x    4 root     root           128 May 24 16:09 .envs
-rw-r--r--    1 root     root            12 May 24 16:09 .gitattributes
-rw-r--r--    1 root     root          5250 May 24 16:09 .gitignore
drwxr-xr-x    8 root     root           256 May 24 16:09 .idea
-rw-r--r--    1 root     root           258 May 24 16:09 .pylintrc
-rw-r--r--    1 root     root             7 May 24 16:09 CONTRIBUTORS.txt
-rw-r--r--    1 root     root          1075 May 24 16:09 LICENSE
-rw-r--r--    1 root     root          3366 May 24 16:09 README.rst
drwxr-xr-x    4 root     root           128 May 24 16:09 compose
drwxr-xr-x    8 root     root           256 May 24 16:17 config
drwxr-xr-x    8 root     root           256 May 24 16:09 docs
-rw-r--r--    1 root     root          1353 May 24 16:09 local.yml
drwxr-xr-x    3 root     root            96 May 24 16:09 locale
-rwxr-xr-x    1 root     root          1047 May 24 16:09 manage.py
-rw-r--r--    1 root     root          2170 May 24 16:09 merge_production_dotenvs_in_dotenv.py
drwxr-xr-x    9 root     root           288 May 24 16:17 mytestproject_nu
-rw-r--r--    1 root     root          1646 May 24 16:09 production.yml
-rw-r--r--    1 root     root            53 May 24 16:09 pytest.ini
drwxr-xr-x    5 root     root           160 May 24 16:09 requirements
-rw-r--r--    1 root     root           515 May 24 16:09 setup.cfg
/app #
philiphoyos commented 5 years ago

This is what I get

# docker-compose -f local.yml run django sh
Creating network "mytestproject_nu_default" with the default driver
Creating mytestproject_nu_postgres_1 ... done
PostgreSQL is available
/app # ls -la
total 4
drwxr-xr-x    2 root     root            40 May 26 05:28 .
drwxr-xr-x    1 root     root          4096 May 26 05:30 ..
/app #

So I guess that is why it cant find manage.py

browniebroke commented 5 years ago

That's odd. Could you also share the content of your container root ls -la /?

You've mentioned the versions of Docker and Docker machine, but could you also share the version of docker-compose you use? It looks like this line is ignored, as the source folder isn't mounted properly:

https://github.com/pydanny/cookiecutter-django/blob/729dddcab6afacdce49f5ce200af1c1b97ebbbea/%7B%7Bcookiecutter.project_slug%7D%7D/local.yml#L18-L19

The official doc about this section mentions a long and short syntax, the long being more recent. Could you change the version of the compose file to "3.0" here:

https://github.com/pydanny/cookiecutter-django/blob/729dddcab6afacdce49f5ce200af1c1b97ebbbea/%7B%7Bcookiecutter.project_slug%7D%7D/local.yml#L1

I doubt this would do anything, but who knows...

Finally, you could try adding the code to your local container like we do in the production one:

https://github.com/pydanny/cookiecutter-django/blob/729dddcab6afacdce49f5ce200af1c1b97ebbbea/%7B%7Bcookiecutter.project_slug%7D%7D/compose/production/django/Dockerfile#L62

This line should be added just before the WORKDIR statement from line 42, and you'll need to run the build command again:

https://github.com/pydanny/cookiecutter-django/blob/729dddcab6afacdce49f5ce200af1c1b97ebbbea/%7B%7Bcookiecutter.project_slug%7D%7D/compose/local/django/Dockerfile#L42

Also looks similar to https://stackoverflow.com/questions/45543229/docker-compose-volume-not-mounting-correctly

philiphoyos commented 5 years ago

Thank you for helping out! I've tried all your suggestions, but it seems that you are right about the mount.

# docker-compose --version
docker-compose version 1.23.2, build 1110ad01
# docker-compose -f local.yml run django sh
Starting my_home_mailhog_1 ... done
Starting my_home_postgres_1 ... done
PostgreSQL is available
/app # ls -la
total 4
drwxr-xr-x    2 root     root            40 May 26 17:12 .
drwxr-xr-x    1 root     root          4096 May 26 18:03 ..

/app # ls -la /
total 76
drwxr-xr-x    1 root     root          4096 May 26 18:03 .
drwxr-xr-x    1 root     root          4096 May 26 18:03 ..
-rwxr-xr-x    1 root     root             0 May 26 18:03 .dockerenv
drwxr-xr-x    2 root     root            40 May 26 17:12 app
drwxr-xr-x    1 root     root          4096 May 11 02:07 bin
drwxr-xr-x    5 root     root           360 May 26 18:03 dev
-rwxr-xr-x    1 root     root           814 May 26 17:11 entrypoint
drwxr-xr-x    1 root     root          4096 May 26 18:03 etc
drwxr-xr-x    2 root     root          4096 May  9 20:49 home
drwxr-xr-x    1 root     root          4096 May 26 17:09 lib
drwxr-xr-x    5 root     root          4096 May  9 20:49 media
drwxr-xr-x    2 root     root          4096 May  9 20:49 mnt
drwxr-xr-x    2 root     root          4096 May  9 20:49 opt
dr-xr-xr-x   91 root     root             0 May 26 18:03 proc
drwxr-xr-x    2 root     root          4096 May 26 17:10 requirements
drwx------    1 root     root          4096 May 26 18:03 root
drwxr-xr-x    2 root     root          4096 May  9 20:49 run
drwxr-xr-x    2 root     root          4096 May  9 20:49 sbin
drwxr-xr-x    2 root     root          4096 May  9 20:49 srv
-rwxr-xr-x    1 root     root           129 May 26 17:11 start
dr-xr-xr-x   13 root     root             0 May 26 18:03 sys
drwxrwxrwt    1 root     root          4096 May 26 17:11 tmp
drwxr-xr-x    1 root     root          4096 May 26 17:09 usr
drwxr-xr-x    1 root     root          4096 May  9 20:49 var
# docker-compose -f local.yml logs
Attaching to my_home_django_1, my_home_postgres_1, my_home_mailhog_1
postgres_1  | The files belonging to this database system will be owned by user "postgres".
postgres_1  | This user must also own the server process.
postgres_1  |
postgres_1  | The database cluster will be initialized with locale "en_US.utf8".
postgres_1  | The default database encoding has accordingly been set to "UTF8".
postgres_1  | The default text search configuration will be set to "english".
postgres_1  |
postgres_1  | Data page checksums are disabled.
postgres_1  |
postgres_1  | fixing permissions on existing directory /var/lib/postgresql/data ... ok
postgres_1  | creating subdirectories ... ok
postgres_1  | selecting default max_connections ... 100
postgres_1  | selecting default shared_buffers ... 128MB
postgres_1  | selecting dynamic shared memory implementation ... posix
postgres_1  | creating configuration files ... ok
postgres_1  | running bootstrap script ... ok
postgres_1  | performing post-bootstrap initialization ... ok
postgres_1  | syncing data to disk ... ok
postgres_1  |
postgres_1  | WARNING: enabling "trust" authentication for local connections
postgres_1  | You can change this by editing pg_hba.conf or using the option -A, or
postgres_1  | --auth-local and --auth-host, the next time you run initdb.
postgres_1  |
postgres_1  | Success. You can now start the database server using:
postgres_1  |
postgres_1  |     pg_ctl -D /var/lib/postgresql/data -l logfile start
postgres_1  |
postgres_1  | waiting for server to start....2019-05-26 18:29:03.350 UTC [40] LOG:  listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
postgres_1  | 2019-05-26 18:29:03.368 UTC [41] LOG:  database system was shut down at 2019-05-26 18:29:03 UTC
postgres_1  | 2019-05-26 18:29:03.373 UTC [40] LOG:  database system is ready to accept connections
postgres_1  |  done
postgres_1  | server started
postgres_1  | CREATE DATABASE
postgres_1  |
postgres_1  |
postgres_1  | /usr/local/bin/docker-entrypoint.sh: ignoring /docker-entrypoint-initdb.d/*
postgres_1  |
postgres_1  | 2019-05-26 18:29:03.740 UTC [40] LOG:  received fast shutdown request
postgres_1  | waiting for server to shut down....2019-05-26 18:29:03.744 UTC [40] LOG:  aborting any active transactions
postgres_1  | 2019-05-26 18:29:03.746 UTC [40] LOG:  background worker "logical replication launcher" (PID 47) exited with exit code 1
postgres_1  | 2019-05-26 18:29:03.747 UTC [42] LOG:  shutting down
postgres_1  | 2019-05-26 18:29:03.767 UTC [40] LOG:  database system is shut down
postgres_1  |  done
postgres_1  | server stopped
postgres_1  |
postgres_1  | PostgreSQL init process complete; ready for start up.
postgres_1  |
postgres_1  | 2019-05-26 18:29:03.851 UTC [1] LOG:  listening on IPv4 address "0.0.0.0", port 5432
postgres_1  | 2019-05-26 18:29:03.852 UTC [1] LOG:  listening on IPv6 address "::", port 5432
postgres_1  | 2019-05-26 18:29:03.858 UTC [1] LOG:  listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
postgres_1  | 2019-05-26 18:29:03.874 UTC [58] LOG:  database system was shut down at 2019-05-26 18:29:03 UTC
postgres_1  | 2019-05-26 18:29:03.879 UTC [1] LOG:  database system is ready to accept connections
mailhog_1   | 2019/05/26 18:29:02 Using in-memory storage
mailhog_1   | 2019/05/26 18:29:02 [SMTP] Binding to address: 0.0.0.0:1025
mailhog_1   | [HTTP] Binding to address: 0.0.0.0:8025
mailhog_1   | 2019/05/26 18:29:02 Serving under http://0.0.0.0:8025/
mailhog_1   | Creating API v1 with WebPath:
mailhog_1   | Creating API v2 with WebPath:
django_1    | Waiting for PostgreSQL to become available...
django_1    | Waiting for PostgreSQL to become available...
django_1    | PostgreSQL is available
django_1    | python: can't open file 'manage.py': [Errno 2] No such file or directory
Coengineer-AU commented 5 years ago

Just to add to this I'm having the same issue, using docker toolbox on windows 10 1809.

$ docker --version
Docker version 18.03.0-ce, build 0520e24302

$ docker-compose --version
docker-compose version 1.20.1, build 5d8c71b2
browniebroke commented 5 years ago

Has anyone tried my earlier suggestion? Adding the code to your local container like we do in the production one:

https://github.com/pydanny/cookiecutter-django/blob/729dddcab6afacdce49f5ce200af1c1b97ebbbea/%7B%7Bcookiecutter.project_slug%7D%7D/compose/production/django/Dockerfile#L62

I made the change on a branch, you can try it:

cookiecutter https://github.com/pydanny/cookiecutter-django --checkout fix/empty-local-docker

Coengineer-AU commented 5 years ago

I updated my docker toolbox to 18.09.03 and made the suggested change (just manually not re-pulling the whole cookiecutter) and it still had the same issue. I'll try again pulling the whole branch.

Coengineer-AU commented 5 years ago

Just re-tested with a full pull of the branch, rebuild, etc. Same fault occurs. Any information I can give you to assist ?

Coengineer-AU commented 5 years ago

USER@LAPTOP MINGW64 /d/!Code/builder2
$ docker-compose --version
docker-compose version 1.23.2, build 1110ad01

USER@LAPTOP MINGW64 /d/!Code/builder2
$ docker --version
Docker version 18.09.3, build 774a1f4eee

USER@LAPTOP MINGW64 /d/!Code/builder2
$ docker-compose -f local.yml build --no-cache --force-rm
Building postgres
Step 1/4 : FROM postgres:11.3
 ---> 587aa1d0e586
Step 2/4 : COPY ./compose/production/postgres/maintenance /usr/local/bin/maintenance
 ---> 111d518d4972
Step 3/4 : RUN chmod +x /usr/local/bin/maintenance/*
 ---> Running in e05410d04817
Removing intermediate container e05410d04817
 ---> ef8688e8c437
Step 4/4 : RUN mv /usr/local/bin/maintenance/* /usr/local/bin     && rmdir /usr/local/bin/maintenance
 ---> Running in 3dacc0e9e42d
Removing intermediate container 3dacc0e9e42d
 ---> 6717cd3838c0
Successfully built 6717cd3838c0
Successfully tagged builder2_production_postgres:latest
Building django
Step 1/14 : FROM python:3.6-alpine
 ---> 35bb01a3d284
Step 2/14 : ENV PYTHONUNBUFFERED 1
 ---> Running in cf322cf8c038
Removing intermediate container cf322cf8c038
 ---> bf37e62ab0e6
Step 3/14 : RUN apk update   && apk add --virtual build-deps gcc python3-dev musl-dev   && apk add postgresql-dev   && apk add jpeg-dev zlib-dev freetype-dev lcms2-dev openjpeg-dev tiff-dev tk-dev tcl-dev   && apk add libffi-dev py-cffi   && apk add gettext   && apk add postgresql-client
 ---> Running in cbaa0e8a786c
fetch http://dl-cdn.alpinelinux.org/alpine/v3.9/main/x86_64/APKINDEX.tar.gz
fetch http://dl-cdn.alpinelinux.org/alpine/v3.9/community/x86_64/APKINDEX.tar.gz
v3.9.4-6-gce4b56ee80 [http://dl-cdn.alpinelinux.org/alpine/v3.9/main]
v3.9.4-5-gcfdf5452f1 [http://dl-cdn.alpinelinux.org/alpine/v3.9/community]
OK: 9771 distinct packages available
(1/15) Installing binutils (2.31.1-r2)
(2/15) Installing gmp (6.1.2-r1)
(3/15) Installing isl (0.18-r0)
(4/15) Installing libgomp (8.3.0-r0)
(5/15) Installing libatomic (8.3.0-r0)
(6/15) Installing libgcc (8.3.0-r0)
(7/15) Installing mpfr3 (3.1.5-r1)
(8/15) Installing mpc1 (1.0.3-r1)
(9/15) Installing libstdc++ (8.3.0-r0)
(10/15) Installing gcc (8.3.0-r0)
(11/15) Installing pkgconf (1.6.0-r0)
(12/15) Installing python3 (3.6.8-r2)
(13/15) Installing python3-dev (3.6.8-r2)
(14/15) Installing musl-dev (1.1.20-r4)
(15/15) Installing build-deps (0)
Executing busybox-1.29.3-r10.trigger
OK: 205 MiB in 49 packages
(1/7) Installing openssl-dev (1.1.1b-r1)
(2/7) Installing db (5.3.28-r1)
(3/7) Installing libsasl (2.1.27-r1)
(4/7) Installing libldap (2.4.47-r2)
(5/7) Installing libpq (11.3-r0)
(6/7) Installing postgresql-libs (11.3-r0)
(7/7) Installing postgresql-dev (11.3-r0)
Executing busybox-1.29.3-r10.trigger
OK: 235 MiB in 56 packages
(1/44) Installing libpng (1.6.37-r0)
(2/44) Installing freetype (2.9.1-r2)
(3/44) Installing zlib-dev (1.2.11-r1)
(4/44) Installing libpng-dev (1.6.37-r0)
(5/44) Installing freetype-dev (2.9.1-r2)
(6/44) Installing libjpeg-turbo (1.5.3-r4)
(7/44) Installing libjpeg-turbo-dev (1.5.3-r4)
(8/44) Installing jpeg-dev (8-r6)
(9/44) Installing tiff (4.0.10-r0)
(10/44) Installing libtiffxx (4.0.10-r0)
(11/44) Installing tiff-dev (4.0.10-r0)
(12/44) Installing lcms2 (2.9-r1)
(13/44) Installing lcms2-dev (2.9-r1)
(14/44) Installing openjpeg (2.3.0-r3)
(15/44) Installing openjpeg-dev (2.3.0-r3)
(16/44) Installing tcl (8.6.9-r0)
(17/44) Installing tcl-dev (8.6.9-r0)
(18/44) Installing libxau (1.0.8-r3)
(19/44) Installing xorgproto (2018.4-r0)
(20/44) Installing libxau-dev (1.0.8-r3)
(21/44) Installing xcb-proto (1.13-r2)
(22/44) Installing libbsd (0.8.6-r2)
(23/44) Installing libxdmcp (1.1.2-r5)
(24/44) Installing libxcb (1.13-r2)
(25/44) Installing libpthread-stubs (0.3-r5)
(26/44) Installing libxdmcp-dev (1.1.2-r5)
(27/44) Installing libxcb-dev (1.13-r2)
(28/44) Installing xtrans (1.3.5-r1)
(29/44) Installing libx11 (1.6.7-r0)
(30/44) Installing libx11-dev (1.6.7-r0)
(31/44) Installing libxrender (0.9.10-r3)
(32/44) Installing libuuid (2.33-r0)
(33/44) Installing fontconfig (2.13.1-r0)
(34/44) Installing libxft (2.3.2-r3)
(35/44) Installing expat-dev (2.2.6-r0)
(36/44) Installing libblkid (2.33-r0)
(37/44) Installing libfdisk (2.33-r0)
(38/44) Installing libmount (2.33-r0)
(39/44) Installing libsmartcols (2.33-r0)
(40/44) Installing util-linux-dev (2.33-r0)
(41/44) Installing fontconfig-dev (2.13.1-r0)
(42/44) Installing libxrender-dev (0.9.10-r3)
(43/44) Installing libxft-dev (2.3.2-r3)
(44/44) Installing tk-dev (8.6.9-r0)
Executing busybox-1.29.3-r10.trigger
OK: 273 MiB in 100 packages
(1/5) Installing linux-headers (4.18.13-r1)
(2/5) Installing libffi-dev (3.2.1-r6)
(3/5) Installing py-cffi (1.11.5-r0)
(4/5) Installing py3-cparser (2.19-r0)
(5/5) Installing py3-cffi (1.11.5-r0)
OK: 281 MiB in 105 packages
(1/3) Installing libunistring (0.9.10-r0)
(2/3) Installing libxml2 (2.9.9-r1)
(3/3) Installing gettext (0.19.8.1-r4)
Executing busybox-1.29.3-r10.trigger
OK: 285 MiB in 108 packages
(1/2) Installing libedit (20181209.3.1-r0)
(2/2) Installing postgresql-client (11.3-r0)
Executing busybox-1.29.3-r10.trigger
OK: 287 MiB in 110 packages
Removing intermediate container cbaa0e8a786c
 ---> 005e9b3a1e62
Step 4/14 : COPY ./requirements /requirements
 ---> a033be3810d6
Step 5/14 : RUN pip install -r /requirements/local.txt
 ---> Running in 03f65f11366a
Collecting pytz==2019.1 (from -r /requirements/./base.txt (line 1))
  Downloading https://files.pythonhosted.org/packages/3d/73/fe30c2daaaa0713420d0382b16fbb761409f532c56bdcc514bf7b6262bb6/pytz-2019.1-py2.py3-none-any.whl (510kB)
Collecting python-slugify==3.0.2 (from -r /requirements/./base.txt (line 2))
  Downloading https://files.pythonhosted.org/packages/c1/19/c3cf1dc65e89aa999f85a4a3a4924ccac765a6964b405d487b7b7c8bb39f/python-slugify-3.0.2.tar.gz
Collecting Pillow==6.0.0 (from -r /requirements/./base.txt (line 3))
  Downloading https://files.pythonhosted.org/packages/81/1a/6b2971adc1bca55b9a53ed1efa372acff7e8b9913982a396f3fa046efaf8/Pillow-6.0.0.tar.gz (29.5MB)
Collecting argon2-cffi==19.1.0 (from -r /requirements/./base.txt (line 4))
  Downloading https://files.pythonhosted.org/packages/aa/bb/d620acb83d6e7d0a1f896557524b85e058500bd858ee814d467428718811/argon2_cffi-19.1.0.tar.gz (1.8MB)
  Installing build dependencies: started
  Installing build dependencies: finished with status 'done'
  Getting requirements to build wheel: started
  Getting requirements to build wheel: finished with status 'done'
    Preparing wheel metadata: started
    Preparing wheel metadata: finished with status 'done'
Collecting redis==3.2.1 (from -r /requirements/./base.txt (line 5))
  Downloading https://files.pythonhosted.org/packages/ac/a7/cff10cc5f1180834a3ed564d148fb4329c989cbb1f2e196fc9a10fa07072/redis-3.2.1-py2.py3-none-any.whl (65kB)
Collecting django==2.2.1 (from -r /requirements/./base.txt (line 9))
  Downloading https://files.pythonhosted.org/packages/b1/1d/2476110614367adfb079a9bc718621f9fc8351e9214e1750cae1832d4090/Django-2.2.1-py3-none-any.whl (7.4MB)
Collecting django-environ==0.4.5 (from -r /requirements/./base.txt (line 10))
  Downloading https://files.pythonhosted.org/packages/9f/32/76295a1a5d00bf556c495216581c6997e7fa5f533b2229e0a9d6cbaa95ae/django_environ-0.4.5-py2.py3-none-any.whl
Collecting django-model-utils==3.1.2 (from -r /requirements/./base.txt (line 11))
  Downloading https://files.pythonhosted.org/packages/d1/92/8a6b15368bb407f0a2e716bf603e73c843af782b98e68f23c19697742f8a/django_model_utils-3.1.2-py2.py3-none-any.whl
Collecting django-allauth==0.39.1 (from -r /requirements/./base.txt (line 12))
  Downloading https://files.pythonhosted.org/packages/9c/dc/b7821e2b62311e402c24749f32dcbc337501f1d87e4eb2d4ef19e1e95f31/django-allauth-0.39.1.tar.gz (534kB)
Collecting django-crispy-forms==1.7.2 (from -r /requirements/./base.txt (line 13))
  Downloading https://files.pythonhosted.org/packages/9a/05/6bad05742d185ec2fabfa4deab05cafde286eb3f383fba24b3674340aca2/django_crispy_forms-1.7.2-py2.py3-none-any.whl (105kB)
Collecting django-redis==4.10.0 (from -r /requirements/./base.txt (line 14))
  Downloading https://files.pythonhosted.org/packages/f8/79/1fd48c585d5a95fd314571ac34c13f6bc1f7e65cbb5ed9ac0299212f35ce/django_redis-4.10.0-py2.py3-none-any.whl
Collecting djangorestframework==3.9.4 (from -r /requirements/./base.txt (line 17))
  Downloading https://files.pythonhosted.org/packages/1b/fe/fcebec2a98fbd1548da1c12ce8d7f634a02a9cce350833fa227a625ec624/djangorestframework-3.9.4-py2.py3-none-any.whl (911kB)
Collecting coreapi==2.3.3 (from -r /requirements/./base.txt (line 18))
  Downloading https://files.pythonhosted.org/packages/fc/3a/9dedaad22962770edd334222f2b3c3e7ad5e1c8cab1d6a7992c30329e2e5/coreapi-2.3.3-py2.py3-none-any.whl
Collecting Werkzeug==0.14.1 (from -r /requirements/local.txt (line 3))
  Downloading https://files.pythonhosted.org/packages/20/c4/12e3e56473e52375aa29c4764e70d1b8f3efa6682bef8d0aae04fe335243/Werkzeug-0.14.1-py2.py3-none-any.whl (322kB)
Collecting ipdb==0.12 (from -r /requirements/local.txt (line 4))
  Downloading https://files.pythonhosted.org/packages/6d/43/c3c2e866a8803e196d6209595020a4a6db1a3c5d07c01455669497ae23d0/ipdb-0.12.tar.gz
Collecting Sphinx==2.0.1 (from -r /requirements/local.txt (line 5))
  Downloading https://files.pythonhosted.org/packages/9a/b0/a8cf1d35237aebefd63f05543ed49ea24d302239828ca89409b0c1a35b27/Sphinx-2.0.1-py2.py3-none-any.whl (3.2MB)
Collecting psycopg2==2.8.2 (from -r /requirements/local.txt (line 6))
  Downloading https://files.pythonhosted.org/packages/23/7e/93c325482c328619870b6cd09370f6dbe1148283daca65115cd63642e60f/psycopg2-2.8.2.tar.gz (368kB)
Collecting mypy==0.701 (from -r /requirements/local.txt (line 10))
  Downloading https://files.pythonhosted.org/packages/6c/a9/e2ed2e2bb62317b331e85f471c495089140e79a9f92d539c422e44c70536/mypy-0.701-py3-none-any.whl (1.5MB)
Collecting pytest==4.5.0 (from -r /requirements/local.txt (line 11))
  Downloading https://files.pythonhosted.org/packages/56/53/0ae37ab12c457945ae0152c6571d6d40eecccddf25f71fe328f9aefe90ca/pytest-4.5.0-py2.py3-none-any.whl (227kB)
Collecting pytest-sugar==0.9.2 (from -r /requirements/local.txt (line 12))
  Downloading https://files.pythonhosted.org/packages/da/3b/f1e3c8830860c1df8f0e0f6713932475141210cfa021e362ca2774d2bf02/pytest_sugar-0.9.2-py2.py3-none-any.whl
Collecting flake8==3.7.7 (from -r /requirements/local.txt (line 16))
  Downloading https://files.pythonhosted.org/packages/e9/76/b915bd28976068a9843bf836b789794aa4a8eb13338b23581005cd9177c0/flake8-3.7.7-py2.py3-none-any.whl (68kB)
Collecting coverage==4.5.3 (from -r /requirements/local.txt (line 17))
  Downloading https://files.pythonhosted.org/packages/82/70/2280b5b29a0352519bb95ab0ef1ea942d40466ca71c53a2085bdeff7b0eb/coverage-4.5.3.tar.gz (384kB)
Collecting black==19.3b0 (from -r /requirements/local.txt (line 18))
  Downloading https://files.pythonhosted.org/packages/30/62/cf549544a5fe990bbaeca21e9c419501b2de7a701ab0afb377bc81676600/black-19.3b0-py36-none-any.whl (89kB)
Collecting pylint-django==2.0.9 (from -r /requirements/local.txt (line 19))
  Downloading https://files.pythonhosted.org/packages/07/08/e7235bba5762e1ea77ba287443dc16a3b7c0aed9d6c0b856c66624301e65/pylint_django-2.0.9-py3-none-any.whl (65kB)
Collecting factory-boy==2.12.0 (from -r /requirements/local.txt (line 23))
  Downloading https://files.pythonhosted.org/packages/63/c3/e4d5ed760f09f5dfb6ebbc44e22801a5fa9fcad9158f5ec59d8304092833/factory_boy-2.12.0-py2.py3-none-any.whl
Collecting django-debug-toolbar==1.11 (from -r /requirements/local.txt (line 25))
  Downloading https://files.pythonhosted.org/packages/01/9a/3db232bd15882d90d3c53de1f34ce0a522327849593c9198899713267cfe/django_debug_toolbar-1.11-py2.py3-none-any.whl (201kB)
Collecting django-extensions==2.1.7 (from -r /requirements/local.txt (line 26))
  Downloading https://files.pythonhosted.org/packages/f8/df/c72d146a2df6aaadbaa3ca0b766a5e1fa0513f024458b405b673b3823310/django_extensions-2.1.7-py2.py3-none-any.whl (221kB)
Collecting django-coverage-plugin==1.6.0 (from -r /requirements/local.txt (line 27))
  Downloading https://files.pythonhosted.org/packages/8c/87/8e041efad53b3934853c8a899f09a69f1ac73fcd9cc1449053079910d1fb/django_coverage_plugin-1.6.0.tar.gz
Collecting pytest-django==3.4.8 (from -r /requirements/local.txt (line 28))
  Downloading https://files.pythonhosted.org/packages/b9/71/be158a00e01e8d53dd14988f5b8ec9467377bc0550b6080504f2673107d9/pytest_django-3.4.8-py2.py3-none-any.whl
Collecting text-unidecode==1.2 (from python-slugify==3.0.2->-r /requirements/./base.txt (line 2))
  Downloading https://files.pythonhosted.org/packages/79/42/d717cc2b4520fb09e45b344b1b0b4e81aa672001dd128c180fabc655c341/text_unidecode-1.2-py2.py3-none-any.whl (77kB)
Collecting cffi>=1.0.0 (from argon2-cffi==19.1.0->-r /requirements/./base.txt (line 4))
  Downloading https://files.pythonhosted.org/packages/93/1a/ab8c62b5838722f29f3daffcc8d4bd61844aa9b5f437341cc890ceee483b/cffi-1.12.3.tar.gz (456kB)
Collecting six (from argon2-cffi==19.1.0->-r /requirements/./base.txt (line 4))
  Downloading https://files.pythonhosted.org/packages/73/fb/00a976f728d0d1fecfe898238ce23f502a721c0ac0ecfedb80e0d88c64e9/six-1.12.0-py2.py3-none-any.whl
Collecting sqlparse (from django==2.2.1->-r /requirements/./base.txt (line 9))
  Downloading https://files.pythonhosted.org/packages/ef/53/900f7d2a54557c6a37886585a91336520e5539e3ae2423ff1102daf4f3a7/sqlparse-0.3.0-py2.py3-none-any.whl
Collecting python3-openid>=3.0.8 (from django-allauth==0.39.1->-r /requirements/./base.txt (line 12))
  Downloading https://files.pythonhosted.org/packages/bd/de/52c5699f52dcee3037db587196dcaf63ffedf5fbeba3183afe9b21a3a89f/python3_openid-3.1.0-py3-none-any.whl (130kB)
Collecting requests-oauthlib>=0.3.0 (from django-allauth==0.39.1->-r /requirements/./base.txt (line 12))
  Downloading https://files.pythonhosted.org/packages/c2/e2/9fd03d55ffb70fe51f587f20bcf407a6927eb121de86928b34d162f0b1ac/requests_oauthlib-1.2.0-py2.py3-none-any.whl
Collecting requests (from django-allauth==0.39.1->-r /requirements/./base.txt (line 12))
  Downloading https://files.pythonhosted.org/packages/51/bd/23c926cd341ea6b7dd0b2a00aba99ae0f828be89d72b2190f27c11d4b7fb/requests-2.22.0-py2.py3-none-any.whl (57kB)
Collecting itypes (from coreapi==2.3.3->-r /requirements/./base.txt (line 18))
  Downloading https://files.pythonhosted.org/packages/d3/24/5e511590f95582efe64b8ad2f6dadd85c5563c9dcf40171ea5a70adbf5a9/itypes-1.1.0.tar.gz
Collecting uritemplate (from coreapi==2.3.3->-r /requirements/./base.txt (line 18))
  Downloading https://files.pythonhosted.org/packages/e5/7d/9d5a640c4f8bf2c8b1afc015e9a9d8de32e13c9016dcc4b0ec03481fb396/uritemplate-3.0.0-py2.py3-none-any.whl
Collecting coreschema (from coreapi==2.3.3->-r /requirements/./base.txt (line 18))
  Downloading https://files.pythonhosted.org/packages/93/08/1d105a70104e078718421e6c555b8b293259e7fc92f7e9a04869947f198f/coreschema-0.0.4.tar.gz
Requirement already satisfied: setuptools in /usr/local/lib/python3.6/site-packages (from ipdb==0.12->-r /requirements/local.txt (line 4)) (41.0.1)
Collecting ipython>=5.1.0 (from ipdb==0.12->-r /requirements/local.txt (line 4))
  Downloading https://files.pythonhosted.org/packages/a9/2e/41dce4ed129057e05a555a7f9629aa2d5f81fdcd4d16568bc24b75a1d2c9/ipython-7.5.0-py3-none-any.whl (770kB)
Collecting babel!=2.0,>=1.3 (from Sphinx==2.0.1->-r /requirements/local.txt (line 5))
  Downloading https://files.pythonhosted.org/packages/2c/60/f2af68eb046c5de5b1fe6dd4743bf42c074f7141fe7b2737d3061533b093/Babel-2.7.0-py2.py3-none-any.whl (8.4MB)
Collecting sphinxcontrib-jsmath (from Sphinx==2.0.1->-r /requirements/local.txt (line 5))
  Downloading https://files.pythonhosted.org/packages/c2/42/4c8646762ee83602e3fb3fbe774c2fac12f317deb0b5dbeeedd2d3ba4b77/sphinxcontrib_jsmath-1.0.1-py2.py3-none-any.whl
Collecting sphinxcontrib-serializinghtml (from Sphinx==2.0.1->-r /requirements/local.txt (line 5))
  Downloading https://files.pythonhosted.org/packages/57/b3/3648e48fa5682e61e9839d62de4e23af1795ceb738d68d73bd974257a95c/sphinxcontrib_serializinghtml-1.1.3-py2.py3-none-any.whl (89kB)
Collecting Jinja2>=2.3 (from Sphinx==2.0.1->-r /requirements/local.txt (line 5))
  Downloading https://files.pythonhosted.org/packages/1d/e7/fd8b501e7a6dfe492a433deb7b9d833d39ca74916fa8bc63dd1a4947a671/Jinja2-2.10.1-py2.py3-none-any.whl (124kB)
Collecting snowballstemmer>=1.1 (from Sphinx==2.0.1->-r /requirements/local.txt (line 5))
  Downloading https://files.pythonhosted.org/packages/d4/6c/8a935e2c7b54a37714656d753e4187ee0631988184ed50c0cf6476858566/snowballstemmer-1.2.1-py2.py3-none-any.whl (64kB)
Collecting packaging (from Sphinx==2.0.1->-r /requirements/local.txt (line 5))
  Downloading https://files.pythonhosted.org/packages/91/32/58bc30e646e55eab8b21abf89e353f59c0cc02c417e42929f4a9546e1b1d/packaging-19.0-py2.py3-none-any.whl
Collecting sphinxcontrib-htmlhelp (from Sphinx==2.0.1->-r /requirements/local.txt (line 5))
  Downloading https://files.pythonhosted.org/packages/e4/35/80a67cc493f4a8a9634ab203a77aaa1b84d79ccb1c02eca72cb084d2c7f7/sphinxcontrib_htmlhelp-1.0.2-py2.py3-none-any.whl (96kB)
Collecting imagesize (from Sphinx==2.0.1->-r /requirements/local.txt (line 5))
  Downloading https://files.pythonhosted.org/packages/fc/b6/aef66b4c52a6ad6ac18cf6ebc5731ed06d8c9ae4d3b2d9951f261150be67/imagesize-1.1.0-py2.py3-none-any.whl
Collecting sphinxcontrib-qthelp (from Sphinx==2.0.1->-r /requirements/local.txt (line 5))
  Downloading https://files.pythonhosted.org/packages/ce/5b/4747c3ba98b3a3e21a66faa183d8f79b9ded70e74212a7988d236a6eb78a/sphinxcontrib_qthelp-1.0.2-py2.py3-none-any.whl (90kB)
Collecting docutils>=0.12 (from Sphinx==2.0.1->-r /requirements/local.txt (line 5))
  Downloading https://files.pythonhosted.org/packages/36/fa/08e9e6e0e3cbd1d362c3bbee8d01d0aedb2155c4ac112b19ef3cae8eed8d/docutils-0.14-py3-none-any.whl (543kB)
Collecting sphinxcontrib-applehelp (from Sphinx==2.0.1->-r /requirements/local.txt (line 5))
  Downloading https://files.pythonhosted.org/packages/13/9a/4428b3114d654cb1cd34d90d5e6fab938d5436f94a571155187ea1dd78b4/sphinxcontrib_applehelp-1.0.1-py2.py3-none-any.whl (121kB)
Collecting alabaster<0.8,>=0.7 (from Sphinx==2.0.1->-r /requirements/local.txt (line 5))
  Downloading https://files.pythonhosted.org/packages/10/ad/00b090d23a222943eb0eda509720a404f531a439e803f6538f35136cae9e/alabaster-0.7.12-py2.py3-none-any.whl
Collecting sphinxcontrib-devhelp (from Sphinx==2.0.1->-r /requirements/local.txt (line 5))
  Downloading https://files.pythonhosted.org/packages/b0/a3/fea98741f0b2f2902fbf6c35c8e91b22cd0dd13387291e81d457f9a93066/sphinxcontrib_devhelp-1.0.1-py2.py3-none-any.whl (84kB)
Collecting Pygments>=2.0 (from Sphinx==2.0.1->-r /requirements/local.txt (line 5))
  Downloading https://files.pythonhosted.org/packages/5c/73/1dfa428150e3ccb0fa3e68db406e5be48698f2a979ccbcec795f28f44048/Pygments-2.4.2-py2.py3-none-any.whl (883kB)
Collecting mypy-extensions<0.5.0,>=0.4.0 (from mypy==0.701->-r /requirements/local.txt (line 10))
  Downloading https://files.pythonhosted.org/packages/4d/72/8d54e2b296631b9b14961d583e56e90d9d7fba8a240d5ce7f1113cc5e887/mypy_extensions-0.4.1-py2.py3-none-any.whl
Collecting typed-ast<1.4.0,>=1.3.1 (from mypy==0.701->-r /requirements/local.txt (line 10))
  Downloading https://files.pythonhosted.org/packages/d3/b1/959c3ed4a9cc100feba7ad1a7d6336d8888937ee89f4a577f7698e09decd/typed-ast-1.3.5.tar.gz (205kB)
Collecting more-itertools>=4.0.0; python_version > "2.7" (from pytest==4.5.0->-r /requirements/local.txt (line 11))
  Downloading https://files.pythonhosted.org/packages/b3/73/64fb5922b745fc1daee8a2880d907d2a70d9c7bb71eea86fcb9445daab5e/more_itertools-7.0.0-py3-none-any.whl (53kB)
Collecting wcwidth (from pytest==4.5.0->-r /requirements/local.txt (line 11))
  Downloading https://files.pythonhosted.org/packages/7e/9f/526a6947247599b084ee5232e4f9190a38f398d7300d866af3ab571a5bfe/wcwidth-0.1.7-py2.py3-none-any.whl
Collecting attrs>=17.4.0 (from pytest==4.5.0->-r /requirements/local.txt (line 11))
  Downloading https://files.pythonhosted.org/packages/23/96/d828354fa2dbdf216eaa7b7de0db692f12c234f7ef888cc14980ef40d1d2/attrs-19.1.0-py2.py3-none-any.whl
Collecting py>=1.5.0 (from pytest==4.5.0->-r /requirements/local.txt (line 11))
  Downloading https://files.pythonhosted.org/packages/76/bc/394ad449851729244a97857ee14d7cba61ddb268dce3db538ba2f2ba1f0f/py-1.8.0-py2.py3-none-any.whl (83kB)
Collecting pluggy!=0.10,<1.0,>=0.9 (from pytest==4.5.0->-r /requirements/local.txt (line 11))
  Downloading https://files.pythonhosted.org/packages/06/ee/de89e0582276e3551df3110088bf20844de2b0e7df2748406876cc78e021/pluggy-0.12.0-py2.py3-none-any.whl
Collecting atomicwrites>=1.0 (from pytest==4.5.0->-r /requirements/local.txt (line 11))
  Downloading https://files.pythonhosted.org/packages/52/90/6155aa926f43f2b2a22b01be7241be3bfd1ceaf7d0b3267213e8127d41f4/atomicwrites-1.3.0-py2.py3-none-any.whl
Collecting termcolor>=1.1.0 (from pytest-sugar==0.9.2->-r /requirements/local.txt (line 12))
  Downloading https://files.pythonhosted.org/packages/8a/48/a76be51647d0eb9f10e2a4511bf3ffb8cc1e6b14e9e4fab46173aa79f981/termcolor-1.1.0.tar.gz
Collecting pyflakes<2.2.0,>=2.1.0 (from flake8==3.7.7->-r /requirements/local.txt (line 16))
  Downloading https://files.pythonhosted.org/packages/84/f2/ed0ffb887f8138a8fe5a621b8c0bb9598bfb3989e029f6c6a85ee66628ee/pyflakes-2.1.1-py2.py3-none-any.whl (59kB)
Collecting mccabe<0.7.0,>=0.6.0 (from flake8==3.7.7->-r /requirements/local.txt (line 16))
  Downloading https://files.pythonhosted.org/packages/87/89/479dc97e18549e21354893e4ee4ef36db1d237534982482c3681ee6e7b57/mccabe-0.6.1-py2.py3-none-any.whl
Collecting pycodestyle<2.6.0,>=2.5.0 (from flake8==3.7.7->-r /requirements/local.txt (line 16))
  Downloading https://files.pythonhosted.org/packages/0e/0c/04a353e104d2f324f8ee5f4b32012618c1c86dd79e52a433b64fceed511b/pycodestyle-2.5.0-py2.py3-none-any.whl (51kB)
Collecting entrypoints<0.4.0,>=0.3.0 (from flake8==3.7.7->-r /requirements/local.txt (line 16))
  Downloading https://files.pythonhosted.org/packages/ac/c6/44694103f8c221443ee6b0041f69e2740d89a25641e62fb4f2ee568f2f9c/entrypoints-0.3-py2.py3-none-any.whl
Collecting appdirs (from black==19.3b0->-r /requirements/local.txt (line 18))
  Downloading https://files.pythonhosted.org/packages/56/eb/810e700ed1349edde4cbdc1b2a21e28cdf115f9faf263f6bbf8447c1abf3/appdirs-1.4.3-py2.py3-none-any.whl
Collecting toml>=0.9.4 (from black==19.3b0->-r /requirements/local.txt (line 18))
  Downloading https://files.pythonhosted.org/packages/a2/12/ced7105d2de62fa7c8fb5fce92cc4ce66b57c95fb875e9318dba7f8c5db0/toml-0.10.0-py2.py3-none-any.whl
Collecting click>=6.5 (from black==19.3b0->-r /requirements/local.txt (line 18))
  Downloading https://files.pythonhosted.org/packages/fa/37/45185cb5abbc30d7257104c434fe0b07e5a195a6847506c074527aa599ec/Click-7.0-py2.py3-none-any.whl (81kB)
Collecting pylint-plugin-utils>=0.5 (from pylint-django==2.0.9->-r /requirements/local.txt (line 19))
  Downloading https://files.pythonhosted.org/packages/71/07/b4f654b1182fd668cdb715dfd6fd5ae2d66264e5b810ec61bdb99aa675c5/pylint-plugin-utils-0.5.tar.gz
Collecting pylint>=2.0 (from pylint-django==2.0.9->-r /requirements/local.txt (line 19))
  Downloading https://files.pythonhosted.org/packages/60/c2/b3f73f4ac008bef6e75bca4992f3963b3f85942e0277237721ef1c151f0d/pylint-2.3.1-py3-none-any.whl (765kB)
Collecting Faker>=0.7.0 (from factory-boy==2.12.0->-r /requirements/local.txt (line 23))
  Downloading https://files.pythonhosted.org/packages/52/1a/930431923062857520bae512101a648ef528cd327583fda38d9e76fab5ce/Faker-1.0.7-py2.py3-none-any.whl (874kB)
Collecting pycparser (from cffi>=1.0.0->argon2-cffi==19.1.0->-r /requirements/./base.txt (line 4))
  Downloading https://files.pythonhosted.org/packages/68/9e/49196946aee219aead1290e00d1e7fdeab8567783e83e1b9ab5585e6206a/pycparser-2.19.tar.gz (158kB)
Collecting defusedxml (from python3-openid>=3.0.8->django-allauth==0.39.1->-r /requirements/./base.txt (line 12))
  Downloading https://files.pythonhosted.org/packages/06/74/9b387472866358ebc08732de3da6dc48e44b0aacd2ddaa5cb85ab7e986a2/defusedxml-0.6.0-py2.py3-none-any.whl
Collecting oauthlib>=3.0.0 (from requests-oauthlib>=0.3.0->django-allauth==0.39.1->-r /requirements/./base.txt (line 12))
  Downloading https://files.pythonhosted.org/packages/16/95/699466b05b72b94a41f662dc9edf87fda4289e3602ecd42d27fcaddf7b56/oauthlib-3.0.1-py2.py3-none-any.whl (142kB)
Collecting chardet<3.1.0,>=3.0.2 (from requests->django-allauth==0.39.1->-r /requirements/./base.txt (line 12))
  Downloading https://files.pythonhosted.org/packages/bc/a9/01ffebfb562e4274b6487b4bb1ddec7ca55ec7510b22e4c51f14098443b8/chardet-3.0.4-py2.py3-none-any.whl (133kB)
Collecting idna<2.9,>=2.5 (from requests->django-allauth==0.39.1->-r /requirements/./base.txt (line 12))
  Downloading https://files.pythonhosted.org/packages/14/2c/cd551d81dbe15200be1cf41cd03869a46fe7226e7450af7a6545bfc474c9/idna-2.8-py2.py3-none-any.whl (58kB)
Collecting certifi>=2017.4.17 (from requests->django-allauth==0.39.1->-r /requirements/./base.txt (line 12))
  Downloading https://files.pythonhosted.org/packages/60/75/f692a584e85b7eaba0e03827b3d51f45f571c2e793dd731e598828d380aa/certifi-2019.3.9-py2.py3-none-any.whl (158kB)
Collecting urllib3!=1.25.0,!=1.25.1,<1.26,>=1.21.1 (from requests->django-allauth==0.39.1->-r /requirements/./base.txt (line 12))
  Downloading https://files.pythonhosted.org/packages/e6/60/247f23a7121ae632d62811ba7f273d0e58972d75e58a94d329d51550a47d/urllib3-1.25.3-py2.py3-none-any.whl (150kB)
Collecting decorator (from ipython>=5.1.0->ipdb==0.12->-r /requirements/local.txt (line 4))
  Downloading https://files.pythonhosted.org/packages/5f/88/0075e461560a1e750a0dcbf77f1d9de775028c37a19a346a6c565a257399/decorator-4.4.0-py2.py3-none-any.whl
Collecting pickleshare (from ipython>=5.1.0->ipdb==0.12->-r /requirements/local.txt (line 4))
  Downloading https://files.pythonhosted.org/packages/9a/41/220f49aaea88bc6fa6cba8d05ecf24676326156c23b991e80b3f2fc24c77/pickleshare-0.7.5-py2.py3-none-any.whl
Collecting prompt-toolkit<2.1.0,>=2.0.0 (from ipython>=5.1.0->ipdb==0.12->-r /requirements/local.txt (line 4))
  Downloading https://files.pythonhosted.org/packages/f7/a7/9b1dd14ef45345f186ef69d175bdd2491c40ab1dfa4b2b3e4352df719ed7/prompt_toolkit-2.0.9-py3-none-any.whl (337kB)
Collecting backcall (from ipython>=5.1.0->ipdb==0.12->-r /requirements/local.txt (line 4))
  Downloading https://files.pythonhosted.org/packages/84/71/c8ca4f5bb1e08401b916c68003acf0a0655df935d74d93bf3f3364b310e0/backcall-0.1.0.tar.gz
Collecting pexpect; sys_platform != "win32" (from ipython>=5.1.0->ipdb==0.12->-r /requirements/local.txt (line 4))
  Downloading https://files.pythonhosted.org/packages/0e/3e/377007e3f36ec42f1b84ec322ee12141a9e10d808312e5738f52f80a232c/pexpect-4.7.0-py2.py3-none-any.whl (58kB)
Collecting jedi>=0.10 (from ipython>=5.1.0->ipdb==0.12->-r /requirements/local.txt (line 4))
  Downloading https://files.pythonhosted.org/packages/25/2b/1f188901be099d52d7b06f4d3b7cb9f8f09692c50697b139eaf6fa2928d8/jedi-0.13.3-py2.py3-none-any.whl (178kB)
Collecting traitlets>=4.2 (from ipython>=5.1.0->ipdb==0.12->-r /requirements/local.txt (line 4))
  Downloading https://files.pythonhosted.org/packages/93/d6/abcb22de61d78e2fc3959c964628a5771e47e7cc60d53e9342e21ed6cc9a/traitlets-4.3.2-py2.py3-none-any.whl (74kB)
Collecting MarkupSafe>=0.23 (from Jinja2>=2.3->Sphinx==2.0.1->-r /requirements/local.txt (line 5))
  Downloading https://files.pythonhosted.org/packages/b9/2e/64db92e53b86efccfaea71321f597fa2e1b2bd3853d8ce658568f7a13094/MarkupSafe-1.1.1.tar.gz
Collecting pyparsing>=2.0.2 (from packaging->Sphinx==2.0.1->-r /requirements/local.txt (line 5))
  Downloading https://files.pythonhosted.org/packages/dd/d9/3ec19e966301a6e25769976999bd7bbe552016f0d32b577dc9d63d2e0c49/pyparsing-2.4.0-py2.py3-none-any.whl (62kB)
Collecting importlib-metadata>=0.12 (from pluggy!=0.10,<1.0,>=0.9->pytest==4.5.0->-r /requirements/local.txt (line 11))
  Downloading https://files.pythonhosted.org/packages/63/da/4270fe75ba542de6a350c59339988e4a5275d3efff80b704ca2b5ede8120/importlib_metadata-0.15-py2.py3-none-any.whl
Collecting astroid<3,>=2.2.0 (from pylint>=2.0->pylint-django==2.0.9->-r /requirements/local.txt (line 19))
  Downloading https://files.pythonhosted.org/packages/d5/ad/7221a62a2dbce5c3b8c57fd18e1052c7331adc19b3f27f1561aa6e620db2/astroid-2.2.5-py3-none-any.whl (193kB)
Collecting isort<5,>=4.2.5 (from pylint>=2.0->pylint-django==2.0.9->-r /requirements/local.txt (line 19))
  Downloading https://files.pythonhosted.org/packages/1c/d9/bf5848b376e441ff358a14b954476423eeeb8c9b78c10074b7f53ce2918d/isort-4.3.20-py2.py3-none-any.whl (42kB)
Collecting python-dateutil>=2.4 (from Faker>=0.7.0->factory-boy==2.12.0->-r /requirements/local.txt (line 23))
  Downloading https://files.pythonhosted.org/packages/41/17/c62faccbfbd163c7f57f3844689e3a78bae1f403648a6afb1d0866d87fbb/python_dateutil-2.8.0-py2.py3-none-any.whl (226kB)
Collecting ptyprocess>=0.5 (from pexpect; sys_platform != "win32"->ipython>=5.1.0->ipdb==0.12->-r /requirements/local.txt (line 4))
  Downloading https://files.pythonhosted.org/packages/d1/29/605c2cc68a9992d18dada28206eeada56ea4bd07a239669da41674648b6f/ptyprocess-0.6.0-py2.py3-none-any.whl
Collecting parso>=0.3.0 (from jedi>=0.10->ipython>=5.1.0->ipdb==0.12->-r /requirements/local.txt (line 4))
  Downloading https://files.pythonhosted.org/packages/a7/bd/e2f4753c5fa93932899243b4299011a757ac212e9bc8ddf062f38df4e78b/parso-0.4.0-py2.py3-none-any.whl (94kB)
Collecting ipython-genutils (from traitlets>=4.2->ipython>=5.1.0->ipdb==0.12->-r /requirements/local.txt (line 4))
  Downloading https://files.pythonhosted.org/packages/fa/bc/9bd3b5c2b4774d5f33b2d544f1460be9df7df2fe42f352135381c347c69a/ipython_genutils-0.2.0-py2.py3-none-any.whl
Collecting zipp>=0.5 (from importlib-metadata>=0.12->pluggy!=0.10,<1.0,>=0.9->pytest==4.5.0->-r /requirements/local.txt (line 11))
  Downloading https://files.pythonhosted.org/packages/a0/0f/9bf71d438d2e9d5fd0e4569ea4d1a2b6f5a524c234c6d221b494298bb4d1/zipp-0.5.1-py2.py3-none-any.whl
Collecting lazy-object-proxy (from astroid<3,>=2.2.0->pylint>=2.0->pylint-django==2.0.9->-r /requirements/local.txt (line 19))
  Downloading https://files.pythonhosted.org/packages/ad/57/a36f682668ffc453e86ddfb5a2a49848edcb7bd04a210a5a8692a48ed9c4/lazy-object-proxy-1.4.1.tar.gz
Collecting wrapt (from astroid<3,>=2.2.0->pylint>=2.0->pylint-django==2.0.9->-r /requirements/local.txt (line 19))
  Downloading https://files.pythonhosted.org/packages/67/b2/0f71ca90b0ade7fad27e3d20327c996c6252a2ffe88f50a95bba7434eda9/wrapt-1.11.1.tar.gz
Building wheels for collected packages: argon2-cffi
  Building wheel for argon2-cffi (PEP 517): started
  Building wheel for argon2-cffi (PEP 517): finished with status 'done'
  Stored in directory: /root/.cache/pip/wheels/91/97/5f/7dec299b1642e4024c809d65cf42595dab2fd0dd38f7d291c3
Successfully built argon2-cffi
Skipping bdist_wheel for psycopg2, due to binaries being disabled for it.
Building wheels for collected packages: python-slugify, Pillow, django-allauth, ipdb, coverage, django-coverage-plugin, cffi, itypes, coreschema, typed-ast, termcolor, pylint-plugin-utils, pycparser, backcall, MarkupSafe, lazy-object-proxy, wrapt
  Building wheel for python-slugify (setup.py): started
  Building wheel for python-slugify (setup.py): finished with status 'done'
  Stored in directory: /root/.cache/pip/wheels/16/7f/c3/6b0582283ad589d68a306da924a78c74546e010d8106b9b3a9
  Building wheel for Pillow (setup.py): started
  Building wheel for Pillow (setup.py): finished with status 'done'
  Stored in directory: /root/.cache/pip/wheels/05/03/c9/99c1acae53cf1c705b44ec35764c98b769543b8b50da2f447d
  Building wheel for django-allauth (setup.py): started
  Building wheel for django-allauth (setup.py): finished with status 'done'
  Stored in directory: /root/.cache/pip/wheels/54/fd/82/85627ea8a473608cec4fa5ca58bdfdf41c3845a40fd4fb1d16
  Building wheel for ipdb (setup.py): started
  Building wheel for ipdb (setup.py): finished with status 'done'
  Stored in directory: /root/.cache/pip/wheels/59/24/91/695211bd228d40fb22dff0ce3f05ba41ab724ab771736233f3
  Building wheel for coverage (setup.py): started
  Building wheel for coverage (setup.py): finished with status 'done'
  Stored in directory: /root/.cache/pip/wheels/5a/8e/cc/e8e6791c9a7cafbe0d078fda0855646e2bad210092dae7670f
  Building wheel for django-coverage-plugin (setup.py): started
  Building wheel for django-coverage-plugin (setup.py): finished with status 'done'
  Stored in directory: /root/.cache/pip/wheels/4a/53/42/5099845fa36fc163f8ac3c2cb8c75514b9be42fbd996d2c276
  Building wheel for cffi (setup.py): started
  Building wheel for cffi (setup.py): finished with status 'done'
  Stored in directory: /root/.cache/pip/wheels/94/a7/7a/9782ab473d88ec2d4994a7dd2d006b1352c71da3ad34ebcaeb
  Building wheel for itypes (setup.py): started
  Building wheel for itypes (setup.py): finished with status 'done'
  Stored in directory: /root/.cache/pip/wheels/7b/52/af/4e27324812e7ab7bbbc30f748d317f3739477562325cb4c723
  Building wheel for coreschema (setup.py): started
  Building wheel for coreschema (setup.py): finished with status 'done'
  Stored in directory: /root/.cache/pip/wheels/10/7b/ba/04fcd6b33e6123ca11a5f5ab56decb1a2d87ced028377a1377
  Building wheel for typed-ast (setup.py): started
  Building wheel for typed-ast (setup.py): finished with status 'done'
  Stored in directory: /root/.cache/pip/wheels/79/94/8f/f288471c040c37818b1bad62d68fbc81a5c41309d9199f0c27
  Building wheel for termcolor (setup.py): started
  Building wheel for termcolor (setup.py): finished with status 'done'
  Stored in directory: /root/.cache/pip/wheels/7c/06/54/bc84598ba1daf8f970247f550b175aaaee85f68b4b0c5ab2c6
  Building wheel for pylint-plugin-utils (setup.py): started
  Building wheel for pylint-plugin-utils (setup.py): finished with status 'done'
  Stored in directory: /root/.cache/pip/wheels/51/53/cc/120de01bc9ceb868a1fccab0dfe866da6f22cec2e05b5c5034
  Building wheel for pycparser (setup.py): started
  Building wheel for pycparser (setup.py): finished with status 'done'
  Stored in directory: /root/.cache/pip/wheels/f2/9a/90/de94f8556265ddc9d9c8b271b0f63e57b26fb1d67a45564511
  Building wheel for backcall (setup.py): started
  Building wheel for backcall (setup.py): finished with status 'done'
  Stored in directory: /root/.cache/pip/wheels/98/b0/dd/29e28ff615af3dda4c67cab719dd51357597eabff926976b45
  Building wheel for MarkupSafe (setup.py): started
  Building wheel for MarkupSafe (setup.py): finished with status 'done'
  Stored in directory: /root/.cache/pip/wheels/f2/aa/04/0edf07a1b8a5f5f1aed7580fffb69ce8972edc16a505916a77
  Building wheel for lazy-object-proxy (setup.py): started
  Building wheel for lazy-object-proxy (setup.py): finished with status 'done'
  Stored in directory: /root/.cache/pip/wheels/38/ab/06/6704a617f5c5f3939c4ecfddc4bdfc237ddd15e68459ddccc4
  Building wheel for wrapt (setup.py): started
  Building wheel for wrapt (setup.py): finished with status 'done'
  Stored in directory: /root/.cache/pip/wheels/89/67/41/63cbf0f6ac0a6156588b9587be4db5565f8c6d8ccef98202fc
Successfully built python-slugify Pillow django-allauth ipdb coverage django-coverage-plugin cffi itypes coreschema typed-ast termcolor pylint-plugin-utils pycparser backcall MarkupSafe lazy-object-proxy wrapt
Installing collected packages: pytz, text-unidecode, python-slugify, Pillow, pycparser, cffi, six, argon2-cffi, redis, sqlparse, django, django-environ, django-model-utils, defusedxml, python3-openid, oauthlib, chardet, idna, certifi, urllib3, requests, requests-oauthlib, django-allauth, django-crispy-forms, django-redis, djangorestframework, itypes, uritemplate, MarkupSafe, Jinja2, coreschema, coreapi, Werkzeug, decorator, Pygments, pickleshare, wcwidth, prompt-toolkit, backcall, ptyprocess, pexpect, parso, jedi, ipython-genutils, traitlets, ipython, ipdb, babel, sphinxcontrib-jsmath, sphinxcontrib-serializinghtml, snowballstemmer, pyparsing, packaging, sphinxcontrib-htmlhelp, imagesize, sphinxcontrib-qthelp, docutils, sphinxcontrib-applehelp, alabaster, sphinxcontrib-devhelp, Sphinx, psycopg2, mypy-extensions, typed-ast, mypy, more-itertools, attrs, py, zipp, importlib-metadata, pluggy, atomicwrites, pytest, termcolor, pytest-sugar, pyflakes, mccabe, pycodestyle, entrypoints, flake8, coverage, appdirs, toml, click, black, lazy-object-proxy, wrapt, astroid, isort, pylint, pylint-plugin-utils, pylint-django, python-dateutil, Faker, factory-boy, django-debug-toolbar, django-extensions, django-coverage-plugin, pytest-django
  Running setup.py install for psycopg2: started
    Running setup.py install for psycopg2: finished with status 'done'
Successfully installed Faker-1.0.7 Jinja2-2.10.1 MarkupSafe-1.1.1 Pillow-6.0.0 Pygments-2.4.2 Sphinx-2.0.1 Werkzeug-0.14.1 alabaster-0.7.12 appdirs-1.4.3 argon2-cffi-19.1.0 astroid-2.2.5 atomicwrites-1.3.0 attrs-19.1.0 babel-2.7.0 backcall-0.1.0 black-19.3b0 certifi-2019.3.9 cffi-1.12.3 chardet-3.0.4 click-7.0 coreapi-2.3.3 coreschema-0.0.4 coverage-4.5.3 decorator-4.4.0 defusedxml-0.6.0 django-2.2.1 django-allauth-0.39.1 django-coverage-plugin-1.6.0 django-crispy-forms-1.7.2 django-debug-toolbar-1.11 django-environ-0.4.5 django-extensions-2.1.7 django-model-utils-3.1.2 django-redis-4.10.0 djangorestframework-3.9.4 docutils-0.14 entrypoints-0.3 factory-boy-2.12.0 flake8-3.7.7 idna-2.8 imagesize-1.1.0 importlib-metadata-0.15 ipdb-0.12 ipython-7.5.0 ipython-genutils-0.2.0 isort-4.3.20 itypes-1.1.0 jedi-0.13.3 lazy-object-proxy-1.4.1 mccabe-0.6.1 more-itertools-7.0.0 mypy-0.701 mypy-extensions-0.4.1 oauthlib-3.0.1 packaging-19.0 parso-0.4.0 pexpect-4.7.0 pickleshare-0.7.5 pluggy-0.12.0 prompt-toolkit-2.0.9 psycopg2-2.8.2 ptyprocess-0.6.0 py-1.8.0 pycodestyle-2.5.0 pycparser-2.19 pyflakes-2.1.1 pylint-2.3.1 pylint-django-2.0.9 pylint-plugin-utils-0.5 pyparsing-2.4.0 pytest-4.5.0 pytest-django-3.4.8 pytest-sugar-0.9.2 python-dateutil-2.8.0 python-slugify-3.0.2 python3-openid-3.1.0 pytz-2019.1 redis-3.2.1 requests-2.22.0 requests-oauthlib-1.2.0 six-1.12.0 snowballstemmer-1.2.1 sphinxcontrib-applehelp-1.0.1 sphinxcontrib-devhelp-1.0.1 sphinxcontrib-htmlhelp-1.0.2 sphinxcontrib-jsmath-1.0.1 sphinxcontrib-qthelp-1.0.2 sphinxcontrib-serializinghtml-1.1.3 sqlparse-0.3.0 termcolor-1.1.0 text-unidecode-1.2 toml-0.10.0 traitlets-4.3.2 typed-ast-1.3.5 uritemplate-3.0.0 urllib3-1.25.3 wcwidth-0.1.7 wrapt-1.11.1 zipp-0.5.1
Removing intermediate container 03f65f11366a
 ---> fd54736c2886
Step 6/14 : COPY ./compose/production/django/entrypoint /entrypoint
 ---> 1bcf4901865b
Step 7/14 : RUN sed -i 's/\r//' /entrypoint
 ---> Running in 6fd279423bbb
Removing intermediate container 6fd279423bbb
 ---> 7526ad0405cf
Step 8/14 : RUN chmod +x /entrypoint
 ---> Running in e1242e3a1bde
Removing intermediate container e1242e3a1bde
 ---> dd2386aea006
Step 9/14 : COPY ./compose/local/django/start /start
 ---> d8d94c51f1cb
Step 10/14 : RUN sed -i 's/\r//' /start
 ---> Running in 4aa308a9bde8
Removing intermediate container 4aa308a9bde8
 ---> aba91293cb6e
Step 11/14 : RUN chmod +x /start
 ---> Running in 077b1f9c0433
Removing intermediate container 077b1f9c0433
 ---> c6ddcf1d42d7
Step 12/14 : COPY . /app
 ---> bf0957643e79
Step 13/14 : WORKDIR /app
 ---> Running in 2912026fcd25
Removing intermediate container 2912026fcd25
 ---> 21dbeb4fc34f
Step 14/14 : ENTRYPOINT ["/entrypoint"]
 ---> Running in 058891fe9207
Removing intermediate container 058891fe9207
 ---> 78b9ba9637cd
Successfully built 78b9ba9637cd
Successfully tagged builder2_local_django:latest

USER@LAPTOP MINGW64 /d/!Code/builder2
$ ls -la
total 39
drwxr-xr-x 1 TCartwright 197121    0 May 29 09:39 ./
drwxr-xr-x 1 TCartwright 197121    0 May 29 09:39 ../
-rw-r--r-- 1 TCartwright 197121   98 May 29 09:39 .coveragerc
-rw-r--r-- 1 TCartwright 197121   37 May 29 09:39 .dockerignore
-rw-r--r-- 1 TCartwright 197121  513 May 29 09:39 .editorconfig
drwxr-xr-x 1 TCartwright 197121    0 May 29 09:39 .envs/
-rw-r--r-- 1 TCartwright 197121   13 May 29 09:39 .gitattributes
-rw-r--r-- 1 TCartwright 197121 4214 May 29 09:39 .gitignore
-rw-r--r-- 1 TCartwright 197121  256 May 29 09:39 .pylintrc
drwxr-xr-x 1 TCartwright 197121    0 May 29 09:39 builder2/
drwxr-xr-x 1 TCartwright 197121    0 May 29 09:39 compose/
drwxr-xr-x 1 TCartwright 197121    0 May 29 09:39 config/
drwxr-xr-x 1 TCartwright 197121    0 May 29 09:39 docs/
-rw-r--r-- 1 TCartwright 197121  738 May 29 09:39 local.yml
drwxr-xr-x 1 TCartwright 197121    0 May 29 09:39 locale/
-rwxr-xr-x 1 TCartwright 197121 1061 May 29 09:39 manage.py*
-rw-r--r-- 1 TCartwright 197121 2236 May 29 09:39 merge_production_dotenvs_in_dotenv.py
-rw-r--r-- 1 TCartwright 197121 1308 May 29 09:39 production.yml
-rw-r--r-- 1 TCartwright 197121   55 May 29 09:39 pytest.ini
-rw-r--r-- 1 TCartwright 197121 2157 May 29 09:39 README.rst
drwxr-xr-x 1 TCartwright 197121    0 May 29 09:39 requirements/
-rw-r--r-- 1 TCartwright 197121  536 May 29 09:39 setup.cfg

USER@LAPTOP MINGW64 /d/!Code/builder2
$ cat compose/local/django/Dockerfile
FROM python:3.6-alpine

ENV PYTHONUNBUFFERED 1

RUN apk update \
  # psycopg2 dependencies
  && apk add --virtual build-deps gcc python3-dev musl-dev \
  && apk add postgresql-dev \
  # Pillow dependencies
  && apk add jpeg-dev zlib-dev freetype-dev lcms2-dev openjpeg-dev tiff-dev tk-dev tcl-dev \
  # CFFI dependencies
  && apk add libffi-dev py-cffi \
  # Translations dependencies
  && apk add gettext \
  # https://docs.djangoproject.com/en/dev/ref/django-admin/#dbshell
  && apk add postgresql-client

# Requirements are installed here to ensure they will be cached.
COPY ./requirements /requirements
RUN pip install -r /requirements/local.txt

COPY ./compose/production/django/entrypoint /entrypoint
RUN sed -i 's/\r//' /entrypoint
RUN chmod +x /entrypoint

COPY ./compose/local/django/start /start
RUN sed -i 's/\r//' /start
RUN chmod +x /start

COPY . /app

WORKDIR /app

ENTRYPOINT ["/entrypoint"]

USER@LAPTOP MINGW64 /d/!Code/builder2
$ docker-compose -f local.yml up
Creating network "builder2_default" with the default driver
Creating builder2_postgres_1 ... done
Creating builder2_django_1   ... done
Attaching to builder2_postgres_1, builder2_django_1
postgres_1  | 2019-05-29 00:08:38.852 UTC [1] LOG:  listening on IPv4 address "0.0.0.0", port 5432
postgres_1  | 2019-05-29 00:08:38.852 UTC [1] LOG:  listening on IPv6 address "::", port 5432
postgres_1  | 2019-05-29 00:08:38.854 UTC [1] LOG:  listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
postgres_1  | 2019-05-29 00:08:38.874 UTC [21] LOG:  database system was shut down at 2019-05-28 23:43:37 UTC
django_1    | PostgreSQL is available
django_1    | python: can't open file 'manage.py': [Errno 2] No such file or directory
builder2_django_1 exited with code 2
Gracefully stopping... (press Ctrl+C again to force)
Stopping builder2_postgres_1 ... done

USER@LAPTOP MINGW64 /d/!Code/builder2
$  docker-compose -f local.yml run django sh
Starting builder2_postgres_1 ... done
PostgreSQL is available
/app # ls -la
total 4
drwxr-xr-x    2 root     root            40 May 28 23:41 .
drwxr-xr-x    1 root     root          4096 May 29 00:09 ..
/app # cd ..
/ # ls -la
total 76
drwxr-xr-x    1 root     root          4096 May 29 00:09 .
drwxr-xr-x    1 root     root          4096 May 29 00:09 ..
-rwxr-xr-x    1 root     root             0 May 29 00:09 .dockerenv
drwxr-xr-x    2 root     root            40 May 28 23:41 app
drwxr-xr-x    1 root     root          4096 May 11 02:07 bin
drwxr-xr-x    5 root     root           360 May 29 00:09 dev
-rwxr-xr-x    1 root     root           814 May 29 00:02 entrypoint
drwxr-xr-x    1 root     root          4096 May 29 00:09 etc
drwxr-xr-x    2 root     root          4096 May  9 20:49 home
drwxr-xr-x    1 root     root          4096 May 28 23:58 lib
drwxr-xr-x    5 root     root          4096 May  9 20:49 media
drwxr-xr-x    2 root     root          4096 May  9 20:49 mnt
drwxr-xr-x    2 root     root          4096 May  9 20:49 opt
dr-xr-xr-x  140 root     root             0 May 29 00:09 proc
drwxr-xr-x    2 root     root          4096 May 28 23:58 requirements
drwx------    1 root     root          4096 May 29 00:09 root
drwxr-xr-x    2 root     root          4096 May  9 20:49 run
drwxr-xr-x    2 root     root          4096 May  9 20:49 sbin
drwxr-xr-x    2 root     root          4096 May  9 20:49 srv
-rwxr-xr-x    1 root     root           129 May 29 00:02 start
dr-xr-xr-x   13 root     root             0 May 29 00:09 sys
drwxrwxrwt    1 root     root          4096 May 29 00:02 tmp
drwxr-xr-x    1 root     root          4096 May 28 23:57 usr
drwxr-xr-x    1 root     root          4096 May  9 20:49 var
/ # exit
philiphoyos commented 5 years ago

Has anyone tried my earlier suggestion? Adding the code to your local container like we do in the production one:

https://github.com/pydanny/cookiecutter-django/blob/729dddcab6afacdce49f5ce200af1c1b97ebbbea/%7B%7Bcookiecutter.project_slug%7D%7D/compose/production/django/Dockerfile#L62

I made the change on a branch, you can try it:

cookiecutter https://github.com/pydanny/cookiecutter-django --checkout fix/empty-local-docker

I tried this, and did not have success with it either.

trungdong commented 5 years ago

I had the same issue and it was caused by my Vmware Fusion's inability to mount the . folder to /app. Hence, the /app folder is empty inside the Docker container.

I solved it by following the tips at machine-drivers/docker-machine-driver-vmware#15. Specifically, I now mount the /app folder as follows:

    volumes:
      - /hosthome/username/project:/app

However, mine is a platform-specific issue (Docker with Vmware Fusion on Mac) and has nothing to do with cookiecutter-django.

browniebroke commented 5 years ago

Not sure if that's related, but I stumbled upon this issue in the compose repo, where there is a mention of a limitation from Docker compose on windows:

By default, only the C drive is shared between the Windows host and the VM. Based on your output, I suspect you are working from your G drive, which isn't shared by default. As a result, docker will create an empty /g/ directory inside the VM and bind-mount that.

If your project is not in the C drive, it could be it...

Coengineer-AU commented 5 years ago

Not sure if that's related, but I stumbled upon [this issue] .... If your project is not in the C drive, it could be it...

I had high hopes that was it, since I was indeed building it on D Drive, however I've run through the exact same process with both the master and branch on C Drive and still have the same issues occurring.

philiphoyos commented 5 years ago

I have done a bit of testing. I've tried with cookiecutter-flask and I actually got a problem with missing file again:

I know its not the same project, but you will get the info here anyway for clarity:

Creating myhome_flask-dev_1 ... done
Attaching to myhome_flask-dev_1
flask-dev_1   | Creating a Pipfile for this project…
flask-dev_1   | npm ERR! path /app/package.json
flask-dev_1   | npm ERR! code ENOENT
flask-dev_1   | npm ERR! errno -2
flask-dev_1   | npm ERR! syscall open
flask-dev_1   | npm ERR! enoent ENOENT: no such file or directory, open '/app/package.json'
flask-dev_1   | npm ERR! enoent This is related to npm not being able to find a file.
flask-dev_1   | npm ERR! enoent
flask-dev_1   |
flask-dev_1   | npm ERR! A complete log of this run can be found in:
flask-dev_1   | npm ERR!     /root/.npm/_logs/2019-06-03T15_44_15_753Z-debug.log
myhome_flask-dev_1 exited with code 254

Following the issue, that you refereed @browniebroke I thought it might be a problem with shared volumes. So I tried building a simple flask app with no volumes, and I had no problems.

So based on this very limited test it could be that the problem is not with this repo, but with docker volumes on windows. Im looking into this.

rubimpassos commented 5 years ago

I had the same problem a while ago and in my case was related to Docker for Windows. Try reset docker to factory defaults and share the drive where your project is located.

philiphoyos commented 5 years ago

As a follow-up. I just tested on a ubuntu machine, and had no problem what so ever. @browniebroke the problem seems to be related only to windows and not related to cookiecutter, but the docker compose configuration.

mahidul-islam commented 4 years ago

Having same issue on ubuntu

James7777 commented 4 years ago

I was getting the same issue, it seem to have been the mounting issue. how I resolved it;

razmik commented 4 years ago

I was getting the same issue, it seem to have been the mounting issue. how I resolved it;

  • I think there is an issue with access to folders outside "C:\Users" area in windows - make sure your app is located in "C:\Users\your PC_NAME\your folder\your app". this was my main issue. you can also add 'any other folder location ' to virtualbox After this, I deleted all containers and images, deleted cache, rebuilt the app. steps 1- moved my app to "C:\Users\your PC_NAME\your folder\your app" 2- docker stop $(docker ps -a -q) 3- docker-compose -f local.yml down --rmi all -v 4- docker builder prune 5- docker system prune -a 6- docker-compose -f local.yml build 7- docker-compose -f local.yml up Hope this helps someone with the same issue.

Thanks @James7777. Worked once moved the app to C: and rebuild.

sanan-fataliyev commented 4 years ago

I have the same issue OS: macOS Mojave 10.14.2 docker-machine version 0.16.2, build bd45ab13 Docker version 19.03.4, build 9013bf5

command was:

docker-compose  -f local.yml build
docker-compose  -f local.yml up

Here's the log:

Starting cy_mailhog_1  ... done
Starting cy_postgres_1 ... done
Starting cy_redis_1    ... done
Starting cy_celerybeat_1   ... done
Starting cy_django_1       ... done
Starting cy_celeryworker_1 ... done
Starting cy_flower_1       ... done
Attaching to cy_redis_1, cy_mailhog_1, cy_postgres_1, cy_celeryworker_1, cy_celerybeat_1, cy_django_1, cy_flower_1
redis_1         | 1:C 18 Dec 2019 16:54:23.224 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
redis_1         | 1:C 18 Dec 2019 16:54:23.225 # Redis version=5.0.7, bits=64, commit=00000000, modified=0, pid=1, just started
redis_1         | 1:C 18 Dec 2019 16:54:23.225 # Warning: no config file specified, using the default config. In order to specify a config file use redis-server /path/to/redis.conf
mailhog_1       | 2019/12/18 16:54:23 Using in-memory storage
mailhog_1       | 2019/12/18 16:54:23 [SMTP] Binding to address: 0.0.0.0:1025
mailhog_1       | 2019/12/18 16:54:23 Serving under http://0.0.0.0:8025/
postgres_1      | 2019-12-18 16:54:23.465 UTC [1] LOG:  listening on IPv4 address "0.0.0.0", port 5432
postgres_1      | 2019-12-18 16:54:23.465 UTC [1] LOG:  listening on IPv6 address "::", port 5432
postgres_1      | 2019-12-18 16:54:23.470 UTC [1] LOG:  listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
postgres_1      | 2019-12-18 16:54:23.491 UTC [22] LOG:  database system was interrupted; last known up at 2019-12-18 16:51:01 UTC
redis_1         | 1:M 18 Dec 2019 16:54:23.226 * Running mode=standalone, port=6379.
redis_1         | 1:M 18 Dec 2019 16:54:23.226 # WARNING: The TCP backlog setting of 511 cannot be enforced because /proc/sys/net/core/somaxconn is set to the lower value of 128.
redis_1         | 1:M 18 Dec 2019 16:54:23.226 # Server initialized
mailhog_1       | [HTTP] Binding to address: 0.0.0.0:8025
mailhog_1       | Creating API v1 with WebPath:
postgres_1      | 2019-12-18 16:54:23.687 UTC [22] LOG:  database system was not properly shut down; automatic recovery in progress
postgres_1      | 2019-12-18 16:54:23.689 UTC [22] LOG:  redo starts at 0/16527B8
postgres_1      | 2019-12-18 16:54:23.689 UTC [22] LOG:  invalid record length at 0/16527F0: wanted 24, got 0
postgres_1      | 2019-12-18 16:54:23.689 UTC [22] LOG:  redo done at 0/16527B8
django_1        | PostgreSQL is available
django_1        | python: can't open file 'manage.py': [Errno 2] No such file or directory
cy_django_1 exited with code 2
...
ryanstreur commented 4 years ago

@philiphoyos is this issue really closed? It seems like people are still having this problem, and I've been trying to figure it out too (WSL Ubuntu, Docker for Windows). Is it just us lucky few? If the cookiecutter won't work with Docker for windows, wouldn't it be better to let users of the cookiecutter know that when they're deciding to configure it that way?

browniebroke commented 4 years ago

The issue is closed because it's not something we can fix in this project, it's a more general docker-compose issue with Windows.

I don't have a Windows machine, so it's hard for me to pin down the exact conditions causing this problem. However, if someone who understands the problem wants to add a paragraph to the troubleshooting section with an actionable solution, I don't mind adding it.

Andrew-Chen-Wang commented 4 years ago

@ryanstreur It could be a multitude of issues to be honest. Regarding Windows, you could probably not have enough dependencies installed. I know I had trouble with celery and redis setup on my Windows machine and resorted to a Raspberry Pi, which btw, also needs some extra dependencies with Gulp (that’s also impossible to get Docker-wise on the Pi). Maybe you’ve replaced your current project with another but forgot to remove the legacy docker containers.

philiphoyos commented 4 years ago

@philiphoyos is this issue really closed? It seems like people are still having this problem, and I've been trying to figure it out too (WSL Ubuntu, Docker for Windows). Is it just us lucky few? If the cookiecutter won't work with Docker for windows, wouldn't it be better to let users of the cookiecutter know that when they're deciding to configure it that way?

As I recall the issue was due to mounting issues with the docker installation on windows. It seemed to me that it had nothing to do with cookiecutter itself but was related to the docker configuration on windows. That was the reason that I closed it. @James7777 seems to have found the solution to that problem - that specific note could be useful to have in the documentation.

ghost commented 4 years ago

Had the same issue, moved the project to C:/users fixed the issue, any update on an upcoming fix?

Andrew-Chen-Wang commented 4 years ago

Again, it's probably a Docker + Windows issue. @DataBrown Do you mind running a list command to show what is actually in the workdir?

LeeJuan commented 4 years ago

Windows10 User Just do it ①Click docker Settings ②Click Shared Drives ③Click Reset credentials ④Check all drive And Apply And Windows Login ⑤Retry docker-compose up

KhanMaytok commented 3 years ago

I have this problem when installing composer vendors. Seems like new files cause the problem

asencis commented 3 years ago

Just wanted to update - having this same issue on a Mac...2021. This isn't a Windows issue.

ryarasi commented 3 years ago

I have this issue on Ubuntu 20. So not Windows or Mac specific either.

ebuka-nwabueze commented 3 years ago

Just wanted to update - having this same issue on a Mac...2021. This isn't a Windows issue.

How did you fix it?

CRodz13 commented 2 years ago

I was getting the same issue, it seem to have been the mounting issue. how I resolved it;

* I think there is an issue with access to folders outside "C:\Users" area in windows - make sure your app is located in "C:\Users\your PC_NAME\your folder\your app".
  this was my main issue. you can also add 'any other folder location ' to virtualbox
  After this, I deleted all containers and images, deleted cache, rebuilt the app.
  steps
  1- moved my app to "C:\Users\your PC_NAME\your folder\your app"
  2- docker stop $(docker ps -a -q)
  3- docker-compose -f local.yml down --rmi all -v
  4- docker builder prune
  5- docker system prune -a
  6- docker-compose -f local.yml build
  7- docker-compose -f local.yml up
  Hope this helps someone with the same issue.

This worked for me like a charm. I was getting the waiting for Postgres and additional database setup issues. I did not do #1 though cause my folders already in users and #2 failed with the following... unknown shorthand flag: 'a' in -a

But all I did after was re-run docker-compose -f local.yml build again and then up. I guess it conflicts with old cached files if you dont tidy up. makes sense