<?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>14791</bug_id>
          
          <creation_ts>2022-04-20 00:47:58 +0000</creation_ts>
          <short_desc>AB-INT: Step &quot;Initialize buildhistory&quot;: Switched to a new branch &apos;poky/master/qemuarm&apos; failure</short_desc>
          <delta_ts>2022-08-18 15:08:43 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>10</classification_id>
          <classification>QA/Testing</classification>
          <product>Build Testing</product>
          <component>general</component>
          <version>0.0.0</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>AB-INT</status_whiteboard>
          <keywords></keywords>
          <priority>Medium+</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>4.1 M2</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Leonardo Sandoval">leonardo.sandoval</reporter>
          <assigned_to name="Michael Halstead">mhalstead</assigned_to>
          <cc>alexandre.belloni</cc>
    
    <cc>chee.yang.lee</cc>
    
    <cc>leonardo.sandoval</cc>
    
    <cc>luca.ceresoli</cc>
    
    <cc>mhalstead</cc>
    
    <cc>randy.macleod</cc>
    
    <cc>richard.purdie</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>93128</commentid>
    <comment_count>0</comment_count>
    <who name="Leonardo Sandoval">leonardo.sandoval</who>
    <bug_when>2022-04-20 00:47:58 +0000</bug_when>
    <thetext>====================================================================================================
Target task qemuarm has 3 steps (1650330766.2: 0.0)
====================================================================================================
hint: Using &apos;master&apos; as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint: 
hint: 	git config --global init.defaultBranch &lt;name&gt;
hint: 
hint: Names commonly chosen instead of &apos;master&apos; are &apos;main&apos;, &apos;trunk&apos; and
hint: &apos;development&apos;. The just-created branch can be renamed via this command:
hint: 
hint: 	git branch -m &lt;name&gt;
Initialized empty Git repository in /home/pokybuild/yocto-worker/qemuarm/build/build/buildhistory/.git/
Switched to a new branch &apos;poky/master/qemuarm&apos;
remote: fatal: unable to read 802b378917f28f780d8ace161e421eb2c58f6074        
error: git upload-pack: git-pack-objects died with error.
fatal: git upload-pack: aborting due to possible repository corruption on the remote side.
remote: aborting due to possible repository corruption on the remote side.
fatal: protocol error: bad pack header
fatal: ambiguous argument &apos;refs/remotes/poky/master/qemuarm&apos;: unknown revision or path not in the working tree.
Use &apos;--&apos; to separate paths from revisions, like this:
&apos;git &lt;command&gt; [&lt;revision&gt;...] -- [&lt;file&gt;...]&apos;
fatal: Failed to resolve &apos;HEAD&apos; as a valid ref.
Using BB_LOGCONFIG=/home/pokybuild/yocto-worker/qemuarm/build/build/../bitbake/contrib/autobuilderlog.json
ERROR: Command [&apos;/home/pokybuild/yocto-worker/qemuarm/yocto-autobuilder-helper/scripts/buildhistory-init&apos;, &apos;/home/pokybuild/yocto-worker/qemuarm/build/build/buildhistory&apos;, &apos;ssh://git@push.yoctoproject.org/poky-buildhistory&apos;, &apos;poky/master/qemuarm&apos;, &apos;poky/master/qemuarm&apos;] failed
program finished with exit code 0
elapsedTime=7.559600</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>93129</commentid>
    <comment_count>1</comment_count>
    <who name="Leonardo Sandoval">leonardo.sandoval</who>
    <bug_when>2022-04-20 00:48:33 +0000</bug_when>
    <thetext>centos7-ty-4</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>93137</commentid>
    <comment_count>2</comment_count>
    <who name="Leonardo Sandoval">leonardo.sandoval</who>
    <bug_when>2022-04-20 22:33:36 +0000</bug_when>
    <thetext>│ centos7-ty-4     │ Non-SSD │</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>93161</commentid>
    <comment_count>3</comment_count>
    <who name="Alexandre Belloni">alexandre.belloni</who>
    <bug_when>2022-04-21 17:24:51 +0000</bug_when>
    <thetext>https://autobuilder.yoctoproject.org/typhoon/#builders/53/builds/5084/steps/11/logs/stdio

qemuarm stream8-ty-1

https://autobuilder.yoctoproject.org/typhoon/#builders/59/builds/5053/steps/10/logs/stdio

qemux86 fedora34-ty-1</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>93162</commentid>
    <comment_count>4</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2022-04-21 19:35:44 +0000</bug_when>
    <thetext>RP: Last time it happened we could restore the poky-buildhistory repo from
git.yoctoproject.org back to push.yoctoproject.org iirc. It does raise the
question of why this happens. I know that repo is rather large :/.

MH: Last time this happened I ran &quot;git clone --mirror https://git.yoctoproject.org/poky-buildhistory.git&quot; as the gitolite3 user on push.yoctoproject.org, backed up the corrupt repo, and moved that one into place. Then I restored the gitolite hooks. I&apos;ll start on that now.

MH: I spent quite a lot of time trying to figure out how the corruption occured without success last time. I&apos;d appreciate any help figuring out what happened this time. I assume an interrupted push or maybe a push while repacking. This repo is 12G so anyone who wants a copy is in for a download.

RP: 12G! The autobuilder only shallow clones the pieces it needs, appends to it and
pushes the heads back. I suspect this pushes the repacking onto the server which
probably could get interrupted whilst it is doing that.

RP: The data in there is useful but I&apos;m wondering if we can&apos;t archive it, which
would stop it being repacked all the time and make things a little lighter for a
while, it has taken quite a few years to grow to that size!

MH: poky-buildhistory is corrupted and repaired fairly regularly. This is likely because shallow clones are hard on the server and interfere with the nightly repack job. Three times now this has caused corruption that needed manual intervention. We are going to set https://git-scm.com/docs/git-config/2.21.0#Documentation/git-config.txt-corefsyncObjectFiles to 1 for now and see if we learn anything useful about what&apos;s happening. 

MH: If the problem persists we will move the current pok-buildhistory to poky-buildhistory-archive and then create a new poky-buildhistory containing only to branch tips to attempt to mitigate the issue.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>93167</commentid>
    <comment_count>5</comment_count>
    <who name="Michael Halstead">mhalstead</who>
    <bug_when>2022-04-21 22:20:54 +0000</bug_when>
    <thetext>I&apos;ve repaired the repo again and added core.fsyncObjectFiles = 1 to the config to see if that helps at all.

This corruption is probably do to load caused by shallow cloning plus the night repack jobs. If it occurs again and we do not have a better solution we will archive the current repo and create a new one only containing branch tips.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>93307</commentid>
    <comment_count>6</comment_count>
    <who name="Chee Yang">chee.yang.lee</who>
    <bug_when>2022-05-25 01:47:04 +0000</bug_when>
    <thetext>https://autobuilder.yoctoproject.org/typhoon/#/builders/74/builds/5211/steps/10/logs/stdio

tumbleweed-ty-3
qemumips64</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>93313</commentid>
    <comment_count>7</comment_count>
    <who name="Chee Yang">chee.yang.lee</who>
    <bug_when>2022-05-25 14:12:50 +0000</bug_when>
    <thetext>https://autobuilder.yoctoproject.org/typhoon/#/builders/74/builds/5218/steps/10/logs/stdio
ubuntu2004-ty-1 SSD qemumips64</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>93853</commentid>
    <comment_count>8</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2022-08-18 15:08:43 +0000</bug_when>
    <thetext>We made changes to the git server that seems to have resolved this problem (git updated).  Re-open if seen again.
YP Triage</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>