Bug 1609071 - [abrt] python3-tracer: packages_newer_than(): rpm.py:73:packages_newer_than:TypeError: argument 1 must be str, not None
Summary: [abrt] python3-tracer: packages_newer_than(): rpm.py:73:packages_newer_than:T...
Keywords:
Status: CLOSED EOL
Alias: None
Product: Fedora
Classification: Fedora
Component: tracer
Version: 28
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Jakub Kadlčík
QA Contact: Fedora Extras Quality Assurance
URL: https://retrace.fedoraproject.org/faf...
Whiteboard: abrt_hash:50d74e61b83e33bc7c71645fae2...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-07-26 23:39 UTC by Brian Naasz
Modified: 2019-05-28 21:58 UTC (History)
3 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2019-05-28 21:58:07 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: backtrace (1.96 KB, text/plain)
2018-07-26 23:39 UTC, Brian Naasz
no flags Details
File: cgroup (333 bytes, text/plain)
2018-07-26 23:39 UTC, Brian Naasz
no flags Details
File: cpuinfo (990 bytes, text/plain)
2018-07-26 23:39 UTC, Brian Naasz
no flags Details
File: environ (6.39 KB, text/plain)
2018-07-26 23:39 UTC, Brian Naasz
no flags Details
File: mountinfo (4.61 KB, text/plain)
2018-07-26 23:39 UTC, Brian Naasz
no flags Details
File: namespaces (129 bytes, text/plain)
2018-07-26 23:39 UTC, Brian Naasz
no flags Details
File: open_fds (424 bytes, text/plain)
2018-07-26 23:39 UTC, Brian Naasz
no flags Details

Description Brian Naasz 2018-07-26 23:39:38 UTC
Description of problem:
this happens every time I run 'tracer' as root.

All I get is the backtrace dump.

Version-Release number of selected component:
python3-tracer-0.7.0-1.fc28

Additional info:
reporter:       libreport-2.9.5
cmdline:        /usr/bin/python3 /usr/bin/tracer -iat 1532643419.4201355
crash_function: packages_newer_than
exception_type: TypeError
executable:     /usr/bin/tracer
interpreter:    python3-3.6.5-1.fc28.x86_64
kernel:         4.17.5-200.fc28.x86_64
runlevel:       3 5
type:           Python3
uid:            0

Truncated backtrace:
rpm.py:73:packages_newer_than:TypeError: argument 1 must be str, not None

Traceback (most recent call last):
  File "/usr/bin/tracer", line 34, in <module>
    tracer.main.run()
  File "/usr/lib/python3.6/site-packages/tracer/main.py", line 45, in run
    return router.dispatch()
  File "/usr/lib/python3.6/site-packages/tracer/resources/router.py", line 52, in dispatch
    controller = DefaultController(self.args, self.packages)
  File "/usr/lib/python3.6/site-packages/tracer/controllers/default.py", line 62, in __init__
    self.applications = self.tracer.trace_affected(self._user(args.user))
  File "/usr/lib/python3.6/site-packages/tracer/resources/tracer.py", line 94, in trace_affected
    packages = self._modified_packages()
  File "/usr/lib/python3.6/site-packages/tracer/resources/tracer.py", line 83, in _modified_packages
    packages = self._PACKAGE_MANAGER.packages_newer_than(timestamp)
  File "/usr/lib/python3.6/site-packages/tracer/resources/PackageManager.py", line 50, in packages_newer_than
    packages_lists = [p.packages_newer_than(unix_time) for p in self.package_managers]
  File "/usr/lib/python3.6/site-packages/tracer/resources/PackageManager.py", line 50, in <listcomp>
    packages_lists = [p.packages_newer_than(unix_time) for p in self.package_managers]
  File "/usr/lib/python3.6/site-packages/tracer/packageManagers/rpm.py", line 73, in packages_newer_than
    conn = sqlite3.connect(sqlite)
TypeError: argument 1 must be str, not None

Local variables in innermost frame:
sqlite: None
packages: []
sql: '\n\t\t\t\tSELECT DISTINCT pkgtups.name, trans_end.timestamp AS end\n\n\t\t\t\tFROM trans_beg JOIN trans_end JOIN trans_data_pkgs JOIN pkgtups\n\t\t\t\tON trans_beg.tid=trans_end.tid\n\t\t\t\tAND trans_data_pkgs.tid=trans_beg.tid\n\t\t\t\tAND trans_data_pkgs.pkgtupid=pkgtups.pkgtupid\n\n\t\t\t\tWHERE  trans_beg.timestamp > ?\n\t\t\t\tORDER BY pkgtups.name\n\t\t\t'
unix_time: '1532643419.4201355'
self: <tracer.packageManagers.yum.Yum object at 0x7ff87ad8a978>

Potential duplicate: bug 1519588

Comment 1 Brian Naasz 2018-07-26 23:39:43 UTC
Created attachment 1470903 [details]
File: backtrace

Comment 2 Brian Naasz 2018-07-26 23:39:44 UTC
Created attachment 1470904 [details]
File: cgroup

Comment 3 Brian Naasz 2018-07-26 23:39:44 UTC
Created attachment 1470905 [details]
File: cpuinfo

Comment 4 Brian Naasz 2018-07-26 23:39:45 UTC
Created attachment 1470906 [details]
File: environ

Comment 5 Brian Naasz 2018-07-26 23:39:46 UTC
Created attachment 1470907 [details]
File: mountinfo

Comment 6 Brian Naasz 2018-07-26 23:39:47 UTC
Created attachment 1470908 [details]
File: namespaces

Comment 7 Brian Naasz 2018-07-26 23:39:48 UTC
Created attachment 1470909 [details]
File: open_fds

Comment 8 Ben Cotton 2019-05-02 21:15:12 UTC
This message is a reminder that Fedora 28 is nearing its end of life.
On 2019-May-28 Fedora will stop maintaining and issuing updates for
Fedora 28. It is Fedora's policy to close all bug reports from releases
that are no longer maintained. At that time this bug will be closed as
EOL if it remains open with a Fedora 'version' of '28'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version.

Thank you for reporting this issue and we are sorry that we were not 
able to fix it before Fedora 28 is end of life. If you would still like 
to see this bug fixed and are able to reproduce it against a later version 
of Fedora, you are encouraged  change the 'version' to a later Fedora 
version prior this bug is closed as described in the policy above.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events. Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

Comment 9 Ben Cotton 2019-05-28 21:58:07 UTC
Fedora 28 changed to end-of-life (EOL) status on 2019-05-28. Fedora 28 is
no longer maintained, which means that it will not receive any further
security or bug fix updates. As a result we are closing this bug.

If you can reproduce this bug against a currently maintained version of
Fedora please feel free to reopen this bug against that version. If you
are unable to reopen this bug, please file a new report against the
current release. If you experience problems, please add a comment to this
bug.

Thank you for reporting this bug and we are sorry it could not be fixed.


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