Bug 2180609

Summary: [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'
Product: [Fedora] Fedora Reporter: James <james>
Component: libreportAssignee: abrt <abrt-devel-list>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 38CC: abrt-devel-list, abrt-sig, mgrabovs, michal.toman
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
URL: https://retrace.fedoraproject.org/faf/reports/bthash/e0a3f406cd1c63ac2fe722ac7357798d2cf8536
Whiteboard: abrt_hash:0c7b1be8d1109895ed3c5bbdf2e169f5d34c1957;VARIANT_ID=workstation;
Fixed In Version: libreport-2.17.9-1.fc38 Doc Type: ---
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-03-26 00:20:46 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:
Description Flags
File: os_info
none
File: open_fds
none
File: namespaces
none
File: backtrace
none
File: cpuinfo none

Description James 2023-03-21 21:15:15 UTC
Description of problem:
Attempted to file a bug report through ABRT.

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

Additional info:
reporter:       libreport-2.17.8
kernel:         6.2.7-300.fc38.x86_64
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-1367600004.slice/user/app.slice/app-dbus\x2d:1.2\x2dorg.fedoraproject.sealert.slice/dbus-:1.2-org.fedoraproject.sealert
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.fc38
runlevel:       N 5
exception_type: FileNotFoundError
crash_function: create_new_file_at
interpreter:    python3-3.11.2-1.fc38.x86_64
comment:        Attempted to file a bug report through ABRT.

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 0x7fa4e2e9f350>
dir_fd: 3
omode: 1
name: 'reported_to'
uid: 1367600004
gid: 1367600004
mode: 16800

Potential duplicate: bug {crossver_id}

Comment 1 James 2023-03-21 21:15:18 UTC
Created attachment 1952530 [details]
File: os_info

Comment 2 James 2023-03-21 21:15:20 UTC
Created attachment 1952531 [details]
File: open_fds

Comment 3 James 2023-03-21 21:15:21 UTC
Created attachment 1952532 [details]
File: namespaces

Comment 4 James 2023-03-21 21:15:22 UTC
Created attachment 1952533 [details]
File: backtrace

Comment 5 James 2023-03-21 21:15:24 UTC
Created attachment 1952534 [details]
File: cpuinfo

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

Comment 7 Fedora Update System 2023-03-25 02:44:47 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 8 Fedora Update System 2023-03-26 00:20:46 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.