[Toaster] toaster settings failure

Reyna, David david.reyna at windriver.com
Sun Sep 3 16:13:55 PDT 2017


Hi Daiane,

> Failure while trying to setup toaster: name 'ToasterSetting' is not defined

That was my mistake. I made a recent commit but missed a line.

Here is the quick fix. In the file "bitbake/lib/toaster/orm/management/commands/lsupdates.py" add this line near the top:

	from orm.models import ToasterSetting

I will have a formal patch posted soon.

> When I use poky:pyro ...

I will look into the "poky:pyro" issue.

> Am I missing some step?

It looks correct. I usually do:

  $ bash
  $ source oe-init-build-env
  $ source toaster start webport=0.0.0.0:8000
  ... use Toaster ...
  $ source toaster stop
  $ exit  # return to a clean environment

- David


-----Original Message-----
From: toaster-bounces at yoctoproject.org [mailto:toaster-bounces at yoctoproject.org] On Behalf Of Daiane Angolini
Sent: Sunday, September 03, 2017 2:57 PM
To: toaster at yoctoproject.org
Subject: [Toaster] toaster settings failure

Hi,


I'm trying to test toaster, but I've been facing problems with both
master and pyro.

When I use poky:pyro, choose pyro for the first project, I cannot
really got to the end of project creation.

When I use poky:master, I face a settings failure, and if I change the
machine to "qemuarm" the build will never leave the "Tasks starting...
" state.

I've been using the following commands to start toaster:
pip3 install --user -r bitbake/toaster-requirements.txt
source oe-init-build-env
source toaster start

Am I missing some step?

How can I "configure" toaster to get a ToasterSettings defined?

Log on master:
----
Build configuration saved
Loading default settings
Installed 7 object(s) from 1 fixture(s)
Loading poky configuration
Installed 28 object(s) from 1 fixture(s)
Importing custom settings if present

Fetching information from the layer index, please wait.
You can re-update any time later by running
bitbake/lib/toaster/manage.py lsupdates

Failure while trying to setup toaster: name 'ToasterSetting' is not defined
Traceback (most recent call last):
  File "/media/disco2/poky/bitbake/lib/toaster/bldcontrol/management/commands/checksettings.py",
line 117, in _verify_be
    call_command("lsupdates")
  File "/home/user/.local/lib/python3.5/site-packages/django/core/management/__init__.py",
line 120, in call_command
    return command.execute(*args, **defaults)
  File "/home/user/.local/lib/python3.5/site-packages/django/core/management/base.py",
line 445, in execute
    output = self.handle(*args, **options)
  File "/media/disco2/poky/bitbake/lib/toaster/orm/management/commands/lsupdates.py",
line 334, in handle
    self.update()
  File "/media/disco2/poky/bitbake/lib/toaster/orm/management/commands/lsupdates.py",
line 84, in update
    if ToasterSetting.objects.filter(name='CUSTOM_LAYERINDEX_SERVER').count()
== 1:
NameError: name 'ToasterSetting' is not defined
Starting webserver...
Toaster development webserver started at http://localhost:8000

You can now run 'bitbake <target>' on the command line and monitor
your build in Toaster.
You can also use a Toaster project to configure and run a build.
----

I don't know how to have access other logs from toaster, if something
else is needed them please let me know how to take them.

Thanks a lot in advance,
Daiane
-- 
_______________________________________________
toaster mailing list
toaster at yoctoproject.org
https://lists.yoctoproject.org/listinfo/toaster


More information about the toaster mailing list