From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id 94176E009ED; Fri, 15 May 2015 07:10:40 -0700 (PDT) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on yocto-www.yoctoproject.org X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW, WEIRD_PORT autolearn=ham version=3.3.1 X-Spam-HAM-Report: * -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low * trust * [209.85.212.176 listed in list.dnswl.org] * 0.0 WEIRD_PORT URI: Uses non-standard port number for HTTP * -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] Received: from mail-wi0-f176.google.com (mail-wi0-f176.google.com [209.85.212.176]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id 8D9E3E009ED for ; Fri, 15 May 2015 07:10:33 -0700 (PDT) Received: by wicnf17 with SMTP id nf17so138679199wic.1 for ; Fri, 15 May 2015 07:10:32 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:message-id:date:from:user-agent:mime-version:to :cc:subject:references:in-reply-to:content-type :content-transfer-encoding; bh=G7oS/dp6MD0wX2a9dzJFZLezr2AcUBn4Bw9U71ctxIU=; b=OD/DgO2/hvvTHQ3DK6+czFhqypPCnqd0bCa2nAZ9+bAFMOcEvylHCxneQEPRACdmbq jtTXRwz21dd7xmhtCjPIJYkguHJtmJSFUi6h61CUlZHBin/Us614oOLA3Bw/yY3kR+k+ YaPcMEhjj+DJJfEoYfDKbjfmfLDENkUDT1jSPCKyXFDx3/KntnKg4ke3Yws5duaF1zta Nm31rFONaFBHRN4+X5D+VRWN3USYtfH+zsCPd2hfA0k+O2c3YEe6/TXaoau46iCmKIbV HH+wydnwCHguubwz9VSrtsiLZsoIrOXIhKznoddt9vii1Usgq95lcFZ4u4oU2HPvfjlV ki9w== X-Gm-Message-State: ALoCoQkq8Le0UpVNeRfaWONqPhp5qCsxnVvk1tkcf+NH0HmyoWHNVjfszFNeVqEbzOc4oOYBnCWk X-Received: by 10.180.81.3 with SMTP id v3mr24802002wix.36.1431699032485; Fri, 15 May 2015 07:10:32 -0700 (PDT) Received: from [192.168.2.24] ([83.217.123.106]) by mx.google.com with ESMTPSA id bg4sm2687275wjc.10.2015.05.15.07.10.31 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 15 May 2015 07:10:31 -0700 (PDT) Message-ID: <5555FE57.2020203@intel.com> Date: Fri, 15 May 2015 15:10:31 +0100 From: Michael Wood User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.6.0 MIME-Version: 1.0 To: "Damian, Alexandru" References: <5555C582.8000509@intel.com> In-Reply-To: Cc: "toaster@yoctoproject.org" Subject: Re: Project page broken in master? X-BeenThere: toaster@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Web based interface for BitBake List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 15 May 2015 14:10:40 -0000 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit On 15/05/15 14:51, Damian, Alexandru wrote: > The easiest way to do this is to stop and start toaster - the script > will take care to update the database. Yeah unfortunately it was a reverse migration which needed to happen as Belen had tested a branch which then migrated the database forward, then she wanted to testing another branch which doesn't have that migration so wasn't able to reverse it, by which point the database was fairly messy so we started a fresh database. > > On Fri, May 15, 2015 at 11:08 AM, Michael Wood > > wrote: > > It means you've got un-applied migrations run ./manage.py migrate > to apply them. > > Generally If you see "Exception Value: no such column" that very > often means that your database has an out of date database schema. > i.e. it's been altered by a commit but your local "toaster.sqlite" > database hasn't been updated to match. > > Michael > > > > On 15/05/15 11:00, Barros Pena, Belen wrote: > > The project page seems to throw an error in > master:fab7da4f8030a4067db0522f77eaa6d3b501c68f > > Is it just me? Do your want me to open a bug? Error trace below: > > Environment: > > > Request Method: GET > Request URL: http://127.0.0.1:8000/toastergui/project/23/ > > Django Version: 1.6 > Python Version: 2.7.6 > Installed Applications: > ('django.contrib.auth', > 'django.contrib.contenttypes', > 'django.contrib.messages', > 'django.contrib.sessions', > 'django.contrib.admin', > 'django.contrib.staticfiles', > 'django.contrib.humanize', > 'orm', > 'toastermain', > 'south', > 'bldcontrol', > 'toastergui') > Installed Middleware: > ('django.middleware.common.CommonMiddleware', > 'django.contrib.sessions.middleware.SessionMiddleware', > 'django.middleware.csrf.CsrfViewMiddleware', > 'django.contrib.auth.middleware.AuthenticationMiddleware', > 'django.contrib.messages.middleware.MessageMiddleware') > > > Traceback: > File > "/usr/local/lib/python2.7/dist-packages/django/core/handlers/base.py" > in get_response > 114. response = wrapped_callback(request, > *callback_args, **callback_kwargs) > File > "/home/yocto/master/bitbake/lib/toaster/toastergui/views.py" in > project > 2175. prj.projectlayer_set.all().order_by("id")), > File > "/home/yocto/master/bitbake/lib/toaster/toastergui/views.py" in > > 2169. "name" : > x.layercommit.layer.name , > File > "/usr/local/lib/python2.7/dist-packages/django/db/models/fields/related.py" > in __get__ > 308. rel_obj = qs.get() > File > "/usr/local/lib/python2.7/dist-packages/django/db/models/query.py" > in > get > 301. num = len(clone) > File > "/usr/local/lib/python2.7/dist-packages/django/db/models/query.py" > in __len__ > 77. self._fetch_all() > File > "/usr/local/lib/python2.7/dist-packages/django/db/models/query.py" > in _fetch_all > 854. self._result_cache = list(self.iterator()) > File > "/usr/local/lib/python2.7/dist-packages/django/db/models/query.py" > in iterator > 220. for row in compiler.results_iter(): > File > "/usr/local/lib/python2.7/dist-packages/django/db/models/sql/compiler.py" > in results_iter > 710. for rows in self.execute_sql(MULTI): > File > "/usr/local/lib/python2.7/dist-packages/django/db/models/sql/compiler.py" > in execute_sql > 781. cursor.execute(sql, params) > File > "/usr/local/lib/python2.7/dist-packages/django/db/backends/util.py" > in execute > 69. return super(CursorDebugWrapper, > self).execute(sql, > params) > File > "/usr/local/lib/python2.7/dist-packages/django/db/backends/util.py" > in execute > 53. return self.cursor.execute(sql, params) > File > "/usr/local/lib/python2.7/dist-packages/django/db/utils.py" in > __exit__ > 99. six.reraise(dj_exc_type, dj_exc_value, > traceback) > File > "/usr/local/lib/python2.7/dist-packages/django/db/backends/util.py" > in execute > 53. return self.cursor.execute(sql, params) > File > "/usr/local/lib/python2.7/dist-packages/django/db/backends/sqlite3/base.py" > in execute > 450. return Database.Cursor.execute(self, query, > params) > > Exception Type: OperationalError at /toastergui/project/23/ > Exception Value: no such column: orm_layer.local_path > > > > > > > -- > _______________________________________________ > toaster mailing list > toaster@yoctoproject.org > https://lists.yoctoproject.org/listinfo/toaster > > > > > -- > Alex Damian > Yocto Project > SSG / OTC > > --------------------------------------------------------------------- > Intel Corporation (UK) Limited > Registered No. 1134945 (England) > Registered Office: Pipers Way, Swindon SN3 1RJ > VAT No: 860 2173 47 > > This e-mail and any attachments may contain confidential material for > the sole use of the intended recipient(s). Any review or distribution > by others is strictly prohibited. If you are not the intended > recipient, please contact the sender and delete all copies. >