0

I have some problem with launching migration on my cloud sql proxy. I deploy my containeur which is working and after the deploy I start a connection with my cloud-sql-proxy.

Cloubuild.yaml

- name: "gcr.io/google-appengine/exec-wrapper"
    args:
      - "-i"
      - "gcr.io/$PROJECT_ID/name-project"
      - "-s"
      - "project-name-platform:us-central1:name-plateform-instance"
      - "-e"
      - "DB_HOST=$PUBLIC_IP"
      - "-e"
      - "DB_PORT=$PORT"
      - "-e"
      - "DB_DATABASE=test"
      - "-e"
      - "DB_USERNAME=root"
      - "-e"
      - "DB_PASSWORD=root"
      - "-e"
      - "DB_CONNECTION=pgsql"
      - "--"
      - php
      - artisan
      - migrate
      - --no-interaction

It's appear to work

---------- CONNECT CLOUDSQL ----------
cloud_sql_proxy is running.
Connections: project-name-platform:us-central1:name-plateform-instance.

But php artisan migrate return

SQLSTATE[08006] [7] timeout expired

I am a lost of solution, if someone know what's happen ?

I try passing - name: "gcr.io/google-appengine/exec-wrapper" Or passing by the cloud proxy. I can go to my database by the cloud shell

Thanks a lot

0 Answers0