-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[Filesystem] "Text file too busy" when trying to remove directories in a Vagrant shared folder #47804
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Hi, IMO, If issue is only inside Vagrant VM, maybe it's possible to use code like in Cc @nicolas-grekas in afup :) |
Hey, thanks for your report! |
Yes
No |
Hey, thanks for your report! |
Yes
No |
Hey, thanks for your report! |
Yes
No |
We found a workaround. The tests I originally mentioned in this issue have been removed because the code was also removed, and for some other tests, we were able to configure development environment to use a directory that was in the guest OS filesystem, not the shared filesystem. |
Symfony version(s) affected
5.4, 6.1
Description
I believe this issue was introduced by #40144, which made a change to
doRemove
to make copies of directories with temporary names before removing them.I came across this while attempting to update dependencies in a legacy library which is a dependency of our main application.
When I run the tests for this legacy library, I get this:
The test which fails looks like this:
The subject-under-test looks like this:
I am running PHP 8.1.1 inside a RHEL VM using Vagrant 2.3.0 and VirtualBox, with Windows 10 as the host OS. All files in the library's dir are shared from a directory in the host OS.
All tests passed in this same environment before I changed the dependency requirements.
I installed PHP 8.1 for Windows in the host OS and ran the tests in cmd.exe, and they all passed. The tests all pass in our CI environment (Jenkins on RHEL) as well. I am therefore confident that this is related to Vagrant.
How to reproduce
Run the PHPUnit test described above, for the SUT described above, on PHP 8.1 inside a Vagrant VM, with the files shared from a host OS.
Possible Solution
No response
Additional Context
No response
The text was updated successfully, but these errors were encountered: