我正在从php55迁移到php72,现在部署时遇到了很大的问题。我有一个很大的排除列表,并认为问题在于我文件太多(我必须在作曲家中包括一些类)。我列出了更大的文件和目录列表,只部署了大约7000个文件。上限是10000。
上传是使用mac和以下命令完成的。第一行删除了所有也会出现问题的文件,这些文件也可以正常工作并且没有上传:
find . -name "Icon?" -print0 -exec rm {} \;
gcloud app deploy --project MyProjectName-dev --verbosity debug app.yaml cron.yaml dos.yaml
我得到的错误很奇怪:
Starting Step #0 - "fetcher"
Step #0 - "fetcher": Already have image (with digest): gcr.io/cloud-builders/gcs-fetcher
Step #0 - "fetcher": Fetching manifest gs://staging.xxxxxxxxx-dev.appspot.com/ae/xxxxxxxxxx-8b1b-4aa6-b6c5-xxxxxxxxx/manifest.json.
Step #0 - "fetcher": Processing 6765 files.
Step #0 - "fetcher": ******************************************************
Step #0 - "fetcher": Status: SUCCESS
Step #0 - "fetcher": Started: 2018-10-24T16:54:28Z
Step #0 - "fetcher": Completed: 2018-10-24T16:54:41Z
Step #0 - "fetcher": Requested workers: 200
Step #0 - "fetcher": Actual workers: 200
Step #0 - "fetcher": Total files: 6765
Step #0 - "fetcher": Total retries: 131
Step #0 - "fetcher": GCS timeouts: 129
Step #0 - "fetcher": MiB downloaded: 909.85 MiB
Step #0 - "fetcher": MiB/s throughput: 68.62 MiB/s
Step #0 - "fetcher": Time for manifest: 262.79 ms
Step #0 - "fetcher": Total time: 13.58 s
Step #0 - "fetcher": ******************************************************
Finished Step #0 - "fetcher"
Starting Step #1 - "builder"
.... much more here and on the end I get:
Step #1 - "builder": INFO gzip_tar_runtime_package took 33 seconds
Step #1 - "builder": INFO Finished gzipping tarfile.
Step #1 - "builder": INFO Building app layer took 45 seconds
Step #1 - "builder": INFO starting: Building app layer
Step #1 - "builder": INFO starting: tar_runtime_package
Step #1 - "builder": INFO tar_runtime_package tar -pcvf /tmp/tmpmwmv3C.tar --transform flags=r;s,^,/.gaeconfig/, --exclude *.pyc .
Step #1 - "builder": INFO tar_runtime_package took 0 seconds
Step #1 - "builder": INFO Building app layer took 0 seconds
Step #1 - "builder": INFO build process for FTL image took 45 seconds
Step #1 - "builder": INFO full build took 46 seconds
Step #1 - "builder": ERROR tar_runtime_package tar -pcvf /tmp/tmpmwmv3C.tar --transform flags=r;s,^,/.gaeconfig/, --exclude *.pyc .
Step #1 - "builder": exited with error [Errno 12] Cannot allocate memory
Step #1 - "builder": tar_runtime_package is likely not on the path
Finished Step #1 - "builder"
ERROR
ERROR: build step 1 "gcr.io/gae-runtimes/php72_app_builder:php72_7_2_8_20181012_RC00" failed: exit status 1