Error loading the page after deploying to GAE - google-app-engine

I have created an web application. It runs perfectly in localhost. when i deployed to Google App Engine, it works but one particular page is not running. It does not throw any exceptions but shows ERROR : NOT FOUND (404)
I understand this is file not found error but don't know why is this is error shown. even when i deploy it shows "application deployed successfully!".
can anyone help me to fix it.
thanks in advance!

Be careful with which slashes you use in your code when using paths and links. In windows, the backslash '\' is used, meanwhile Linux uses forward slashes '/'. Often this isin't an issue but it does cause problems once in a while. Also this explains why it would work fine on your localhost, but not once you deploy it.

Related

GAE runs locally but gives 403 error when uploaded

I have a Google App Engine application that runs locally and when uploaded. In order to make a certain kind of experiment, I make a copy of it and it runs locally, but when I upload it (to a different web location) I get a 403 error. I am stumped. Has anyone else using GAE encountered this problem? Is there some clever way to use the browser debugger to get more information about the problem?
It was just a stupid mistake, so never mind. Sorry.

Google appengine flexible environment successfully deploys but web URL displays 404 error

I've been following this tutorial: https://cloud.google.com/solutions/mobile/mobile-firebase-app-engine-flexible
I reached the step titled "Deploying the service to the App Engine flexible environment", and initially could not get it to deploy due to dm:true being deprecated. Changing <dm>true</dm> to <env>flex</env> in "appengine-web.xml" fixed this, and it now appears in the App Engine console as "serving". However, when I go to access the printLogs URL as instructed in the tutorial (or any URL connected to the project for that matter) I run into a 404 error. I am deploying from Windows 10 through the command prompt, and have installed everything instructed by the tutorial. I cannot figure out what is causing the 404 despite being told that it is running correctly.
You can go to the version in cloud platform and check the logs - it might tell you something.
However, I can tell you from experience that a lot of those projects are out of date and you can get all sorts of errors without changing a single line of code and following the instructions exactly. I've some of them say that they deploy, only to have errors just like the one you are describing.
It is very likely that you are NOT doing something wrong - check out some of the other projects and look specifically at pom.xml (or build.gradle) and app.yaml. See which versions of libraries they are including, and look for any differences. Try deploying a very limited project, and then build upwards and see what is breaking the code.

GAE Server Error when Opening App in Console

When I open up the Google App Engine console and click on one particular app I get:-
Server Error (500)
A server error has occurred.
Additional info:-
This only happens for one app (I have 8 in total).
The app is deployed and I can view it no dramas via the appspot URL.
It happens as soon as I click the app name in the "Applications Overview" page - I am unable to view the console for that app at all.
There are no errors when deploying from the GAE Launcher and I've tried re-deploying several times.
I was able to login yesterday morning but have been receiving this error since yesterday afternoon.
The app is Python (as are all my apps).
I tried logging in "incognito" and on a different PC without success.
I also tried deleting all the *.pyc files and re-compiling them but it made no difference.
Has anyone else come across this issue? Any suggestions on how to resolve it?
Thanks.
The issue was my YAML file contained:-
- url: /.*
script: about.application
Once I changed this so that the "about" page wasn't so greedy, it has worked.

google glass mirror quickstart on drupal with IIS

I have been trying repeatedly to run one of the mirror-quickstart packages off of my drupal website with little luck. I have been working with the java and .NET versions and have gotten both to work great when I run them off of localhost. However, when I try to move it to a page on my site I get the following errors
for the java application I go to www.mywebsite.com/Glassjava. I get redirected to www.mywebsite.com/oauth2callback with the following error:
Page not found
The requested page "/oauth2callback" could not be found.
For the .NET application I go to www.mywebsite.com/DN_glass. I get redirected to www.mywebsite.com/DN_glass/auth and get the error:
Page not found
The requested page "/DN_glass/auth" could not be found.
I have had success running the java off of localhost from a machine running IIS express after specifying the absolute path of the oauth.properties file and following these java servlet instructions: http://www.helicontech.com/articles/deploying-java-servlet-applications-on-windows-with-iis/
However, I have not gotten it to work on my drupal site. I don't understand the errors /oauth2callback and /auth. I am pretty sure I don't need to create any such directories and I also think that the oauth.properties file is getting read in order to communicate with the google api console and find the redirect URI (at least in the case of the java error). Any help with this problem would be greatly appreciated. Any suggestions about using the quickstarts with drupal and iis would also be appreciated.

Google App Engine: This application does not exist/Upload fails

I have been successfully using Netbeans to develop and deploy an app to the Google App Engine for ages through various application versions. That is all working normally and fine.
However (the problem), through the same account I created a new application (at the Google end) and at the application end the correct application id is in appengine-web.xml with a version of 1. All runs locally perfectly. But as soo as I deploy to GAE it fails:
com.google.appengine.tools.admin.HttpIoException: Error posting to URL:
404 Not Found
This application does not exist
Unable to update app: Error posting to URL: https://appengine.google.com/api/appversion/create?app_id=
404 Not Found
This application does not exist (app_id=u
Why??????
I have spent hours looking through the web for a solution. Lots of people have a similar problem but what is the solution? How can one app upload fine and the second fails?
PLEASE can someone give me some suggestions on how to fix the problem and successfully deploy?
I use Netbeans and have tried 6.9, 7.1, and 7.2 (I even tried installing Eclipse to solve the problem but it was horrendous to get going so I'm back to Netbeans). JDK 1.6.
Help!
Of course it works this way. After finally seeking help (from you chaps), within minutes I solve the problem (blind luck).
In case it helps anyone else, the basic issue was Google's account authentication model...
I needed to generate an application-specific password in Google Accounts (https://accounts.google.com/IssuedAuthSubTokens#accesscodes - that is, the Authorized Access to your Google Account area) to be used with the new application.
Then I needed to clear the existing email/password in Netbeans. This is a bit messy as I did that by deleting the 'deployment.properties' file you eventually find in C:\Users\User.netbeans\7.1\config\Preferences\org\netbeans\modules\j2ee\appengine.
You'll note I went back to Netbeans 7.1 because Netbeans 7.2 seems to store it in a different place which I couldn't find.
Back to Netbeans and hit the 'Deploy to Google App Engine' menu choice. It starts then asks for authentication. I used my normal (account) emailid and then the NEW application specific password. Miracle of miracles, it worked and the app fired up live.
I went and got a coffee
Perhaps Google could provide a slightly more meaningful error code than 404 Not Found???
Hopefully that helps anyone else with a similar problem.
Today, I had kind of the same problem. After some trial and error I found the solution.
Basically, starting from Netbeans 7.2. up, username and password are stored in something called "keyring".
In Windows 8 I found it under my current users directory: AppData\Roaming\NetBeans\7.3.1\config\Preferences\org\netbeans\modules\keyring.
I had to delete the GAE password information from the configuration file there. Then I cleared some registry keys (that might not be mandatory) and restarted Netbeans IDE. Then got prompted for new credentials.
See the full HowTo under:
http://donkeytech.wordpress.com/2013/08/06/change-google-app-engine-deployment-userdata-in-netbeans-from-7-2/

Resources