Opened 5 years ago
Closed 5 years ago
#19004 closed defect (duplicate)
Shared folders: rmdir on open directory fails with ETXTBSY
Reported by: | Anders Kaseorg | Owned by: | |
---|---|---|---|
Component: | shared folders | Version: | VirtualBox 6.0.12 |
Keywords: | Cc: | ||
Guest type: | Linux | Host type: | Windows |
Description
In a shared folder mounted from a Windows 10 host (1903 build 18362.295) in an Ubuntu guest (I've tried 18.04 or 19.04) with Guest Additions 6.0.12 installed from the Guest Additions CD, the following unexpectedly fails:
root@osboxes:/mnt/test# mkdir foo root@osboxes:/mnt/test# python3 -c 'import shutil; shutil.rmtree("foo")' Traceback (most recent call last): File "<string>", line 1, in <module> File "/usr/lib/python3.7/shutil.py", line 495, in rmtree onerror(os.rmdir, path, sys.exec_info()) File "/usr/lib/python3.7/shutil.py", line 493, in rmtree os.rmdir(path) OSError: [Errno 26] Text file busy: 'foo'
strace
reveals that Python has kept an open fd for the directory being removed.
Alternate reproduction recipe:
root@osboxes:/mnt/test# mkdir foo root@osboxes:/mnt/test# perl -e 'opendir D, "foo"; rmdir "foo" or die $!' Text file busy at -e line 1.
Attachments (2)
Change History (9)
by , 5 years ago
Attachment: | ubuntu-test-2019-10-11-21-38-28.log added |
---|
comment:1 by , 5 years ago
Similar to ticket #19003, can you update the Guest Additions and then report back?
comment:2 by , 5 years ago
Similar to ticket #19003, if you look at the log lines for the most recent boot, you’ll see that I did update the Guest Additions. The problem occurs with Guest Additions 6.0.12.
https://www.virtualbox.org/attachment/ticket/19004/ubuntu-test-2019-10-11-21-38-28.log#L1555
00:12:12.843089 VMMDev: Guest Additions information report: Version 6.0.12 r133076 '6.0.12'
comment:3 by , 5 years ago
OK, thanks for confirming that. Similar to #19003, I can't reproduce this on a Debian 10 guest or a Centos 7.7-1908 guest with the latest VirtualBox bits so could you try installing one of Testbuilds and the Guest Additions from there to see if this is still occurs for you?
comment:4 by , 5 years ago
I can still reproduce with Guest Additions 6.0.13 r133740 on Ubuntu 19.04 on VirtualBox 6.0.13 r133800 on Windows 10 1903 build 18362.356.
by , 5 years ago
Attachment: | ubuntu-test-2019-10-14-14-14-05.log added |
---|
VirtualBox log from test build
comment:5 by , 5 years ago
For completeness, I can also reproduce with a Debian 10 guest or a CentOS 7.7-1908 guest.
comment:6 by , 5 years ago
I am running into this same issue with python "rmtree". It is causing headaches for our developers that use Windows 10 hosts with an Ubuntu 18.04 or 20.04 guest on VirtualBox version 6.0+. This renders the shared folder unusable for us, so we are contemplating a switch to docker or VMware. I hope this can get looked at soon! Thanks.
VirtualBox log