Your browser was unable to load all of the resources. They may have been blocked by your firewall, proxy or browser configuration.
Press Ctrl+F5 or Ctrl+Shift+R to have your browser try again.

Can't checkout google repo repository when using proxy #3865

dkossako ·

Hello,

I added step to checkout repository using repo tool with manifest, and it fails with message:

09:56:17,409 INFO - fatal: Cannot get https://gerrit.googlesource.com/git-repo/clone.bundle
09:56:17,409 INFO - fatal: error [Errno 101] Network is unreachable

It looks like proxy error, but we have configured http_proxy and https_proxy params in /etc/environment.
When using 'repo init' manually from console - works fine. So probably QB does not propagate these variables, log:

09:54:10,064 TRACE - Command execution environments:
    PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
    WRAPPER_PID=52229
    WRAPPER_WORKING_DIR=/opt/qb/8/buildagent/bin
    WRAPPER_INIT_DIR=/
    SHELL=/bin/bash
    WRAPPER_OS=linux
    WRAPPER_HOSTNAME=esio-bld-hw-55.i.i.com
    WRAPPER_PATH_SEPARATOR=:
    USER=qb_user
    LANG=en_US.UTF-8
    WRAPPER_BITS=64
    WRAPPER_BIN_DIR=/opt/qb/8/buildagent/bin
    WRAPPER_HOST_NAME=esio-bld-hw-55.i.i.com
    WRAPPER_CONF_DIR=/opt/qb/8/buildagent/conf
    WRAPPER_ARCH=x86
    WRAPPER_LANG=en
    LOGNAME=qb_user
    PWD=/
    HOME=/home/qb_user
    WRAPPER_FILE_SEPARATOR=/

Is it any possibility to propagate HTTP_PROXY and HTTPS_PROXY?

  • replies 1
  • views 1590
  • stars 0
robinshen ADMIN ·

You may specify proxy envs in /path/to/QB/bin/server.sh (or agent.sh on agent) and then restart QB to see if it works.