Question

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

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?


Submit an answer


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!

Sign In or Sign Up to Answer

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.

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

Bobby Iliev
Site Moderator
Site Moderator badge
February 23, 2023

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

Try DigitalOcean for free

Click below to sign up and get $200 of credit to try our products over 60 days!

Sign up

card icon
Get our biweekly newsletter

Sign up for Infrastructure as a Newsletter.

Sign up
card icon
Hollie's Hub for Good

Working on improving health and education, reducing inequality, and spurring economic growth? We’d like to help.

Learn more
card icon
Become a contributor

You get paid; we donate to tech nonprofits.

Learn more
Welcome to the developer cloud

DigitalOcean makes it simple to launch in the cloud and scale up as you grow – whether you’re running one virtual machine or ten thousand.

Learn more ->
DigitalOcean Cloud Control Panel
Get started for free

Enter your email to get $200 in credit for your first 60 days with DigitalOcean.

New accounts only. By submitting your email you agree to our Privacy Policy.

© 2023 DigitalOcean, LLC.