TablePlus-Windows icon indicating copy to clipboard operation
TablePlus-Windows copied to clipboard

Database is locked error sqlite3 file opened from WSL

Open huyphams opened this issue 4 years ago • 12 comments

  1. Which driver are you using and version of it (Ex: PostgreSQL 10.0): Sqlite3

  2. Which TablePlus build number are you using (the number on the welcome screen, Ex: build 81): Build 124

  3. The steps to reproduce this issue:

  4. Create sqlite3 db file in WSL home directory

  5. Open db file to view content

  6. Run Select * from table

  7. Database is locked

Moved from: https://github.com/TablePlus/TablePlus/issues/1899

huyphams avatar May 24 '20 04:05 huyphams

I'have experienced the same problem.

agustif avatar Jul 13 '20 09:07 agustif

Also experiencing this same issue, running Build 146.

Dragory avatar Oct 21 '20 19:10 Dragory

Experiencing the same issue on windows wsl 2, sqlite3, tableplus build 160

abdellatifLabr avatar Apr 30 '21 12:04 abdellatifLabr

Any news on this?

Parrryy avatar Sep 03 '21 16:09 Parrryy

Same.

mattkenefick avatar Sep 03 '21 19:09 mattkenefick

👀 Same boat!

franklin-tina avatar Sep 11 '21 19:09 franklin-tina

Same issue. WSL2 / SQLite 3 Version 4.2.12 (176) - x64

meeglos avatar Sep 16 '21 07:09 meeglos

Glad I found this issue. I am experiencing the same.

kod4krome avatar Sep 24 '21 17:09 kod4krome

When I do (CTRL + K) to select database it shows a messsage: This feature is not available for this driver. WSL2 / SQLite 3.36.0 Version 4.5.1 (178) - x64 image

meeglos avatar Sep 25 '21 12:09 meeglos

Any updates?

mattkenefick avatar Mar 09 '22 17:03 mattkenefick

I think this issue is the WSL issue, all other database clients hav the same error, not only TablePlus.

huyphams avatar Jul 13 '22 04:07 huyphams

I believe that this is down to file access permissions in WSL; you cannot open the SQLite file that's used by WSL using a TablePlus instance that's running in the Windows environment. My workaround is to install TablePlus in WSL itself and use that to access the SQLite database files.

Intellimatic avatar Sep 26 '22 08:09 Intellimatic