Closed lucasluitjes closed 5 years ago
yes, I think there is something changed and the default credentials are --> username: admin and password: admin. we will fix it.
well, you can change the password just do a couple of things:
docker ps
grab container id of django-defectdojo_uwsgi_1
docker exec -it <container_id> /bin/bash
now just change password
python manage.py changepassword admin
hope this will work!
Sorry for the late response. The credentials admin:admin also did not work, but after changing the password using the commands you supplied, I was able to log in. Thanks!
Hi @lucasluitjes . Is it possible that you started the app more than one time? This happened to me many times. Upon the first start, the app will create a password and use it After that when you restart the app, it will create more passwords but the good on is the one from the first launch that you may or may not have written down. it's not available anymore in the logs! In that case, if I'm just on a throwable env, what I do is (it will remove all data)
docker-compose down --volumes
docker-compose up
the --volumes
part will drop the folder that persists the database across restarts
That is possible, however, I do not have the machine with me right now. But if that is the case, we should update the documentation. Over here (https://github.com/DefectDojo/django-DefectDojo/blob/master/DOCKER.md) it says the following:
Beware that when re-running the application several times, there may be several occurrences of "Admin password". In that case you should use the last occurrence.
If I understand your comment correctly the actual behavior is the opposite of the documentation?
@lucasluitjes you have a good point :) . I have updated the doc in the (unrelated) PR https://github.com/DefectDojo/django-DefectDojo/pull/1445
Bug description I wanted to try out defectdojo using the Quick Start guide from the README.md, so I cloned the repo and ran
docker-compose build
. Then I randocker-compose up
and visited localhost:8080.I used the username and password from the latest initializer container, but received the following error:
Please enter a correct username and password. Note that both fields may be case-sensitive.
.Steps to reproduce Steps to reproduce the behavior:
git clone git@github.com:DefectDojo/django-DefectDojo.git
docker-compose build
docker-compose up
docker logs django-defectdojo_initializer_1 | grep Admin | tail -n2
Expected behavior To be logged in successfully.
Deployment method (select with an
X
)Environment information
Console logs (optional) Log output from
docker-compose up
and reproducing the issue: