Php

錯誤:(gcloud.app.deploy)錯誤響應:999雲建構 bfe8bf5b-8368-4db6-a64e-8272d269ed76 狀態:失敗

  • March 11, 2020

您好我正在嘗試進行部署,但我總是收到以下錯誤:

gcloud 應用程序部署 –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'

有人能救我嗎?請!

我發現了問題,我會回答我自己的問題,因為也許有人可能遇到同樣的問題……

我讀了這條消息:

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

所以我嘗試做一個composer update,並執行php artisan serve,在這兩種情況下都出現同樣的錯誤:

In Finder.php line 602:

 The "" directory does not exist.  

所以,我想看看我的配置文件夾,令我驚訝的是這個文件夾消失了!

因此,我需要重新創建包含所有文件的文件夾並再次執行composer install

之後,我可以再次執行php artisan serve並進行部署:

gcloud 應用程序部署 –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

引用自:https://serverfault.com/questions/1004903