Reputation: 606
I recently signed up and started playing with GAE for python. I was able to get their standard/flask/hello_world project. But, when I tried to upload a simple cron job following the instructions at https://cloud.google.com/appengine/docs/standard/python/config/cron, I get an "Internal Server Error".
My cron.yaml
cron:
- description: test cron
url: /
schedule: every 24 hours
The error I see
Do you want to continue (Y/n)? y
Updating config [cron]...failed.
ERROR: (gcloud.app.deploy) Server responded with code [500]:
Internal Server Error.
Server Error (500)
A server error has occurred.
Have I done something wrong here or is it possible that I am not eligible to add cron jobs as a free user?
Upvotes: 2
Views: 1021
Reputation: 8840
I was having this problem as well, at about the same timeline. Without any changes, the deploy worked this morning, so my guess is that this was a transient server problem on Google's part.
Upvotes: 3
Reputation: 491
I was just struggling with this same issue. In my case, I am using the PHP standard environment and kept receiving the '500 Internal Server Error' when I tried to publish our cron.yaml file from the Google Cloud SDK with the command:
gcloud app deploy cron.yaml --project {PROJECT_NAME}
To fix it, I did the following:
I removed all credentials from my gcloud client
gcloud auth revoke --all
Reauthenticated within the client
gcloud auth login
Published the cron.yaml
gcloud app deploy cron.yaml --project {PROJECT NAME}
From what I can tell, the permissions in my gcloud client got out of sync which is what caused the internal server error. Hopefully that's the same case for you!
Upvotes: 4