<?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>7363</bug_id>
          
          <creation_ts>2015-02-25 14:21:57 +0000</creation_ts>
          <short_desc>Building in managed mode locks the database</short_desc>
          <delta_ts>2015-11-27 12:51:29 +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>Toaster</product>
          <component>toaster</component>
          <version>1.8</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></status_whiteboard>
          <keywords></keywords>
          <priority>Undecided</priority>
          <bug_severity>critical</bug_severity>
          <target_milestone>1.8 M3</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Mihail Stanciu">stanciux.mihail</reporter>
          <assigned_to name="Alexandru Damian">alexandru.damian</assigned_to>
          <cc>alexandru.costinx.roman</cc>
    
    <cc>alexandru.damian</cc>
    
    <cc>belen.barros.pena</cc>
    
    <cc>cristiana.voicu</cc>
    
    <cc>jessica.zhang</cc>
          
          <qa_contact name="Alexandru Roman">alexandru.costinx.roman</qa_contact>
          <cf_os>---</cf_os>
          <cf_regression_type>Regression (Used to work)</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>49038</commentid>
    <comment_count>0</comment_count>
    <who name="Mihail Stanciu">stanciux.mihail</who>
    <bug_when>2015-02-25 14:21:57 +0000</bug_when>
    <thetext>Tested on: 40d80f9e019118ac7bcd268f21e350bc154a4a63

Steps to reproduce:
1. start toaster in managed mode
2. create a new project using local yocto clone
3. build core-image-minimal

Expected result:
Image build starts and is registered normally in toaster

Observed result:
The database becomes locked and the build cannot be completed.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>49039</commentid>
    <comment_count>1</comment_count>
    <who name="Mihail Stanciu">stanciux.mihail</who>
    <bug_when>2015-02-25 14:22:08 +0000</bug_when>
    <thetext>Traceback (most recent call last):
  File &quot;bitbake/bin/../lib/toaster/manage.py&quot;, line 10, in &lt;module&gt;
    execute_from_command_line(sys.argv)
  File &quot;/usr/local/lib/python2.7/dist-packages/django/core/management/__init__.py&quot;, line 399, in execute_from_command_line
    utility.execute()
  File &quot;/usr/local/lib/python2.7/dist-packages/django/core/management/__init__.py&quot;, line 392, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File &quot;/usr/local/lib/python2.7/dist-packages/django/core/management/base.py&quot;, line 242, in run_from_argv
    self.execute(*args, **options.__dict__)
  File &quot;/usr/local/lib/python2.7/dist-packages/django/core/management/base.py&quot;, line 285, in execute
    output = self.handle(*args, **options)
  File &quot;/usr/local/lib/python2.7/dist-packages/django/core/management/base.py&quot;, line 415, in handle
    return self.handle_noargs(**options)
  File &quot;/home/dave/poky/bitbake/lib/toaster/bldcontrol/management/commands/runbuilds.py&quot;, line 132, in handle_noargs
    self.cleanup()
  File &quot;/home/dave/poky/bitbake/lib/toaster/bldcontrol/management/commands/runbuilds.py&quot;, line 128, in cleanup
    BuildEnvironment.objects.filter(lock=BuildEnvironment.LOCK_LOCK).filter(updated__lt = timezone.now() - timedelta(seconds = 30)).update(lock = BuildEnvironment.LOCK_FREE)
  File &quot;/usr/local/lib/python2.7/dist-packages/django/db/models/query.py&quot;, line 490, in update
    rows = query.get_compiler(self.db).execute_sql(None)
  File &quot;/usr/local/lib/python2.7/dist-packages/django/db/models/sql/compiler.py&quot;, line 975, in execute_sql
    cursor = super(SQLUpdateCompiler, self).execute_sql(result_type)
  File &quot;/usr/local/lib/python2.7/dist-packages/django/db/models/sql/compiler.py&quot;, line 781, in execute_sql
    cursor.execute(sql, params)
  File &quot;/usr/local/lib/python2.7/dist-packages/django/db/backends/util.py&quot;, line 69, in execute
    return super(CursorDebugWrapper, self).execute(sql, params)
  File &quot;/usr/local/lib/python2.7/dist-packages/django/db/backends/util.py&quot;, line 53, in execute
    return self.cursor.execute(sql, params)
  File &quot;/usr/local/lib/python2.7/dist-packages/django/db/utils.py&quot;, line 99, in __exit__
    six.reraise(dj_exc_type, dj_exc_value, traceback)
  File &quot;/usr/local/lib/python2.7/dist-packages/django/db/backends/util.py&quot;, line 53, in execute
    return self.cursor.execute(sql, params)
  File &quot;/usr/local/lib/python2.7/dist-packages/django/db/backends/sqlite3/base.py&quot;, line 450, in execute
    return Database.Cursor.execute(self, query, params)
django.db.utils.OperationalError: database is locked</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>49101</commentid>
    <comment_count>2</comment_count>
    <who name="Alexandru Damian">alexandru.damian</who>
    <bug_when>2015-02-26 21:46:52 +0000</bug_when>
    <thetext>Pushed for review on bitbake-devel mail list.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>49118</commentid>
    <comment_count>3</comment_count>
    <who name="Alexandru Damian">alexandru.damian</who>
    <bug_when>2015-02-27 11:56:49 +0000</bug_when>
    <thetext>Merged into master.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>56855</commentid>
    <comment_count>4</comment_count>
    <who name="Alexandru Roman">alexandru.costinx.roman</who>
    <bug_when>2015-11-27 12:51:29 +0000</bug_when>
    <thetext>Verified.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>