<?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>1794</bug_id>
          
          <creation_ts>2011-11-30 09:28:30 +0000</creation_ts>
          <short_desc>useradd error &quot;/etc/group&quot; was locked</short_desc>
          <delta_ts>2012-11-06 15:16:09 +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>VERIFIED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard>(P2) 2012-03-23: Fix in master</status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>1.2 M4</target_milestone>
          <dependson>2127</dependson>
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Scott Garman">scott.a.garman</reporter>
          <assigned_to name="Scott Garman">scott.a.garman</assigned_to>
          <cc>corneliux.stoicescu</cc>
    
    <cc>jackie.huang</cc>
    
    <cc>poky.bs.watcher</cc>
    
    <cc>poky.watcher</cc>
    
    <cc>richard.purdie</cc>
    
    <cc>sgw</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>17432</commentid>
    <comment_count>0</comment_count>
    <who name="Scott Garman">scott.a.garman</who>
    <bug_when>2011-11-30 09:28:30 +0000</bug_when>
    <thetext>Ulf Samuelsson reported an issue building console-image for qemuarm:

Host = Ubuntu 11.04 i686.
I used very high BB_NUMBER_THREADS = 24

1.    ERROR: Function &apos;useradd_sysroot&apos; failed
        Tried to access &quot;/etc/group&quot; but this was locked.
        Problem disappeared the next time I rebuilt.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>17587</commentid>
    <comment_count>1</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2011-12-13 00:48:20 +0000</bug_when>
    <thetext>Recently seen on the Yocto autobuilder: http://autobuilder.yoctoproject.org:8010/builders/crownbay/builds/29/steps/shell_32/logs/stdio</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>19429</commentid>
    <comment_count>2</comment_count>
    <who name="Scott Garman">scott.a.garman</who>
    <bug_when>2012-03-23 16:48:27 +0000</bug_when>
    <thetext>Fixed in oe-core and poky master as of:

http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=c9537c52f4a7faef9aa2d23b33bc452aa872068d</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>23093</commentid>
    <comment_count>3</comment_count>
    <who name="Jackie Huang">jackie.huang</who>
    <bug_when>2012-07-13 10:17:29 +0000</bug_when>
    <thetext>The fix of 10 time retry seems not solve the race condition problem completely:

+WARNING: groupadd command did not succeed. Retrying...
+groupadd: cannot lock /etc/group; try again later.
+WARNING: groupadd command did not succeed. Retrying...
+groupadd: cannot lock /etc/group; try again later.
+WARNING: groupadd command did not succeed. Retrying...
+groupadd: cannot lock /etc/group; try again later.
+WARNING: groupadd command did not succeed. Retrying...
+ERROR: tried running groupadd command 10 times without success, giving up
+ERROR: Function failed: useradd_sysroot (see /ba1/yow-blade13.1/builds-2012-07-12-004912/e500-kvm-guest_std/bitbake_build/tmp/work/ppce500v2-wrs-linux-gnuspe/dbus-1.4.16-r3.0/temp/do_install/log.do_install.19378 for further information)

I think we need a better sulotion to avoid tow groupadd commands running at the same time.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>23116</commentid>
    <comment_count>4</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2012-07-16 11:47:55 +0000</bug_when>
    <thetext>Please open a new bug and lets look at this problem again, documenting its current lockfile approach and how we can change the behaviour to avoid this.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>23162</commentid>
    <comment_count>5</comment_count>
    <who name="Jackie Huang">jackie.huang</who>
    <bug_when>2012-07-17 09:55:29 +0000</bug_when>
    <thetext>(In reply to comment #4)
&gt; Please open a new bug and lets look at this problem again, documenting its
&gt; current lockfile approach and how we can change the behaviour to avoid this.

new bug #2779 is opened fot this.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>27262</commentid>
    <comment_count>6</comment_count>
    <who name="Stoicescu Cornel">corneliux.stoicescu</who>
    <bug_when>2012-11-06 15:16:09 +0000</bug_when>
    <thetext>Verified following bug 2779 .</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>