Bug 877332
| Summary: | [abrt] UnicodeDecodeError running 'dnf history' as a normal user on fresh install | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Vít Ondruch <vondruch> | ||||||||
| Component: | dnf | Assignee: | Ales Kozumplik <akozumpl> | ||||||||
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||||||
| Severity: | unspecified | Docs Contact: | |||||||||
| Priority: | unspecified | ||||||||||
| Version: | 18 | CC: | akozumpl, jzeleny | ||||||||
| Target Milestone: | --- | ||||||||||
| Target Release: | --- | ||||||||||
| Hardware: | x86_64 | ||||||||||
| OS: | Unspecified | ||||||||||
| Whiteboard: | abrt_hash:20a97c0c91f2f65fe4932078073a63ce35a2771f | ||||||||||
| Fixed In Version: | dnf-0.2.17 | Doc Type: | Bug Fix | ||||||||
| Doc Text: | Story Points: | --- | |||||||||
| Clone Of: | Environment: | ||||||||||
| Last Closed: | 2013-03-25 09:45:41 UTC | Type: | --- | ||||||||
| Regression: | --- | Mount Type: | --- | ||||||||
| Documentation: | --- | CRM: | |||||||||
| Verified Versions: | Category: | --- | |||||||||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||||||
| Cloudforms Team: | --- | Target Upstream Version: | |||||||||
| Embargoed: | |||||||||||
| Attachments: |
|
||||||||||
Created attachment 646261 [details]
File: executable
Created attachment 646262 [details]
File: environ
Created attachment 646263 [details]
File: core_backtrace
Discussed this with Vit today: we weren't able to reproduce it on his computer but it seems the conditions under which it happened was: - terminal output, UTF8 terminal encoding - all locales set to "cs_CZ.UTF-8" OK I managed to reproduce this: 1) as root rename /var/lib/dnf to something else 2) as normal user do 'dnf history' Fixed by cecdfbb. |
Description of problem: Trying to get history out of DNF without user privileges, on system with czech locales. Version-Release number of selected component: dnf-0.2.15-3.git5d85f6b.fc18 Additional info: libreport version: 2.0.18 abrt_version: 2.0.18 cmdline: /usr/bin/python /usr/bin/dnf history kernel: 3.6.6-3.fc18.x86_64 backtrace: :history.py:672:__init__:UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 22: ordinal not in range(128) : :Traceback (most recent call last): : File "/usr/bin/dnf", line 35, in <module> : yummain.user_main(sys.argv[1:], exit_code=True) : File "/usr/lib/python2.7/site-packages/dnf/cli/yummain.py", line 316, in user_main : errcode = main(args) : File "/usr/lib/python2.7/site-packages/dnf/cli/yummain.py", line 98, in main : base.getOptionsConfig(args) : File "/usr/lib/python2.7/site-packages/dnf/cli/cli.py", line 363, in getOptionsConfig : self.parseCommands() # before we return check over the base command + args : File "/usr/lib/python2.7/site-packages/dnf/cli/cli.py", line 405, in parseCommands : self.yum_cli_commands[self.basecmd].doCheck(self, self.basecmd, self.extcmds) : File "/usr/lib/python2.7/site-packages/dnf/cli/yumcommands.py", line 2404, in doCheck : elif not os.access(base.history._db_file, os.R_OK): : File "/usr/lib/python2.7/site-packages/dnf/yum/__init__.py", line 773, in <lambda> : history = property(fget=lambda self: self._getHistory(), : File "/usr/lib/python2.7/site-packages/dnf/yum/__init__.py", line 750, in _getHistory : releasever=releasever) : File "/usr/lib/python2.7/site-packages/dnf/yum/history.py", line 672, in __init__ : msg = _("Unable to initialize yumdb history: %s") % str(e) :UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 22: ordinal not in range(128) : :Local variables in innermost frame: :e: OSError(13, 'Operace zam\xc3\xadtnuta') :self: <dnf.yum.history.YumHistory object at 0x1cece90> :releasever: '18' :yumdb: <dnf.yum.rpmsack.RPMDBAdditionalData object at 0x1ceced0> :root: '/' :db_path: '/var/lib/dnf/history'