Bug 2175891 - [abrt] libreport-plugin-bugzilla: create_new_file_at(): dump_dir.py:1464:create_new_file_at:FileNotFoundError: [Errno 2] No such file or directory: 'reported_to'
Summary: [abrt] libreport-plugin-bugzilla: create_new_file_at(): dump_dir.py:1464:crea...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: libreport
Version: rawhide
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: abrt
QA Contact: Fedora Extras Quality Assurance
URL: https://retrace.fedoraproject.org/faf...
Whiteboard: abrt_hash:0c7b1be8d1109895ed3c5bbdf2e...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-03-06 17:23 UTC by Mikhail
Modified: 2023-03-26 00:20 UTC (History)
4 users (show)

Fixed In Version: libreport-2.17.9-1.fc38
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2023-03-26 00:20:37 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: os_info (770 bytes, text/plain)
2023-03-06 17:23 UTC, Mikhail
no flags Details
File: environ (1.67 KB, text/plain)
2023-03-06 17:23 UTC, Mikhail
no flags Details
File: mountinfo (3.71 KB, text/plain)
2023-03-06 17:23 UTC, Mikhail
no flags Details
File: open_fds (467 bytes, text/plain)
2023-03-06 17:23 UTC, Mikhail
no flags Details
File: namespaces (171 bytes, text/plain)
2023-03-06 17:23 UTC, Mikhail
no flags Details
File: backtrace (1.36 KB, text/plain)
2023-03-06 17:23 UTC, Mikhail
no flags Details
File: cpuinfo (2.96 KB, text/plain)
2023-03-06 17:23 UTC, Mikhail
no flags Details

Description Mikhail 2023-03-06 17:23:21 UTC
Description of problem:
Crash happenes when I try report other problem

Version-Release number of selected component:
libreport-plugin-bugzilla-2.17.8-1.fc39

Additional info:
reporter:       libreport-2.17.8
kernel:         6.3.0-0.rc0.20230303git2eb29d59ddf0.13.fc39.x86_64+debug
cmdline:        /usr/bin/python3 /usr/bin/reporter-bugzilla -b -A /etc/libreport/plugins/bugzilla_formatdup_analyzer_libreport.conf -F /etc/libreport/plugins/bugzilla_format_analyzer_libreport.conf
cgroup:         0::/user.slice/user-1000.slice/user/app.slice/dbus-:1.2-org.fedoraproject.sealert
uid:            1000
reason:         dump_dir.py:1464:create_new_file_at:FileNotFoundError: [Errno 2] No such file or directory: 'reported_to'
executable:     /usr/bin/reporter-bugzilla
type:           Python3
package:        libreport-plugin-bugzilla-2.17.8-1.fc39
runlevel:       N 5
exception_type: FileNotFoundError
crash_function: create_new_file_at
interpreter:    python3-3.11.2-1.fc39.x86_64
comment:        Crash happenes when I try report other problem

Truncated backtrace:
dump_dir.py:1464:create_new_file_at:FileNotFoundError: [Errno 2] No such file or directory: 'reported_to'

Traceback (most recent call last):
  File "/usr/bin/reporter-bugzilla", line 813, in <module>
    log_out(bug_info, rhbz, dump_dir_name)
  File "/usr/bin/reporter-bugzilla", line 288, in log_out
    dump_dir_obj.libreport_add_reported_to_entry(dd, result)
  File "/usr/lib64/python3.11/site-packages/reportclient/internal/dump_dir.py", line 1666, in libreport_add_reported_to_entry
    self.dd_save_text(dd, const.FILENAME_REPORTED_TO, reported_to)
  File "/usr/lib64/python3.11/site-packages/reportclient/internal/dump_dir.py", line 1536, in dd_save_text
    self.save_binary_file_at(dd['dd_fd'], name, bytes(data, 'utf-8'),
  File "/usr/lib64/python3.11/site-packages/reportclient/internal/dump_dir.py", line 1494, in save_binary_file_at
    fd = self.create_new_file_at(dir_fd, os.O_WRONLY, name, uid, gid, mode)
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.11/site-packages/reportclient/internal/dump_dir.py", line 1464, in create_new_file_at
    os.unlink(name, dir_fd=dir_fd)
FileNotFoundError: [Errno 2] No such file or directory: 'reported_to'

Local variables in innermost frame:
self: <reportclient.internal.dump_dir.DumpDir object at 0x7ffb356ddc90>
dir_fd: 3
omode: 1
name: 'reported_to'
uid: 1000
gid: 1000
mode: 16800

Comment 1 Mikhail 2023-03-06 17:23:24 UTC
Created attachment 1948450 [details]
File: os_info

Comment 2 Mikhail 2023-03-06 17:23:26 UTC
Created attachment 1948451 [details]
File: environ

Comment 3 Mikhail 2023-03-06 17:23:27 UTC
Created attachment 1948452 [details]
File: mountinfo

Comment 4 Mikhail 2023-03-06 17:23:28 UTC
Created attachment 1948453 [details]
File: open_fds

Comment 5 Mikhail 2023-03-06 17:23:29 UTC
Created attachment 1948454 [details]
File: namespaces

Comment 6 Mikhail 2023-03-06 17:23:31 UTC
Created attachment 1948455 [details]
File: backtrace

Comment 7 Mikhail 2023-03-06 17:23:32 UTC
Created attachment 1948456 [details]
File: cpuinfo

Comment 8 Mikhail 2023-03-06 17:33:37 UTC
--- Running analyze_BodhiUpdates ---
Looking for similar problems in bugzilla
abrt-action-find-bodhi-update [WARNING] Duplicate Bugzilla bug '#2175889' was found
abrt-action-find-bodhi-update [ERROR] abrt-bodhi does not support product version 'Rawhide'

--- Running report_Bugzilla ---
Checking for duplicates
error: rpmdbNextIterator: skipping h#    1776 
Header V4 DSA/SHA1 Signature, key ID 7f8840ce: BAD
Header SHA256 digest: OK
Header SHA1 digest: OK
error: rpmdbNextIterator: skipping h#    3994 
Header V4 RSA/SHA256 Signature, key ID 222d23d0: BAD
Header SHA1 digest: OK
error: rpmdbNextIterator: skipping h#    8762 
Header V4 RSA/SHA256 Signature, key ID 222d23d0: BAD
Header SHA1 digest: OK
error: rpmdbNextIterator: skipping h#   11202 
Header V4 DSA/SHA1 Signature, key ID 7fac5991: BAD
Header SHA256 digest: OK
Header SHA1 digest: OK
Creating a new bug
Adding attachments to bug 2175895
Status: NEW https://bugzilla.redhat.com/show_bug.cgi?id=2175895
Traceback (most recent call last):
  File "/usr/bin/reporter-bugzilla", line 813, in <module>
    log_out(bug_info, rhbz, dump_dir_name)
  File "/usr/bin/reporter-bugzilla", line 288, in log_out
    dump_dir_obj.libreport_add_reported_to_entry(dd, result)
  File "/usr/lib64/python3.11/site-packages/reportclient/internal/dump_dir.py", line 1666, in libreport_add_reported_to_entry
    self.dd_save_text(dd, const.FILENAME_REPORTED_TO, reported_to)
  File "/usr/lib64/python3.11/site-packages/reportclient/internal/dump_dir.py", line 1536, in dd_save_text
    self.save_binary_file_at(dd['dd_fd'], name, bytes(data, 'utf-8'),
  File "/usr/lib64/python3.11/site-packages/reportclient/internal/dump_dir.py", line 1494, in save_binary_file_at
    fd = self.create_new_file_at(dir_fd, os.O_WRONLY, name, uid, gid, mode)
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.11/site-packages/reportclient/internal/dump_dir.py", line 1464, in create_new_file_at
    os.unlink(name, dir_fd=dir_fd)
FileNotFoundError: [Errno 2] No such file or directory: 'reported_to'
('report_Bugzilla' exited with 1)

Comment 9 Mikhail 2023-03-08 11:23:18 UTC
--- Running analyze_BodhiUpdates ---
Looking for similar problems in bugzilla
abrt-action-find-bodhi-update [WARNING] Duplicate Bugzilla bug '#1896648' was found
abrt-action-find-bodhi-update [ERROR] abrt-bodhi does not support product version 'Rawhide'

--- Running report_Bugzilla ---
Checking for duplicates
Creating a new bug
Adding attachments to bug 2176428
Status: NEW https://bugzilla.redhat.com/show_bug.cgi?id=2176428
Traceback (most recent call last):
  File "/usr/bin/reporter-bugzilla", line 813, in <module>
    log_out(bug_info, rhbz, dump_dir_name)
  File "/usr/bin/reporter-bugzilla", line 288, in log_out
    dump_dir_obj.libreport_add_reported_to_entry(dd, result)
  File "/usr/lib64/python3.11/site-packages/reportclient/internal/dump_dir.py", line 1666, in libreport_add_reported_to_entry
    self.dd_save_text(dd, const.FILENAME_REPORTED_TO, reported_to)
  File "/usr/lib64/python3.11/site-packages/reportclient/internal/dump_dir.py", line 1536, in dd_save_text
    self.save_binary_file_at(dd['dd_fd'], name, bytes(data, 'utf-8'),
  File "/usr/lib64/python3.11/site-packages/reportclient/internal/dump_dir.py", line 1494, in save_binary_file_at
    fd = self.create_new_file_at(dir_fd, os.O_WRONLY, name, uid, gid, mode)
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.11/site-packages/reportclient/internal/dump_dir.py", line 1464, in create_new_file_at
    os.unlink(name, dir_fd=dir_fd)
FileNotFoundError: [Errno 2] No such file or directory: 'reported_to'
('report_Bugzilla' exited with 1)

Comment 10 Mikhail 2023-03-10 06:16:19 UTC
This happens when I tries report selinux problem.


--- Running analyze_BodhiUpdates ---
Looking for similar problems in bugzilla

--- Running report_Bugzilla ---
Checking for duplicates
Creating a new bug
Adding attachments to bug 2177130
Status: NEW https://bugzilla.redhat.com/show_bug.cgi?id=2177130
Traceback (most recent call last):
  File "/usr/bin/reporter-bugzilla", line 813, in <module>
    log_out(bug_info, rhbz, dump_dir_name)
  File "/usr/bin/reporter-bugzilla", line 288, in log_out
    dump_dir_obj.libreport_add_reported_to_entry(dd, result)
  File "/usr/lib64/python3.11/site-packages/reportclient/internal/dump_dir.py", line 1666, in libreport_add_reported_to_entry
    self.dd_save_text(dd, const.FILENAME_REPORTED_TO, reported_to)
  File "/usr/lib64/python3.11/site-packages/reportclient/internal/dump_dir.py", line 1536, in dd_save_text
    self.save_binary_file_at(dd['dd_fd'], name, bytes(data, 'utf-8'),
  File "/usr/lib64/python3.11/site-packages/reportclient/internal/dump_dir.py", line 1494, in save_binary_file_at
    fd = self.create_new_file_at(dir_fd, os.O_WRONLY, name, uid, gid, mode)
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.11/site-packages/reportclient/internal/dump_dir.py", line 1464, in create_new_file_at
    os.unlink(name, dir_fd=dir_fd)
FileNotFoundError: [Errno 2] No such file or directory: 'reported_to'
('report_Bugzilla' exited with 1)


reporter:       libreport-2.17.8
kernel:         6.3.0-0.rc1.20230309git6a98c9cae232.18.fc39.x86_64+debug
cmdline:        /usr/bin/python3 /usr/bin/reporter-bugzilla -b -A /etc/libreport/plugins/bugzilla_formatdup_analyzer_libreport.conf -F /etc/libreport/plugins/bugzilla_format_analyzer_libreport.conf
cgroup:         0::/user.slice/user-1000.slice/user/app.slice/dbus-:1.2-org.fedoraproject.sealert
uid:            1000
reason:         dump_dir.py:1464:create_new_file_at:FileNotFoundError: [Errno 2] No such file or directory: 'reported_to'
executable:     /usr/bin/reporter-bugzilla
type:           Python3
package:        libreport-plugin-bugzilla-2.17.8-1.fc39
runlevel:       N 5
exception_type: FileNotFoundError
crash_function: create_new_file_at
interpreter:    python3-3.11.2-1.fc39.x86_64

Comment 11 Fedora Update System 2023-03-24 09:59:40 UTC
FEDORA-2023-a9d3b9efc8 has been submitted as an update to Fedora 38. https://bodhi.fedoraproject.org/updates/FEDORA-2023-a9d3b9efc8

Comment 12 Fedora Update System 2023-03-25 02:44:38 UTC
FEDORA-2023-a9d3b9efc8 has been pushed to the Fedora 38 testing repository.

You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2023-a9d3b9efc8

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 13 Fedora Update System 2023-03-26 00:20:37 UTC
FEDORA-2023-a9d3b9efc8 has been pushed to the Fedora 38 stable repository.
If problem still persists, please make note of it in this bug report.


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