Php 错误消息:`composer_install`had stderr output
我正在将一个Laravel应用程序部署到Google App Engine标准环境中,但由于依赖关系问题,我在执行Php 错误消息:`composer_install`had stderr output,php,laravel,google-app-engine,google-cloud-platform,composer-php,Php,Laravel,Google App Engine,Google Cloud Platform,Composer Php,我正在将一个Laravel应用程序部署到Google App Engine标准环境中,但由于依赖关系问题,我在执行gcloud App deploy时遇到了一个PHP composer错误 我已经遵循了Google教程()中的所有说明,但他们没有任何故障排除部分来解释这一点 这是我在gcloud app deploy之后在终端上遇到的错误: Updating service [default]...failed. ERROR: (gcloud.app.deploy) Error Response
gcloud App deploy
时遇到了一个PHP composer错误
我已经遵循了Google教程()中的所有说明,但他们没有任何故障排除部分来解释这一点
这是我在gcloud app deploy
之后在终端上遇到的错误:
Updating service [default]...failed.
ERROR: (gcloud.app.deploy) Error Response: [9] Cloud build 245bdb05-2dfa-4fe6-bdca-5e3e99221de1 status: FAILURE.
Error ID: 990D4641.
Error type: InternalError.
Error message: `composer_install` had stderr output:
Loading composer repositories with package information
Installing dependencies from lock file
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Installation request for ext-protobuf 3.7.0 -> satisfiable by ext-protobuf[3.7.0].
- google/gax 1.0.0 conflicts with ext-protobuf[3.7.0].
- Installation request for google/gax 1.0.0 -> satisfiable by google/gax[1.0.0].
To enable extensions, verify that they are enabled in your .ini files:
- /etc/php.ini
You can also run `php --ini` inside terminal to see which files are used by PHP in CLI mode.
error: `composer_install` returned code: 2.
这是我的app.yaml:
env_variables:
## Put production environment variables here.
APP_KEY: [my_app_key]
APP_STORAGE: /tmp
VIEW_COMPILED_PATH: /tmp
CACHE_DRIVER: database
SESSION_DRIVER: database
## Set these environment variables according to your CloudSQL configuration.
DB_DATABASE: [my_db]
DB_USERNAME: root
DB_PASSWORD: [my_super_secure_password]
DB_SOCKET: "/cloudsql/test-project]:us-east1:test-db"
LOG_CHANNEL: stackdriver
我需要能够在Google App Engine标准环境中部署应用程序而不出现此PHP composer错误。我建议使用PECL安装并启用缺少的包
根据我分享的内容,您是如何得知grpc扩展丢失的?您的错误日志中说明了ext protobuf。搜索ext protobuf google cloud php时,我认为它找到了我提供的信息。