【问题标题】:Error message: `composer_install` had stderr output错误消息:`composer_install` 有标准错误输出
【发布时间】:2019-04-04 06:36:43
【问题描述】:

我正在将 Laravel 应用程序部署到 Google App Engine 标准环境,但由于依赖问题,我在执行 gcloud app deploy 时遇到了 PHP 编写器错误。

我已按照此 Google 教程 (https://cloud.google.com/community/tutorials/run-laravel-on-appengine-standard) 中的所有说明进行操作,但他们没有任何故障排除部分对此进行解释

这是我在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 编写器错误。

【问题讨论】:

    标签: php laravel google-app-engine google-cloud-platform composer-php


    【解决方案1】:

    我建议使用 PECL 安装和启用缺少的软件包

    Cloud.google.com grpc

    【讨论】:

    • 根据我分享的内容,您是如何得知缺少 grpc 扩展的?
    • 您的错误日志显示为 ext-protobuf。搜索 ext-protobuf google cloud php 想出了我提供的信息。
    猜你喜欢
    • 2014-03-22
    • 2013-12-19
    • 2014-08-09
    • 1970-01-01
    • 2013-05-11
    • 2010-11-13
    • 2015-07-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多