Skip to content Skip to sidebar Skip to footer

Oserror: [errno 26] Text File Busy On Vagrant With Synced_folder

Originally titled: MPLCONFIGDIR .matplotlib not writeable on matplotlib import I am running the tutorial for pylearn2 and I'm getting some errors when it imports matplotlib.pyplot.

Solution 1:

This could be a long-standing issue of VirtualBox with low-level filesystem operations (like rmdir) in synced folders. This was an original issue filed at Vagrant:

https://github.com/hashicorp/vagrant/issues/2282

The most up-to-date VirtualBox issues with the same error pattern:

I can still reproduce it with the current VirtualBox 6.0 and 6.1 versions and their appropriate Guest Additions versions.

I can't reproduce the problem with Guest Additions 5.x on any VirtualBox version (including 6.0 and 6.1). So this might be a workaround.

Another workaround would be to use another synced folder mechanism.

Solution 2:

I have the similar error when I do vagrant provision. Error 26 occurs when you try to open an executable file in writing mode which is being executed. Use lsof <file> to see the process executing the file. You can avoid this error after you terminate the process.

References:

http://man7.org/linux/man-pages/man3/errno.3.htm

https://stackoverflow.com/a/15514388/547578

Solution 3:

Run lsof /home/vagrant/.matplotlib/tmp3ciLMo or fuser /home/vagrant/.matplotlib/tmp3ciLMo to check what process it using the file that cause it busy.

Then kill the process to release the file.

Post a Comment for "Oserror: [errno 26] Text File Busy On Vagrant With Synced_folder"