Bug 2177680 - [abrt] mock: rmtree(): file_util.py:67:rmtree:OSError: [Errno 16] Device or resource busy: '/var/lib/mock/fedora-37-x86_64/root/proc/filesystems'
Summary: [abrt] mock: rmtree(): file_util.py:67:rmtree:OSError: [Errno 16] Device or r...
Keywords:
Status: CLOSED DUPLICATE of bug 2186613
Alias: None
Product: Fedora
Classification: Fedora
Component: mock
Version: 37
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Copr Team
QA Contact: Fedora Extras Quality Assurance
URL: https://retrace.fedoraproject.org/faf...
Whiteboard: abrt_hash:04a9cf75ac8832db465b78e7d9b...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-03-13 11:21 UTC by Luca Giuzzi
Modified: 2023-08-10 13:05 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2023-08-10 13:05:42 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: backtrace (2.62 KB, text/plain)
2023-03-13 11:21 UTC, Luca Giuzzi
no flags Details
File: cpuinfo (2.55 KB, text/plain)
2023-03-13 11:21 UTC, Luca Giuzzi
no flags Details
File: environ (203 bytes, text/plain)
2023-03-13 11:21 UTC, Luca Giuzzi
no flags Details
File: mountinfo (3.43 KB, text/plain)
2023-03-13 11:21 UTC, Luca Giuzzi
no flags Details
File: namespaces (164 bytes, text/plain)
2023-03-13 11:21 UTC, Luca Giuzzi
no flags Details
File: open_fds (654 bytes, text/plain)
2023-03-13 11:21 UTC, Luca Giuzzi
no flags Details

Description Luca Giuzzi 2023-03-13 11:21:10 UTC
Version-Release number of selected component:
mock-3.5-1.fc37

Additional info:
reporter:       libreport-2.17.4
cgroup:         0::/user.slice/user-1000.slice/user/app.slice/app-org.gnome.Terminal.slice/vte-spawn-e883274f-854d-48a3-9bca-2f95f96d7568.scope
cmdline:        /usr/bin/python3 -tt /usr/libexec/mock/mock -r ././fedora-37-new.cfg --init
crash_function: rmtree
exception_type: OSError
executable:     /usr/libexec/mock/mock
interpreter:    python3-3.11.0-1.fc37.x86_64
kernel:         6.0.12-300.fc37.x86_64
runlevel:       N 5
type:           Python3
uid:            0

Truncated backtrace:
file_util.py:67:rmtree:OSError: [Errno 16] Device or resource busy: '/var/lib/mock/fedora-37-x86_64/root/proc/filesystems'

Traceback (most recent call last):
  File "/usr/libexec/mock/mock", line 1087, in <module>
    exitStatus = main()
                 ^^^^^^
  File "/usr/lib/python3.11/site-packages/mockbuild/trace_decorator.py", line 93, in trace
    result = func(*args, **kw)
             ^^^^^^^^^^^^^^^^^
  File "/usr/libexec/mock/mock", line 847, in main
    result = run_command(options, args, config_opts, commands, buildroot, state)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/mockbuild/trace_decorator.py", line 93, in trace
    result = func(*args, **kw)
             ^^^^^^^^^^^^^^^^^
  File "/usr/libexec/mock/mock", line 874, in run_command
    commands.clean()
  File "/usr/lib/python3.11/site-packages/mockbuild/trace_decorator.py", line 93, in trace
    result = func(*args, **kw)
             ^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/mockbuild/backend.py", line 97, in clean
    self.buildroot.delete()
  File "/usr/lib/python3.11/site-packages/mockbuild/trace_decorator.py", line 93, in trace
    result = func(*args, **kw)
             ^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/mockbuild/buildroot.py", line 884, in delete
    file_util.rmtree(self.basedir, selinux=self.selinux)
  File "/usr/lib/python3.11/site-packages/mockbuild/trace_decorator.py", line 93, in trace
    result = func(*args, **kw)
             ^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/mockbuild/file_util.py", line 59, in rmtree
    rmtree(fullname, selinux=selinux, exclude=exclude)
  File "/usr/lib/python3.11/site-packages/mockbuild/trace_decorator.py", line 93, in trace
    result = func(*args, **kw)
             ^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/mockbuild/file_util.py", line 59, in rmtree
    rmtree(fullname, selinux=selinux, exclude=exclude)
  File "/usr/lib/python3.11/site-packages/mockbuild/trace_decorator.py", line 93, in trace
    result = func(*args, **kw)
             ^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/mockbuild/file_util.py", line 67, in rmtree
    os.remove(fullname)
OSError: [Errno 16] Device or resource busy: '/var/lib/mock/fedora-37-x86_64/root/proc/filesystems'

Local variables in innermost frame:
path: '/var/lib/mock/fedora-37-x86_64/root/proc'
selinux: False
exclude: ()
try_again: False
retries: 2
failed_to_handle: False
failed_filename: None
names: ['filesystems']
name: 'filesystems'
fullname: '/var/lib/mock/fedora-37-x86_64/root/proc/filesystems'
mode: 33060

Comment 1 Luca Giuzzi 2023-03-13 11:21:14 UTC
Created attachment 1950199 [details]
File: backtrace

Comment 2 Luca Giuzzi 2023-03-13 11:21:15 UTC
Created attachment 1950200 [details]
File: cpuinfo

Comment 3 Luca Giuzzi 2023-03-13 11:21:16 UTC
Created attachment 1950201 [details]
File: environ

Comment 4 Luca Giuzzi 2023-03-13 11:21:17 UTC
Created attachment 1950202 [details]
File: mountinfo

Comment 5 Luca Giuzzi 2023-03-13 11:21:18 UTC
Created attachment 1950203 [details]
File: namespaces

Comment 6 Luca Giuzzi 2023-03-13 11:21:19 UTC
Created attachment 1950204 [details]
File: open_fds

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

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


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