Can not connect to Postgres instance

715 vues
Accéder directement au premier message non lu

Nhat Khanh Le Dinh

non lue,
28 août 2017, 10:36:1028/08/2017
à Google Cloud SQL discuss
My Postgres instance and deploy nodejs app are on the same project, I tried this connection string: pg://postgres:[Password]@/[DB]?host=/[Instance_name] but Knex always return this error: Knex: Timeout acquiring a connection. The pool is probably full. Are you missing a .transacting(trx) call? How to fix this, thank you.
I tried this on my local machine (Allow my IP) and it works fine.

Shivam(Google Cloud Support)

non lue,
28 août 2017, 13:28:4728/08/2017
à Google Cloud SQL discuss

Could you try this example. If you get the same error, elaborate how are you connecting to the instance.


Justin Medina

non lue,
23 janv. 2018, 20:50:4423/01/2018
à Google Cloud SQL discuss
Hi Nhat,

I'm having exactly the same issue. The response below was not helpful (neither the example nor the connecting link) but I suspect there is an issue with how we are writing the connection string. Were you ever able to solve your problem, and if so, how?

Justin Medina

non lue,
23 janv. 2018, 20:50:4423/01/2018
à Google Cloud SQL discuss


On Monday, August 28, 2017 at 7:36:10 AM UTC-7, Nhat Khanh Le Dinh wrote:

Kurtis Van Gent

non lue,
24 janv. 2018, 12:06:4424/01/2018
à Google Cloud SQL discuss
Hi Justin, 

Are you using App Engine Standard? I don't believe that the Node.js runtime supports connections with PostgreSQL on CloudSQL at this time.

Thanks,
Kurtis
Répondre à tous
Répondre à l'auteur
Transférer
0 nouveau message