From: Michael Wood <michael.g.wood@intel.com>
To: "Damian, Alexandru" <alexandru.damian@intel.com>
Cc: "toaster@yoctoproject.org" <toaster@yoctoproject.org>
Subject: Re: Project page broken in master?
Date: Fri, 15 May 2015 15:10:31 +0100 [thread overview]
Message-ID: <5555FE57.2020203@intel.com> (raw)
In-Reply-To: <CAJ2CSBvcqa4BB+HBhvF08QxaS4NNV6WBpVcXc6LZw0t1zSDL4g@mail.gmail.com>
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
> <michael.g.wood@intel.com <mailto:michael.g.wood@intel.com>> 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
> <lambda>
> 2169. "name" :
> x.layercommit.layer.name <http://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 <mailto: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.
>
prev parent reply other threads:[~2015-05-15 14:10 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-05-15 10:00 Project page broken in master? Barros Pena, Belen
2015-05-15 10:08 ` Michael Wood
2015-05-15 13:51 ` Damian, Alexandru
2015-05-15 14:10 ` Michael Wood [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=5555FE57.2020203@intel.com \
--to=michael.g.wood@intel.com \
--cc=alexandru.damian@intel.com \
--cc=toaster@yoctoproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.