Hi Sriram,

1) “WARNING: Could not add dependency …”

These are passive errors that do not affect the operations.

2) “We are using mysql (django.db.backends.mysql) for Toaster database.“

I have not seen this error with Sqlite, so there may be a subtle issue with the 
mapping to MySQL.

The obvious hack is to fetch all objects and select just the first.

I am curious what all objects are found, why it matches more than one 
Target_File. That might help explain why there are many when only one is 
normally expected.

David


From: [email protected] <[email protected]> On Behalf 
Of Sriram G
Sent: Wednesday, July 13, 2022 6:15 PM
To: [email protected]
Subject: [Toaster] Toaster builds failing

Hi,


     Referring to message #5685 Toaster error - Rocko 
https://lists.yoctoproject.org/g/toaster/message/5685<https://urldefense.com/v3/__https:/lists.yoctoproject.org/g/toaster/message/5685__;!!AjveYdw8EvQ!dB3jg7HYsct9CVxL7MUOmunZhmFj0QhchtIorAD1Oq-FoUWdbXIeDb318lH_3bfExSs6WMwJnI0_37H51H_L$>
"
We are running the Toaster production instance based on Rocko (2.4.3) and 
seeing a lot of warnings when the build is completed. Our setup is:

1) Start Toaster production instance in isolation (toaster user) with nobuild 
option, just to monitor command line builds
2) A different user then fetches 'poky' separately and then sets up the build 
environment
3) Start toaster: $ source toaster start noweb
4) Run build: $ bitbake core-image-minimal
5) Stop toaster: $ source toaster stop

This result in following warnings/notes when the build is completed (complete 
log attached)

WARNING: Could not add dependency to the package libc6 because ld-linux.so.2 is 
an unknown package
NOTE: We did not find one recipe for theconfiguration data package libc6 Recipe 
matching query does not exist.
WARNING: Could not add dependency to the package libc6 because ld-linux.so.2 is 
an unknown package

What might be going wrong here? The Toaster web UI shows 100% progress.

Also in one other custom image build we see the following error at the end of 
the build:

ERROR: get() returned more than one Target_File -- it returned 2!
Traceback (most recent call last):
  File 
"/home/mshakeel/build-areas/build-area-rocko/sources/poky/bitbake/lib/bb/ui/toasterui.py",
 line 416, in main
    buildinfohelper.store_target_package_data(event)
  File 
"/home/mshakeel/build-areas/build-area-rocko/sources/poky/bitbake/lib/bb/ui/buildinfohelper.py",
 line 1383, in store_target_package_data
    self.orm_wrapper.save_target_file_information(self.internal_state['build'], 
target, filedata)
  File 
"/home/mshakeel/build-areas/build-area-rocko/sources/poky/bitbake/lib/bb/ui/buildinfohelper.py",
 line 536, in save_target_file_information
    parent_obj = self._cached_get(Target_File, target = target_obj, path = 
parent_path, inodetype = Target_File.ITYPE_DIRECTORY)
  File 
"/home/mshakeel/build-areas/build-area-rocko/sources/poky/bitbake/lib/bb/ui/buildinfohelper.py",
 line 123, in _cached_get
    vars(self)[dictname][key] = clazz.objects.get(**kwargs)
  File 
"/home/mshakeel/.local/lib/python3.6/site-packages/django/db/models/manager.py",
 line 85, in manager_method
    return getattr(self.get_queryset(), name)(*args, **kwargs)
  File 
"/home/mshakeel/.local/lib/python3.6/site-packages/django/db/models/query.py", 
line 384, in get
    (self.model._meta.object_name, num)
orm.models.MultipleObjectsReturned: get() returned more than one Target_File -- 
it returned 2!

NOTE: No commit since BUILDHISTORY_COMMIT != '1'
NOTE: Build exited with errorcode 0
NOTE: ToasterUI build done, brbe: None
WARNING: Return value is 1

Any thoughts about this error? We are using mysql (django.db.backends.mysql) 
for Toaster database.
"

I'm facing a similar error with the toaster builds. get() function returning 2 
Target_File with the same function and 
buildinfohelper.py<https://urldefense.com/v3/__http:/buildinfohelper.py__;!!AjveYdw8EvQ!dB3jg7HYsct9CVxL7MUOmunZhmFj0QhchtIorAD1Oq-FoUWdbXIeDb318lH_3bfExSs6WMwJnI0_3z_QWPcZ$>.
 Is there a fix for this issue. I'm currently trying the solution from the 
message thread above, but that seems like a temporary fix(does not work). 
Please Help.

Thanks
Sriram
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#5820): https://lists.yoctoproject.org/g/toaster/message/5820
Mute This Topic: https://lists.yoctoproject.org/mt/92373943/21656
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/toaster/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to