I'm trying to deploy a python app to App Engine.
I've already deploy this app before but for some reason now it upload the files but then write Updating service [default].../
and never finishes.
I'm using Windows 10 and all I can see after few minutes it is running is ERROR: (gcloud.app.deploy)
.
The command I run is gcloud app deploy --project my-proj -v 1 --quiet server/app.yaml
I have the server side app in server sub directory.
Any ideas how to diagnose this problem?
UPDATE1 I've run the command with debug flag and I see this come every 5 seconds:
Updating service [default].../DEBUG: Received operation: [apps/my-app/operations/b0647556-93af-4fd8-b0a7-f4ae43393e1e]
DEBUG: Operation [apps/my-app/operations/b0647556-93af-4fd8-b0a7-f4ae43393e1e] not complete. Waiting 5s.
Updating service [default]...-DEBUG: Operation [apps/my-app/operations/b0647556-93af-4fd8-b0a7-f4ae43393e1e] not complete. Waiting 5s.
Updating service [default]...\DEBUG: Operation [apps/my-app/operations/b0647556-93af-4fd8-b0a7-f4ae43393e1e] not complete. Waiting 5s.
Updating service [default].../DEBUG: Operation [apps/my-app/operations/b0647556-93af-4fd8-b0a7-f4ae43393e1e] not complete. Waiting 5s.
DEBUG: Operation [apps/my-app/operations/b0647556-93af-4fd8-b0a7-f4ae43393e1e] not complete. Waiting 5s.
Updating service [default]...|DEBUG: Operation [apps/my-app/operations/b0647556-93af-4fd8-b0a7-f4ae43393e1e] not complete. Waiting 5s.
Cloud Functions deployment can fail if the entry point to your code, that is, the exported function name, is not specified correctly. Deployment failure: Function failed on loading user code.
Required permission(s): cloudfunctions.functions.create Assign the user a role that has the appropriate access. In order to deploy a function, a user who has been assigned the Project Viewer, the Cloud Function Developer, or Cloud Function Admin role must be assigned an additional role.
If the role assigned to the service account is changed and the appropriate permissions are not otherwise granted, the Cloud Functions service cannot access Cloud Pub/Sub and the deployment fails. Reset this service account to the default role. Grant the pubsub.subscriptions.* and pubsub.topics.* permissions to your service account manually.
Also test your functions locally using the Functions Framework before you deploy to Cloud Functions to ensure that the error is not due to missing or conflicting dependencies. Scaling issues related to Cloud Functions infrastructure can arise in several circumstances.
In our case, this was caused by software bug that was causing a 500 error - e.g. I believe during deploy App Engine does a simple health check to verify if the app has been successfully deployed, and if that fails it will loop forever.
I had the same problem, so the solution for me was to deploy the app from console (https://console.cloud.google.com). I cloned my git repo in the source code folder, after installing project, I run the command: gcloud app deploy --project [google-project-name]
This was happening to me with the v2 endpoints. For backwards compatibility, I had added the old Servlet mapping of _ah/spi
in my web.xml. This caused the application to get stuck at Updating service [default]...
and never finish. It looks like just having the mapping for _ah/api
works for backwards compatibility, so there must be some backend magic that is happening on the appengine side.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With