Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unrecognized or unpermitted key(s) in configuration "beta_settings"

I deployed a Laravel application to Google App Engine(Flexible environment) and get errors.

Beginning deployment of service [default]...
#============================================================#
#= Uploading 4 files to Google Cloud Storage                =#
#============================================================#
File upload done.
ERROR: (gcloud.beta.app.deploy) INVALID_ARGUMENT: Unrecognized or unpermitted key(s) in configuration "beta_settings"
- '@type': type.googleapis.com/google.rpc.BadRequest
  fieldViolations:
  - description: Unrecognized beta_setting key
    field: no-cache

I wrote app.yaml with reference to this document

runtime: php
env: flex

runtime_config:
  document_root: public

beta_settings:
  cloud_sql_instances: "YOUR_CLOUDSQL_CONNECTION_NAME"

resources:
  cpu: 1
  memory_gb: 0.5

env_variables:
  APP_LOG: errorlog
  # etc.

Why is it unrecognized or unpermitted, "beta_settings" ?

like image 684
fullkawa Avatar asked Dec 22 '25 02:12

fullkawa


1 Answers

The error message mentions the no-cache field, which is sometimes supplied as a CLI flag to the gcloud app deploy command.

gcloud app deploy app.yaml --no-cache

From what I understand about the difference between GAE Standard and Flex, it is only available on the App Engine's Standard environment. It is likely that the flag is implicitly passed to the instance's config under the beta_settings section by the CLI tool.

I would assume that you've used this flag while debugging the Standard environment app before switching to Flex, or simply picked it up from the documentation. In that case, simply removing the flag from the CLI command should resolve your issue.

like image 167
Nikolay Shebanov Avatar answered Dec 24 '25 19:12

Nikolay Shebanov



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!