[Toaster] [TOASTER] [PATCH 0/4] remove startup questions v2

Barros Pena, Belen belen.barros.pena at intel.com
Mon Oct 5 07:01:57 PDT 2015


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 
"/home/yocto/master/bitbake/lib/toaster/bldcontrol/management/commands/chec
ksettings.py", line 110, in _verify_be
    LoadConfigCommand()._import_layer_config(config_file)
  File 
"/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én



On 05/10/2015 14:59, "Barros Pena, Belen" <belen.barros.pena at intel.com>
wrote:

>
>
>On 05/10/2015 09:21, "toaster-bounces at yoctoproject.org on behalf of Ed
>Bartosh" <toaster-bounces at yoctoproject.org on behalf of
>ed.bartosh at 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én
>
>
> 
>>
>>Acked-by: Ed Bartosh <ed.bartosh at linux.intel.com>
>>
>>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.
>>> 
>>> This one , 
>>> splits into more commits. The checksettings commit is still big but
>>>would take a 
>>> fair amount of time to break into anything that would run separately.
>>> 
>>> did some pylint fixes.
>>> 
>>> check for the config file and exits if missing.
>>> 
>>> made some code more explicit.
>>> 
>>> got rid of most of the trailing white spaces (one is not in the git
>>>tree but is in the patch. no idea why)
>>> 
>>> -b
>>> 
>>> The following changes since commit
>>>af1e3160922a30b8a538959335a5f8945f2f3549:
>>> 
>>>   toaster: Remove project name from latest project builds (2015-10-02
>>>14:44:14 +0100)
>>> 
>>> are available in the git repository at:
>>> 
>>>   git://git.yoctoproject.org/poky-contrib
>>>bavery/toaster/startup_simplification_8217_v2
>>>   
>>>http://git.yoctoproject.org/cgit.cgi/poky-contrib/log/?h=bavery/toaster/
>>>s
>>>tartup_simplification_8217_v2
>>> 
>>> 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
>>> 
>>>  bitbake/bin/toaster                                |  38 +++++-
>>>  .../management/commands/checksettings.py           | 138
>>>++++++---------------
>>>  2 files changed, 69 insertions(+), 107 deletions(-)
>>> 
>>> -- 
>>> 1.9.1
>>> 
>>> -- 
>>> _______________________________________________
>>> toaster mailing list
>>> toaster at yoctoproject.org
>>> https://lists.yoctoproject.org/listinfo/toaster
>>
>>-- 
>>--
>>Regards,
>>Ed
>>-- 
>>_______________________________________________
>>toaster mailing list
>>toaster at yoctoproject.org
>>https://lists.yoctoproject.org/listinfo/toaster
>



More information about the toaster mailing list