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 seePage
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-operation

Each 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 seeWherePage
another operation (install/upgrade/rollback) is in progressKuberneteshelm-pending-operation
InconsistentMigrationHistory in the initializer’s outputDocker Compose, Kubernetesmigration-history-inconsistent
A pod in ImagePullBackOff or ErrImagePullKubernetesimage-pull
is forbidden: User "..." cannot ...Kuberneteskube-forbidden
no space left on device or No space left on deviceDocker Composedisk-full
The init container or the initializer Job failedDocker Compose, Kubernetesinitializer-failed
context deadline exceeded from helmKuberneteshelm-wait-timeout
no group set to apply permissionsDocker Composeno-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.

A 500 Error With an Error Reference →

The application shows Internal Server Error with an error reference: what the reference is and how to find the failure in the logs

Disk-Full →

dojo-deploy on Docker Compose: the disk filled up during an install or upgrade

Helm-Pending-Operation →

dojo-deploy on Kubernetes: helm refuses to install or upgrade because the release has another operation in progress

Helm-Wait-Timeout →

dojo-deploy on Kubernetes: the pods or the initializer Job were not ready in the time helm waits

Image-Pull →

dojo-deploy on Kubernetes: a pod could not pull its image (ImagePullBackOff or ErrImagePull)

Initializer-Failed →

dojo-deploy: DefectDojo's initializer, which runs the database migrations, failed

Kube-Forbidden →

dojo-deploy on Kubernetes: the identity the run uses is not allowed to do something the install needs

Migration-History-Inconsistent →

dojo-deploy: the database's migration history does not match the release being installed or upgraded

No-Permission-Group →

dojo-deploy on Docker Compose: the CLI ran a step without the dojosrv service group it gives the install's files to

Outbound HTTPS Fails With Certificate Verify Failed →

SSO, Jira, Connectors or another outbound call fails because DefectDojo does not trust the private CA that signed the server's certificate

Sign-in Fails Because the Pro Settings Are Missing →

The login page reports an unexpected response, or a sign-in fails with HTTP 200, because pro_settings.py is not loaded

The API Answers 402 After a License Change →

Writes are refused with 402 Payment Required and an exceeded_usage message because usage is over the license's limit

The Initializer Is Killed for Running Out of Memory →

The initializer exits with code 137 or shows OOMKilled part way through the database migrations