Bug 2176689

Summary: [abrt] mock: rmtree(): file_util.py:68:rmtree:OSError: [Errno 39] Directory not empty: '/var/lib/mock/fedora-rawhide-x86_64/root/usr/lib64/python3.11'
Product: [Fedora] Fedora Reporter: Mikhail <mikhail.v.gavrilov>
Component: mockAssignee: Copr Team <copr-team>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: copr-team, jkeating, msuchy, philip.wyett, praiskup, williams
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
URL: https://retrace.fedoraproject.org/faf/reports/bthash/658b1871409843a5e288f53d81e9bced21cf91d
Whiteboard: abrt_hash:a332e016d945eaf307f95f0a03519b79116f87c5;VARIANT_ID=workstation;
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-08-10 13:05:17 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: environ
none
File: mountinfo
none
File: open_fds
none
File: namespaces
none
File: backtrace
none
File: cpuinfo none

Description Mikhail 2023-03-08 23:38:32 UTC
Description of problem:
It happened after restart mockbuild process. I should terminated mockbuild for fix mistake in .spec file.

Version-Release number of selected component:
mock-3.5-2.fc38

Additional info:
reporter:       libreport-2.17.8
kernel:         6.3.0-0.rc1.20230308git63355b9884b3.17.fc39.x86_64+debug
cmdline:        /usr/bin/python3 -tt /usr/libexec/mock/mock -r fedora-rawhide-x86_64 --resultdir /home/mikhail/packaging-work/kernel/results_kernel/6.3.0/0.rc1.20230308git63355b9884b3.18.fc39 --rebuild /home/mikhail/packaging-work/kernel/kernel-6.3.0-0.rc1.20230308git63355b9884b3.18.fc39.src.rpm
cgroup:         0::/user.slice/user-1000.slice/user/app.slice/app-org.gnome.Terminal.slice/vte-spawn-40cc41c6-e34a-45ec-a00a-ca202346a6bc.scope
uid:            0
reason:         file_util.py:68:rmtree:OSError: [Errno 39] Directory not empty: '/var/lib/mock/fedora-rawhide-x86_64/root/usr/lib64/python3.11'
executable:     /usr/libexec/mock/mock
type:           Python3
package:        mock-3.5-2.fc38
runlevel:       N 5
exception_type: OSError
crash_function: rmtree
interpreter:    python3-3.11.2-1.fc39.x86_64
comment:        It happened after restart mockbuild process. I should terminated mockbuild for fix mistake in .spec file.

Truncated backtrace:
#1 [/usr/lib/python3.11/site-packages/mockbuild/file_util.py:68] rmtree
#2 [/usr/lib/python3.11/site-packages/mockbuild/trace_decorator.py:93] trace
#3 [/usr/lib/python3.11/site-packages/mockbuild/file_util.py:59] rmtree
#4 [/usr/lib/python3.11/site-packages/mockbuild/trace_decorator.py:93] trace
#5 [/usr/lib/python3.11/site-packages/mockbuild/file_util.py:59] rmtree
#6 [/usr/lib/python3.11/site-packages/mockbuild/trace_decorator.py:93] trace
#7 [/usr/lib/python3.11/site-packages/mockbuild/file_util.py:59] rmtree
#8 [/usr/lib/python3.11/site-packages/mockbuild/trace_decorator.py:93] trace
#9 [/usr/lib/python3.11/site-packages/mockbuild/file_util.py:59] rmtree
#10 [/usr/lib/python3.11/site-packages/mockbuild/trace_decorator.py:93] trace
#11 [/usr/lib/python3.11/site-packages/mockbuild/buildroot.py:884] delete
#12 [/usr/lib/python3.11/site-packages/mockbuild/trace_decorator.py:93] trace
#13 [/usr/lib/python3.11/site-packages/mockbuild/backend.py:97] clean
#14 [/usr/lib/python3.11/site-packages/mockbuild/trace_decorator.py:93] trace
#15 [/usr/lib/python3.11/site-packages/mockbuild/rebuild.py:23] rebuild_generic
#16 [/usr/lib/python3.11/site-packages/mockbuild/trace_decorator.py:93] trace
#17 [/usr/lib/python3.11/site-packages/mockbuild/rebuild.py:85] do_rebuild
#18 [/usr/lib/python3.11/site-packages/mockbuild/trace_decorator.py:93] trace
#19 [/usr/libexec/mock/mock:961] run_command
#20 [/usr/lib/python3.11/site-packages/mockbuild/trace_decorator.py:93] trace
#21 [/usr/libexec/mock/mock:847] main
#22 [/usr/lib/python3.11/site-packages/mockbuild/trace_decorator.py:93] trace
#23 [/usr/libexec/mock/mock:1087] <module>

Comment 1 Mikhail 2023-03-08 23:38:36 UTC
Created attachment 1949168 [details]
File: os_info

Comment 2 Mikhail 2023-03-08 23:38:38 UTC
Created attachment 1949169 [details]
File: environ

Comment 3 Mikhail 2023-03-08 23:38:40 UTC
Created attachment 1949170 [details]
File: mountinfo

Comment 4 Mikhail 2023-03-08 23:38:41 UTC
Created attachment 1949171 [details]
File: open_fds

Comment 5 Mikhail 2023-03-08 23:38:43 UTC
Created attachment 1949172 [details]
File: namespaces

Comment 6 Mikhail 2023-03-08 23:38:45 UTC
Created attachment 1949173 [details]
File: backtrace

Comment 7 Mikhail 2023-03-08 23:38:46 UTC
Created attachment 1949174 [details]
File: cpuinfo

Comment 8 Pavel Raiskup 2023-08-10 13:05:17 UTC
Thank you for the report, this is being resolved in bug #2186613.

*** This bug has been marked as a duplicate of bug 2186613 ***