#811 AttributeError: 'dict' object has no attribute 'hub.checked_md5'
Closed: Fixed 2 years ago Opened 2 years ago by mizdebsk.

koji-hub 1.15.0 Crashed with the following error:

[Tue Feb 20 12:03:40.157436 2018] [:error] [pid 14186] 2018-02-20 12:03:40,157 [WARNING] m=CGImport u=mbs/mbs.fedoraproject.org p=14186 r=10.5.126.52:36852 koji.xmlrpc: Traceback (most recent call last):
[Tue Feb 20 12:03:40.157464 2018] [:error] [pid 14186]   File "/usr/share/koji-hub/kojixmlrpc.py", line 228, in _wrap_handler
[Tue Feb 20 12:03:40.157471 2018] [:error] [pid 14186]     response = handler(environ)
[Tue Feb 20 12:03:40.157476 2018] [:error] [pid 14186]   File "/usr/share/koji-hub/kojixmlrpc.py", line 271, in handle_rpc
[Tue Feb 20 12:03:40.157482 2018] [:error] [pid 14186]     return self._dispatch(method, params)
[Tue Feb 20 12:03:40.157488 2018] [:error] [pid 14186]   File "/usr/share/koji-hub/kojixmlrpc.py", line 308, in _dispatch
[Tue Feb 20 12:03:40.157493 2018] [:error] [pid 14186]     ret = koji.util.call_with_argcheck(func, params, opts)
[Tue Feb 20 12:03:40.157499 2018] [:error] [pid 14186]   File "/usr/lib/python2.7/site-packages/koji/util.py", line 209, in call_with_argcheck
[Tue Feb 20 12:03:40.157504 2018] [:error] [pid 14186]     return func(*args, **kwargs)
[Tue Feb 20 12:03:40.157509 2018] [:error] [pid 14186]   File "/usr/share/koji-hub/kojihub.py", line 5199, in cg_import
[Tue Feb 20 12:03:40.157515 2018] [:error] [pid 14186]     return importer.do_import(metadata, directory)
[Tue Feb 20 12:03:40.157578 2018] [:error] [pid 14186]   File "/usr/share/koji-hub/kojihub.py", line 5237, in do_import
[Tue Feb 20 12:03:40.157586 2018] [:error] [pid 14186]     self.import_outputs()
[Tue Feb 20 12:03:40.157592 2018] [:error] [pid 14186]   File "/usr/share/koji-hub/kojihub.py", line 5626, in import_outputs
[Tue Feb 20 12:03:40.157597 2018] [:error] [pid 14186]     self.import_archive(self.buildinfo, brinfo, fileinfo)
[Tue Feb 20 12:03:40.157602 2018] [:error] [pid 14186]   File "/usr/share/koji-hub/kojihub.py", line 5698, in import_archive
[Tue Feb 20 12:03:40.157608 2018] [:error] [pid 14186]     archiveinfo = import_archive_internal(fn, buildinfo, btype, type_info, brinfo.id, fileinfo)
[Tue Feb 20 12:03:40.157613 2018] [:error] [pid 14186]   File "/usr/share/koji-hub/kojihub.py", line 6271, in import_archive_internal
[Tue Feb 20 12:03:40.157619 2018] [:error] [pid 14186]     if not fileinfo or not getattr(fileinfo, 'hub.checked_md5'):
[Tue Feb 20 12:03:40.157624 2018] [:error] [pid 14186] AttributeError: 'dict' object has no attribute 'hub.checked_md5'

Looks like "getattr" should be replaced with "get"?


Metadata Update from @tkopecek:
- Issue set to the milestone: 1.16

2 years ago

Login to comment on this ticket.

Metadata