dart-archive / pub-dartlang

DEPRECATED - old pub.dartlang.org site in Python
https://github.com/dart-lang/pub-dartlang-dart
Other
43 stars 18 forks source link

pub-dartlang server crashes when behind a proxy/firewall #237

Open DartBot opened 9 years ago

DartBot commented 9 years ago

From hulibu...@googlemail.com on July 01, 2014 20:55:28

What steps will reproduce the problem? 1. Have a machine behind a firewall using a proxy

  1. setup and start pub server as described at https://github.com/dart-lang/pub-dartlang What is the expected output? What do you see instead? I would expect the server to start and work at least within the LAN.

What happens instead is the following:


dartpub@dartbuntu:~/pub-dartlang$ dev_appserver.py app INFO 2014-07-01 18:45:22,478 api_server.py:171] Starting API server at: http://localhost:47393 INFO 2014-07-01 18:45:22,483 dispatcher.py:182] Starting module "default" running at: http://localhost:8080 INFO 2014-07-01 18:45:22,484 admin_server.py:117] Starting admin server at: http://localhost:8000 HTTPError() HTTPError() Traceback (most recent call last): File "/home/dartpub/google_appengine/lib/cherrypy/cherrypy/wsgiserver/wsgiserver2.py", line 1302, in communicate req.respond() File "/home/dartpub/google_appengine/lib/cherrypy/cherrypy/wsgiserver/wsgiserver2.py", line 831, in respond self.server.gateway(self).respond() File "/home/dartpub/google_appengine/lib/cherrypy/cherrypy/wsgiserver/wsgiserver2.py", line 2115, in respond response = self.req.server.wsgi_app(self.env, self.start_response) File "/home/dartpub/google_appengine/google/appengine/tools/devappserver2/wsgi_server.py", line 266, in call return app(environ, start_response) File "/home/dartpub/google_appengine/google/appengine/tools/devappserver2/request_rewriter.py", line 311, in _rewriter_middleware response_body = iter(application(environ, wrapped_start_response)) File "/home/dartpub/google_appengine/google/appengine/tools/devappserver2/python/request_handler.py", line 149, in call self._flush_logs(response.get('logs', [])) File "/home/dartpub/google_appengine/google/appengine/tools/devappserver2/python/request_handler.py", line 264, in _flush_logs apiproxy_stub_map.MakeSyncCall('logservice', 'Flush', request, response) File "/home/dartpub/google_appengine/google/appengine/api/apiproxy_stub_map.py", line 94, in MakeSyncCall return stubmap.MakeSyncCall(service, call, request, response) File "/home/dartpub/google_appengine/google/appengine/api/apiproxy_stub_map.py", line 328, in MakeSyncCall rpc.CheckSuccess() File "/home/dartpub/google_appengine/google/appengine/api/apiproxy_rpc.py", line 156, in _WaitImpl self.request, self.response) File "/home/dartpub/google_appengine/google/appengine/ext/remote_api/remote_api_stub.py", line 200, in MakeSyncCall self._MakeRealSyncCall(service, call, request, response) File "/home/dartpub/google_appengine/google/appengine/ext/remote_api/remote_api_stub.py", line 226, in _MakeRealSyncCall encoded_response = self._server.Send(self._path, encoded_request) File "/home/dartpub/google_appengine/google/appengine/tools/appengine_rpc.py", line 409, in Send f = self.opener.open(req) File "/usr/lib/python2.7/urllib2.py", line 410, in open response = meth(req, response) File "/usr/lib/python2.7/urllib2.py", line 523, in http_response 'http', request, response, code, msg, hdrs) File "/usr/lib/python2.7/urllib2.py", line 448, in error return self._call_chain(_args) File "/usr/lib/python2.7/urllib2.py", line 382, in _call_chain result = func(_args) File "/usr/lib/python2.7/urllib2.py", line 531, in http_error_default raise HTTPError(req.get_full_url(), code, msg, hdrs, fp) HTTPError: HTTP Error 301: Moved Permanently INFO 2014-07-01 18:45:23,843 module.py:639] default: "GET /_ah/warmup HTTP/1.1" 500 - Traceback (most recent call last): File "/home/dartpub/google_appengine/lib/cherrypy/cherrypy/wsgiserver/wsgiserver2.py", line 1302, in communicate req.respond() File "/home/dartpub/google_appengine/lib/cherrypy/cherrypy/wsgiserver/wsgiserver2.py", line 831, in respond self.server.gateway(self).respond() File "/home/dartpub/google_appengine/lib/cherrypy/cherrypy/wsgiserver/wsgiserver2.py", line 2115, in respond response = self.req.server.wsgi_app(self.env, self.start_response) File "/home/dartpub/google_appengine/google/appengine/tools/devappserver2/wsgi_server.py", line 266, in call return app(environ, start_response) File "/home/dartpub/google_appengine/google/appengine/tools/devappserver2/request_rewriter.py", line 311, in _rewriter_middleware response_body = iter(application(environ, wrapped_start_response)) File "/home/dartpub/google_appengine/google/appengine/tools/devappserver2/python/request_handler.py", line 149, in call self._flush_logs(response.get('logs', [])) File "/home/dartpub/google_appengine/google/appengine/tools/devappserver2/python/request_handler.py", line 264, in _flush_logs apiproxy_stub_map.MakeSyncCall('logservice', 'Flush', request, response) File "/home/dartpub/google_appengine/google/appengine/api/apiproxy_stub_map.py", line 94, in MakeSyncCall return stubmap.MakeSyncCall(service, call, request, response) File "/home/dartpub/google_appengine/google/appengine/api/apiproxy_stub_map.py", line 328, in MakeSyncCall rpc.CheckSuccess() File "/home/dartpub/google_appengine/google/appengine/api/apiproxy_rpc.py", line 156, in _WaitImpl self.request, self.response) File "/home/dartpub/google_appengine/google/appengine/ext/remote_api/remote_api_stub.py", line 200, in MakeSyncCall self._MakeRealSyncCall(service, call, request, response) File "/home/dartpub/google_appengine/google/appengine/ext/remote_api/remote_api_stub.py", line 226, in _MakeRealSyncCall encoded_response = self._server.Send(self._path, encoded_request) File "/home/dartpub/google_appengine/google/appengine/tools/appengine_rpc.py", line 409, in Send f = self.opener.open(req) File "/usr/lib/python2.7/urllib2.py", line 410, in open response = meth(req, response) File "/usr/lib/python2.7/urllib2.py", line 523, in http_response 'http', request, response, code, msg, hdrs) File "/usr/lib/python2.7/urllib2.py", line 448, in error return self._call_chain(_args) File "/usr/lib/python2.7/urllib2.py", line 382, in _call_chain result = func(_args) File "/usr/lib/python2.7/urllib2.py", line 531, in http_error_default raise HTTPError(req.get_full_url(), code, msg, hdrs, fp) HTTPError: HTTP Error 301: Moved Permanently


