Google App Engine does not update deployed files

I'm having some weird issues with the Google engine serving older versions of files. I have included some entries in one of my servlets and have been deployed several times in the Google App Engine several times over the past 24 hours. However, instead of monitoring the log, I added that every time the servlet runs, I see the logs from the previous version of the file.

I tried changing versions and redistributing, but this does not seem to fix the problem.

I use Eclipse Juno with a plugin for the application, if that matters.

Any ideas what I can try or what I can do wrong?

+4
source share
5 answers

In the logs, make sure you check the correct version:

version in the logs of app engine console

Otherwise, relocate to a completely new version and check this version explicitly directly from the version URL, which can be found in the "Versions" section.

+5
source

I recently had a similar problem and fixed it by going to appengine.google.com>MyAppIdentifier>(Main)>Versions and choosing the current default version.

This should not only serve your latest version, but also use the latest version to view the log and other administrative tasks.

+7
source

Make sure that before you redeploy APP after making changes, delete “Run and delete all completed launches” by clicking the two cross-button buttons next to the “clear console” buttons in the console window in Eclipse ... I hope this solves your problem,

+1
source

Also make sure that your project compiles correctly and does not contain errors. I had this problem mainly because I was deploying the old compiled code while it gave me the error "you have errors in your project, are you sure you want to deploy?"

0
source

I tried all the suggestions for SO, but in the end I found a better solution.

Since I transferred domain names and web hosting, I forgot to change my domain resource records. After making sure that my code worked correctly with the application (appname.appspot.com), I created a custom domain found in the Console menu > App Engine > Settings > Custom domains

custom domains

After you add the custom domain, make sure to change your CNAME www DNS address with the given value (for me it was ghs.googlehosted.com).

By changing this CNAME value, all of my subsequent deployments are updated immediately. Hope this works for you and everyone else. Happy coding!

0
source

Source: https://habr.com/ru/post/1437247/


All Articles