From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id C2584E0077E; Tue, 17 Feb 2015 09:59:53 -0800 (PST) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on yocto-www.yoctoproject.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_HI, WEIRD_PORT autolearn=ham version=3.3.1 X-Spam-HAM-Report: * -5.0 RCVD_IN_DNSWL_HI RBL: Sender listed at http://www.dnswl.org/, high * trust * [134.134.136.20 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 mga02.intel.com (mga02.intel.com [134.134.136.20]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id 7AB9DE00757 for ; Tue, 17 Feb 2015 09:59:50 -0800 (PST) Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga101.jf.intel.com with ESMTP; 17 Feb 2015 09:59:49 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.09,595,1418112000"; d="scan'208";a="686928339" Received: from irsmsx104.ger.corp.intel.com ([163.33.3.159]) by orsmga002.jf.intel.com with ESMTP; 17 Feb 2015 09:59:49 -0800 Received: from irsmsx110.ger.corp.intel.com ([169.254.15.236]) by IRSMSX104.ger.corp.intel.com ([169.254.5.145]) with mapi id 14.03.0195.001; Tue, 17 Feb 2015 17:59:46 +0000 From: "Barros Pena, Belen" To: "Damian, Alexandru" , "toaster@yoctoproject.org" Thread-Topic: [Toaster] [review-request] adamian/201502016_download_bugs_72207206 Thread-Index: AQHQShZwrJu8iCMJ9EWXeLqPReR5OJz1ItuA Date: Tue, 17 Feb 2015 17:59:46 +0000 Message-ID: References: In-Reply-To: Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: user-agent: Microsoft-MacOutlook/14.4.7.141117 x-originating-ip: [10.237.224.31] MIME-Version: 1.0 Subject: Re: [review-request] adamian/201502016_download_bugs_72207206 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: Tue, 17 Feb 2015 17:59:53 -0000 Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-ID: <8784F9E80885B14B96768ABD0561018B@intel.com> Content-Transfer-Encoding: quoted-printable 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:=20 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 =3D 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 =3D _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 =3D Target_Image_File.objects.get(target__build =3D b, pk =3D 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 =3D 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 =3D 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=3Dcurrent_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 =3D self._prepare_data(data) File "/usr/local/lib/python2.7/dist-packages/django/db/models/sql/where.py" in _prepare_data 79. value =3D 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=20 "/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=20 "/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" 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 > > >--=20 >Alex Damian >Yocto Project > >SSG / OTC=20 > > >