Skip to content

Error [13] Timed out when deploying to App Engine #687

Description

@otymartin

I've made several attempts to deploy parse server on app engine using the Medium guide and i can't get passed this error.

Beginning teardown of remote build environment (this may take a few seconds). Updating module [default]...|Deleted [https://www.googleapis.com/compute/v1/projects/##################]. Updating module [default]...failed. ERROR: (gcloud.preview.app.deploy) Error Response: [13] Timed out when starting VMs. It's possible that the application code is unhealthy. (0/2 ready, 2 still deploying). My-MacBook-Pro-2:appName-server myMacName$

Typing the above URL into the browser I get this [{ "error": { "errors": [ { "domain": "global", "reason": "required", "message": "Login Required", "locationType": "header", "location": "Authorization" } ], "code": 401, "message": "Login Required" } }]

Fyi when I created my project in google cloud, I specified "USEast" but when I was deploying, I noticied the URL had us-central1-f

Activity

  1. otymartin commented on Feb 27, 2016

    @otymartin
    Author

    My cloud code destination was misplaced I fixed it

    cloud: __dirname + '/cloud/main.js',

  2. RaschidJFR commented on Apr 13, 2016

    @RaschidJFR
    Contributor

    So what exactly did you write instead of __dirname?

  3. otymartin commented on Apr 14, 2016

    @otymartin
    Author

    @RaschidGithub I didnt have the __dirname included

  4. RaschidJFR commented on Apr 16, 2016

    @RaschidJFR
    Contributor

    I mean, what was the final resulting code line in your case? @otymartin.
    In my script I've still got cloud: '/cloud/main.js', but I don't know what shoul it look like with the dirname included.

  5. otymartin commented on Apr 17, 2016

    @otymartin
    Author

    @RaschidGithub
    Sorry for the confusion. This should be the final code in your server.js file
    Pre-Parse Server 2.2.6

    cloud:  __dirname + '/cloud/main.js',

    Alternatively I notice the latest server released changed the syntax abit.

    So in my config.json i have in Parse Server 2.2.6

      "CLOUD_PATH": "./cloud/main.js",

    and in my server.js I have

      cloud: nconf.get('CLOUD_PATH') || __dirname + '/cloud/main.js',
  6. RaschidJFR commented on Apr 17, 2016

    @RaschidJFR
    Contributor

    Great. I'll try that. Thanks 👍

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions