The above error usually happens due to a misconfiguration in the database URL found in the system.yaml. A common issue is using the name PostgreSQL instead of Postgres in the URL. It should normally look like the following.
shared
database:
type: postgresql
driver: org.postgresql.Driver
url: postgres://<database_host>:<:port>/xray?sslmode=disable
username: xray
password: xray