错误:(gcloud.app.deploy)错误响应:[9] 云构建 bfe8bf5b-8368-4db6-a64e-8272d269ed76 状态:失败

错误:(gcloud.app.deploy)错误响应:[9] 云构建 bfe8bf5b-8368-4db6-a64e-8272d269ed76 状态:失败

你好,我正在尝试进行部署,但总是收到以下错误:

gcloud app deploy --promote

File upload done.
Updating service [default]...failed.
ERROR: (gcloud.app.deploy) Error Response: [9] Cloud build bfe8bf5b-8368-4db6-a64e-8272d269ed76 status: FAILURE.
    Build error details: {"error":{"errorType":"BuildError", "canonicalCode":"INVALID_ARGUMENT","errorId":"19241AD3","errorMessage":"INFO     FTL version php-v0.17.0\nINFO     Beginning FTL build for php\......
'''
'''
''
     \"url\": \"https://api.github.com/repos/doctrine/inflector/zipball/ec3a55242203ffa6a4b27c58176da97ff0a7ae.
Check the build log for errors: https://console.cloud.google.com/gcr/builds/bfe8bf5b-8368-4db6-a64e-8272d269ed76?project=242083926926

我点击了日志链接,找到了以下消息:

Pulling image: gcr.io/gae-runtimes/php72_app_builder:php72_20200223_7_2_27_RC00
php72_20200223_7_2_27_RC00: Pulling from gae-runtimes/php72_app_builder
74b953307ba8: Already exists
3950d715ce49: Already exists
3c2cba919283: Already exists
67e17702fae0: Already exists
c9c3f388cea0: Already exists
ca58486204f9: Already exists
7c50188704c4: Already exists
a3db2666eee6: Already exists
3a2f66066536: Already exists
4fed2e436246: Already exists
55e34f1ef5fb: Already exists
763d8f23f109: Pulling fs layer
e093f0e5764d: Pulling fs layer
a17ebc6065d7: Pulling fs layer
c54b6a8f056f: Pulling fs layer
bd7e4441afd6: Pulling fs layer
748982344c7e: Pulling fs layer
cc953cec17dc: Pulling fs layer
c59ab3553ad2: Pulling fs layer
f2c0883e8684: Pulling fs layer
5dff221051ac: Pulling fs layer
......
......
......
......

 - Installing torann/geoip (1.1.1): Downloading (100%)
Generating optimized autoload files
> Illuminate\Foundation\ComposerScripts::postAutoloadDump
> @php artisan package:discover --ansi
Script @php artisan package:discover --ansi handling the post-autoload-dump event returned with error code 1

ERROR    error: `composer_install` returned code: 1
INFO     composer_install took 43 seconds
INFO     building_composer_json_layer took 43 seconds
INFO     build process for FTL image took 43 seconds
INFO     full build took 43 seconds
ERROR    `composer_install` had stderr output:
Loading composer repositories with package information
Installing dependencies from lock file
Package operations: 68 installs, 0 updates, 0 removals
  - Installing doctrine/inflector (1.3.1): Downloading (100%)
......
......
......
......
 - Installing prologuetech/big (v1.0.1): Downloading (100%)
  - Installing torann/geoip (1.1.1): Downloading (100%)
Generating optimized autoload files
> Illuminate\Foundation\ComposerScripts::postAutoloadDump
> @php artisan package:discover --ansi
Script @php artisan package:discover --ansi handling the post-autoload-dump event returned with error code 1

error: `composer_install` returned code: 1
Traceback (most recent call last):
  File "/usr/lib/python2.7/runpy.py", line 174, in _run_module_as_main
    "__main__", fname, loader, pkg_name)
  File "/usr/lib/python2.7/runpy.py", line 72, in _run_code
    exec code in run_globals
  File "/usr/local/bin/ftl.par/__main__.py", line 65, in <module>
  File "/usr/local/bin/ftl.par/__main__.py", line 57, in main
  File "/usr/local/bin/ftl.par/__main__/ftl/common/ftl_error.py", line 58, in UserErrorHandler
IOError: [Errno 2] No such file or directory: '""/output'

有人能救救我吗?拜托!

答案1

我发现了这个问题,我会回答我自己的问题,因为也许有人会遇到同样的问题......

我读过这条消息:

"errorMessage":"INFO     FTL version php-v0.17.0\nINFO     Beginning FTL build for php\

所以我尝试做了作曲家更新,然后运行php 工匠服务,并且在两种情况下都出现相同的错误:

In Finder.php line 602:

  The "" directory does not exist.  

因此,我想查看一下我的配置文件夹,但令我惊讶的是,这个文件夹消失了!

因此,我需要重新创建包含所有文件的文件夹并再次运行作曲家安装

之后我可以再次运行php 工匠服务我可以进行部署:

gcloud app deploy --promote

Beginning deployment of service [default]...
╔════════════════════════════════════════════════════════════╗
╠═ Uploading 5 files to Google Cloud Storage                ═╣
╚════════════════════════════════════════════════════════════╝
File upload done.
Updating service [default]...done.
Setting traffic split for service [default]...done.
Deployed service [default] to [https://xxxxxx.appspot.com]

You can stream logs from the command line by running:
  $ gcloud app logs tail -s default

To view your application in the web browser run:
  $ gcloud app browse

相关内容