All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Damian, Alexandru" <alexandru.damian@intel.com>
To: "Barros Pena, Belen" <belen.barros.pena@intel.com>
Cc: "toaster@yoctoproject.org" <toaster@yoctoproject.org>
Subject: Re: [review-request] adamian/201502016_download_bugs_72207206
Date: Wed, 18 Feb 2015 19:01:27 +0000	[thread overview]
Message-ID: <CAJ2CSBvDjkNk5LS2kAdTBMAzEWJHJoO82EQHz=4wKp-iPXH3fQ@mail.gmail.com> (raw)
In-Reply-To: <D1093108.5474C%belen.barros.pena@intel.com>

[-- Attachment #1: Type: text/plain, Size: 4594 bytes --]

Fixed and taken for submission,

Cheers,
Alex

On Tue, Feb 17, 2015 at 5:59 PM, Barros Pena, Belen <
belen.barros.pena@intel.com> wrote:

> This is working pretty well. The only issue is that the 'download build
> log' icon is missing from the project builds page.
>
> There is a bigger problem, though. Downloading the cooker log works, but
> all other artifacts (rootfs file, task logs and other artifacts) are
> throwing an error. This is the one you get when you try to download a
> rootfs file
>
> Environment:
>
>
> Request Method: GET
> Request URL:
> http://127.0.0.1:8000/toastergui/build/1/artifact/imagefile/id/1
>
> 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',
> 'bldviewer',
> 'toastergui',
> 'bldcontrol')
> 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/poky-contrib/bitbake/lib/toaster/toastergui/views.py"
> in build_artifact
>   3055.             return _get_be_artifact(request, build_id,
> artifact_type, artifact_type)
> File "/home/yocto/poky-contrib/bitbake/lib/toaster/toastergui/views.py"
> in _get_be_artifact
>   3063.         file_name = _file_name_for_artifact(b, artifact_type,
> artifact_id)
> File "/home/yocto/poky-contrib/bitbake/lib/toaster/toastergui/views.py"
> in _file_name_for_artifact
>   2984.             file_name =
> Target_Image_File.objects.get(target__build = b, pk =
> artifact_id).file_name
> File "/usr/local/lib/python2.7/dist-packages/django/db/models/manager.py"
> in get
>   151.         return self.get_queryset().get(*args, **kwargs)
> File "/usr/local/lib/python2.7/dist-packages/django/db/models/query.py" in
> get
>   298.         clone = self.filter(*args, **kwargs)
> File "/usr/local/lib/python2.7/dist-packages/django/db/models/query.py"
> in filter
>   590.         return self._filter_or_exclude(False, *args, **kwargs)
> File "/usr/local/lib/python2.7/dist-packages/django/db/models/query.py"
> in _filter_or_exclude
>   608.             clone.query.add_q(Q(*args, **kwargs))
> File "/usr/local/lib/python2.7/dist-packages/django/db/models/sql/query.py"
> in add_q
>   1198.         clause = self._add_q(where_part, used_aliases)
> File "/usr/local/lib/python2.7/dist-packages/django/db/models/sql/query.py"
> in _add_q
>   1232.                     current_negated=current_negated)
> File "/usr/local/lib/python2.7/dist-packages/django/db/models/sql/query.py"
> in build_filter
>   1125.         clause.add(constraint, AND)
> File "/usr/local/lib/python2.7/dist-packages/django/utils/tree.py" in add
>   104.         data = self._prepare_data(data)
> File "/usr/local/lib/python2.7/dist-packages/django/db/models/sql/where.py"
> in _prepare_data
>   79.             value = obj.prepare(lookup_type, value)
> File "/usr/local/lib/python2.7/dist-packages/django/db/models/sql/where.py"
> in prepare
>   352.             return self.field.get_prep_lookup(lookup_type, value)
> File
> "/usr/local/lib/python2.7/dist-packages/django/db/models/fields/__init__.py
> "
> in get_prep_lookup
>   369.             return self.get_prep_value(value)
> File
> "/usr/local/lib/python2.7/dist-packages/django/db/models/fields/__init__.py
> "
> in get_prep_value
>   613.         return int(value)
>
> Exception Type: ValueError at /toastergui/build/1/artifact/imagefile/id/1
> Exception Value: invalid literal for int() with base 10: 'imagefile'
>
>
>
>
>
> On 16/02/2015 18:28, "Damian, Alexandru" <alexandru.damian@intel.com>
> wrote:
>
> >Hello,
> >
> >I have a patch that brings in proper cooker log saving, and downloading,
> >after a build.
> >
> >Can you please review this, see if it works ok ?
> >
> >
> >Cheers,
> >Alex
> >
> >
> >--
> >Alex Damian
> >Yocto Project
> >
> >SSG / OTC
> >
> >
> >
>
>


-- 
Alex Damian
Yocto Project
SSG / OTC

[-- Attachment #2: Type: text/html, Size: 6044 bytes --]

      reply	other threads:[~2015-02-18 19:01 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-02-16 18:28 [review-request] adamian/201502016_download_bugs_72207206 Damian, Alexandru
2015-02-17 17:59 ` Barros Pena, Belen
2015-02-18 19:01   ` Damian, Alexandru [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='CAJ2CSBvDjkNk5LS2kAdTBMAzEWJHJoO82EQHz=4wKp-iPXH3fQ@mail.gmail.com' \
    --to=alexandru.damian@intel.com \
    --cc=belen.barros.pena@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.