Closed danieltatrai closed 5 years ago
After correcting the permissions and make createsuperuser
:
gStack git:(cleanup) ✗ make createsuperuser
docker-compose -f docker-compose.yml -f docker-compose.dev.yml run --rm -e ENV=DEV django with_django django-admin createsuperuser
WARNING: The LOG_DRIVER variable is not set. Defaulting to a blank string.
Starting gstacktest-postgres ... done
db ready
Traceback (most recent call last):
File "/python/bin/django-admin", line 11, in
I have ADMINS=Daniel daniel.tatrai@gmail.com,
in my .env
. Do not know how to solve this.
For the admins thing: must be in format name
Should handle it though
Md does not show it correctly: so email in angle brackets!
In the readme it's correct
Thanks! I thought it means it is optional for some reason.
NOTE: make migrate
needed before make createsuperuser
Back to the main errors. I guess the .env was not correct. The LOG_DRIVER variable was not set according to the error message
Guess we can close.
After creating .secret.env as a blank file I was able to generate all secrets, but after
make build
:➜ gStack git:(cleanup) ✗ make build Building 2019-01-12-13-52 docker-compose -f docker-compose.yml -f docker-compose.dev.yml down WARNING: The LOG_DRIVER variable is not set. Defaulting to a blank string. Removing gstacktest-postgres ... done Removing network gstacktest_default make imagebuild make[1]: Entering directory '/home/daniel/gStack' docker-compose -f docker-compose.yml -f docker-compose.dev.yml build WARNING: The LOG_DRIVER variable is not set. Defaulting to a blank string. Building build_js Traceback (most recent call last): File "/usr/local/lib/python3.5/dist-packages/docker/utils/build.py", line 96, in create_archive with open(full_path, 'rb') as f: PermissionError: [Errno 13] Permission denied: '/home/daniel/gStack/.files.bak/ca.key'
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "/usr/local/bin/docker-compose", line 11, in
sys.exit(main())
File "/usr/local/lib/python3.5/dist-packages/compose/cli/main.py", line 71, in main
command()
File "/usr/local/lib/python3.5/dist-packages/compose/cli/main.py", line 127, in perform_command
handler(command, command_options)
File "/usr/local/lib/python3.5/dist-packages/compose/cli/main.py", line 282, in build
gzip=options.get('--compress', False),
File "/usr/local/lib/python3.5/dist-packages/compose/project.py", line 378, in build
service.build(no_cache, pull, force_rm, memory, build_args, gzip)
File "/usr/local/lib/python3.5/dist-packages/compose/service.py", line 1067, in build
platform=self.platform,
File "/usr/local/lib/python3.5/dist-packages/docker/api/build.py", line 154, in build
path, exclude=exclude, dockerfile=dockerfile, gzip=gzip
File "/usr/local/lib/python3.5/dist-packages/docker/utils/build.py", line 31, in tar
root=root, fileobj=fileobj, gzip=gzip, extra_files=extra_files
File "/usr/local/lib/python3.5/dist-packages/docker/utils/build.py", line 100, in create_archive
'Can not read file in context: {}'.format(full_path)
OSError: Can not read file in context: /home/daniel/gStack/.files.bak/ca.key
makefile:14: recipe for target 'imagebuild' failed
make[1]: [imagebuild] Error 1
make[1]: Leaving directory '/home/daniel/gStack'
makefile:46: recipe for target 'build' failed
make: [build] Error 2
.files git:(cleanup) ✗ ls -lia total 20 2239121 drwxr-xr-x 2 daniel daniel 4096 jan 12 14:42 . 2107566 drwxrwxr-x 13 daniel daniel 4096 jan 12 14:46 .. 2239125 -rw-r--r-- 1 daniel daniel 1188 jan 12 14:41 dev.gstacktest.net-ca.crt 2239126 -rw-r--r-- 1 daniel daniel 1090 jan 12 14:41 dev.gstacktest.net.crt 2239127 -rw------- 1 daniel daniel 1679 jan 12 14:41 dev.gstacktest.net.key
dev.gstacktest.net.key created with wrong permissions?