You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 6, 2024. It is now read-only.
I'm trying to deploy my app using the command gradle appengineDeploy.
Deploying seems to succeed but after that I'm getting in the title of this issue.
I've tried several things by searching on the internet but the error remains. I've looked in the app engine and after deployment the app is there and when I try to start it, it doesn't work. And after a while it disappears again.
Any help would be greatly appreciated.
Here's the complete error:
Updating service [default]...
..............................................................failed.
ERROR: (gcloud.app.deploy) Error Response: [9]
Application startup error:
Info: Limiting Java heap size to: 400M
2017-10-20 11:30:23.167:INFO::main: Logging initialized @861ms
2017-10-20 11:30:24.052:INFO:oejs.Server:main: jetty-9.3.5.v20151012
2017-10-20 11:30:24.160:INFO:oejs.AbstractNCSARequestLog:main: Opened /var/log/app_engine/request.2017_10_20.log
Oct 20, 2017 11:30:26 AM com.google.apphosting.vmruntime.VmMetadataCache getMetadata
INFO: Meta-data 'attributes/gae_affinity' path retrieval error: http://metadata/computeMetadata/v1/instance/attributes/gae_affinity
Oct 20, 2017 11:30:26 AM com.google.apphosting.vmruntime.VmMetadataCache getMetadata
INFO: Meta-data 'attributes/gae_appengine_hostname' path retrieval error: http://metadata/computeMetadata/v1/instance/attributes/gae_appengine_hostname
The error response code 9 (application startup error) is a very general error message indicating that for whatever reason, the deployed app failed to start up hence not running properly (or the VM believes so). From what you said, it looks like the app is actually deployed to the VM but after some time, the VM goes down due to the app not starting up.
Try looking at the server logs in the Cloud Console for more hints on why it's crashing.
I also see you use a rather small size of heap.
Info: Limiting Java heap size to: 400M
It is possible that your app goes down due to insufficient memory. Try adding this to your app.yaml:
resources:
memory_gb: 2.0
However, remember that there are various reasons for your app not starting up.
It turned out that I had my app.yaml in the wrong directory, so my never knew it was there. I had to place it in the main/appengine directory. I also had to delete the old appengine-web.xml. Now that my app sees the app.yaml file, it probably picked up the memory setting.
I'm trying to deploy my app using the command
gradle appengineDeploy
.Deploying seems to succeed but after that I'm getting in the title of this issue.
I've tried several things by searching on the internet but the error remains. I've looked in the app engine and after deployment the app is there and when I try to start it, it doesn't work. And after a while it disappears again.
Any help would be greatly appreciated.
Here's the complete error:
Here's my gradle file:
And here's my app.yaml:
The text was updated successfully, but these errors were encountered: