#6273 dnf crash in rawhide
Closed: Fixed None Opened 8 years ago by tomh.

I just had a report from koschei about a failing build:

http://koji.fedoraproject.org/koji/taskinfo?taskID=11396458

It seems that dnf died, so I thought I'd report it given the switch to dnf yesterday. The trace in root.log is:

{{{
DEBUG util.py:393: Traceback (most recent call last):
DEBUG util.py:393: File "/usr/bin/dnf", line 36, in <module>
DEBUG util.py:393: main.user_main(sys.argv[1:], exit_code=True)
DEBUG util.py:393: File "/usr/lib/python2.7/site-packages/dnf/cli/main.py", line 185, in user_main
DEBUG util.py:393: errcode = main(args)
DEBUG util.py:393: File "/usr/lib/python2.7/site-packages/dnf/cli/main.py", line 84, in main
DEBUG util.py:393: return _main(base, args)
DEBUG util.py:393: File "/usr/lib/python2.7/site-packages/dnf/cli/main.py", line 141, in _main
DEBUG util.py:393: ret = resolving(cli, base)
DEBUG util.py:393: File "/usr/lib/python2.7/site-packages/dnf/cli/main.py", line 160, in resolving
DEBUG util.py:393: base.do_transaction()
DEBUG util.py:393: File "/usr/lib/python2.7/site-packages/dnf/cli/cli.py", line 217, in do_transaction
DEBUG util.py:393: super(BaseCli, self).do_transaction(display)
DEBUG util.py:393: File "/usr/lib/python2.7/site-packages/dnf/base.py", line 574, in do_transaction
DEBUG util.py:393: self._run_transaction(cb=cb)
DEBUG util.py:393: File "/usr/lib/python2.7/site-packages/dnf/base.py", line 696, in _run_transaction
DEBUG util.py:393: self.verify_transaction(cb.verify_tsi_package)
DEBUG util.py:393: File "/usr/lib/python2.7/site-packages/dnf/base.py", line 752, in verify_transaction
DEBUG util.py:393: yumdb_info.releasever = self.conf.releasever
DEBUG util.py:393: File "/usr/lib/python2.7/site-packages/dnf/yum/rpmsack.py", line 295, in setattr
DEBUG util.py:393: self._write(attr, value)
DEBUG util.py:393: File "/usr/lib/python2.7/site-packages/dnf/yum/rpmsack.py", line 232, in _write
DEBUG util.py:393: dnf.pycomp.write_to_file(fo, value)
DEBUG util.py:393: File "/usr/lib/python2.7/site-packages/dnf/pycomp.py", line 88, in write_to_file
DEBUG util.py:393: f.write(content.encode('utf-8'))
DEBUG util.py:393: AttributeError: 'NoneType' object has no attribute 'encode'
DEBUG util.py:515: Child return code was: 1
}}}


Replying to [ticket:6273 tomh]:

I just had a report from koschei about a failing build:

http://koji.fedoraproject.org/koji/taskinfo?taskID=11396458

It seems that dnf died, so I thought I'd report it given the switch to dnf yesterday. The trace in root.log is:

Can you please report it in bugzilla too and reference the bug here

https://bugzilla.redhat.com/enter_bug.cgi?product=Fedora&version=rawhide&component=dnf

I'm getting lots of these too - on armhfp only

All of these (that I have seen links for so far) were on arm02-builder07, and I have re-installed that builder.

If anyone sees them again or on another builder, please update this ticket or the bug.

Just had another one fail: http://koji.fedoraproject.org/koji/taskinfo?taskID=11404963

That's not the same builder - it's not even an arm builder. Backtrace is the same.

Just had an i386 build fail on buildhw-11.phx2.fedoraproject.org

http://koji.fedoraproject.org/koji/taskinfo?taskID=11406124

Looks the same. I maintain a lot of packages and I've been getting a lot of these over the last couple of days.

there was a small number of builders that for some reason did not have the dnf in f21 updates-testing installed, I have fixed them and everything should be okay now.

Login to comment on this ticket.

Metadata