Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id 0C090E00F18; Mon, 5 Oct 2015 07:02:03 -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 * [192.55.52.93 listed in list.dnswl.org] * -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id 5811EE00707 for ; Mon, 5 Oct 2015 07:02:01 -0700 (PDT) Received: from orsmga003.jf.intel.com ([10.7.209.27]) by fmsmga102.fm.intel.com with ESMTP; 05 Oct 2015 07:02:00 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.17,638,1437462000"; d="scan'208";a="658140119" Received: from irsmsx101.ger.corp.intel.com ([163.33.3.153]) by orsmga003.jf.intel.com with ESMTP; 05 Oct 2015 07:02:00 -0700 Received: from irsmsx156.ger.corp.intel.com (10.108.20.68) by IRSMSX101.ger.corp.intel.com (163.33.3.153) with Microsoft SMTP Server (TLS) id 14.3.248.2; Mon, 5 Oct 2015 15:01:58 +0100 Received: from irsmsx110.ger.corp.intel.com ([169.254.15.164]) by IRSMSX156.ger.corp.intel.com ([169.254.3.133]) with mapi id 14.03.0248.002; Mon, 5 Oct 2015 15:01:58 +0100 From: "Barros Pena, Belen" To: "ed.bartosh@linux.intel.com" , brian avery Thread-Topic: [Toaster] [TOASTER] [PATCH 0/4] remove startup questions v2 Thread-Index: AQHQ/TfLm9O6QySWpEKV0eqfYumqPJ5cgpoAgABvCwCAAAC1AA== Date: Mon, 5 Oct 2015 14:01:57 +0000 Message-ID: References: <20151005082158.GA30642@linux.intel.com> In-Reply-To: Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: user-agent: Microsoft-MacOutlook/14.5.5.150821 x-originating-ip: [10.252.23.50] MIME-Version: 1.0 Cc: "toaster@yoctoproject.org" Subject: Re: [PATCH 0/4] remove startup questions v2 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: Mon, 05 Oct 2015 14:02:03 -0000 Content-Language: en-US Content-Type: text/plain; charset="iso-8859-1" Content-ID: <77C1D5B81E8EF6499DC45DA0655E54CF@intel.com> Content-Transfer-Encoding: quoted-printable Sent too soon: if I try to start Toaster when a db doesn't exist, I get this trace Importing file: None Failure while trying to import the toaster config file None: coercing to Unicode: need string or buffer, NoneType found Traceback (most recent call last): File=20 "/home/yocto/master/bitbake/lib/toaster/bldcontrol/management/commands/chec ksettings.py", line 110, in _verify_be LoadConfigCommand()._import_layer_config(config_file) File=20 "/home/yocto/master/bitbake/lib/toaster/bldcontrol/management/commands/load conf.py", line 38, in _import_layer_config if not os.path.exists(filepath) or not os.path.isfile(filepath): File "/usr/lib/python2.7/genericpath.py", line 18, in exists os.stat(path) TypeError: coercing to Unicode: need string or buffer, NoneType found Starting webserver... Failed to start the web server, stopping The toaster_web.log once again says CommandError: "0.0.0.0:" is not a valid port number or address:port pair. Cheers Bel=E9n On 05/10/2015 14:59, "Barros Pena, Belen" wrote: > > >On 05/10/2015 09:21, "toaster-bounces@yoctoproject.org on behalf of Ed >Bartosh" ed.bartosh@linux.intel.com> wrote: > >>The patchset looks good to me. > >It might be just me doing something wrong, but when I try to start Toaster >with these patches applied (on top of master and with an existing >database), I get this message in the terminal: > >bitbake/bin/toaster: 165: [: unexpected operator >bitbake/bin/toaster: 175: [: unexpected operator > >and this message in the toaster_web log > >CommandError: "0.0.0.0:" is not a valid port number or address:port pair. > >If I am doing something silly, let me know. > >Thanks! > >Bel=E9n > > >=20 >> >>Acked-by: Ed Bartosh >> >>On Fri, Oct 02, 2015 at 10:30:16AM -0700, brian avery wrote: >>> This is v2 of my easier startup patch. I addressed most of Ed's >>>comments. >>>=20 >>> This one ,=20 >>> splits into more commits. The checksettings commit is still big but >>>would take a=20 >>> fair amount of time to break into anything that would run separately. >>>=20 >>> did some pylint fixes. >>>=20 >>> check for the config file and exits if missing. >>>=20 >>> made some code more explicit. >>>=20 >>> got rid of most of the trailing white spaces (one is not in the git >>>tree but is in the patch. no idea why) >>>=20 >>> -b >>>=20 >>> The following changes since commit >>>af1e3160922a30b8a538959335a5f8945f2f3549: >>>=20 >>> toaster: Remove project name from latest project builds (2015-10-02 >>>14:44:14 +0100) >>>=20 >>> are available in the git repository at: >>>=20 >>> git://git.yoctoproject.org/poky-contrib >>>bavery/toaster/startup_simplification_8217_v2 >>> =20 >>>http://git.yoctoproject.org/cgit.cgi/poky-contrib/log/?h=3Dbavery/toaste= r/ >>>s >>>tartup_simplification_8217_v2 >>>=20 >>> brian avery (4): >>> toaster: removed superuser question from startup >>> toaster: remove layer and build dir interactive questions >>> toaster: check for configuration file and exit if not found >>> toaster: get rid of interactivity in bldcontrol >>>=20 >>> bitbake/bin/toaster | 38 +++++- >>> .../management/commands/checksettings.py | 138 >>>++++++--------------- >>> 2 files changed, 69 insertions(+), 107 deletions(-) >>>=20 >>> --=20 >>> 1.9.1 >>>=20 >>> --=20 >>> _______________________________________________ >>> toaster mailing list >>> toaster@yoctoproject.org >>> https://lists.yoctoproject.org/listinfo/toaster >> >>--=20 >>-- >>Regards, >>Ed >>--=20 >>_______________________________________________ >>toaster mailing list >>toaster@yoctoproject.org >>https://lists.yoctoproject.org/listinfo/toaster >