I just started receiving this error message when deploying with gcloud app deploy
, resulting in a failed deployment.
My yaml
file does have runtime_config: document_root
defined, and I have successfully deployed countless times before.
This is the error message I'm seeing:
Step #1: Digest: ...
Step #1: Status: Downloaded newer image for gcr.io/gcp-runtimes/php/gen-dockerfile@sha256:26c300e0afd68577f9bd3f2565bd690379ed797b74eed8517cc93e86f2c1be5a Step #1: gcr.io/gcp-runtimes/php/gen-dockerfile@sha256:26c300e0afd68577f9bd3f2565bd690379ed797b74eed8517cc93e86f2c1be5a Step #1: + php /builder/create_dockerfile.php create --php72-image gcr.io/google-appengine/php72@sha256:6255560e92bfff2d4debc198156bdbeeefccf97b4f315c84c5e6bc03387dc6f7 --php71-image gcr.io/google-appengine/php71@sha256:ea560b34d5da1e51aca89373ee90e2c67637fd141914d582753927e9d05f5d11 --php70-image gcr.io/google-appengine/php70@sha256:84b209e24bf340e3afbadde366ddb6c20d6879fe513bf600fc5a440767363917 --php56-image gcr.io/google-appengine/php56@sha256:8cd9595ab8672c906c029d58276ec5547d34e2781e278f6af0715ca8ac15bab1
Step #1: Step #1: In GenFilesCommand.php line 297: Step #1:
Step #1: You have to set document_root in the runtime_config section in app.yaml. Step #1:
Step #1: Step #1: create [--php72-image PHP72-IMAGE] [--php71-image PHP71-IMAGE] [--php70-image PHP70-IMAGE] [--php56-image PHP56-IMAGE] [-w|--workspace WORKSPACE] Step #1: Finished Step #1 ERROR ERROR: build step 1 "gcr.io/gcp-runtimes/php/gen-dockerfile@..."failed: exit status 1
Updating service [...] (this may take several minutes)...failed.
ERROR: (gcloud.app.deploy) Error Response: [9] Cloud build ... status: FAILURE.
Build error details: Build error details not available..
Contents of my yaml configuration:
runtime: php
runtime_config:
document_root: wordpress
nginx_conf_include: nginx-app.conf
env: flex
api_version: 1
service: SERVICE_ID
threadsafe: true
automatic_scaling:
min_num_instances: 1
max_num_instances: 10
resources:
cpu: 4
memory_gb: 12
disk_size_gb: 10
beta_settings:
cloud_sql_instances: REDACTED
handlers:
- url: /(.*\.(htm|html|css|js|scss|map))
static_files: wordpress/\1
upload: wordpress/.*\.(htm|html|css|js|scss|map)$
application_readable: true
secure: always
- url: /(.*\.(ico|jpg|jpeg|png|gif|woff|ttf|otf|eot|svg))
static_files: wordpress/\1
upload: wordpress/.*\.(ico|jpg|jpeg|png|gif|woff|ttf|otf|eot|svg)$
application_readable: true
secure: always
- url: /(.*\.php)
script: wordpress/index.php
secure: always
skip_files:
- ^.sass-cache
- ^.git
- ^.log
- .sass-cache/
- .git/
- ^vendor
- ^node_modules
- ^wonolog
env_variables:
WHITELIST_FUNCTIONS: escapeshellarg,escapeshellcmd,exec,pclose,popen,shell_exec,phpversion,php_uname
app.yaml
file? – Maxim