Closed Tinggaard closed 5 months ago
The logs don't suggest there was an issue, but it looks like your Django container took a long time to start. Ghostwriter CLI checks to make sure the Django container is running before proceeding with the install. Docker showed the ghostwriter_django
was not running. Ghostwriter CLI assumed an error had occurred with the build and exited.
If you were able to reach the login page to try the admin account, Django eventually started successfully. However, your admin password won't work because Ghostwriter CLI sets that at the very end of the install.
If you're able to get to the login page, the application is running and you can create the admin account with this command. Then you can login with the initial password in your config file:
docker compose -f production.yml run --rm django python manage.py createsuperuser --no-input --role admin
That should get you in.
Thank you very much! Your provided command resolved the issue 🚀
Turns out the default models (severities, finding types, etc.) are not injected either.
Is there a way to inject these in a similar way?
Running docker compose -f production.yml run --rm django /seed_data
seems to resolve this issue.
I was not able to find the source for the ghostwriter-cli-linux
command. Is it located in this repository, and are there any other steps related to the installation, that I may haved missed?
Yep, that's the way to seed the default database values. The install
command does that once Django is ready. The source for the CLI binaries is here: https://github.com/GhostManager/Ghostwriter_CLI
Describe the bug When installing the project, the installation script exits, with the message
The application then seems to be running normally, but the credentials provided by
./ghostwriter-cli-linux config get admin_password
are invalid for the useradmin
.To Reproduce Steps to reproduce the behavior:
./ghostwriter-cli-linux install
Expected Behavior The application is expected to authenticate the user
admin
with the password provided by./ghostwriter-cli-linux config get admin_password
. Furthermore the installer is not expected to crash.Server Specs:
Docker version 24.0.7, build afdd53b
Docker Compose version v2.19.1
Additional context
Logs from the container: omited output of "Applying x.y... OK"
docker ps
output: