Installing Google Appengine on Windows 7 - google-app-engine

My Windows Vista Laptop is dying so I purchased a new HP Laptop running Windows 7 Pro 64 Bit.
I then downloaded and installed python-2.7.8.amd64.msi. Followed by GoogleAppEngine-1.9.9.
Copied my Google App Application from the Vista Laptop to the Win7 and tried to run it. The problem is that more often than not Chrome just displays a blank page and the App Launcher Log shows a mammoth entry, shown below. Refreshing the Chrome screen sometimes displays the page correctly, sometimes it takes 3 or 4 attempts. (Note that this problem is across a couple of projects and all .html screens within them)
So, my question: any thoughts on what I have done wrong here?
The log reads ...
INFO 2014-08-22 11:25:40,788 module.py:642] default: "GET /favicon.ico HTTP/1.1" 500 -
INFO 2014-08-22 11:25:41,354 module.py:642] default: "GET /mainmenu.html HTTP/1.1" 200 8366
INFO 2014-08-22 11:25:41,367 module.py:642] default: "GET /static/fsnormal.css HTTP/1.1" 304 -
INFO 2014-08-22 11:25:41,374 module.py:642] default: "GET /static/fsprint.css HTTP/1.1" 304 -
INFO 2014-08-22 11:25:41,375 module.py:642] default: "GET /static/fsscript.js HTTP/1.1" 304 -
INFO 2014-08-22 11:25:41,375 module.py:642] default: "GET /static/appengine-noborder.gif HTTP/1.1" 304 -
INFO 2014-08-22 11:25:41,421 module.py:642] default: "GET /favicon.ico HTTP/1.1" 200 8364
IncompleteRead(2 bytes read)
IncompleteRead(2 bytes read)
Traceback (most recent call last):
File "C:\Program Files (x86)\Google\google_appengine\lib\cherrypy\cherrypy\wsgiserver\wsgiserver2.py", line 1302, in communicate
req.respond()
[ 100 lines removed ]
File "C:\Python27\lib\httplib.py", line 543, in read
return self._read_chunked(amt)
File "C:\Python27\lib\httplib.py", line 597, in _read_chunked
raise IncompleteRead(''.join(value))
IncompleteRead: IncompleteRead(2 bytes read)
INFO 2014-08-22 11:26:28,727 module.py:642] default: "GET /favicon.ico HTTP/1.1" 200 8364

Out of frustration I updated to Windows 8 (came on cd with new laptop) and then 8.1.
Problem seems to have gone.
David

Related

Module status keeps running after it has been disabled

I rebooted my linux machine and started noticing these odd requests in my Apache access log.
::1 - - [16/Dec/2020:21:28:54 -0500] "GET /server-status?auto HTTP/1.1" 404 147 "-" "Go-http-client/1.1"
::1 - - [16/Dec/2020:21:29:07 -0500] "GET /server-status?auto HTTP/1.1" 404 147 "-" "Go-http-client/1.1"
::1 - - [16/Dec/2020:21:29:20 -0500] "GET /server-status?auto HTTP/1.1" 404 147 "-" "Go-http-client/1.1"
::1 - - [16/Dec/2020:21:29:26 -0500] "GET /server-status?auto HTTP/1.1" 404 147 "-" "Go-http-client/1.1"
::1 - - [16/Dec/2020:21:29:42 -0500] "GET /server-status?auto HTTP/1.1" 404 147 "-" "Go-http-client/1.1"
::1 - - [16/Dec/2020:21:29:58 -0500] "GET /server-status?auto HTTP/1.1" 404 147 "-" "Go-http-client/1.1"
I did some research on how to disable these requests and discovered they are part of a Apache module called "status". I disabled it, it when I run a2dismod status it appears to be disabled:
Module status already disabled
How can I get these requests to stop other than blocking them? I'd rather not have my access log filled with garbage.
You can use SetEnvIf:
SetEnvIf Request_URI "^/server-status?auto$" dontlog
More details here:
https://www.howtoforge.com/setenvif_apache2
Or you can find why you have requests and disactivate it. Maybe a monitoring system ?

pgadmin 4 v 1.5.2 not starting in windows 8.1

I had installed pgadmin 4 - v1.5.2 on system with Windows 8.1 Enterprise 64bit Os. When I start pgadmin it's stuck with message - "Loading pgAdmin4 v1.5...". To troubleshoot I had made below changes to config_local.py.
Disable upgrade
Enable debug mode.
Set SERVER_MODE = False
Please find the last few lines of the logs and attached screenshot.
2017-06-21 14:44:24,789: INFO werkzeug: 127.0.0.1 - - [21/Jun/2017
14:44:24] "GET /browser/server/static/js/variable.js HTTP/1.1" 200 -
2017-06-21 14:44:25,585: INFO werkzeug: 127.0.0.1 - - [21/Jun/2017
14:44:25] "GET /preferences/preferences/browser/show_node_schema
HTTP/1.1" 200 - 2017-06-21 14:44:26,296: INFO werkzeug: 127.0.0.1 - -
[21/Jun/2017 14:44:26] "GET
/preferences/preferences/browser/show_node_sequence HTTP/1.1" 200 -
2017-06-21 14:44:27,015: INFO werkzeug: 127.0.0.1 - - [21/Jun/2017
14:44:27] "GET /preferences/preferences/browser/show_node_view
HTTP/1.1" 200 - 2017-06-21 14:44:27,737: INFO werkzeug: 127.0.0.1 - -
[21/Jun/2017 14:44:27] "GET
/preferences/preferences/browser/show_node_mview HTTP/1.1" 200 -
2017-06-21 14:44:27,908: INFO werkzeug: 127.0.0.1 - - [21/Jun/2017
14:44:27] "GET /dashboard/ HTTP/1.1" 200 - 2017-06-21 14:44:28,573:
INFO werkzeug: 127.0.0.1 - - [21/Jun/2017 14:44:28] "GET
/preferences/preferences/browser/show_node_role HTTP/1.1" 200 -
2017-06-21 14:44:28,710: INFO werkzeug: 127.0.0.1 - - [21/Jun/2017
14:44:28] "GET /dashboard/static/img/welcome_logo.png HTTP/1.1" 200 -
2017-06-21 14:46:38,763: INFO werkzeug: 127.0.0.1 - - [21/Jun/2017
14:46:38] "POST /misc/ping HTTP/1.1" 200 -
I am not able to proceed with troubleshooting after this as I am not able to find any pointers. Please share inputs to fix this issue.

Problems using Go App Engine behind a proxy

I'm trying to run the example application hosted at: https://github.com/googlesamples/cloud-polymer-go, but when running it behind a proxy, I get the following errors:
$ goapp serve dispatch.yaml frontend/app.yaml backend/app.yaml
INFO 2015-10-13 13:04:19,461 devappserver2.py:763] Skipping SDK update check.
INFO 2015-10-13 13:04:19,526 api_server.py:205] Starting API server at: http://localhost:59441
INFO 2015-10-13 13:04:19,527 dispatcher.py:185] Starting dispatcher running at: http://localhost:8080
INFO 2015-10-13 13:04:19,529 dispatcher.py:197] Starting module "frontend" running at: http://localhost:8081
INFO 2015-10-13 13:04:19,534 dispatcher.py:197] Starting module "default" running at: http://localhost:8082
INFO 2015-10-13 13:04:19,534 admin_server.py:116] Starting admin server at: http://localhost:8000
INFO 2015-10-13 13:04:23,859 module.py:786] frontend: "GET / HTTP/1.1" 304 -
INFO 2015-10-13 13:04:23,870 module.py:786] frontend: "GET /elements/post-list.html HTTP/1.1" 304 -
INFO 2015-10-13 13:04:24,377 module.py:786] frontend: "GET /elements/post-service.html HTTP/1.1" 304 -
INFO 2015-10-13 13:04:24,377 module.py:786] frontend: "GET /elements/post-form.html HTTP/1.1" 304 -
INFO 2015-10-13 13:04:24,377 module.py:786] frontend: "GET /elements/post-card.html HTTP/1.1" 304 -
WARNING 2015-10-13 13:04:26,344 dispatcher.py:762] Skipping dispatch.yaml rules because /_ah/api/static/proxy.html is not a dispatchable path.
socket.error 101
Traceback (most recent call last):
File "/home/robert/applib/appEngine/go_appengine/lib/cherrypy/cherrypy/wsgiserver/wsgiserver2.py", line 1302, in communicate
req.respond()
File "/home/robert/applib/appEngine/go_appengine/lib/cherrypy/cherrypy/wsgiserver/wsgiserver2.py", line 831, in respond
self.server.gateway(self).respond()
File "/home/robert/applib/appEngine/go_appengine/lib/cherrypy/cherrypy/wsgiserver/wsgiserver2.py", line 2117, in respond
for chunk in response:
File "/home/robert/applib/appEngine/go_appengine/google/appengine/tools/devappserver2/endpoints/endpoints_server.py", line 121, in __call__
yield self.dispatch(request, start_response)
File "/home/robert/applib/appEngine/go_appengine/google/appengine/tools/devappserver2/endpoints/endpoints_server.py", line 138, in dispatch
start_response)
File "/home/robert/applib/appEngine/go_appengine/google/appengine/tools/devappserver2/endpoints/endpoints_server.py", line 172, in dispatch_non_api_requests
return dispatch_function(request, start_response)
File "/home/robert/applib/appEngine/go_appengine/google/appengine/tools/devappserver2/endpoints/endpoints_server.py", line 212, in handle_api_static_request
response, body = discovery_api.get_static_file(request.relative_url)
File "/home/robert/applib/appEngine/go_appengine/google/appengine/tools/devappserver2/endpoints/discovery_api_proxy.py", line 113, in get_static_file
connection.request('GET', path, None, {})
File "/usr/lib/python2.7/httplib.py", line 979, in request
self._send_request(method, url, body, headers)
File "/usr/lib/python2.7/httplib.py", line 1013, in _send_request
self.endheaders(body)
File "/usr/lib/python2.7/httplib.py", line 975, in endheaders
self._send_output(message_body)
File "/usr/lib/python2.7/httplib.py", line 835, in _send_output
self.send(msg)
File "/usr/lib/python2.7/httplib.py", line 797, in send
self.connect()
File "/usr/lib/python2.7/httplib.py", line 1178, in connect
self.timeout, self.source_address)
File "/usr/lib/python2.7/socket.py", line 571, in create_connection
raise err
error: [Errno 101] Network is unreachable
The variables:
$ echo $http_proxy
http://asusis-isa2.personal.com.py:8080/
$ echo $https_proxy
http://asusis-isa2.personal.com.py:8080/
Are correctly set.
I works with a direct Internet connection.
I'm under Ubuntu 14.04.
EDIT Looks like there is a defect in the SDK around using a proxy with URLFetch.
https://code.google.com/p/googleappengine/issues/detail?id=544
Try setting the uppercase versions of those environment variables, HTTP_PROXY and HTTPS_PROXY. The gcloud launcher requires them that way so I assume goapp does as well.
Using an HTTP proxy
If you are running gcloud preview app behind an HTTP proxy, you must
tell gcloud preview app the name of the proxy. To set an HTTP proxy
for gcloud preview app, set the http_proxy and https_proxy environment
variables. Note that you must specify the full path for the app.yaml
file.
Using Windows (in Command Prompt):
$ set HTTP_PROXY=http://cache.mycompany.com:3128
$ set HTTPS_PROXY=http://cache.mycompany.com:3128
$ gcloud preview app deploy DIRECTORY/app.yaml
Using the command line in Mac OS X (in Terminal) or Linux:
$ export HTTP_PROXY="http://cache.mycompany.com:3128"
$ export HTTPS_PROXY="http://cache.mycompany.com:3128"
$ gcloud preview app deploy DIRECTORY/app.yaml

