Skip to content

Error on build Laravel App On Gitlab runner #997

@theboy412

Description

@theboy412

I have this error when deploy my app on Gitlab runner.
I don't know what happening and how to fix this error.

$ echo $SERVICE_ACCOUNT > /tmp/$CI_PIPELINE_ID.json
$ gcloud auth activate-service-account --key-file /tmp/$CI_PIPELINE_ID.json
Activated service account credentials for: [[email protected]]
$ gcloud --quiet --project $PROJECT_ID app deploy app-staging.yaml --version $CI_JOB_ID
Services to deploy:

descriptor: [/builds/quilp/dashboard-bi/app-staging.yaml]
source: [/builds/quilp/dashboard-bi]
target project: [dw-ghn]
target service: [dashboard-staging]
target version: [39753]
target url: [https://dashboard-staging-dot-dw-ghn.appspot.com]

Beginning deployment of service [dashboard-staging]...
#============================================================#
#= Uploading 1 file to Google Cloud Storage =#
#============================================================#
File upload done.
Updating service [dashboard-staging]...
...............................................................................................................................................................................................................................................................................failed.
ERROR: (gcloud.app.deploy) Error Response: [9] Cloud build 8e6ed0b0-c44d-439b-b00e-c598c648d4a3 status: FAILURE.
Build error details: {"error":{"errorType":"BuildError","canonicalCode":"INVALID_ARGUMENT","errorId":"3FDF33BB","errorMessage":"INFO FTL version php-v0.17.0\nINFO Beginning FTL build for php\nINFO FTL arg passed: exposed_ports None\nINFO FTL arg passed: cache_repository asia.gcr.io/dw-ghn/app-engine-tmp/build-cache/ttl-7d\nINFO FTL arg passed: tar_base_image_path None\nINFO FTL arg passed: export_cache_stats False\nINFO FTL arg passed: builder_output_path ""\nINFO FTL arg passed: name asia.gcr.io/dw-ghn/app-engine-tmp/app/ttl-2h:5578b807-4c92-4502-8471-30621a91c96b\nINFO FTL arg passed: ttl 168\nINFO FTL arg passed: global_cache False\nINFO FTL arg passed: cache True\nINFO FTL arg passed: upload True\nINFO FTL arg passed: sh_c_prefix False\nINFO FTL arg passed: fail_on_error True\nINFO FTL arg passed: base asia.gcr.io/gae-runtimes/php72:php72_20191020_7_2_23_RC00\nINFO FTL arg passed: output_path None\nINFO FTL arg passed: cache_key_version v0.17.0\nINFO FTL arg passed: cache_salt \nINFO FTL arg passed: directory /workspace\nINFO FTL arg passed: entrypoint None\nINFO FTL arg passed: additional_directory /.googleconfig\nINFO FTL arg passed: destination_path /srv\nINFO FTL arg passed: verbosity NOTSET\nINFO starting: full build\nINFO starting: builder initialization\nINFO Loading Docker credentials for repository 'asia.gcr.io/gae-runtimes/php72:php72_20191020_7_2_23_RC00'\nINFO Loading Docker credentials for repository 'asia.gcr.io/dw-ghn/app-engine-tmp/app/ttl-2h:5578b807-4c92-4502-8471-30621a91c96b'\nINFO builder initialization took 0 seconds\nINFO starting: build process for FTL image\nINFO starting: rm_vendor_dir\nINFO rm_vendor_dir rm -rf /workspace/vendor\nINFO rm_vendor_dir stdout:\n\nINFO rm_vendor_dir took 0 seconds\nINFO descriptor_contents:\n{\n "_readme": [\n "This file locks the dependencies of your project to a known state",\n "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",\n "This file is @generated automatically"\n ],\n "content-hash": "f079fd857eddf700675808511c67fb4d",\n "packages": [\n {\n "name": "dnoegel/php-xdg-base-dir",\n "version": "0.1",\n "source": {\n "type": "git",\n "url": "https://github.com/dnoegel/php-xdg-base-dir.git",\n "reference": "265b8593498b997dc2d31e75b89f053b5cc9621a"\n },\n "dist": {\n "type": "zip",\n "url": "https://api.github.com/repos/dnoegel/php-xdg-base-dir/zipball/265b8593498b997dc2d31e75b89f053b5cc9621a",\n "reference": "265b8593498b997dc2d31e75b89f053b5cc9621a",\n "shasum": ""\n },\n "require": {\n "php": "\u003e=5.3.2"\n },\n "require-dev": {\n "phpunit/phpunit": "@stable"\n },\n "type": "project",\n "autoload": {\n "psr-4": {\n "XdgBaseDir\\": "src/"\n }\n },\n "notification-url": "https://packagist.org/downloads/",\n "license": [\n "MIT"\n ],\n "description": "implementation of xdg base directory specification for php",\n "time": "2014-10-24T07:27:01+00:00"\n },\n {\n "name": "doctrine/inflector",\n "version": "v1.3.0",\n "source": {\n "type": "git",\n "url": "https://github.com/doctrine/inflector.git",\n "reference": "5527a48b7313d15261292c149e55e26eae771b0a"\n },\n "dist": {\n "type": "zip",\n "url": "https://api.github.com/repos/doctrine/inflector/zipball/5527a48b7313d15261292c149e55e26eae771b0a",\n .
Check the build log for errors: https://console.cloud.google.com/gcr/builds/8e6ed0b0-c44d-439b-b00e-c598c648d4a3?project=1001942818469
Running after script...
$ rm /tmp/$CI_PIPELINE_ID.json
ERROR: Job failed: exit code 1

Metadata

Metadata

Assignees

No one assigned

    Labels

    needs more infoThis issue needs more information from the customer to proceed.samplesIssues that are directly related to samples.type: questionRequest for information or clarification. Not an issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions