From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id AF4A7E00AA8; Tue, 8 Dec 2015 07:26:15 -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: * -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 * -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low * trust * [74.125.82.48 listed in list.dnswl.org] Received: from mail-wm0-f48.google.com (mail-wm0-f48.google.com [74.125.82.48]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id 5893AE00AAB for ; Tue, 8 Dec 2015 07:26:12 -0800 (PST) Received: by wmec201 with SMTP id c201so34202069wme.1 for ; Tue, 08 Dec 2015 07:26:10 -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=7z8mXBRaK62VJ5MI2cbmMgmcp+K8sGxWAJYU3Vaaevs=; b=xd4VYSFUKaQMLHR8D4Jcg8FXPdAom6Y0BHUr0woL13VTGaKHWQjL9KcRTIOo4hJhvM V1w5GhkjFfgwFpukqOh1PqhcrC5pvEL2iURBjXnHcF+i/qHJmefTjmRgg64Op0VadYup cYYIelZvM0mynmV1TbqnUhrT4mcKNY2tuEIs6G09Ei5vwc4I8V1S13y8ko1rAh1Px0zR 0ET0/bdK7LJs2BskrYakYx23x9RP3EqS+ngeOqJNYDs0aZ4CfZ9w8BEijKqGTdd1YrXX cZXSSjzCcW0NdQh5yRfRJeRlRwgZP5zVhfYBZbNFN/4y5KX84gtXD5LEIG1YLiYnBe/q iCiw== 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=7z8mXBRaK62VJ5MI2cbmMgmcp+K8sGxWAJYU3Vaaevs=; b=XZ+AQvxsnedvSowHqTorIWaE0Z1vqXGNrGf9k9FXecozHbT2ULBdoBUuOC2nRjUDQ4 qQ4aQSiJoIm8LfEKHXkbw7LTi0Jpy+7esgSAfi5ukMC9T+P8IpS2B4jD1vOQRU4y76WY wYE4ZpldhDgzg+tpKLcYOudrG41YEH2BQ3AoTvE6iqQvBB92KxeNTvvyGvVTrenytme5 4mmGNujtSgScuEXl/kTtSY3+xHRGQ83f6CNpuuXtLOI1B2V/YbzcKJCaQ733G6pt/vcP 6tilIqQM8UtEnUcq5vYG0vmrvlpXiZxvLwkX8NO342F3Xi8Nh5lODsbtmM+rrBCCS9ro DZag== X-Gm-Message-State: ALoCoQlbAXoP3FHUHCcgI5m0eHF2GwGadTsypaiA08zOiajDyqCW/GoNma07s5NZ1paaRi8Z05BDCzNYq2hsZZjAJ36fk1vPcg== X-Received: by 10.28.88.5 with SMTP id m5mr29724690wmb.54.1449588370633; Tue, 08 Dec 2015 07:26:10 -0800 (PST) Received: from [192.168.0.22] ([90.217.53.67]) by smtp.googlemail.com with ESMTPSA id hp9sm3427653wjb.43.2015.12.08.07.26.09 for (version=TLSv1/SSLv3 cipher=OTHER); Tue, 08 Dec 2015 07:26:09 -0800 (PST) To: toaster@yoctoproject.org References: <802B8E31E3519842A6CEE1B497E861B119E4EA96@IRSMSX108.ger.corp.intel.com> From: Michael Wood Message-ID: <5666F68F.6040203@intel.com> Date: Tue, 8 Dec 2015 15:26:07 +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: [yocto] Toaster Problem 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, 08 Dec 2015 15:26:15 -0000 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 8bit Hi, If you're using master the instructions on the Wiki might be more useful as they're the WIP instructions. https://wiki.yoctoproject.org/wiki/Setting_up_a_production_instance_of_Toaster I've responded in-line to your points 1-8 On 08/12/15 14:12, Martin Townsend wrote: > Hi, > > I'm using Ubuntu 14.04 LTS, I've cloned poky as myself and added > myself to the www-data group and used > sudo setfacl -d -m group:www-data:rwx /var/www > before doing all this so permissions should be ok. /var/www has group > ownership of www-data > > I've checkout out master. > > Ah yes, the toaster mailing list would have been better :) > > Cheers, > Martin. > > > On Tue, Dec 8, 2015 at 1:46 PM, Mihail, StanciuX > > wrote: > > Hi Martin, > > First off, may I suggest the toaster mailing list in the future if > you have questions (toaster@yoctoproject.org > ) > > As for your problem: > > Something is off about the way your toaster was started. > > Here’s how the first line above your traceback looks on my machine: > lbc_shellcmmd: (/home/dave/poky) git remote –v > > That location “/home/dave/poky” is where I issued the toaster > start command (bitbake/bin/toaster). > > I’ve tried to reproduce this on my machine but haven’t been able > to do it. > > Could you please let us know how you started toaster and from what > location? Also, was it as root or a different user? > > Off the top of my head , one thing that might cause this would be > if you cloned poky as root then somehow started toaster as a > different user. > > Also, which yocto project (poky) release are you using? Was it > master or maybe Jethro? > > Oh, and what flavor linux is this on? > > Regards, > > Mihail > > *From:*yocto-bounces@yoctoproject.org > > [mailto:yocto-bounces@yoctoproject.org > ] *On Behalf Of *Martin > Townsend > *Sent:* Tuesday, December 08, 2015 12:40 PM > *To:* yocto@yoctoproject.org > *Subject:* [yocto] Toaster Problem > > Hi, > > I'm trying out a production instance of toaster, I'm following the > instructions from here > > http://www.yoctoproject.org/docs/latest/toaster-manual/toaster-manual.html#toaster-setting-up-a-production-instance-of-toaster > > I managed to get toaster up and running but had to adjust a few > things which you might want to correct in the documentation: > > 1) virtualenv package doesn't exist in Ubuntu 14.04 had to use > python-virtualenv > > 2) You need python headers later so add python-dev to list of > packages to install > > 3) After cloning poky there should be a cd poky before checking > out a branch. > > 4) SECRET_KEY, it would be nice to know what this is used for, > what characters is can contain, ie can it contain spaces. > More info on that can be found at https://docs.djangoproject.com/en/1.8/howto/deployment/checklist/#secret-key > 5) In the mysql part is states we are creating a database called > toaster but in the settings.py we specify toaster_main one of them > needs correcting. > > 6) Before calling ./bitbake/lib/toaster/manage.py syncdb --migrate > maybe it should link to 3.5 and state that you should create a > Django super user first. > > 7)There's a typo in the Apache toaster.conf > s/toastern_wsgi/toaster_wsgi/ > I think all those other points are correct/corrected on the wiki at the moment. > 8) Build runner service is wrong, there needs to be the poky > directory involved somewhere, either cd /var/www/toaster/poky or > we call ./poky/bitbake/toaster/manage.py > > Even with all this I can't get it to build, creating a project > based on fido 1.8 and trying to build core-image-lsb I get > > 2015-12-08 10:27:57,705 DEBUG localhostbecontroller, our git repos are {(u'git://git.yoctoproject.org/meta-yocto > ', u'fido'): [(u'meta-yocto', > u'meta-yocto'), > (u'meta-yocto-bsp', > u'meta-yocto-bsp')], > (u'git://git.yoctoproject.org/poky ', u'fido'): [('bitbake', u'bitbake'), > (u'openembedded-core', > u'meta')]} > 2015-12-08 10:27:57,705 DEBUG lbc_shellcmmd: () git remote -v > Traceback (most recent call last): > File "/var/www/toaster/poky/bitbake/lib/toaster/bldcontrol/management/commands/runbuilds.py", line 60, in schedule > bec.triggerBuild(br.brbitbake_set.all(), br.brlayer_set.all(), br.brvariable_set.all(), br.brtarget_set.all()) > File "/var/www/toaster/poky/bitbake/lib/toaster/bldcontrol/localhostbecontroller.py", line 282, in triggerBuild > self.setLayers(bitbake, layers, targets) > File "/var/www/toaster/poky/bitbake/lib/toaster/bldcontrol/localhostbecontroller.py", line 150, in setLayers > for remotes in self._shellcmd("git remote -v", self.be.sourcedir).split("\n"): > File "/var/www/toaster/poky/bitbake/lib/toaster/bldcontrol/localhostbecontroller.py", line 59, in _shellcmd > p = subprocess.Popen(command, cwd = cwd, shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE) > File "/usr/lib/python2.7/subprocess.py", line 710, in __init__ > errread, errwrite) > File "/usr/lib/python2.7/subprocess.py", line 1327, in _execute_child > raise child_exception > OSError: [Errno 2] No such file or directory: '' > > in the console. > > Any idea whats going wrong? > Hmm seems like the self.be.sourcedir might not set. Are you able to run ./poky/bitbake/lib/toaster/manage.py checksettings and then try again? Thanks, Michael > Cheers, > > Martin. > > > >