Camel-swagger and Hawt.io incompatibility

We have Camel (2.15.2) based application with some REST services published.
Camel-swagger component is used to publish information about the services.
Everything works perfectly if the app is alone in a Tomcat container.
127.0.0.1 - - [12/Jun/2015:11:25:20 +0200] "GET /myapp/api-docs/ HTTP/1.1" 200 383
However if I deploy freshly downloaded Hawt.io 1.4.51 WAR (sample-1.4.51.war) in the same container (no changes o configurations done) I get 204 response code from my original app.
127.0.0.1 - - [12/Jun/2015:12:50:51 +0200] "GET /myapp/api-docs/ HTTP/1.1" 204 -
I guess it all about JMX and how Swagger gets information about REST services published in the Camel context, but I not sure how to avoid this error

Getting consistent, immediate backend shutdown on Google App Engine

Whenever I try to start a task on my GAE backend, its gets shutdown almost immediately. I've looked at the documentation regarding the reasons for shutdown but I can't determine the cause. The is no evidence of excess CPU or memory. It happens every time.
I added the shutdown handler and it is getting invoked. Before I put in the handler, I got no log entries from my code, only the "Process terminated because the backend took too long to shutdown" message. Now with the handler I get the initial log entry and the exception that results from the interruptAllRequests call in the handler.
Any ideas?
Log image: http://imgur.com/8TXHkJS
2014-04-04 11:35:27.372 /camperschoicecloud/task 500 6357ms 0kb instance=0 AppEngine-Google; (+http://code.google.com/appengine) module=default version=sched-backend
D 2014-04-04 11:35:24.883 com.stellarcoresoftware.camperschoice.server.NamespaceFilter doFilter: Server Name: sched-backend.campers-choice.appspot.com
I 2014-04-04 11:35:24.891 com.stellarcoresoftware.camperschoice.server.TaskServiceImpl doPost: executing task: sched, entity 6288495693791232
E 2014-04-04 11:35:27.366 com.stellarcoresoftware.camperschoice.server.util.JobUtil getJob: Error reading job com.google.apphosting.api.ApiProxy$CancelledException: The API cal
2014-04-04 11:35:25.878 /_ah/stop 200 100ms 0kb instance=0 module=default version=sched-backend
[04/Apr/2014:08:35:25 -0700] "GET /_ah/stop HTTP/1.1" 200 2 - - "0.sched-backend.campers-choice.appspot.com" ms=101 cpu_ms=8 cpm_usd=0.000000 instance=0 app_engine_release=1.9.2
E 2014-04-04 11:35:25.868
com.stellarcoresoftware.camperschoice.server.TaskServiceImpl$1 shutdown: Shutdown Hook
2014-04-04 11:35:24.876 /_ah/start 404 3809ms 0kb instance=0 module=default version=sched-backend
[04/Apr/2014:08:35:24 -0700] "GET /_ah/start HTTP/1.1" 404 234 - - "0.sched-backend.campers-choice.appspot.com" ms=3810 cpu_ms=2232 cpm_usd=0.000026 loading_request=1 instance=0 app_engine_release=1.9.2
D 2014-04-04 11:35:24.834
com.stellarcoresoftware.camperschoice.server.NamespaceFilter doFilter: Server Name: 0.sched-backend.campers-choice.appspot.com
I 2014-04-04 11:35:24.873
This request caused a new process to be started for your application, and thus caused your application code to be loaded for the first time. This request may thus take longer and use more CPU than a typical request for your application.
I'm solved the issue by changing the backend class from B1 to B4. That leads me to believe it was a memory problem even though I there are no specific indications of that. I see that on the Python side there are easy methods to check CPU and memory. Are there Java equivalents?

Resources