New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Tables do not exist #2018
Comments
This points to the fact you may have not waited long enough for the stack to initialize and were already with your browser on the URL. Don't forget to copy the setting.dist.py to settings.py as well. |
10 minutes is not enough?
I don't know what and where it is. I'm just trying 3rd time to install this platform :)
UPD. Copying is working fine |
It should be enough, but only logs would tell. Try to |
If it says already exist, then it didn't clean everything. Your docker volume must still be around. |
So, I have destroyed my DO VM.
finally it works |
Anyone else still having problems with app DB tables not being created/populated for defect dojo after using docker-compose? I can connect to mysql using defectdojo user but app tables are not present. I feel like something isn't being run to create the application tables. Tried fresh github clone of defectdojo, nuked all the docker volumes and images, also re-installed docker-machine vm. Same issue with or without copying a new settings.py in dojo/settings/ $ git status $ docker-machine version $ docker-compose version Host: MacOS version Docker host: boot2docker errors below that I'm seeinguwsgi_1 | django.db.utils.ProgrammingError: (1146, "Table 'defectdojo.django_site' doesn't exist") celeryworker_1 | MySQLdb._exceptions.ProgrammingError: (1146, "Table 'defectdojo.dojo_system_settings' doesn't exist") |
Figured out a workaround. Apparently during docker-compose up, the initializer docker image exits without initializing the application and db. Not sure if this is intended, but not clear on quick start docs. If you run initializer image manually with the correct environment variable set I can get the app environment (include db) to initialize properly. $ docker-compose up $ export DD_INITIALIZE=true This will also create a random 'admin' password for initial login to the application (see output below)
` $ docker-compose up initializer |
Bug description
django.db.utils.ProgrammingError: (1146, "Table 'defectdojo.django_site' doesn't exist")
django.db.utils.ProgrammingError: (1146, "Table 'defectdojo.dojo_system_settings' doesn't exist")
..
Steps to reproduce
Steps to reproduce the behavior:
Expected behavior
A clear and concise description of what you expected to happen.
Deployment method (select with an
X
)Environment information
git show -s --format="%h: %s [%ci]"
]34b98fd: Javascript dependency refactor (Javascript dependency refactor #2002) [2020-03-10 12:25:30 +0100]
But it is reproducable on master branch also
The text was updated successfully, but these errors were encountered: