Troubleshooting
Each page here starts with the exact line or response you see, then explains the cause and how to fix it. Search this section for the text in front of you.
Symptoms in the application and its logs
| What you see | Page |
|---|---|
The login page shows an error and no form, or a sign-in fails with Sign in failed (HTTP 200) or the login service sent an unexpected response. Requests to /api/vue/ redirect to /login. | Sign-in fails because the Pro settings are missing |
An outbound call to SSO, Jira, a Connector or another HTTPS service fails with certificate verify failed. | Outbound HTTPS fails with certificate verify failed |
The initializer exits with code 137, or its pod shows OOMKilled, part way through the migrations. | The initializer is killed for running out of memory |
The API answers 402 with DefectDojo is currently in read only mode as there are currently .... | The API answers 402 after a license change |
A page shows Internal Server Error with an Error reference, or the API answers 500. | A 500 error with an error reference |
Install and upgrade failures dojo-deploy names
When dojo-deploy install or dojo-deploy upgrade fails, it prints a failure block last. For a failure it recognizes, the block includes a Cause: and a Fix: line, and ends with a Hint: line that names the failure:
dojo-deploy install failed in the "install" phase: helm upgrade --install: exit status 1: Error: UPGRADE FAILED: another operation (install/upgrade/rollback) is in progress
Cause: an earlier helm run on release <release> was stopped before it ended and left the release pending, or another helm run is working on it now
Fix: make sure no other helm runs on the release, then read 'helm history <release> -n <namespace>'. ...
Run ID: ...
Install log: ...
To resume: ...
Hint: helm-pending-operationEach page below is named after the Hint: value. It shows the line the underlying tool prints, then the cause, how to confirm it and how to recover. When you have recovered, run the command on the To resume: line.
If the block has no Hint: line, dojo-deploy did not recognize the failure. Read the error on the first line and the log named on the Install log: or Upgrade log: line, and send a support bundle to DefectDojo support if you need help.
| What you see | Where | Page |
|---|---|---|
another operation (install/upgrade/rollback) is in progress | Kubernetes | helm-pending-operation |
InconsistentMigrationHistory in the initializer’s output | Docker Compose, Kubernetes | migration-history-inconsistent |
A pod in ImagePullBackOff or ErrImagePull | Kubernetes | image-pull |
is forbidden: User "..." cannot ... | Kubernetes | kube-forbidden |
no space left on device or No space left on device | Docker Compose | disk-full |
The init container or the initializer Job failed | Docker Compose, Kubernetes | initializer-failed |
context deadline exceeded from helm | Kubernetes | helm-wait-timeout |
no group set to apply permissions | Docker Compose | no-permission-group |
dojo-deploy names the most specific failure it finds. For example, a pod that cannot pull its image also makes helm’s wait time out, and the block names image-pull, not helm-wait-timeout.
The application shows Internal Server Error with an error reference: what the reference is and how to find the failure in the logs
dojo-deploy on Docker Compose: the disk filled up during an install or upgrade
dojo-deploy on Kubernetes: helm refuses to install or upgrade because the release has another operation in progress
dojo-deploy on Kubernetes: the pods or the initializer Job were not ready in the time helm waits
dojo-deploy on Kubernetes: a pod could not pull its image (ImagePullBackOff or ErrImagePull)
dojo-deploy: DefectDojo's initializer, which runs the database migrations, failed
dojo-deploy on Kubernetes: the identity the run uses is not allowed to do something the install needs
dojo-deploy: the database's migration history does not match the release being installed or upgraded
dojo-deploy on Docker Compose: the CLI ran a step without the dojosrv service group it gives the install's files to
SSO, Jira, Connectors or another outbound call fails because DefectDojo does not trust the private CA that signed the server's certificate
The login page reports an unexpected response, or a sign-in fails with HTTP 200, because pro_settings.py is not loaded
Writes are refused with 402 Payment Required and an exceeded_usage message because usage is over the license's limit
The initializer exits with code 137 or shows OOMKilled part way through the database migrations