Report this

What is the reason for this report?

Error validating app spec field "databases.version": "15" is not a supported database version

Posted on February 23, 2023

When trying to create my DO App Platform infrastructure with Terraform, I receive the following error:

error validating app spec field “databases.version”: “15” is not a supported database version

The database section of the app spec file is as follows:

database {
      name         = "${var.pg_edgedb_service_name}-${terraform.workspace}"
      engine       = "PG"
      version      = var.pg_edgedb_ver
      production   = terraform.workspace == "prod" ? true : false
      cluster_name = "edgedb-postgres-cluster-${terraform.workspace}"
    }

I receive the same error whether I pass in 15 , 14, or 13 for the version attribute. 12 seems to work–there is at least not an immediate field validation error. If I create a DB manually in the UI, versions 13, 14, and 15 are available for selection, and I can’t find any documentation to suggest that at least 13 shouldn’t work, so this has me pretty confused.

What versions are actually supported? Where can I find relevant documentation?



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Hi there,

I believe that this could be related to the production flag, does it work if you set this to true and then try it again?

I believe that the default version for the dev databases is 12 hence it is failing when production is set to false.

Let me know how it goes!

Best,

Bobby

Im having an identical issue, following along with the zero to production in Rust book. My spec.yaml file’s database section looks very similar, just with more hard coded values:

name: zero2prod
region: sfo
services: 
  - name: zero2prod
    dockerfile_path: ./Dockerfile
    source_dir: .
    github:
      branch: master
      deploy_on_push: true
      repo: voidKandy/zero2prod
    health_check: 
      http_path: /health_check
    http_port: 8000
    instance_count: 1
    instance_size_slug: basic-xxs
    routes:
      - path: /
databases: 
  - engine: PG
    name: newsletter
    num_nodes: 1
    size: db-s-dev-database
    version: "15"

I’m getting the identical error message: error validating app spec field "databases.version": "15" is not a supported database version This happens regardless of the number I set the version to. This is very confusing, I would love to be directed to some relevant documentation as nothing I’ve found in the DO docs have been of any help

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.