Open zlrs opened 5 years ago
Is your machine behind a proxy ? E.g. see https://stackoverflow.com/questions/15761715/gae-dev-appserver-throws-http-504-gateway-timeout is http_proxy or HTTP_PROXY set in your environment ?
Is your machine behind a proxy ? E.g. see https://stackoverflow.com/questions/15761715/gae-dev-appserver-throws-http-504-gateway-timeout is http_proxy or HTTP_PROXY set in your environment ?
Yes, my machine is behind a proxy. Besides, http_proxy and HTTP_proxy are set in my env variable.
Yes you need to unset those before starting run_server, this is exactly what is pointed out as the reason in c#2 of https://stackoverflow.com/questions/15761715/gae-dev-appserver-throws-http-504-gateway-timeout
Yes you need to unset those before starting run_server, this is exactly what is pointed out as the reason in c#2 of https://stackoverflow.com/questions/15761715/gae-dev-appserver-throws-http-504-gateway-timeout
I'd like to reopen this issue because unset http_proxy
didn't work for me. As python butler.py run_server --bootstrap
goes, at the begining, the script executues pip install
. If http_proxy
is unset before the script runs, pip install
won't work and the scipt sticks.
However, as @inferno-chromium said, in order to solve the 500 error, I have to unset http_proxy
.
I tried to find the other ways to make pip to use proxy without setting a env variable. But I only found the command line way(not a configuation file).
I have been thinking on it for a long time but couldn't get a clue. Is there any way to solve this?
We won't have time to debug this anytime soon, so we recommend you debug this and propose a patch.
I think I have this partially working behind a proxy, using the NO_PROXY=localhost
environment variable.
The services appear to start:
Running: bazel run //local:create_gopath (cwd='src')
| Loading:
| Loading: 0 packages loaded
| Analyzing: target //local:create_gopath (0 packages loaded, 0 targets configured)
| INFO: Analyzed target //local:create_gopath (0 packages loaded, 0 targets configured).
| INFO: Found 1 target...
| [0 / 1] [Prepa] BazelWorkspaceStatusAction stable-status.txt
| Target //local:create_gopath up-to-date:
| bazel-bin/local/create_gopath
| INFO: Elapsed time: 0.301s, Critical Path: 0.00s
| INFO: 0 processes.
| INFO: Build completed successfully, 1 total action
| INFO: Running command line: bazel-bin/local/create_gopath local/gopath
| INFO: Build completed successfully, 1 total action
| /home/localuser/.cache/bazel/_bazel_localuser/de65168dfbbea5a8f0776c717b698172/execroot/__main__/bazel-out/k8-fastbuild/bin/local/gopath
Running: python polymer_bundler.py (cwd='local')
| App Engine templates are up to date.
Created symlink: source: /opt/clusterfuzz/local/storage/local_gcs, target /opt/clusterfuzz/src/appengine/local_gcs.
Running: /usr/lib/google-cloud-sdk/bin/dev_appserver.py -A test-clusterfuzz --skip_sdk_update_check=1 --storage_path=local/storage --port=9000 --admin_port=9002 --datastore_emulator_port=9004 --require_indexes=true --log_level=info --dev_appserver_log_level=info --support_datastore_emulator=true --env_var LOCAL_DEVELOPMENT=True --env_var PUBSUB_EMULATOR_HOST=loc
alhost:9006 --env_var LOCAL_GCS_BUCKETS_PATH=local_gcs --env_var LOCAL_GCS_SERVER_HOST=http://localhost:9008 --specified_service_ports=cron-service:9009 src/appengine src/appengine/cron-service.yaml
| INFO 2019-07-06 17:58:43,353 devappserver2.py:224] Using Cloud Datastore Emulator.
| We are gradually rolling out the emulator as the default datastore implementation of dev_appserver.
| If broken, you can temporarily disable it by --support_datastore_emulator=False
| Read the documentation: https://cloud.google.com/appengine/docs/standard/python/tools/migrate-cloud-datastore-emulator
| Help us validate that the feature is ready by taking this survey: https://goo.gl/forms/UArIcs8K9CUSCm733
| Report issues at: https://issuetracker.google.com/issues/new?component=187272
|
| INFO 2019-07-06 17:58:43,387 devappserver2.py:278] Skipping SDK update check.
| INFO 2019-07-06 17:58:43,452 datastore_emulator.py:155] Starting Cloud Datastore emulator at: http://localhost:9004
| INFO 2019-07-06 17:58:44,600 datastore_emulator.py:161] Cloud Datastore emulator responded after 1.147306 seconds
| INFO 2019-07-06 17:58:44,601 api_server.py:275] Starting API server at: http://localhost:37807
| INFO 2019-07-06 17:58:44,606 api_server.py:265] Starting gRPC API server at: http://localhost:34775
| INFO 2019-07-06 17:58:44,714 dispatcher.py:256] Starting module "default" running at: http://localhost:9000
| INFO 2019-07-06 17:58:44,820 dispatcher.py:256] Starting module "cron-service" running at: http://localhost:9009
| INFO 2019-07-06 17:58:44,821 admin_server.py:150] Starting admin server at: http://localhost:9002
| INFO 2019-07-06 17:59:33,397 instance.py:294] Instance PID: 4012
| /opt/clusterfuzz/src/appengine/third_party/urllib3/contrib/appengine.py:115: AppEnginePlatformWarning: urllib3 is using URLFetch on Google App Engine sandbox instead of sockets. To use sockets directly instead of URLFetch see https://urllib3.readthedocs.io/en/latest/reference/urllib3.contrib.html.
| AppEnginePlatformWarning)
| INFO 2019-07-06 17:59:34,146 driver.py:124] Generating grammar tables from /usr/lib/python2.7/lib2to3/Grammar.txt
| INFO 2019-07-06 17:59:34,173 driver.py:124] Generating grammar tables from /usr/lib/python2.7/lib2to3/PatternGrammar.txt
But then I get intermittent HTTP 503 Errors
| INFO 2019-07-06 17:59:34,146 driver.py:124] Generating grammar tables from /usr/lib/python2.7/lib2to3/Grammar.txt
| INFO 2019-07-06 17:59:34,173 driver.py:124] Generating grammar tables from /usr/lib/python2.7/lib2to3/PatternGrammar.txt
| HTTPError()
| HTTPError()
| Traceback (most recent call last):
| INFO 2019-07-06 17:59:34,787 module.py:861] cron-service: "GET /_ah/start HTTP/1.1" 500 -
| HTTPError: HTTP Error 503: Service Unavailable
| HTTPError: HTTP Error 503: Service Unavailable
| WARNING 2019-07-06 17:59:34,847 tasklets.py:468] suspended generator run_to_queue(query.py:969) raised HTTPError(HTTP Error 503: Service Unavailable)
| WARNING 2019-07-06 17:59:34,847 tasklets.py:468] suspended generator helper(context.py:890) raised HTTPError(HTTP Error 503: Service Unavailable)
| WARNING 2019-07-06 17:59:34,847 tasklets.py:468] suspended generator has_next_async(query.py:1793) raised HTTPError(HTTP Error 503: Service Unavailable)
| WARNING 2019-07-06 17:59:34,847 tasklets.py:468] suspended generator _fetch_page_async(query.py:1380) raised HTTPError(HTTP Error 503: Service Unavailable)
| ERROR 2019-07-06 17:59:34,850 logs.py:329] Error occurred while grouping test cases.
| LogError: Error occurred while grouping test cases.
Any idea why this request would fail to connect and seem to ignore the proxy settings?
I have installed prerequisites according to https://google.github.io/clusterfuzz/getting-started/prerequisites/. And it seems I have successfully run the script
local/install_deps.bash
and I saw the prompt of success:However, strange error occured when I run
$ python butler.py run_server --bootstrap
just after the script finished and viturlenv was loaded. And when I requestedlocalhost:9000
, I got a http status code 500.Here is part of output of
python butler.py run_server --bootstrap
(also part of the output of./local/install_deps.bash
). Can anyone tell me why this happened and what should I do next?ENV: Ubuntu 18.04 with VMware Pro based on a Windows 10 machine. Google-cloud-sdk version 226.0.0