Bug 1835582 - [abrt] rpmconf: filecmp.py:51:cmp:FileNotFoundError: [Errno 2] No such file or directory: '/etc/xinetd.d/check_mk'
Summary: [abrt] rpmconf: filecmp.py:51:cmp:FileNotFoundError: [Errno 2] No such file o...
Keywords:
Status: NEW
Alias: None
Product: Fedora EPEL
Classification: Fedora
Component: rpmconf
Version: epel7
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Miroslav Suchý
QA Contact: Fedora Extras Quality Assurance
URL: https://retrace.fedoraproject.org/faf...
Whiteboard: abrt_hash:16b3858608e52b110a2b9fb756e...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-05-14 05:59 UTC by Frank Büttner
Modified: 2020-05-14 09:41 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed:
Type: ---
Embargoed:


Attachments (Terms of Use)
File: backtrace (923 bytes, text/plain)
2020-05-14 05:59 UTC, Frank Büttner
no flags Details
File: environ (2.07 KB, text/plain)
2020-05-14 05:59 UTC, Frank Büttner
no flags Details
File: machineid (135 bytes, text/plain)
2020-05-14 05:59 UTC, Frank Büttner
no flags Details

Description Frank Büttner 2020-05-14 05:59:48 UTC
Description of problem:
When no new config file exits, the it will crash.
In this case, /etc/xinetd.d/check_mk.rpmsave exits.
But no file /etc/xinetd.d/check_mk.

Version-Release number of selected component:
rpmconf-1.0.22-1.el7

Additional info:
reporter:       libreport-2.1.11.1
cmdline:        /usr/bin/python3 /sbin/rpmconf -a
executable:     /sbin/rpmconf
kernel:         3.10.0-1127.el7.x86_64
pkg_fingerprint: 6A2F AEA2 352C 64E5
pkg_vendor:     Fedora Project
reproducible:   Not sure how to reproduce the problem
runlevel:       N 3
type:           Python3
uid:            0

Truncated backtrace:
filecmp.py:51:cmp:FileNotFoundError: [Errno 2] No such file or directory: '/etc/xinetd.d/check_mk'

Traceback (most recent call last):
  File "/sbin/rpmconf", line 80, in <module>
    main()
  File "/sbin/rpmconf", line 71, in main
    rconf.run()
  File "/usr/lib/python3.6/site-packages/rpmconf/rpmconf.py", line 97, in run
    tested_files += self._handle_package(pkg_hdr)
  File "/usr/lib/python3.6/site-packages/rpmconf/rpmconf.py", line 334, in _handle_package
    tmp.format(conf_file, "rpmsave"))
  File "/usr/lib/python3.6/site-packages/rpmconf/rpmconf.py", line 396, in _handle_rpmsave
    and filecmp.cmp(conf_file, other_file):
  File "/usr/lib64/python3.6/filecmp.py", line 51, in cmp
    s1 = _sig(os.stat(f1))
FileNotFoundError: [Errno 2] No such file or directory: '/etc/xinetd.d/check_mk'

Local variables in innermost frame:
shallow: True
f2: '/etc/xinetd.d/check_mk.rpmsave'
f1: '/etc/xinetd.d/check_mk'

Comment 1 Frank Büttner 2020-05-14 05:59:51 UTC
Created attachment 1688316 [details]
File: backtrace

Comment 2 Frank Büttner 2020-05-14 05:59:53 UTC
Created attachment 1688317 [details]
File: environ

Comment 3 Frank Büttner 2020-05-14 05:59:54 UTC
Created attachment 1688318 [details]
File: machineid


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