<?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>9436</bug_id>
          
          <creation_ts>2016-04-12 03:42:18 +0000</creation_ts>
          <short_desc>lib/bb/fetch2/git.py: print more friendly errors messages when failedlib/bb/fetch2/git.py</short_desc>
          <delta_ts>2016-07-15 06:08:33 +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>2.2</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WORKSFORME</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>enhancement</bug_severity>
          <target_milestone>2.2 M3</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Robert Yang">liezhi.yang</reporter>
          <assigned_to name="Chen Qi">Qi.Chen</assigned_to>
          <cc>poky.bs.watcher</cc>
    
    <cc>poky.watcher</cc>
          
          
          <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>61061</commentid>
    <comment_count>0</comment_count>
    <who name="Robert Yang">liezhi.yang</who>
    <bug_when>2016-04-12 03:42:18 +0000</bug_when>
    <thetext>I got the following errros when do_fetch failed, the repo exists, but no required 
SRCREV, if it can print that &quot;repo exits, but no SRCREV foo&quot; would help a lot when debugging.

WARNING: linux-yocto-tiny-4.1.18+gitAUTOINC+ec633cccde_f5b08e95bc-r0 do_fetch: Failed to fetch URL git://git.yoctoproject.org/yocto-kernel-cache;type=kmeta;name=meta;branch=yocto-4.1;destsuffix=kernel-meta, attempting MIRRORS if available
ERROR: linux-yocto-tiny-4.1.18+gitAUTOINC+ec633cccde_f5b08e95bc-r0 do_fetch: Fetcher failure: Fetch command failed with exit code 128, output:
fatal: remote origin already exists.

ERROR: linux-yocto-tiny-4.1.18+gitAUTOINC+ec633cccde_f5b08e95bc-r0 do_fetch: Function failed: Fetcher failure for URL: &apos;git://git.yoctoproject.org/yocto-kernel-cache;type=kmeta;name=meta;branch=yocto-4.1;destsuffix=kernel-meta&apos;. Unable to fetch URL from any source.
ERROR: Logfile of failure stored in: /buildarea/lyang1/test_tiny/tmp/work/qemux86-poky-linux-musl/linux-yocto-tiny/4.1.18+gitAUTOINC+ec633cccde_f5b08e95bc-r0/temp/log.do_fetch.35233
ERROR: Task 50 (/buildarea/lyang1/poky/meta/recipes-kernel/linux/linux-yocto-tiny_4.1.bb, do_fetch) failed with exit code &apos;1&apos;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>64019</commentid>
    <comment_count>1</comment_count>
    <who name="Chen Qi">Qi.Chen</who>
    <bug_when>2016-07-15 05:21:12 +0000</bug_when>
    <thetext>I did a little test, it seems that the fetcher can output some meaningful information as required in this bug.

Please see the error message below.

ERROR: systemd-1_230+gitAUTOINC+1a74d4fc90-r0 do_fetch: Fetcher failure: Unable to find revision 1a74d4fc90cb322a4784a3515bef7118c8f8c5ba in branch master even from upstream
ERROR: systemd-1_230+gitAUTOINC+1a74d4fc90-r0 do_fetch: Function failed: Fetcher failure for URL: &apos;git://github.com/systemd/systemd.git;protocol=git&apos;. Unable to fetch URL from any source.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>64024</commentid>
    <comment_count>2</comment_count>
    <who name="Chen Qi">Qi.Chen</who>
    <bug_when>2016-07-15 06:08:33 +0000</bug_when>
    <thetext>The information in output is correct, thus closing this bug.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>