Bug 1460522 - [abrt] mock: rmtree(): util.py:160:rmtree:OSError: [Errno 16] Device or resource busy: '/var/lib/mock/fedora-rawhide-x86_64/root/var/cache/dnf'
Summary: [abrt] mock: rmtree(): util.py:160:rmtree:OSError: [Errno 16] Device or resou...
Keywords:
Status: CLOSED EOL
Alias: None
Product: Fedora
Classification: Fedora
Component: mock
Version: 26
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:ce3a83a2b18c88a64ac5b5c01d3...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-06-11 20:13 UTC by Juan Orti
Modified: 2018-05-29 11:37 UTC (History)
8 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-05-29 11:37:41 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: backtrace (5.08 KB, text/plain)
2017-06-11 20:13 UTC, Juan Orti
no flags Details
File: cgroup (355 bytes, text/plain)
2017-06-11 20:13 UTC, Juan Orti
no flags Details
File: cpuinfo (1.20 KB, text/plain)
2017-06-11 20:13 UTC, Juan Orti
no flags Details
File: environ (210 bytes, text/plain)
2017-06-11 20:13 UTC, Juan Orti
no flags Details
File: mountinfo (5.50 KB, text/plain)
2017-06-11 20:13 UTC, Juan Orti
no flags Details
File: namespaces (94 bytes, text/plain)
2017-06-11 20:14 UTC, Juan Orti
no flags Details
File: open_fds (633 bytes, text/plain)
2017-06-11 20:14 UTC, Juan Orti
no flags Details

Description Juan Orti 2017-06-11 20:13:42 UTC
Version-Release number of selected component:
mock-1.4.1-1.fc26

Additional info:
reporter:       libreport-2.9.1
cmdline:        /usr/bin/python3 -tt /usr/libexec/mock/mock -r fedora-rawhide-x86_64 --resultdir /home/juan/Fedora/heimdall/results_heimdall/1.4.2/1.fc27 --rebuild /home/juan/Fedora/heimdall/heimdall-1.4.2-1.fc27.src.rpm
crash_function: rmtree
exception_type: OSError
executable:     /usr/libexec/mock/mock
kernel:         4.11.3-300.fc26.x86_64
runlevel:       N 5
type:           Python3
uid:            0

Truncated backtrace:
#1 rmtree in /usr/lib/python3.6/site-packages/mockbuild/util.py:160
#2 trace in /usr/lib/python3.6/site-packages/mockbuild/trace_decorator.py:96
#3 rmtree in /usr/lib/python3.6/site-packages/mockbuild/util.py:151
#4 trace in /usr/lib/python3.6/site-packages/mockbuild/trace_decorator.py:96
#5 rmtree in /usr/lib/python3.6/site-packages/mockbuild/util.py:151
#6 trace in /usr/lib/python3.6/site-packages/mockbuild/trace_decorator.py:96
#7 rmtree in /usr/lib/python3.6/site-packages/mockbuild/util.py:151
#8 trace in /usr/lib/python3.6/site-packages/mockbuild/trace_decorator.py:96
#9 rmtree in /usr/lib/python3.6/site-packages/mockbuild/util.py:151
#10 trace in /usr/lib/python3.6/site-packages/mockbuild/trace_decorator.py:96

Comment 1 Juan Orti 2017-06-11 20:13:51 UTC
Created attachment 1286861 [details]
File: backtrace

Comment 2 Juan Orti 2017-06-11 20:13:53 UTC
Created attachment 1286862 [details]
File: cgroup

Comment 3 Juan Orti 2017-06-11 20:13:55 UTC
Created attachment 1286863 [details]
File: cpuinfo

Comment 4 Juan Orti 2017-06-11 20:13:56 UTC
Created attachment 1286864 [details]
File: environ

Comment 5 Juan Orti 2017-06-11 20:13:58 UTC
Created attachment 1286865 [details]
File: mountinfo

Comment 6 Juan Orti 2017-06-11 20:14:00 UTC
Created attachment 1286866 [details]
File: namespaces

Comment 7 Juan Orti 2017-06-11 20:14:02 UTC
Created attachment 1286867 [details]
File: open_fds

Comment 8 Martin 2017-07-14 14:14:56 UTC
plasma-discover-5.10.2-1.fc26.x86_64.rpm  not crashingon on exit,but
when install some apps broke appstream cache,only when russian-fedora-repo-nonfree/free enabled(appstreamcli refresh fix this).

Comment 9 Martin 2017-07-14 14:16:47 UTC
sorry other bug

Comment 10 Richard Kellner 2017-09-15 19:50:22 UTC
It seems I have just hit this bug as well, in Fedora 26. 

I have tried to build an rpm in mock from source rpm, and it has crashed. Unfortunately, I haven't seen the exact mock error, but I have found in journactl:

Sep 15 21:34:36 xps python3[7224]: detected unhandled Python exception in '/usr/libexec/mock/mock'

When I try to re-run the build again it ends up with an error:

