Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id 21AC7E00576; Thu, 3 Jul 2014 13:42:37 -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=-2.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, 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 * [199.249.25.210 listed in list.dnswl.org] * -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] * -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's * domain * 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 X-Greylist: delayed 362 seconds by postgrey-1.32 at yocto-www; Thu, 03 Jul 2014 13:42:29 PDT Received: from omzsmtpe01.verizonbusiness.com (omzsmtpe01.verizonbusiness.com [199.249.25.210]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id 20363E00404 for ; Thu, 3 Jul 2014 13:42:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=verizon.com; i=craig.neth@verizon.com; q=dns/txt; s=corp; t=1404420152; x=1435956152; h=from:to:date:subject:message-id:in-reply-to: content-transfer-encoding:mime-version; bh=BRQx6LwJijDni4QUJGsDS4btDZk5NSZkerUqkMcfMYc=; b=pBmtHehNiJmo6CAexcN7mi8DVSTVxGn/+8HYuhbhopLTq+uOED3YNPaO C8CAe8s0oulUyRNSB96kP6V9TBBjoCdJe8QfOBfH+2X1Jue/yWk6hsNba a4yq9kf68gb+t08VHRYzv/yyDjZL5hNb+3XBOf+9vqJxVEreoAzpgfHpP I=; X-IronPort-Anti-Spam-Filtered: false Received: from unknown (HELO fldsmtpi03.verizon.com) ([166.68.71.145]) by omzsmtpe01.verizonbusiness.com with ESMTP; 03 Jul 2014 20:33:42 +0000 From: "Neth, Craig Allen" X-IronPort-AV: E=Sophos;i="5.01,597,1400025600"; d="scan'208";a="763877073" Received: from fldp1lumxc7hb03.verizon.com (HELO FLDP1LUMXC7HB03.us.one.verizon.com) ([166.68.75.86]) by fldsmtpi03.verizon.com with ESMTP; 03 Jul 2014 20:33:40 +0000 Received: from fldp1lumxc7v101.us.one.verizon.com ([166.68.77.28]) by FLDP1LUMXC7HB03.us.one.verizon.com ([166.68.75.86]) with mapi; Thu, 3 Jul 2014 16:33:39 -0400 To: "toaster@yoctoproject.org" Date: Thu, 3 Jul 2014 16:33:39 -0400 Thread-Topic: Need help with Production toaster setup Thread-Index: Ac+W/hIOS8oIW/seTZeNs3g7zx5pSw== Message-ID: In-Reply-To: Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: user-agent: Microsoft-MacOutlook/14.3.8.130913 acceptlanguage: en-US MIME-Version: 1.0 Subject: Need help with Production toaster setup 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: Thu, 03 Jul 2014 20:42:37 -0000 Content-Language: en-US Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: quoted-printable A month or so ago, I set up a production toaster instance using the poky master branch. Our projects were building with Daisy. Everything was working fine. For various reasons, I needed to redo the production instance and that involved recloning the poky master repo, and now I=B9m having issues=8A After recloning poky and restarting the server, all my builds with the build logging turned on started throwing weird errors complaining like this: ERROR: Field 'project_id' doesn't have a default value And : ERROR:=20 Traceback (most recent call last): File "/poky/bitbake/lib/bb/ui/toasterui.py", line 191, in main buildinfohelper.store_started_task(event) File "/poky/bitbake/lib/bb/ui/buildinfohelper.py", line 653, in store_started_task recipe_information =3D self._get_recipe_information_from_taskfile(event.taskfile) File "/poky/bitbake/lib/bb/ui/buildinfohelper.py", line 551, in _get_recipe_information_from_taskfile layer_version_obj =3D self._get_layer_version_for_path(localfilepath) File "/poky/bitbake/lib/bb/ui/buildinfohelper.py", line 533, in _get_layer_version_for_path assert 'build' in self.internal_state AssertionError So I figured that there was probably some difference of opinion between the client and the server about the schema; I tried running the =8Csyncdb= =B9 and =8Cmigrate orm=B9 commands again on the server but that didn=B9t help. --- So next I figured I would just delete the =8Ctoaster=B9 database and start over. I tried going into mysql and dropping the toaster database, recreating it, and then redoing the two python commands, but that results in this error from the migrate orm command: python bitbake/lib/toaster/manage.py migrate orm Running migrations for orm: - Migrating forwards to 0007_auto__add_helptext. > orm:0001_initial > orm:0002_auto__add_field_build_timespent > orm:0003_timespent - Migration 'orm:0003_timespent' is marked for no-dry-run. > orm:0004_auto__add_field_package_installed_name >=20 orm:0005_auto__add_target_image_file__add_target_file__add_field_variablehi stor FATAL ERROR - The following SQL query failed: ALTER TABLE `orm_build` ADD COLUMN `timespent` integer NOT NULL DEFAULT 0; The error was: (1060, "Duplicate column name 'timespent'") RuntimeError: Cannot reverse this migration. 'Target.file_name' and its values cannot be restored. This was all done while working on the daisy branch. So, then I tried the delete/recreate database trick again and changed back to the master branch. Now I can run the two python commands ok, but my daisy clients are back to throwing the assert errors... So, a few questions: - Does it still work to run the production server on the master and clients running daisy, or do I have to use the daisy version of the production server, or do I need something newer than daisy but not as new as master? - If for whatever reason I need to recreate the database, what are the exact steps that I need to do to delete/recreate? It seems like just dropping the =8Ctoaster=B9 database and recreating it is insufficient, but I am not sure what else to do. The wiki pages are a bit vague on all this stuff, thanks for any help. Craig