<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>8329</bug_id>
          
          <creation_ts>2015-09-18 15:14:32 +0000</creation_ts>
          <short_desc>Fetcher error: You must specify the destination port correctly.</short_desc>
          <delta_ts>2015-10-27 11:47:54 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>7</classification_id>
          <classification>Build System, Metadata &amp; Runtime</classification>
          <product>BitBake</product>
          <component>bitbake</component>
          <version>unspecified</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>VERIFIED</bug_status>
          <resolution>NOTABUG</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>2.0</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Michael Wood">michael.g.wood</reporter>
          <assigned_to name="Juro Bystricky">juro.bystricky</assigned_to>
          <cc>bluelightning</cc>
    
    <cc>bogdanx.a.voiculescu</cc>
    
    <cc>poky.bs.watcher</cc>
    
    <cc>poky.watcher</cc>
    
    <cc>ross.burton</cc>
          
          <qa_contact name="Bogdan Alexandru Voiculescu">bogdanx.a.voiculescu</qa_contact>
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>No (bug/feature does not impact docs)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>54281</commentid>
    <comment_count>0</comment_count>
    <who name="Michael Wood">michael.g.wood</who>
    <bug_when>2015-09-18 15:14:32 +0000</bug_when>
    <thetext>In master I currently can&apos;t complete a build of core-image-base when using proxies, I get the following:

ERROR: Fetcher failure: Fetch command failed with exit code 128, output:
ERROR: You must specify the destination port correctly.
usage: connect [-dnhst45] [-p local-port][-R resolve] [-w timeout] 
          [-H proxy-server[:port]] [-S [user@]socks-server[:port]] 
          [-T proxy-server[:port]]
          [-c telnet-proxy-command]
          host port
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

ERROR: Function failed: Fetcher failure for URL: &apos;git://git.yoctoproject.org/prelink-cross.git;branch=cross_prelink&apos;. Unable to fetch URL from any source.
ERROR: Logfile of failure stored in: /home/michael/poky/build/tmp/work/x86_64-linux/prelink-native/1.0+gitAUTOINC+cdee5a4dd2-r0/temp/log.do_fetch.12940
ERROR: Task 152 (virtual:native:/home/michael/poky/meta/recipes-devtools/prelink/prelink_git.bb, do_fetch) failed with exit code &apos;1&apos;

0: linux-yocto-4.1.6+gitAUTOINC+429f9e2ff0_59b8c4f5e8-r0 do_fetch (pid 30850)

I have an http_proxy, socks_proxy, SSH_SOCKS_SERVER, GIT_PROXY_COMMAND=/usr/bin/socks_connect all set in my environment.

I tried this under current fido and this error does not occur. My poky git master HEAD is at 5b4e380b9b4335f4607d78d97345bbbda4c66e0e

os-release:
NAME=&quot;Ubuntu&quot;
VERSION=&quot;14.04.2 LTS, Trusty Tahr&quot;


Package: connect-proxy
Status: install ok installed
Priority: optional
Section: net
Installed-Size: 88
Maintainer: Ubuntu Developers &lt;ubuntu-devel-discuss@lists.ubuntu.com&gt;
Architecture: amd64
Version: 1.101-1</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>54621</commentid>
    <comment_count>1</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2015-09-24 14:41:04 +0000</bug_when>
    <thetext>Setting an invalid revision will force the it to fetch from the git repo and allow a good test of this avoding mirror tarballs which is why I think fido might work.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>54622</commentid>
    <comment_count>2</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2015-09-24 14:42:32 +0000</bug_when>
    <thetext>FWIW some fixes for oe-git-proxy landed in oe-core master yesterday if you&apos;re using that.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>54651</commentid>
    <comment_count>3</comment_count>
    <who name="Juro Bystricky">juro.bystricky</who>
    <bug_when>2015-09-24 21:17:48 +0000</bug_when>
    <thetext>You are using socks_connect, not oe-git-proxy. 

Can you try to reproduce the problem with oe-git-proxy?


place &lt;..&gt;/poky/scripts/oe-git-proxy somewhere in your PATH.

Set environment (your actual proxy may be different)

GIT_PROXY_COMMAND=oe-git-proxy
ALL_PROXY=socks://proxy-socks.jf.intel.com:1080/ 

And then try bitbake core-image-base.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>54763</commentid>
    <comment_count>4</comment_count>
    <who name="Juro Bystricky">juro.bystricky</who>
    <bug_when>2015-09-29 01:33:12 +0000</bug_when>
    <thetext>I also tried the following (Ubuntu) :

1. Install package connect-proxy

2. Created a file &quot;git_connect_sockets&quot; in /usr/local/bin:

#!/bin/bash
connect-proxy -S http://proxy-us.intel.com:1080 $@  

3. Set environment variable:
GIT_PROXY_COMMAND=git_connect_sockets


4. git clone git://git.yoctoproject.org/prelink-cross.git;branch=cross_prelink 

No problems.


So I think the problem is in /usr/bin/socks_connect. Can you provide more details?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>54820</commentid>
    <comment_count>5</comment_count>
    <who name="Paul Eggleton">bluelightning</who>
    <bug_when>2015-09-30 11:23:19 +0000</bug_when>
    <thetext>So I fixed this - the problem was the socks_connect script was trying to use a variable that was being filtered out of the environment by bitbake.

I did try to use the oe-git-proxy script (also setting ALL_PROXY) but unfortunately did not manage to get it to work - our proxy always refused the connection. I did have it working fine on another machine but I don&apos;t have access to that at the moment to compare to.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>54843</commentid>
    <comment_count>6</comment_count>
    <who name="Juro Bystricky">juro.bystricky</who>
    <bug_when>2015-09-30 16:14:32 +0000</bug_when>
    <thetext>(In reply to comment #5)
&gt; So I fixed this - the problem was the socks_connect script was trying to use
&gt; a variable that was being filtered out of the environment by bitbake.
&gt; 
&gt; I did try to use the oe-git-proxy script (also setting ALL_PROXY) but
&gt; unfortunately did not manage to get it to work - our proxy always refused
&gt; the connection. I did have it working fine on another machine but I don&apos;t
&gt; have access to that at the moment to compare to.

Great, problem solved. I am going to set the status to RESOLVED/NOTABUG</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>55813</commentid>
    <comment_count>7</comment_count>
    <who name="Bogdan Alexandru Voiculescu">bogdanx.a.voiculescu</who>
    <bug_when>2015-10-27 11:47:54 +0000</bug_when>
    <thetext>I confirm this is not a bug; still there are some issues with the oe-git-proxy setup. I cannot make it work. I will investigate this separately and fill a bug if is the case.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>