Skip to content
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

\\wsl$ filesystem does not support file locking #4689

Open
patriklantto opened this issue Nov 18, 2019 · 26 comments
Open

\\wsl$ filesystem does not support file locking #4689

patriklantto opened this issue Nov 18, 2019 · 26 comments

Comments

@patriklantto
Copy link

patriklantto commented Nov 18, 2019

Trying to use SVN from Windows on the \wsl$ drive (in WSL2 mode), svn reports the following:

svn: E200033: Another process is blocking the working copy database, or the underlying filesystem does not support file locking; if the working copy is on a network filesystem, make sure file locking has been enabled on the file server
svn: E200033: sqlite[S5]: database is locked, executing statement 'PRAGMA case_sensitive_like=1;PRAGMA synchronous=OFF;PRAGMA recursive_triggers=ON;PRAGMA foreign_keys=OFF;PRAGMA locking_mode = NORMAL;PRAGMA journal_mode = TRUNCATE;'

I assume the problem is that the "underlying filesystem does not support file locking" - is this assumption correct, and is there a way to address this?

@patriklantto
Copy link
Author

Information according to the ISSUE_TEMPLATE:

  • Microsoft Windows [Version 10.0.19013.1122]
  • Mount \wsl$\Ubuntu as U:
  • Try to checkout a SVN repository into a directory under U: using "svn co "
  • svn will fail with the following message:

svn: E200033: Another process is blocking the working copy database, or the underlying filesystem does not support file locking; if the working copy is on a network filesystem, make sure file locking has been enabled on the file server

  • svn version is 1.13.0 (r1867053)

@MartijnJonkers
Copy link

MartijnJonkers commented Mar 20, 2020

Did you find a solution? I am facing the same problem.

@patriklantto
Copy link
Author

Did you find a solution? I am facing the same problem.

Unfortunately not :-(

The reason I would like to use SVN from the Windows environment and not WSL is that we have some Windows tools for SVN operations - and for now I am using rsync to move files between the two filesystems when I need to use these tools.

@luisfdgon
Copy link

Hi guys,

Did you find any solution meanwhile? This is really a mess not being able to use SVN.

@GbuHti
Copy link

GbuHti commented Oct 26, 2020

Hi, you can install a SVN client on you WSL(sudo apt install subversion), and use this SVN to checkout...

@oxidaan
Copy link

oxidaan commented Oct 26, 2020

Yes you can use a SVN client in WSL2, but it is a pitty not to be able to use TortoiseSVN which is much more powerfull imho. Issue seems related to sqlitebrowser/sqlitebrowser#2142 and kind of the opposite of wsl1 issue: #2395

@makerlabs
Copy link

makerlabs commented Jul 30, 2022

Alternatively u can install additional file synchronization software. Im using https://syncthing.net/ its easy to set up and use on WSL and Windows and thanks to this setup I can use with no problem any available SVN software on my windows machine.

@hsali
Copy link

hsali commented Jan 8, 2023

when this going to fixed. any idea?

@hsali
Copy link

hsali commented Jan 8, 2023

I tried using pycharm and sqlite db. jetbrain depended to fix their side.

https://youtrack.jetbrains.com/issue/DBE-11014/Datagrip-Support-for-WSL-paths-SQLite#focus=Comments-27-6073328.0-0

@rinormaloku
Copy link

We need this

1 similar comment
@vbirds
Copy link

vbirds commented Apr 13, 2023

We need this

@olimexsmart
Copy link

Same problem here with SQLite

@johan-laneau
Copy link

The work-around I use is to add a Samba share from the root of the WSL2 filesystem. I use following commands in Ubuntu
`# Install samba server
export DEBIAN_FRONTEND=noninteractive &&
sudo apt update &&
sudo apt install --no-install-recommends --yes samba && \

Configure the samba server

sudo bash -c "cat >> /etc/samba/smb.conf" << EOT
[wslroot]
comment = Root of the wsl machine
path = /
read only = no
browsable = yes
EOT

Set the password for the samba-user

echo "mypass
mypass" | sudo smbpasswd -a -s ${USER} && \

(Re)-start the samba server with the updated configuration

sudo service smbd restart && \

echo "Samba share for wslroot installed successfully!"
`
Then you can map this share to a network drive.
On the drive, you can use SVN or TortoiseSVN as you want. Just note that line endings might be different depending upon your setup.

The fact that the samba share allows to work-around means that the real root cause of this issue is in the protocol that Microsoft uses for the WSL2 file sharing. Not sure if this is caused by the choice for Plan 9 (https://nelsonslog.wordpress.com/2019/06/01/wsl-access-to-linux-files-via-plan-9/).

@jhimes144
Copy link

This is still an issue for developers testing dockerized linux apps on Windows that use SqlLite databases, because this requires a docker volume on WSL, which exhibits this issue, making it impossible to work with SQLLite.

@dionisvl
Copy link

up

1 similar comment
@davidedelerma
Copy link

up

@PylotLight
Copy link

Also having this issue: pocketbase/pocketbase#4367 (reply in thread)

@g10-fred
Copy link

Still an issue in PHP Storm

@tddouglas
Copy link

Still encountering on PyCharm

@fliespl
Copy link

fliespl commented Apr 12, 2024

Still valid

@strawberrymelonpanda
Copy link

Ran into this just today with SQLite browsers. 😞

@dionisvl
Copy link

up

@rustam-python
Copy link

Up

@ndn1991
Copy link

ndn1991 commented Aug 31, 2024

Need this

@traktorlixach
Copy link

up

@musagenius345
Copy link

up

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests