<?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>10382</bug_id>
          
          <creation_ts>2016-10-05 19:16:39 +0000</creation_ts>
          <short_desc>master -  nightly-mips-lsb failed</short_desc>
          <delta_ts>2017-04-12 23:43:40 +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>core</component>
          <version>2.3</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 M4</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Armin Kuster">akuster</reporter>
          <assigned_to name="Michael Halstead">mhalstead</assigned_to>
          <cc>joshuagloe</cc>
    
    <cc>juro.bystricky</cc>
    
    <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>randy.macleod</cc>
    
    <cc>richard.purdie</cc>
    
    <cc>sgw</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>Don&apos;t know</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>66958</commentid>
    <comment_count>0</comment_count>
    <who name="Armin Kuster">akuster</who>
    <bug_when>2016-10-05 19:16:39 +0000</bug_when>
    <thetext>I think the error is:

chmod: cannot access &apos;/srv/www/vhosts/autobuilder.yoctoproject.org/pub/sstate//34/sstate:qt4-x11-free:mips64-poky-linux:4.8.7:r0:mips64:3:34565079648564b3be7ab62e8c2792fd_package_write_deb.tgz.PEDDKJ9E&apos;: No such file or directory</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>66993</commentid>
    <comment_count>1</comment_count>
    <who name="Joshua Lock">joshuagloe</who>
    <bug_when>2016-10-06 15:20:57 +0000</bug_when>
    <thetext>It&apos;s unclear whether this is host distro specific but FWIW this failure occurred on the Fedora 24 builder.

I think this could be a case for Randy&apos;s container hammer to see if we can reproduce this outside of the AB.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>67010</commentid>
    <comment_count>2</comment_count>
    <who name="Juro Bystricky">juro.bystricky</who>
    <bug_when>2016-10-06 16:59:45 +0000</bug_when>
    <thetext>AFAIK this is a NFS issue, maybe this can be of some help:
http://serverfault.com/questions/380303/nfs-cache-file-content-not-updated-on-client-when-modified-on-server</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>67498</commentid>
    <comment_count>3</comment_count>
    <who name="Armin Kuster">akuster</who>
    <bug_when>2016-10-24 18:06:47 +0000</bug_when>
    <thetext>the last build I ran passed this step.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>71034</commentid>
    <comment_count>4</comment_count>
    <who name="Joshua Lock">joshuagloe</who>
    <bug_when>2017-03-02 11:13:42 +0000</bug_when>
    <thetext>Saw this again today:

chmod: cannot access &apos;/srv/www/vhosts/autobuilder.yoctoproject.org/pub/sstate//0c/sstate:ltp:core2-32-poky-linux:20170116:r0:core2-32:3:0cbfc25a900f18f344510cc73f2587d8_package.tgz.pG3pEGVK&apos;: No such file or directory
| WARNING: /home/pokybuild/yocto-autobuilder/yocto-worker/nightly-x86-lsb/build/build/tmp/work/core2-32-poky-linux/ltp/20170116-r0/temp/run.sstate_create_package.32435:1 exit 1 from &apos;chmod 0664 $TFILE&apos;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>71036</commentid>
    <comment_count>5</comment_count>
    <who name="Joshua Lock">joshuagloe</who>
    <bug_when>2017-03-02 11:15:52 +0000</bug_when>
    <thetext>*** Bug 8302 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>71186</commentid>
    <comment_count>6</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2017-03-09 22:34:29 +0000</bug_when>
    <thetext>To quote me:

&quot;&quot;&quot;
We suffered one of our odd failures:

https://autobuilder.yoctoproject.org/main/builders/nightly-world-lsb/builds/810/steps/BuildImages/logs/stdio

| DEBUG: Executing shell function sstate_create_package
| chmod: cannot access &apos;/srv/www/vhosts/autobuilder.yoctoproject.org/pub/sstate/multilib/3e/sstate:valgrind:i586-poky-linux:3.12.0:r0:i586:3:3e5b62dfa07f8c42024b234b3d19c461_package.tgz.pHNHxSTj&apos;: No such file or directory
| WARNING: /home/pokybuild/yocto-autobuilder/yocto-worker/nightly-world-lsb/build/build/tmp/work/i586-poky-linux/valgrind/3.12.0-r0/temp/run.sstate_create_package.11293:1 exit 1 from &apos;chmod 0664 $TFILE&apos;
| DEBUG: Python function sstate_task_postfunc finished

so the file disappeared whilst we were trying to use it. We&apos;ve puzzled
over what was causing this. With my recent change to log deletions,
I&apos;ve a smoking gun:

root@nas01:/# grep 3e5b62 /root/sstate-atime.log 
/main/srv/vhosts/sstate.yoctoproject.org/multilib/3e/sstate:valgrind:i586-poky-linux:3.12.0:r0:i586:3:3e5b62dfa07f8c42024b234b3d19c461_package.tgz.pHNHxSTj

root@nas01:/# grep sstate /etc/cron.daily/*
/etc/cron.daily/cleanup:/usr/bin/find /main/srv/vhosts/sstate.yoctoproject.org -ctime +20 -type f -print -delete &gt;&gt; $HOME/sstate-ctime.log
/etc/cron.daily/cleanup:/usr/bin/find /main/srv/vhosts/sstate.yoctoproject.org -atime +10 -type f -print -delete &gt;&gt; $HOME/sstate-atime.log

