After upgrading to DTR 2.5.0, the
dtr-scanningstore-<containerid> container (docker/dtr-postgres:2.5.0) keeps restarting. Looking at the container logs, you see this repeated:
FATAL: database files are incompatible with server DETAIL: The data directory was initialized by PostgreSQL version 9.6, which is not compatible with this version 10.3. time="..." level=warning msg="error starting postgres" error="exit status 1"
The upgrade was performed in the following order:
Upgraded Docker engine from
Upgraded UCP from
Upgraded DTR from
docker run -it --rm docker/dtr upgrade --ucp-insecure-tls
The upgrade completed without any errors.
This is a known issue, and a fix is outlined in the DTR 2.5 release notes. It is described at the section under Known Issues that begins with Docker EE Advanced Features:
The resolution is to remove the scanningstore container and the dtr-postgres volume, and perform a reconfigure:
docker stop dtr-scanningstore-$replica docker rm dtr-scanningstore-$replica docker volume rm dtr-postgres-$replica docker run --rm -it docker/dtr:2.5.0 reconfigure ...
Alse, re-download the CVE Database by clicking the download cve db button in DTR UI.