Google App Engine instance crashing with ErrorCode 121 - java

My GAE app suddenly stopped working last friday. I tried several times to start an instance in background, (both using cron and manually) but after a minute since the instance starts I get this error:
/cron/spreadsheet 500 4660ms 0kb instance=0 AppEngine-Google;
(+http://code.google.com/appengine)
0.1.0.1 - - [17/Feb/2013:12:40:05 -0800] "GET /cron/spreadsheet HTTP/1.1" 500 0 -
"AppEngine-Google; (+http://code.google.com/appengine)"
"backend.myclimagest.appspot.com" ms=4661 cpu_ms=692 queue_name=__cron
task_name=5ed789ec52683cb170ed3c2cc4ec48c9 pending_ms=3651 exit_code=121
instance=0
W 2013-02-17 12:40:05.268
A problem was encountered with the process that handled this request,
causing it to exit. This is likely to cause a new process to be used
for the next request to your application. (Error code 121)
I don't know what to do since this error code is undocumented. I also tried to redeploy but no luck. Are you experiencing the same problem and have you maybe found a solution?
I don't think it matters but the app is developed in Java using Eclipse.
The app is in production so I really need to solve this issue as quickly as I can.
Thank you

It seems your App Engine scheduler got problem. Try this, Removing the automatic settings from Performance settings which seeems to help. Google Groups
Check this Official Google page too Managing Your App's Resource Usage

Related

After deploy Google App Engine returns HTTP response code 403

I've done another deploys and all was fine, but after finishing the app, I'm getting this error. And the page request keeps loading.
Do I need to configure something in "IAM"?
Java 11
Standard Environment
h2 DB
Spring boot
The stack trace from Google Cloud:
java.io.IOException: Server returned HTTP response code: 403 for URL: https://clouddebugger.googleapis.com/v2/controller/debuggees/register at java.base/sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1919) at java.base/sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1515) at java.base/sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(HttpsURLConnectionImpl.java:250)
at com.google.devtools.cdbg.debuglets.java.GcpHubClient.registerDebuggee (Unknown Source)
I've got new data using Stackdriver debug.
"message": "Stackdriver Debugger API has not been used in project
929024293238 before or it is disabled. Enable it by visiting
https://console.developers.google.com/apis/api/clouddebugger.googleapis.com/overview?project=929024293238
then retry. If you enabled this API recently, wait a few minutes for
the action to propagate to our systems and retry.",
Just a note if somebody else stumbles across this error: I had the same message in Google's App Engine dashboard popping up up to 60 times in a couple of minutes.
Enabling the Stackdriver Debugging API, as linked above, solved it. No more error logs (of that kind) were being produced. The weired thing is that the Stackdriver Debugging API should have been turned on by default for my standard environment.
The log wasn't very informative.
I change the application port from 8000 to 8080.
application.properties:
server.port=${PORT:8080}
Now the app is running fine.

HTTP Status 404 - /ssssnpm//promotional.jsp error

Whenever I connect to my broadband internet, it shows this message -
"HTTP Status 404 - /ssssnpm//promotional.jsp"
Apache Tomcat/7.0.57
I searched a lot about this issue but couldn't find it. Everyone is talking about Tomcat or Apache servers. I don't use any IDE. I am not a programmer, so I didn't write any codes. I am just not able to open any web page. Whenever I enter any URL, it redirects me to another URL, which seems to be an IP address. And, that page shows this error message (wrote above).
I suspect that it could be because of an antivirus I installed a couple of days ago on my laptop and my phone as well. But, it's showing the same error to my brother's phone on which this antivirus isn't installed.
other internet connections are working fine on my laptop - like my mobile internet.
Please help in resolving this issue.
The issue is resolved now. It was some server error as it was unable to load a file something "promotional.jsp"
The message Apache Tomcat/7.0.75 was a bit confusing to me. So, posted a question here.
this is not internet connection problem this is background code problem apache could not found specific file which you want to access
thanks

error 503 localhost google datastore

So I am a total novice when it comes to datastore and cloud interaction, and I am trying to figure out the basics of datastore through the google bookshelf tutorial. I have the free trial running for 60 days and just want to wrap my head around how it works.
So in the setup I reached this portion of the tutorial (screenshot of google site) (this is the url: https://cloud.google.com/java/getting-started/using-forms) and I seem to be doing okay. I ran the code it asks for and seem to have started a jetty server in my terminal. It reads:
[INFO] Started ServerConnector#5ef8c2f7{HTTP/1.1,[http/1.1]}{0.0.0.0:8080}
[INFO] Started #14439ms
[INFO] Started Jetty Server
So the next step is to go to localhost8080 in my browser but when I get there I get an HTTP 503 Error that reads:
Problem accessing /. Reason:
Service Unavailable
I can't seem to find a solution to this anywhere, so I was wondering if anyone could give me some insight into what I should do. Thanks!

400 bad request while deploying to app engine

While deploying to app engine, I got this error message:
400 Bad Request
Creating an index failed for entity_type:
"GeoLocationStat"ancestor: falseProperty { name: "ZoomLevel"}
Property { name: "GeoPt" mode: 3}:
Permission denied for creating a search index
Does anyone have any idea?
Well, apparently GeoPt and ZoomLevel datatypes were NOT the cause.
The root cause of this error message is Eclipse is unable to update datastore-indexes-auto.xml in WEB-INF\appengine-generated folder.
I delete the file and the deployment proceed just fine. :)
According to issue11963#c14 on the app engine issue tracker:
Geo-spatial queries are a new feature currently under development, and
expected to launch as Alpha sometime soon. When it does launch, it
will be for a limited group of apps; during Alpha, only those apps
will have "permission" to use it, which is why you're seeing this
confusing error message now...the SDK development server does
currently support the feature. So it works locally, but not in
production.

404 Error with ajax call which works after page refresh (F5)

I have a javascript portal-like application (based on JPolite), when modules are loaded with $.ajax jquery call.
But the first request (when user has just started his browser) is failed with error 404.
Supposing the app is hosted https://localhost:8443/context
Firebug shows a request to /:8443/context/file.html which is incorrect
But after refreshing browser (F5) everything works fine and request became well-formed. The same issue was in another app based on JBoss portal but fixes after migrating to the latest version.
I suppose this may be connected with incorrect caching or so. Unfortunately google did not suggest anything useful so I'd appreciate any answers.
Seems I found the solution myself. The problem was that the log was not configured properly and I missed the important record:
ERROR: org.hibernate.util.JDBCExceptionReporter - Already closed.
After some period of inactivity mysql server closes the current connection and request was failed with AlreadyClosedException. Adding validationQuery="select 1" to my context.xml seems fixed the issue.
After some period of inactivity mysql server closes the current connection
You should be closing connections as soon as you are finished with your database unit-of-work. Not just letting them sit idle until the SQL server closes the connection.

Categories

Resources