Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
otymartin opened this issue Feb 26, 2016 · 6 comments
Closed

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

otymartin opened this issue Feb 26, 2016 · 6 comments

Comments

@otymartin
Copy link

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

@otymartin
Copy link
Author

My cloud code destination was misplaced I fixed it

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

@RaschidJFR
Copy link
Contributor

So what exactly did you write instead of __dirname?

@otymartin
Copy link
Author

@RaschidGithub I didnt have the __dirname included

@RaschidJFR
Copy link
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.

@otymartin
Copy link
Author

otymartin commented Apr 17, 2016

@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',

@RaschidJFR
Copy link
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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants