{"record":{"id":"85bcba7dc8fa46bb","repo":"hasura/graphql-engine","slug":"config-v-is-not-supported","errorCode":null,"errorMessage":"config %v is not supported","messagePattern":"config (.+?) is not supported","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"cli/pkg/deploy/project_deploy.go","lineNumber":85,"sourceCode":"\tec.Stderr = io.Discard\n\n\terr := ec.Prepare()\n\tif err != nil {\n\t\treturn nil, errors.E(op, err)\n\t}\n\n\td := &ProjectDeploy{ec}\n\tfor _, opt := range opts {\n\t\topt(d)\n\t}\n\n\terr = ec.Validate()\n\tif err != nil {\n\t\treturn nil, errors.E(op, err)\n\t}\n\n\tif ec.Config.Version <= cli.V1 {\n\t\treturn nil, errors.E(op, fmt.Errorf(\"config %v is not supported\", ec.Config.Version))\n\t}\n\n\treturn d, nil\n}\n","sourceCodeStart":67,"sourceCodeEnd":90,"githubUrl":"https://github.com/hasura/graphql-engine/blob/724551b9ae87845594ef0408cff0e50eb6c90dc5/cli/pkg/deploy/project_deploy.go#L67-L90","documentation":"NewProjectDeploy refuses to deploy projects whose config version is v1 (or lower): only config v2/v3 projects are supported by project deploy. The check `ec.Config.Version <= cli.V1` throws 'config %v is not supported' after the ExecutionContext validates cleanly.","triggerScenarios":"Running `hasura deploy` (project deploy) in a directory whose config.yaml still says `version: 1`; hit immediately at construction of the deploy command.","commonSituations":"Very old Hasura projects never migrated off config v1; a config.yaml accidentally edited back to version 1; running deploy in the wrong directory containing a stale config.","solutions":["Upgrade the project config: run the config migration (e.g. `hasura scripts update-project-v2` flow or the v3 updater) to move to version 2/3","Manually set `version: 3` in config.yaml and fix any incompatible keys per migration docs","Make sure you're running deploy from the actual project root with the current config"],"exampleFix":"# before (config.yaml)\nversion: 1\n\n# after\nversion: 3","handlingStrategy":"validation","validationCode":"if ec.Config.Version <= 1 {\n    return fmt.Errorf(\"upgrade config.yaml to version 2/3 before deploy\")\n}","typeGuard":null,"tryCatchPattern":"d, err := deploy.NewProjectDeploy(ec, ...)\nif err != nil && strings.Contains(err.Error(), \"not supported\") {\n    // migrate config to v2/v3, then retry\n}","preventionTips":["Upgrade old v1 projects to v3 before using deploy","Keep config.yaml version in sync with CLI capabilities","Guard CI deploy jobs with a config version check"],"tags":["deploy","config-version","hasura"],"backgroundTag":"unsupported-config-version","analyzedSha":"724551b9ae87845594ef0408cff0e50eb6c90dc5","analyzedAt":"2026-08-28T07:32:55.105Z","schemaVersion":2},"datasetVersion":"2026-08-28T11:17:15.048Z"}