strapi-community/strapi-provider-upload-google-cloud-storage

deployment fails as soon as plugin added

RezaRahmati opened this issue · 1 comments

Describe the bug
I am deploying my strapi v4 to cloud run, and all is working fine, when I add the plugin and deploy, deployment fails with a non related error message Error: connect ENOENT /cloudsql/pcs-nonprod-shared-services:northamerica-northeast1:pg-instance/.s.PGSQL.5432 at PipeConnectWrap.afterConnect [as oncomplete] (node:net:1161:16)

To Reproduce
Steps to reproduce the behavior:
1- add plugin as below

module.exports = ( { env } ) => {
  if ( env( 'NODE_ENV' ) === 'production' ) {
    return {
      upload: {
        enabled: true,
        config: {
          provider: 'strapi-provider-upload-google-cloud-storage',
          providerOptions: {
            bucketName: 'pcs-nonprod-shared-services-strapi-upload',
            publicFiles: true,
            uniform: false,
            basePath: '',
          },
        },
      },
    }
  } 
}

2- deploy to cloud run
3- confirm it fails
4- comment the code inside plgins.js
5- build and deploy again
6- confirm it's successfully deployed

Expected behavior
the cloud run deploys with no error

Screenshots
image

Desktop (please complete the following information):

  • OS: [e.g. iOS]
  • Browser [e.g. chrome, safari]
  • Version [e.g. 22]

Smartphone (please complete the following information):

  • Device: [e.g. iPhone6]
  • OS: [e.g. iOS8.1]
  • Browser [e.g. stock browser, safari]
  • Version [e.g. 22]

Additional context
Add any other context about the problem here.

seems the issue is with cloud sql connection, closing the issue