<?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>10857</bug_id>
          
          <creation_ts>2016-12-24 02:40:07 +0000</creation_ts>
          <short_desc>sstate: .siginfo files are not accessed from local or NFS-mounted SSTATE_MIRROR</short_desc>
          <delta_ts>2017-03-10 18:33:36 +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>OE-Core</product>
          <component>configuration</component>
          <version>unspecified</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>2.3</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Denys Dmytriyenko">denis</reporter>
          <assigned_to name="Ed Bartosh">eduard.bartosh</assigned_to>
          
          
          
          <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>69382</commentid>
    <comment_count>0</comment_count>
    <who name="Denys Dmytriyenko">denis</who>
    <bug_when>2016-12-24 02:40:07 +0000</bug_when>
    <thetext>It appears that .siginfo files are not being accessed from local or NFS-mounted SSTATE_MIRROR (file://), so their timestamp never gets updated. If you periodically clean SSTATE_MIRROR based on access time, they get deleted, even though they are still being used, leading to errors like:

WARNING: quilt-native-0.64-r0 do_populate_sysroot_setscene: Failed to fetch URL file://Ubuntu-16.04/52/sstate:quilt-native:x86_64-linux:0.64:r0:x86_64:3:5227556845cbc224f05726d1633de4e5_populate_sysroot.tgz.siginfo, attempting MIRRORS if available 
ERROR: quilt-native-0.64-r0 do_populate_sysroot_setscene: Fetcher failure: Unable to find file file://Ubuntu-16.04/52/sstate:quilt-native:x86_64-linux:0.64:r0:x86_64:3:5227556845cbc224f05726d1633de4e5_populate_sysroot.tgz.siginfo anywhere. The paths that were searched were: 

In this case, corresponding file://Ubuntu-16.04/52/sstate:quilt-native:x86_64-linux:0.64:r0:x86_64:3:5227556845cbc224f05726d1633de4e5_populate_sysroot.tgz is still there, but not its .siginfo

Everything works fine for HTTP-based SSTATE_MIRROR, because .tgz and their corresponding .siginfo files are being downloaded, updating both files timestamps on the server.

So, regardless of SSTATE_MIRROR access protocol, when .tgz is being used, corresponding .siginfo file should probably be &quot;touch&quot;-ed to update it&apos;s timestamp to prevent this issue.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>70785</commentid>
    <comment_count>1</comment_count>
    <who name="Denys Dmytriyenko">denis</who>
    <bug_when>2017-02-17 00:45:56 +0000</bug_when>
    <thetext>Any updates or comments on this?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>70830</commentid>
    <comment_count>2</comment_count>
    <who name="Ed Bartosh">eduard.bartosh</who>
    <bug_when>2017-02-20 12:06:39 +0000</bug_when>
    <thetext>I&apos;m sorry, I haven&apos;t looked at this yet.
I&apos;m planning to do it after I fix all 2.3 M3 bugs assigned to me with higher priority.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>70923</commentid>
    <comment_count>3</comment_count>
    <who name="Ed Bartosh">eduard.bartosh</who>
    <bug_when>2017-02-23 18:05:17 +0000</bug_when>
    <thetext>Can you provide more info please? How your sstate NFS share is mounted? Did you use noatime or relatime option to mount it?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>71003</commentid>
    <comment_count>4</comment_count>
    <who name="Denys Dmytriyenko">denis</who>
    <bug_when>2017-03-01 03:35:02 +0000</bug_when>
    <thetext>It uses &quot;relatime&quot; by default. Should I try something else?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>71012</commentid>
    <comment_count>5</comment_count>
    <who name="Ed Bartosh">eduard.bartosh</who>
    <bug_when>2017-03-01 10:08:42 +0000</bug_when>
    <thetext>No, you shouldn&apos;t unless you want atime to be updated immediately when file is accessed. relatime is delaying atime updates as far as I know.

I reproduced this bug with strictatime mount option. Hopefully will fix it soon.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>71019</commentid>
    <comment_count>6</comment_count>
    <who name="Ed Bartosh">eduard.bartosh</who>
    <bug_when>2017-03-01 14:37:33 +0000</bug_when>
    <thetext>Please review: http://lists.openembedded.org/pipermail/openembedded-core/2017-March/133500.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>71091</commentid>
    <comment_count>7</comment_count>
    <who name="Ed Bartosh">eduard.bartosh</who>
    <bug_when>2017-03-06 15:48:31 +0000</bug_when>
    <thetext>sent v2: http://lists.openembedded.org/pipermail/openembedded-core/2017-March/133701.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>71195</commentid>
    <comment_count>8</comment_count>
    <who name="Ed Bartosh">eduard.bartosh</who>
    <bug_when>2017-03-10 18:31:36 +0000</bug_when>
    <thetext>The fix has been merged to oe-core and poky master branches.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>71196</commentid>
    <comment_count>9</comment_count>
    <who name="Denys Dmytriyenko">denis</who>
    <bug_when>2017-03-10 18:33:36 +0000</bug_when>
    <thetext>Thanks!</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>