Bug 1495117 - Dnf install fails with traceback in container
Summary: Dnf install fails with traceback in container
Keywords:
Status: CLOSED DUPLICATE of bug 1495116
Alias: None
Product: Fedora
Classification: Fedora
Component: dnf
Version: 26
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: rpm-software-management
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-09-25 08:55 UTC by dhodovsk
Modified: 2017-09-25 10:15 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2017-09-25 10:15:14 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description dhodovsk 2017-09-25 08:55:16 UTC
Description of problem:
Traceback after running 'dnf install vim'

Version-Release number of selected component (if applicable):
dnf-2.6.3

How reproducible:
always

Steps to Reproduce:
1. docker run -it --user 1000 fedora:26 bash
2. dnf install vim
3.

Actual results:
Traceback (most recent call last):
  File "/usr/lib/python3.6/site-packages/dnf/cli/main.py", line 64, in main
    return _main(base, args, cli_class, option_parser_class)
  File "/usr/lib/python3.6/site-packages/dnf/cli/main.py", line 95, in _main
    cli.configure(list(map(ucd, args)), option_parser())
  File "/usr/lib/python3.6/site-packages/dnf/cli/cli.py", line 816, in configure
    self._read_conf_file(opts.releasever)
  File "/usr/lib/python3.6/site-packages/dnf/cli/cli.py", line 922, in _read_conf_file
    conf.prepend_installroot(opt)
  File "/usr/lib/python3.6/site-packages/dnf/conf/config.py", line 819, in prepend_installroot
    new_path = self._prepend_installroot_path(opt._get())
  File "/usr/lib/python3.6/site-packages/dnf/conf/config.py", line 823, in _prepend_installroot_path
    root_path = os.path.join(self._get_value('installroot'), path.lstrip('/'))
AttributeError: 'NoneType' object has no attribute 'lstrip'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/bin/dnf", line 58, in <module>
    main.user_main(sys.argv[1:], exit_code=True)
  File "/usr/lib/python3.6/site-packages/dnf/cli/main.py", line 179, in user_main
    errcode = main(args)
  File "/usr/lib/python3.6/site-packages/dnf/cli/main.py", line 64, in main
    return _main(base, args, cli_class, option_parser_class)
  File "/usr/lib/python3.6/site-packages/dnf/base.py", line 106, in __exit__
    self.close()
  File "/usr/lib/python3.6/site-packages/dnf/base.py", line 368, in close
    self.conf.cachedir)
  File "/usr/lib/python3.6/site-packages/dnf/persistor.py", line 483, in __init__
    self.db_path = os.path.join(cachedir, "tempfiles.json")
  File "/usr/lib64/python3.6/posixpath.py", line 78, in join
    a = os.fspath(a)
TypeError: expected str, bytes or os.PathLike object, not NoneType

Expected results:
no traceback

Additional info:

Comment 1 Igor Gnatenko 2017-09-25 10:15:14 UTC

*** This bug has been marked as a duplicate of bug 1495116 ***


Note You need to log in before you can comment on or make changes to this bug.