INFO: mock.py version 1.4.3 starting (python version = 3.6.2)...
Start: init plugins
INFO: selinux disabled
Finish: init plugins
Start: run
INFO: Start(SRPMS/python-ludolph-weather-1.0-1.fc26.src.rpm)  Config(fedora-26-x86_64)
Start: clean chroot
ERROR: Exception(SRPMS/python-ludolph-weather-1.0-1.fc26.src.rpm) Config(fedora-26-x86_64) 0 minutes 2 seconds
INFO: Results and/or logs in: /var/lib/mock/fedora-26-x86_64/result
Traceback (most recent call last):
  File "/usr/libexec/mock/mock", line 933, in <module>
    main()
  File "/usr/lib/python3.6/site-packages/mockbuild/trace_decorator.py", line 96, in trace
    result = func(*args, **kw)
  File "/usr/libexec/mock/mock", line 736, in main
    run_command(options, args, config_opts, commands, buildroot, state)
  File "/usr/lib/python3.6/site-packages/mockbuild/trace_decorator.py", line 96, in trace
    result = func(*args, **kw)
  File "/usr/libexec/mock/mock", line 820, in run_command
    do_rebuild(config_opts, commands, buildroot, args)
  File "/usr/lib/python3.6/site-packages/mockbuild/trace_decorator.py", line 96, in trace
    result = func(*args, **kw)
  File "/usr/libexec/mock/mock", line 527, in do_rebuild
    post=post_build, clean=clean)
  File "/usr/lib/python3.6/site-packages/mockbuild/trace_decorator.py", line 96, in trace
    result = func(*args, **kw)
  File "/usr/libexec/mock/mock", line 470, in rebuild_generic
    commands.clean()
  File "/usr/lib/python3.6/site-packages/mockbuild/trace_decorator.py", line 96, in trace
    result = func(*args, **kw)
  File "/usr/lib/python3.6/site-packages/mockbuild/backend.py", line 78, in clean
    self.buildroot.delete()
  File "/usr/lib/python3.6/site-packages/mockbuild/trace_decorator.py", line 96, in trace
    result = func(*args, **kw)
  File "/usr/lib/python3.6/site-packages/mockbuild/buildroot.py", line 609, in delete
    util.rmtree(self.basedir, selinux=self.selinux)
  File "/usr/lib/python3.6/site-packages/mockbuild/trace_decorator.py", line 96, in trace
    result = func(*args, **kw)
  File "/usr/lib/python3.6/site-packages/mockbuild/util.py", line 151, in rmtree
    rmtree(fullname, selinux=selinux, exclude=exclude)
  File "/usr/lib/python3.6/site-packages/mockbuild/trace_decorator.py", line 96, in trace
    result = func(*args, **kw)
  File "/usr/lib/python3.6/site-packages/mockbuild/util.py", line 151, in rmtree
    rmtree(fullname, selinux=selinux, exclude=exclude)
  File "/usr/lib/python3.6/site-packages/mockbuild/trace_decorator.py", line 96, in trace
    result = func(*args, **kw)
  File "/usr/lib/python3.6/site-packages/mockbuild/util.py", line 151, in rmtree
    rmtree(fullname, selinux=selinux, exclude=exclude)
  File "/usr/lib/python3.6/site-packages/mockbuild/trace_decorator.py", line 96, in trace
    result = func(*args, **kw)
  File "/usr/lib/python3.6/site-packages/mockbuild/util.py", line 151, in rmtree
    rmtree(fullname, selinux=selinux, exclude=exclude)
  File "/usr/lib/python3.6/site-packages/mockbuild/trace_decorator.py", line 96, in trace
    result = func(*args, **kw)
  File "/usr/lib/python3.6/site-packages/mockbuild/util.py", line 160, in rmtree
    os.rmdir(path)
OSError: [Errno 16] Device or resource busy: '/var/lib/mock/fedora-26-x86_64/root/var/cache/dnf'

Comment 11 Fedora End Of Life 2018-05-03 08:16:02 UTC
This message is a reminder that Fedora 26 is nearing its end of life.
Approximately 4 (four) weeks from now Fedora will stop maintaining
and issuing updates for Fedora 26. It is Fedora's policy to close all
bug reports from releases that are no longer maintained. At that time
this bug will be closed as EOL if it remains open with a Fedora  'version'
of '26'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version'
to a later Fedora version.

Thank you for reporting this issue and we are sorry that we were not
able to fix it before Fedora 26 is end of life. If you would still like
to see this bug fixed and are able to reproduce it against a later version
of Fedora, you are encouraged  change the 'version' to a later Fedora
version prior this bug is closed as described in the policy above.

Although we aim to fix as many bugs as possible during every release's
lifetime, sometimes those efforts are overtaken by events. Often a
more recent Fedora release includes newer upstream software that fixes
bugs or makes them obsolete.

Comment 12 Fedora End Of Life 2018-05-29 11:37:41 UTC
Fedora 26 changed to end-of-life (EOL) status on 2018-05-29. Fedora 26
is no longer maintained, which means that it will not receive any
further security or bug fix updates. As a result we are closing this bug.

If you can reproduce this bug against a currently maintained version of
Fedora please feel free to reopen this bug against that version. If you
are unable to reopen this bug, please file a new report against the
current release. If you experience problems, please add a comment to this
bug.

Thank you for reporting this bug and we are sorry it could not be fixed.


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