Skip to content

failed to deploy the Django example  #1032

Closed

Description

@kkx

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.

Activity

  1. andrewsg commented on Aug 11, 2017

    @andrewsg
    Member

    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?

  2. gakeseaton commented on Jul 16, 2018

    @gakeseaton

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

  3. engelke commented on Dec 6, 2018

    @engelke
    Contributor

    The tutorial as written is working.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions