From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id 755D7E007C3; Wed, 16 Dec 2015 06:54:41 -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=-2.6 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_LOW 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.220.46 listed in list.dnswl.org] * -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] * 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily * valid * -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature Received: from mail-pa0-f46.google.com (mail-pa0-f46.google.com [209.85.220.46]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id 3220EE00349 for ; Wed, 16 Dec 2015 06:54:37 -0800 (PST) Received: by mail-pa0-f46.google.com with SMTP id ur14so24706842pab.0 for ; Wed, 16 Dec 2015 06:54:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel-com.20150623.gappssmtp.com; s=20150623; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-type:content-transfer-encoding; bh=TUc9u5AUqF5KSw1nMA8dyiFOqQp437Cc4dGtP0BTOco=; b=QdDClBYmu5B/6KhE8KIKvdJMIvlzTgRJg+aD46e6jllemHT1bG6AsvC2voLjpGkRdM APCOexDEX1y2aN8MQov56d/9LaTcdfF18baz5+LSGruJ2UndH+2Un590tepr0DrPFyBN fWoV0G1Krw4xI2OZaDcmIAXurypfMOkMifWNpHCfh8pXid6NzJaVu1D1uSjVIkelPDZE 7tV9oMMF2pZXE3TaR9NLkYbVZepmL6k21JhwQBO5PFYsszygHo0V4XroDOqGH+ghI6O6 4nE266pRzsQgYVndAq7qgJjhtKv5BQno12Wls+BlMx1Xy93jzhfCLj84QTKOZkL9OPTq I27w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-type :content-transfer-encoding; bh=TUc9u5AUqF5KSw1nMA8dyiFOqQp437Cc4dGtP0BTOco=; b=Qx/7a1hUQoLkW7Er+lmOZXN7k3o9LC/C9opYpC/mSza+qy7sZFfovsJU+THJ/mIPN6 d/k1oRNcSCWDvPxLx/MgCvMaGK60wxguHJ7umfeHEOAGU7Ihui/899Mx7YJNH9wVAG3G s8kqwLi76LyoKqp6wiW8HmsGhe51aR/5iGbVn4MExxN7tq9p1TVDUbq6CMDMIuQ8jwmx GbJstiaLBRGs5hpNiFRhaKcASb05w6rZFjUElqRLsDYsupR2zvMybi02bF6Hdxj6/oUD LnkoamJtlm9KpSlg6wDmdlf3cgzRJsUBetH1+WqvJ8SJNLkSmE2aWlvn1EDSg58y1L96 PfSQ== X-Gm-Message-State: ALoCoQmrsP0I6iAwdnwJVsSLafrLomh1aGceqP335v787c0XvmkDPiexuNgT430FQbt9dGU2J4r3iqCcos4hl22DpfCp1yk41A== X-Received: by 10.66.90.194 with SMTP id by2mr63603613pab.2.1450277677333; Wed, 16 Dec 2015 06:54:37 -0800 (PST) Received: from [192.168.2.24] ([83.217.123.106]) by smtp.googlemail.com with ESMTPSA id r8sm5456615pfi.44.2015.12.16.06.54.36 for (version=TLSv1/SSLv3 cipher=OTHER); Wed, 16 Dec 2015 06:54:36 -0800 (PST) To: toaster@yoctoproject.org References: From: Michael Wood Message-ID: <56717B2A.7090809@intel.com> Date: Wed, 16 Dec 2015 14:54:34 +0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 MIME-Version: 1.0 In-Reply-To: Subject: Re: lsupdates 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: Wed, 16 Dec 2015 14:54:41 -0000 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Bug filed here: https://bugzilla.yoctoproject.org/show_bug.cgi?id=8818 On 16/12/15 14:49, Michael Wood wrote: > Hi, > > It looks like it is getting confused because you seem to have two > layers called "openembedded-core" in the system and it doesn't know > how to handle updating the layer from the information from the layer > index. Not quite sure how we can handle this. I'll open a bug. > > Would using the "Import layer" page work for what you're trying to do > instead of modifying the toasterconf.json? you could then rename it to > "my-openembedded-core" or something so that the system doesn't get > confused between the layers it pulls from the layer index repository > and ones you're adding. > > Michael > > On 15/12/15 12:18, Martin Townsend wrote: >> Hi, >> >> Before I switch to the Jethro branch I just did a pull on master and >> recreated toaster from scratch and I get the following error in >> lsupdates (I've added some debug in case it helps) >> Load Configuration >> /var/www/bia/yocto/poky/meta-yocto/conf/toasterconf.json >> lsudpates >> 2015-12-15 11:42:23,983 WARNING XXXX update: >> http://layers.openembedded.org/layerindex/api/ >> 2015-12-15 11:42:23,983 WARNING YYYY scheme: http >> 2015-12-15 11:42:23,983 WARNING YYYY netloc: layers.openembedded.org >> >> 2015-12-15 11:42:23,983 WARNING YYYY path: /layerindex/api/ >> 2015-12-15 11:42:23,983 WARNING ZZZZ: urllib2.urlopen: >> http://layers.openembedded.org/layerindex/api/ >> 2015-12-15 11:42:24,454 DEBUG Fetching branches >> 2015-12-15 11:42:24,454 WARNING YYYY scheme: http >> 2015-12-15 11:42:24,455 WARNING YYYY netloc: layers.openembedded.org >> >> 2015-12-15 11:42:24,455 WARNING YYYY path: /layerindex/api/branches/ >> 2015-12-15 11:42:24,455 WARNING ZZZZ: urllib2.urlopen: >> http://layers.openembedded.org/layerindex/api/branches/?filter=name:HEAD >> 2015-12-15 11:42:24,859 WARNING YYYY scheme: http >> 2015-12-15 11:42:24,859 WARNING YYYY netloc: layers.openembedded.org >> >> 2015-12-15 11:42:24,859 WARNING YYYY path: /layerindex/api/layerItems/ >> 2015-12-15 11:42:24,859 WARNING ZZZZ: urllib2.urlopen: >> http://layers.openembedded.org/layerindex/api/layerItems/ >> 2015-12-15 11:42:26,350 DEBUG Fetching layer information >> 2015-12-15 11:42:26,351 WARNING YYYY scheme: http >> 2015-12-15 11:42:26,351 WARNING YYYY netloc: layers.openembedded.org >> >> 2015-12-15 11:42:26,351 WARNING YYYY path: >> /layerindex/api/layerBranches/ >> 2015-12-15 11:42:26,351 WARNING ZZZZ: urllib2.urlopen: >> http://layers.openembedded.org/layerindex/api/layerBranches/?filter=branch: >> Traceback (most recent call last): >> File "./bitbake/lib/toaster/manage.py", line 10, in >> execute_from_command_line(sys.argv) >> File >> "/var/www/bia/toaster/venv/local/lib/python2.7/site-packages/django/core/management/__init__.py", >> line 354, in execute_from_command_line >> utility.execute() >> File >> "/var/www/bia/toaster/venv/local/lib/python2.7/site-packages/django/core/management/__init__.py", >> line 346, in execute >> self.fetch_command(subcommand).run_from_argv(self.argv) >> File >> "/var/www/bia/toaster/venv/local/lib/python2.7/site-packages/django/core/management/base.py", >> line 394, in run_from_argv >> self.execute(*args, **cmd_options) >> File >> "/var/www/bia/toaster/venv/local/lib/python2.7/site-packages/django/core/management/base.py", >> line 445, in execute >> output = self.handle(*args, **options) >> File >> "/var/www/bia/toaster/venv/local/lib/python2.7/site-packages/django/core/management/base.py", >> line 661, in handle >> return self.handle_noargs(**options) >> File >> "/var/www/bia/toaster/poky/bitbake/lib/toaster/orm/management/commands/lsupdates.py", >> line 12, in handle_noargs >> ls.update() >> File "/var/www/bia/toaster/poky/bitbake/lib/toaster/orm/models.py", >> line 978, in update >> + "?filter=branch:%s" % "OR".join(map(lambda x: str(x.up_id), [i >> for i in Branch.objects.filter(layer_source = self) if i.up_id is not >> None] )) >> File "/var/www/bia/toaster/poky/bitbake/lib/toaster/orm/models.py", >> line 906, in _get_json_response >> raise Exception("Failed to read %s: %s" % (path, e.reason)) >> Exception: Failed to read /layerindex/api/layerBranches/: INTERNAL >> SERVER ERROR >> Check Settings >> >> -- Validation: The layers checkout directory must be set. >> >> -- Validation: The build directory must be set. >> >> Build configuration saved >> >> Importing file: /var/www/bia/yocto/poky/meta-yocto/conf/toasterconf.json >> >> Layer configuration imported. Updating information from the layer >> sources, please wait. >> You can re-update any time later by running >> bitbake/lib/toaster/manage.py lsupdates >> 2015-12-15 11:42:27,574 WARNING XXXX update: >> http://layers.openembedded.org/layerindex/api/ >> 2015-12-15 11:42:27,574 WARNING YYYY scheme: http >> 2015-12-15 11:42:27,574 WARNING YYYY netloc: layers.openembedded.org >> >> 2015-12-15 11:42:27,575 WARNING YYYY path: /layerindex/api/ >> 2015-12-15 11:42:27,575 WARNING ZZZZ: urllib2.urlopen: >> http://layers.openembedded.org/layerindex/api/ >> 2015-12-15 11:42:27,970 DEBUG Fetching branches >> 2015-12-15 11:42:27,971 WARNING YYYY scheme: http >> 2015-12-15 11:42:27,971 WARNING YYYY netloc: layers.openembedded.org >> >> 2015-12-15 11:42:27,971 WARNING YYYY path: /layerindex/api/branches/ >> 2015-12-15 11:42:27,971 WARNING ZZZZ: urllib2.urlopen: >> http://layers.openembedded.org/layerindex/api/branches/?filter=name:HEAD >> 2015-12-15 11:42:28,368 WARNING YYYY scheme: http >> 2015-12-15 11:42:28,368 WARNING YYYY netloc: layers.openembedded.org >> >> 2015-12-15 11:42:28,368 WARNING YYYY path: /layerindex/api/layerItems/ >> 2015-12-15 11:42:28,368 WARNING ZZZZ: urllib2.urlopen: >> http://layers.openembedded.org/layerindex/api/layerItems/ >> Failure while trying to import the toaster config file >> /var/www/bia/yocto/poky/meta-yocto/conf/toasterconf.json: get() >> returned more than one Layer -- it returned 2! >> Traceback (most recent call last): >> File >> "/var/www/bia/toaster/poky/bitbake/lib/toaster/bldcontrol/management/commands/checksettings.py", >> line 114, in _verify_be >> call_command("lsupdates") >> File >> "/var/www/bia/toaster/venv/local/lib/python2.7/site-packages/django/core/management/__init__.py", >> line 120, in call_command >> return command.execute(*args, **defaults) >> File >> "/var/www/bia/toaster/venv/local/lib/python2.7/site-packages/django/core/management/base.py", >> line 445, in execute >> output = self.handle(*args, **options) >> File >> "/var/www/bia/toaster/venv/local/lib/python2.7/site-packages/django/core/management/base.py", >> line 661, in handle >> return self.handle_noargs(**options) >> File >> "/var/www/bia/toaster/poky/bitbake/lib/toaster/orm/management/commands/lsupdates.py", >> line 12, in handle_noargs >> ls.update() >> File "/var/www/bia/toaster/poky/bitbake/lib/toaster/orm/models.py", >> line 948, in update >> oe_core_l = Layer.objects.get(name=oe_core_layer) >> File >> "/var/www/bia/toaster/venv/local/lib/python2.7/site-packages/django/db/models/manager.py", >> line 127, in manager_method >> return getattr(self.get_queryset(), name)(*args, **kwargs) >> File >> "/var/www/bia/toaster/venv/local/lib/python2.7/site-packages/django/db/models/query.py", >> line 338, in get >> (self.model._meta.object_name, num) >> MultipleObjectsReturned: get() returned more than one Layer -- it >> returned 2! >> >> These are the commands I am running in case they have changed: >> #./bitbake/lib/toaster/manage.py createsuperuser >> ./bitbake/lib/toaster/manage.py migrate >> ./bitbake/lib/toaster/manage.py loadconf ${TOASTER_CONF} >> ./bitbake/lib/toaster/manage.py lsupdates >> ./bitbake/lib/toaster/manage.py checksettings >> ./bitbake/lib/toaster/manage.py collectstatic >> >> I haven't touched the json fragment for OpenEmbedded >> { >> "name": "OpenEmbedded", >> "sourcetype": "layerindex", >> "apiurl": "http://layers.openembedded.org/layerindex/api/", >> "branches": ["master", "jethro" ,"fido"] >> } >> >> Cheers, >> Martin. >> >> >