<?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>1721</bug_id>
          
          <creation_ts>2011-11-02 23:59:51 +0000</creation_ts>
          <short_desc>[sstate] do_populate_sysroot_setscene race condition with useradd recipes</short_desc>
          <delta_ts>2012-01-27 18:35:04 +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>Meta-yocto</product>
          <component>meta-yocto</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>2012-01-03: 0% Implemented</status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>1.2 M3</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Jiajun Xu">jiajun.xu</reporter>
          <assigned_to name="Scott Garman">scott.a.garman</assigned_to>
          <cc>bluelightning</cc>
    
    <cc>edwin.zhai</cc>
    
    <cc>josh</cc>
    
    <cc>ke.yu</cc>
    
    <cc>msm-oss</cc>
    
    <cc>poky.bs.watcher</cc>
    
    <cc>poky.watcher</cc>
    
    <cc>richard.purdie</cc>
    
    <cc>sgw</cc>
    
    <cc>yi.zhao</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>---</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>17063</commentid>
    <comment_count>0</comment_count>
    <who name="Jiajun Xu">jiajun.xu</who>
    <bug_when>2011-11-02 23:59:51 +0000</bug_when>
    <thetext>MACHINE: 
qemux86/atom-pc/qemux86-64/mpc8315e-rdb/qemuppc/routerstationpro/qemumips/beagleboard/qemuarm
poky/branch:master 9b76e6a2cfc5a4d779f3b06e3acc5ff7b8275470

On latest autobuilder, I find that some recipes report failed for do_populate_sysroot_setscene. These recipes include avahi,dbus,shadow-sysroot,avahi-ui.

You could find detailed logs on autobuilder. For example, you could find qemux86 logs on http://autobuilder.pokylinux.org:8010/builders/nightly-x86/builds/204/steps/shell_12/logs/stdio.

log as below:
#####
ERROR: Task 1293 (/srv/home/pokybuild/yocto-autobuilder/yocto-slave/nightly-x86/build/meta/recipes-connectivity/avahi/avahi_0.6.30.bb, do_populate_sysroot_setscene) failed with exit code &apos;1&apos;
...
...
...
ERROR: Task 1429 (/srv/home/pokybuild/yocto-autobuilder/yocto-slave/nightly-x86/build/meta/recipes-core/dbus/dbus_1.4.12.bb, do_populate_sysroot_setscene) failed with exit code &apos;1&apos;
NOTE: Running setscene task 2127 of 2830 (/srv/home/pokybuild/yocto-autobuilder/yocto-slave/nightly-x86/build/meta/recipes-sato/pimlico/tasks_0.19.bb:do_populate_lic_setscene)
NOTE: package dbus-1.4.12-r7: task do_populate_lic_setscene: Succeeded
#####</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>17076</commentid>
    <comment_count>1</comment_count>
    <who name="Saul Wold">sgw</who>
    <bug_when>2011-11-03 15:39:09 +0000</bug_when>
    <thetext>My guess is this is related to useradd</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>17239</commentid>
    <comment_count>2</comment_count>
    <who name="Paul Eggleton">bluelightning</who>
    <bug_when>2011-11-17 01:51:32 +0000</bug_when>
    <thetext>Yes, it seems that way to me also.

dbus fails with:
-----------------
Running groupadd commands...
grep: /media/large/tmp2/sysroots/qemux86/etc/group: No such file or directory
pseudo: pseudo: can&apos;t run groupadd: Permission denied
-----------------

shadow-sysroot:
-----------------
DEBUG: Staging files from /media/large/tmp2/work/i586-poky-linux/shadow-sysroot-4.1.4.3-r0/sysroot-destdir/ to /media/large/tmp2/sysroots/qemux86/
install: cannot stat `/media/large/tmp2/work/i586-poky-linux/shadow-sysroot-4.1.4.3-r0/image/etc/login.defs&apos;: No such file or directory
-----------------</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>17252</commentid>
    <comment_count>3</comment_count>
    <who name="Scott Garman">scott.a.garman</who>
    <bug_when>2011-11-17 16:08:46 +0000</bug_when>
    <thetext>Paul: what git rev did you see this with most recently? I was under the impression that this commit should have fixed the issue:

http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=d0151bcd7bc8124fc9c448a01eb0e093c4f23250</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>17260</commentid>
    <comment_count>4</comment_count>
    <who name="Paul Eggleton">bluelightning</who>
    <bug_when>2011-11-18 07:29:44 +0000</bug_when>
    <thetext>Scott - that fix only affects packaging, this is at sysroot_setscene time. I&apos;m not sure what revision I was at when I did this but it was quite recently.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>17338</commentid>
    <comment_count>5</comment_count>
    <who name="Paul Eggleton">bluelightning</who>
    <bug_when>2011-11-22 12:37:38 +0000</bug_when>
    <thetext>I&apos;ve confirmed this is still happening with current master as at revision 3ab018c6254b883a6b6a61f79405dc3f8e40ad77.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>17339</commentid>
    <comment_count>6</comment_count>
    <who name="Scott Garman">scott.a.garman</who>
    <bug_when>2011-11-22 13:25:46 +0000</bug_when>
    <thetext>Thanks for the follow-ups, I&apos;m trying to reproduce the bug now.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>17364</commentid>
    <comment_count>7</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2011-11-24 10:59:57 +0000</bug_when>
    <thetext>To reproduce, you need a decent sstate cache and an empty TMPDIR. If you then build something which includes dbus/avahi, you&apos;ll see the setcenes for their do_populate_sysroot functions fail. Its due to a race, they&apos;re happening before base-passwd is installed into the sysroot.

Unfortunately there aren&apos;t dependencies between setscene tasks so we&apos;re going to have to find a more creative way to get this working without races. Perhaps we could touch the group/passwd files if missing and later call update-passwd against them in base-passwd&apos;s setscene function?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>18170</commentid>
    <comment_count>8</comment_count>
    <who name="Matthew McClintock">msm-oss</who>
    <bug_when>2012-01-16 14:21:09 +0000</bug_when>
    <thetext>Also, are these really ERROR&apos;s? I think it recovers and just reruns the tasks in the RunQueue? Can we change this to something like &apos;SSTATE FAILURE:&apos; instead of &apos;ERROR:&apos;? 

-M</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>18392</commentid>
    <comment_count>9</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2012-01-27 01:44:26 +0000</bug_when>
    <thetext>Resolved with the patches ending with http://git.yoctoproject.org/cgit.cgi/poky/commit/?id=75fcfde0617cf528a9506fbdc6f7f97e56298bbe</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>18408</commentid>
    <comment_count>10</comment_count>
    <who name="Matthew McClintock">msm-oss</who>
    <bug_when>2012-01-27 18:35:04 +0000</bug_when>
    <thetext>(In reply to comment #9)
&gt; Resolved with the patches ending with
&gt; http://git.yoctoproject.org/cgit.cgi/poky/commit/?id=75fcfde0617cf528a9506fbdc6f7f97e56298bbe

These appear to have applied cleanly to Josh&apos;s edison branch. The one below had some small conflicts from the bb.data -&gt; d rename.

http://git.yoctoproject.org/cgit.cgi/poky/commit/?id=9a58e312ef596739923f4bc44ff8ecadaa88ddd9

Completed some build tests and things appear to be working.

-M</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>