All,

I am trying to use Toaster to configure and build project, however, I am 
working behind a corporate firewall that requires a proxy. When I try to build 
core-image-minimal with Toaster, it fails immediately with:


2017-01-17 11:22:44,942 ERROR runbuilds: Error launching build command: git 
fetch --all && git reset --hard "origin/krogoth"
fatal: Unable to look up git.yoctoproject.org (port 9418) (Temporary failure in 
name resolution)
error: Could not fetch origin

Traceback (most recent call last):
  File 
"/home/user/poky/bitbake/lib/toaster/bldcontrol/management/commands/runbuilds.py",
 line 67, in schedule
    "%d:%d" % (br.pk, bec.be.pk))
  File 
"/home/user/poky/bitbake/lib/toaster/bldcontrol/localhostbecontroller.py", line 
255, in triggerBuild
    layers = self.setLayers(bitbake, layers, targets)
  File 
"/home/user/poky/bitbake/lib/toaster/bldcontrol/localhostbecontroller.py", line 
161, in setLayers
    self._shellcmd('git fetch --all && git reset --hard "%s"' % ref, 
localdirname)
  File 
"/home/user/poky/bitbake/lib/toaster/bldcontrol/localhostbecontroller.py", line 
70, in _shellcmd
    raise ShellCmdException(err)
ShellCmdException: command: git fetch --all && git reset --hard "origin/krogoth"
fatal: Unable to look up git.yoctoproject.org (port 9418) (Temporary failure in 
name resolution)
error: Could not fetch origin



Two questions:

1. Why is it using git protocol (port 9418)? My origin remote for the project 
is setup using https:


(venv) user@mantis:~/poky/build$ git remote -v
origin https://git.yoctoproject.org/git/poky (fetch)
origin https://git.yoctoproject.org/git/poky (push)


Is it hardcoded? I prefer https because it is much faster in our network setup.


2. That command definitely works when the proxy environment variables are set. 
I added the following snippet to  
bitbake/lib/toaster/bldcontrol/localhostbecontroller.py:


logger.debug("ENV::",os.environ)


The output of that log indicates to me that Toaster is purging all environment 
variables, hence why the git fetch fails.


Should I file a bug report or am I just missing something?


Thanks,

Bryan


=========================
Lab: x3214, Office: x5956
-- 
_______________________________________________
toaster mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/toaster

Reply via email to