So we do have some kind of a race in these commands and it *is* the
cleanup script which is deleting files which it shouldn&apos;t. I suspect
we&apos;re going to need to write a proper cleanup script to use instead.
&quot;&quot;&quot;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>71188</commentid>
    <comment_count>7</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2017-03-09 23:20:57 +0000</bug_when>
    <thetext>At the very least we can change the command to look for -name *.tgz and -name *.siginfo and hence miss the tmp files.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>71189</commentid>
    <comment_count>8</comment_count>
    <who name="Michael Halstead">mhalstead</who>
    <bug_when>2017-03-09 23:52:14 +0000</bug_when>
    <thetext>I&apos;ve added the filename restrictions which should fix the problem for now. I&apos;m gathering information about how much we can rely on atime and mtime over nfs now.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>71191</commentid>
    <comment_count>9</comment_count>
    <who name="Michael Halstead">mhalstead</who>
    <bug_when>2017-03-10 02:35:33 +0000</bug_when>
    <thetext>Multiple tests with creating and appending to files on the nfs mount show that access, modify, and change times are generally working as expected on all builders.

At the same time, I see files in sstate that have access times set to the epoch which is odd. Do we clear the atime on purpose somehow?

  File: `/main/srv/vhosts/sstate.yoctoproject.org/00/sstate:xf86dgaproto:i586-poky-linux:2.1:r2:i586:3:00200b482a2cda4850face6bbd3af04c_install.tgz.siginfo&apos;
  Size: 20494     	Blocks: 48         IO Block: 4096   regular file
Device: fc00h/64512d	Inode: 8693222995  Links: 1
Access: (0644/-rw-r--r--)  Uid: ( 1006/pokybuild)   Gid: (  100/   users)
Access: 1970-01-01 00:18:38.000000000 +0000
Modify: 2017-03-09 21:36:20.594788024 +0000
Change: 2017-03-09 21:36:20.594788024 +0000
 Birth: -


  File: `centos7.osl.yoctoproject.org&apos;
  Size: 58        	Blocks: 8          IO Block: 4096   regular file
Device: fc00h/64512d	Inode: 4774403840  Links: 1
Access: (0644/-rw-r--r--)  Uid: ( 1006/pokybuild)   Gid: (  100/   users)
Access: 2017-03-10 02:10:55.098859798 +0000
Modify: 2017-03-10 02:13:37.581570905 +0000
Change: 2017-03-10 02:13:37.581570905 +0000
 Birth: -
  File: `debian8&apos;
  Size: 16        	Blocks: 8          IO Block: 4096   regular file
Device: fc00h/64512d	Inode: 4774403843  Links: 1
Access: (0644/-rw-r--r--)  Uid: ( 1006/pokybuild)   Gid: (  100/   users)
Access: 2017-03-10 02:10:55.102859964 +0000
Modify: 2017-03-10 02:13:37.581570905 +0000
Change: 2017-03-10 02:13:37.581570905 +0000
 Birth: -
  File: `fedora24.osl.yoctoproject.org&apos;
  Size: 60        	Blocks: 8          IO Block: 4096   regular file
Device: fc00h/64512d	Inode: 4774403842  Links: 1
Access: (0644/-rw-r--r--)  Uid: ( 1006/pokybuild)   Gid: (  100/   users)
Access: 2017-03-10 02:10:55.102859964 +0000
Modify: 2017-03-10 02:13:37.581570905 +0000
Change: 2017-03-10 02:13:37.581570905 +0000
 Birth: -
  File: `fedora25.osl.yoctoproject.org&apos;
  Size: 60        	Blocks: 8          IO Block: 4096   regular file
Device: fc00h/64512d	Inode: 4774403845  Links: 1
Access: (0644/-rw-r--r--)  Uid: ( 1006/pokybuild)   Gid: (  100/   users)
Access: 2017-03-10 02:10:55.102859964 +0000
Modify: 2017-03-10 02:13:37.581570905 +0000
Change: 2017-03-10 02:13:37.581570905 +0000
 Birth: -
  File: `opensuse132&apos;
  Size: 24        	Blocks: 8          IO Block: 4096   regular file
Device: fc00h/64512d	Inode: 4774403841  Links: 1
Access: (0644/-rw-r--r--)  Uid: ( 1006/pokybuild)   Gid: (  100/   users)
Access: 2017-03-10 02:10:55.098859798 +0000
Modify: 2017-03-10 02:13:37.581570905 +0000
Change: 2017-03-10 02:13:37.581570905 +0000
 Birth: -
  File: `ubuntu1604&apos;
  Size: 22        	Blocks: 8          IO Block: 4096   regular file
Device: fc00h/64512d	Inode: 4774403844  Links: 1
Access: (0644/-rw-r--r--)  Uid: ( 1006/pokybuild)   Gid: (  100/   users)
Access: 2017-03-10 02:10:55.102859964 +0000
Modify: 2017-03-10 02:13:37.581570905 +0000
Change: 2017-03-10 02:13:37.581570905 +0000
 Birth: -</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>72424</commentid>
    <comment_count>10</comment_count>
    <who name="Michael Halstead">mhalstead</who>
    <bug_when>2017-04-12 23:43:40 +0000</bug_when>
    <thetext>The simple fix from comments 7 &amp; 8 is working. 

Also, no new files have appeared with unset mtime and atime.

I think we can safely go without fully resolving the cause of this issue since the workaround can stay in place indefinitely.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>