API server and module are still running, but the admin server seems to just crash and there is nothing listening on 8080. What version of the product are you using? On what operating system? Ubuntu server 14.04 x64 Google app engine 1.9.6 - 2014-06-03 Python 2.7.6 Please provide any additional information below. It works perfectly fine when the machine has direct access to the internet without using a proxy. Why does the server connect to the internet anyway?

Original issue: http://code.google.com/p/dart/issues/detail?id=19759

DartBot commented 9 years ago

From hulibu...@googlemail.com on July 01, 2014 12:04:08

btw:

env variables

$http_proxy $https_proxy $HTTP_PROXY $HTTPS_PROXY

are set correctly but are ignored bei the publang server

DartBot commented 9 years ago

From @floitschG on July 01, 2014 12:22:19

Status: Triaged
Labels: Area-Pub

DartBot commented 9 years ago

From @nex3 on July 01, 2014 13:34:35

This sounds like an issue with appengine's infrastructure, not pub.dartlang.org in particular. I don't think there's anything we'll be able to do about it.

Status: WontFix
Labels: -Area-Pub Area-PubSite

DartBot commented 9 years ago

From @anders-sandholm on July 02, 2014 07:54:48

This issue is not regarding the pub.dartlang.org instance but about running your own Pub instance behind a firewall.

Status: Triaged
Labels: C7

DartBot commented 9 years ago

From @anders-sandholm on July 09, 2014 13:02:25

firewall -> proxy (doh)