简体   繁体   中英

Appengine application's deployment takes too long?

I tried to deploy my appengine application on eclipse to server (via ADSL from Japan), after about 40 minutes uploading, it failed with an error: com.google.appengine.tools.admin.OAuth2ServerConnection$OAuthInvalidTokenException: Error posting to URL: https://appengine.google.com/api/appversion/rollback?app_id=XXXXX&version=1& 401 Unauthorized Invalid OAuth token

My questions are:

1) My project folder's stuff amounts to about 500MB now. Is it too big size?

2) If there is another project referenced by my project on the Build Path, does deploying tool also upload whole of it?

3) I tried to cancel deploying process. After 10 minutes later, "User cancelled" message emerged on the console. But the process continues after then for long time. Cancellation of deployment is forbidden?

4) What is the error message saying?

I appreciate any advice. Thanks in advance.

500MB for a the source of your project is way too big and of course it will take some time to deploy. Are you sure you need all these files?

I'm suspecting that you're uploading lots of static files that I'm guessing could (should) be treated differently.

If you want to exclude some files from being deployed on Google App Engine, refere to the docs in Java Application Configuration .

Use the latest App engine SDK. I upgraded from 1.7.0 to 1.7.7 and my deployment went down from 10+ mins to a few seconds! (my proj is around 230MB)

I face the same issue with cancellation. I find it easier and faster to let it complete deployment and then re-deploy, rather than wait for it to cancel.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM