From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id 0CF40E00F35; Tue, 12 Jul 2016 08:46:27 -0700 (PDT) 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 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.65 listed in list.dnswl.org] * -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id C6CBAE00F2C for ; Tue, 12 Jul 2016 08:46:23 -0700 (PDT) Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga103.jf.intel.com with ESMTP; 12 Jul 2016 08:46:23 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.28,352,1464678000"; d="scan'208";a="993759256" Received: from linux.intel.com ([10.54.29.200]) by orsmga001.jf.intel.com with ESMTP; 12 Jul 2016 08:46:24 -0700 Received: from linux.intel.com (vmed.fi.intel.com [10.237.72.68]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by linux.intel.com (Postfix) with ESMTP id DDDF16A4080; Tue, 12 Jul 2016 08:46:14 -0700 (PDT) Date: Tue, 12 Jul 2016 18:36:21 +0300 From: Ed Bartosh To: Brian Avery Message-ID: <20160712153621.GA819@linux.intel.com> References: <577FAAF0.7050308@intel.com> MIME-Version: 1.0 In-Reply-To: Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo User-Agent: Mutt/1.5.21 (2010-09-15) Cc: toaster@yoctoproject.org Subject: Re: [PATCH 09/10] toaster-manual: update runbuilds instructions X-BeenThere: toaster@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list Reply-To: ed.bartosh@linux.intel.com List-Id: Web based interface for BitBake List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 12 Jul 2016 15:46:27 -0000 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Hi Brian, Thank you for testing this! On Mon, Jul 11, 2016 at 05:10:22PM -0700, Brian Avery wrote: > Hi, > > I was trying out your instructions/production setup on an ubuntu > 16.04/mysql setup and got the following error: > $>TOASTER_DIR=`pwd` TOASTER_CONF=./meta-poky/conf/toasterconf.json > ./bitbake/lib/toaster/manage.py checksettings --traceback 2>&1 | tee > mychecksettings.log > > resulted in > > django.db.utils.DataError: (1406, "Data too long for column 'license' at row 1") > I'm attaching the logfile. > > Have any of you seen this before? It kinda stops me cold here. Sadly, > the error doesn't let me know what table or data was too long. I've reproduced it. It's failing to load linux-firmware recipe: https://layers.openembedded.org/layerindex/recipe/59/ With this patch it should skip this recipe with the warning: https://lists.yoctoproject.org/pipermail/toaster/2016-July/004979.html > p.s. other issues I've seen so far > 1) 3.7.2.1 > sudo mkdir /var/www/toaster > need a : sudo chown toaster /var/www/toaster Fixed by adding -m option to useradd command: https://git.yoctoproject.org/cgit/cgit.cgi/poky-contrib/commit/?h=ed/toaster/python3-documentation&id=f1182c2eee4df48f9dd50c76be540fb0c0578c54 > 2) 3.7.2.4 > SECRET_KEY needs a pointer to the Django documentation so people know > what it is: > https://docs.djangoproject.com/en/1.8/ref/settings/#std:setting-SECRET_KEY Done. SECRET_KEY, STATIC_ROOT and DATABASE became a links to Django documentation: https://git.yoctoproject.org/cgit/cgit.cgi/poky-contrib/commit/?h=ed/toaster/python3-documentation&id=80f58acb788d552a11d8e1dbcaf233a2ba43b301 > 3) 3.7.2.6 > the TOASTER_DIR=... checksettings line is too long and got truncated > for me when my pdf was made. We should probably break it in 2 or use > exports. Splitted to 2 lines: https://git.yoctoproject.org/cgit/cgit.cgi/poky-contrib/commit/?h=ed/toaster/python3-documentation&id=1bdf15510d96a695e1680db0ee95926e22a4996c I've updated my branch ed/toaster/python3-documentation with all above changes. please, review. Regards, Ed > On Fri, Jul 8, 2016 at 6:30 AM, Michael Wood wrote: > > Pasting this in as it's an updated version of this patch: > > > > > > commit 74e368b1855bbf4321f73b09a0f2c973b1e33c61 > > Author: Ed Bartosh > > Date: Mon Jun 27 17:37:40 2016 +0300 > > > > toaster-manual: update runbuilds instructions > > > > Added sample configuration files and instructions for the runbuilds > > systemd service. Service runs runbuilds in a screen session for user > > convenience. User can attach to the session to see the runbuilds output, > > monitor logs and build environment. > > > > Signed-off-by: Ed Bartosh > > > > diff --git a/documentation/toaster-manual/toaster-manual-setup-and-use.xml > > b/documentation/toaster-manual/toaster-manual-setup-and-use.xml > > index febbd15..26e71c8 100644 > > --- a/documentation/toaster-manual/toaster-manual-setup-and-use.xml > > +++ b/documentation/toaster-manual/toaster-manual-setup-and-use.xml > > @@ -438,22 +438,49 @@ > > > > > > > > - Install the build runner service. > > - This service needs to be running in order to dispatch > > - builds. > > - Use this command: > > + Prepare systemd service to run toaster builds. > > + Here is a sample configuration file for the service: > > > > - /var/www/toaster/poky/bitbake/lib/toaster/manage.py runbuilds > > + [Unit] > > + Description=Toaster runbuilds > > + > > + [Service] > > + Type=forking > > + User=toaster > > + ExecStart=/usr/bin/screen -d -m -S runbuilds > > /var/www/toaster/poky/bitbake/lib/toaster/runbuilds-service.sh start > > + ExecStop=/usr/bin/screen -S runbuilds -X quit > > + WorkingDirectory=/var/www/toaster/poky > > + > > > > > > This is kind of interesting from a developer of Toaster point of view but I > > don't think we should be recommending screen in the production setup. > > Toaster should be logging all the useful output anyway. > > > > > > > > + [Install] > > + WantedBy=multi-user.target > > > > - Here is an example: > > + And the runbuilds-service.sh script that you should > > put into /var/www/toaster/poky/bitbake/lib/toaster/ and > > + set executable permissions to it. > > > > - #!/bin/sh > > - # toaster run builds dispatcher > > - cd /var/www/toaster/ > > - source ./venv/bin/activate > > - ./bitbake/lib/toaster/manage.py runbuilds > > + #!/bin/bash > > + > > + #export http_proxy=http://proxy.host.com:8080 > > + #export https_proxy=http://proxy.host.com:8080 > > + #export GIT_PROXY_COMMAND=$HOME/bin/gitproxy > > + > > + cd ~/poky/ > > + source ./oe-init-build-env build > > + source ../bitbake/bin/toaster $1 noweb > > + [ "$1" == 'start' ] && /bin/bash > > > > - > > + > > + > > + Run the service: > > + > > + # service runbuilds start > > + > > + As service is running in a detached screen session > > you can attach to it using this command: > > + > > + $ sudo su - toaster > > + $ screen -rS runbuilds > > + > > + And detach from it again using 'Ctrl-a' followed by > > 'd' key combination. > > + > > > > You can now open up a browser and start using Toaster. > > > > > > > > -- > > _______________________________________________ > > toaster mailing list > > toaster@yoctoproject.org > > https://lists.yoctoproject.org/listinfo/toaster -- -- Regards, Ed