I am currently working on a app that I am hosting on Google Cloud. I tried everything in the documentation but may have had the command 'default_expiration: "30d"' in the app.yaml file. I got rid of it but it won't let me push the latest version of my app to make it live. I tried everything I could think of such as 'gcloud app deploy --promote --stop-previous-version' but to no avail. How can I get the latest version of my code live using Google Cloud App Engine.
Cheers,
EDIT:
If I go to the latest version as 'www.version.app-name.appspot.com' it shows the latest version; however, in the App Engine Versions panel, it shows that version with 100% of traffic allocated to it even though when I go to 'www.app-name.appspot.com' it displays a very old version.
I tried deleting all the old versions on the App Engine Versions panel, including the version that is being displayed, and it still shows the old version when going to 'www.app-name.appspot.com' but going to the exact version number displays the correct version. The newest version shows 100% of traffic is being sent there.
Cheers,
It now magically works so I will post the steps I did. I managed to debug it and find out that the version with all the traffic according to the App Engine Version panel wasn't the version being displayed, so, I deleted all the old versions on the Version panel and then it still wasn't working. It was still the same error, that the newest version was not being displayed when visiting 'www.app-name.appspot.com' so I waited around half an hour and now it is displaying the correct version at the main address. See the question for more debugging information.
Cheers,
I have a dokku server running at my university.
After changing a few things on the Website (adding Buttons) and successfully deploying to Dokku, it still shows the old Build.
I tried redeploying, I completely rebooted the server, it's always the old build.
I am stupid, i'm sorry. Chrome on my computer used the cached version of the site. Deleting Chromes Cache fixed it.
I used to have X3D-Edit 3.3 downloaded and working on my Netbeans IDE but I updated my laptop to Windows 10 and some of my files got deleted such as X3D-Edit and when I go onto https://savage.nps.edu/X3D-Edit/X3D-Edit.html, I get
This web page is not available
ERR_CONNECTION_TIMED_OUT
Google Chrome could not load the web page because savage.nps.edu took too long to respond. The website may be down or you may be experiencing issues with your Internet connection.
Check your Internet connection
Check any cables and reboot any routers, modems or other network devices you may be using.
Allow Chrome to access the network in your firewall or antivirus settings.
If it is already listed as a programme that is allowed to access the network, try removing it from the list and adding it again.
If you use a proxy server...
Check your proxy settings or contact your network administrator to make sure the proxy server is working. If you don't believe you should be using a proxy server: Go to the Chrome menu > Settings > + Show advanced settings > Change proxy settings... > LAN Settings and deselect "Use a proxy server for your LAN".
I've tried that same site on two separate networks and I've tried it with and without a firewall. And I'm still getting the same problem, so I was wondering where I'd get X3D-Edit from?
Happy to announce that upgraded X3D-Edit 4.0 now available
https://savage.nps.edu/X3D-Edit/X3D-Edit.html
Update: installers and help video now available on SourceForge
https://sourceforge.net/projects/x3d/files
Downloadable zip includes runnable versions for Windows, Mac and Linux. Build environment is Apache NetBeans 12.6 and openjdk 19. Beta testing in progress, adding features and X3D4 nodes with special focus on validation, HTML5 integration and Web Audio API.
All test and usage reports welcome. Have fun with X3D4!
Windows Server 2008 R2
IIS 7.5
DNN 7.2.1
Application Pool - .NET Framework Version = v4.0
After fresh install I get the problem when ControlBar is showing like this in IE10:
and does not respond to any actions.
And Google Chrome shows the website like:
Start by checking to see why your IIS site isn't serving up STATIC Files. Looks like your CSS and Images aren't loading.
Also, make sure the site is not running in Compatibility Mode or you didn't accidentally place the site on the Compatibility list.
You can also try hitting F12, going to the Network tab and refreshing the site. This will let you see if any resources (css/js) aren't getting loaded (404).
I'm getting some strange issues with google app engine serving old versions of files. I have included some logging in one of my servlets and deployed to google app engine several times over the last 24 hours. However, instead of seeing the logging i added, I'm seeing logs from a previous version of the file every time the servlet runs.
I've tried changing versions and redeploying but this doesnt seem to fix the problem.
I'm using Eclipse Juno with the app engine plugin if that makes a difference.
Any ideas what I can try or what I might be doing wrong?
I had a similar problem recently, and that I fixed by logging into appengine.google.com>MyAppIdentifier>(Main)>Versions and selecting the current version as the default.
This should not only serve your latest version, but also use the latest version for log viewing and other administrative tasks.
In the logs, make sure that you're checking the correct version:
Otherwise redeploy to a brand new version and check that version explicitly directly from the version url that can be found under the Versions section.
Make sure that before redeploying your APP after making changes you Remove Launch and Remove All Terminated launches by pressing the double cross buttons next to the "clear console" buttons on the console window in Eclipse...I hope this solve your problem.
December 2020 Answer
Not sure if this is an account or billing specific setting, but I found that App Engine started not updating to my latest app deploy once I reached 50 Versions in my App Engine list.
After deleting a bunch of old versions (taking down to 30) on next deploy it picked up my latest changes immediately.
It could be due to caching issue. Try reloading the website by adding a query parameter . Eg <website-url>?q=1 and see if changes are reflected
Open the url -> latest-version-number-dot-website-url . Latest version number can be obtained by clicking on version menu item on the side bar as seen below
If you have app.yaml file in your source code. Try removing headers related to caching and deploy and check to confirm its a caching issue. Caching headers could be of below form
Cache-Control: public, max-age=604800, immutable
Also make sure your project compiles correctly and doesn't contain any errors. I had this problem basically because I was deploying old compiled code, while it gave me an error "you have errors in your project, are you sure you want to deploy?"
I tried all the suggestions on SO, but ultimately, I found the best fix.
Because I transferred domain names and web hosting, I neglected to change my Domain's Resource Records. After making sure my code worked properly with the application (appname.appspot.com), I created a Custom Domain found in Console menu > App Engine > Settings > Custom domains
After you add the custom domain, make sure you change your Domain setting's CNAME www alias to the prescribed value (for me it was ghs.googlehosted.com).
Since changing that CNAME value, all of my subsequent deploys updated immediately. Hope this works for you and all others. Happy coding!
The gcloud (at list in python) has problem with line 'skip_files' in app.yaml,
So you can try the old method of deploying app with app engine,
use appcfg.py instead of gcloud.
see how in https://cloud.google.com/appengine/docs/standard/python/tools/uploadinganapp