python-docs-samples icon indicating copy to clipboard operation
python-docs-samples copied to clipboard

failed to deploy the Django example

Open kkx opened this issue 9 years ago • 3 comments

all set according to this example. worked in local, the deploy went ok, but the app engine instance failed to connect to the database instance. the following error is shown: OperationalError at /admin/login/ (2002, "Can't connect to local MySQL server through socket '/cloudsql/connectionName' (2)")

we tested this example because recently we are started to be unable to deploy our application in production without any configuration changes(get a 502 error when we visit a page with some database queries ) which worked before.

the 502 error shows something below: jsonPayload: { @type: "type.googleapis.com/google.cloud.loadbalancing.type.LoadBalancerLogEntry"
statusDetails: "failed_to_pick_backend"
} and our gae instances continue to restart and increment.

kkx avatar Jul 26 '17 16:07 kkx

Hi, just to clarify, you were successful in using this configuration at one time, but it started failing suddenly absent any changes, is that correct? Does the problem persist now, and if not, when did it start working again?

andrewsg avatar Aug 11 '17 00:08 andrewsg

The tutorial uses PostgreSQL, have you changed all of the necessary settings for it to work with MySQL?

gakeseaton avatar Jul 16 '18 21:07 gakeseaton

The tutorial as written is working.

engelke avatar Dec 06 '18 19:12 engelke