Re: [sqlite] database is locked

2018-10-20 Thread Simon Slavin
On 20 Oct 2018, at 1:19pm, p...@geniais.com wrote: > I'm using exec() to simply get true/false result (just reading) and I'm > receiving this error, even in WAL mode: > SQLite3::exec(): database is locked in ... on line 47 > > Any help will be apreciated I'm assuming that you are aware that som

[sqlite] database is locked

2018-10-20 Thread p...@geniais.com
Hello, I'm using exec() to simply get true/false result (just reading) and I'm receiving this error, even in WAL mode: SQLite3::exec(): database is locked in ... on line 47 Any help will be apreciated Thank you Ismael ___ sqlite-users mailing lis

Re: [sqlite] error message: [FireDAC][Phys][SQLite] Database is locked

2018-10-15 Thread Chris Locke
> For the record, "delete the journal file" is terrible advice Agreed. In normal production environment, I wouldn't suggest that. The user was testing a database, and in my own developemtn cycle, its common when developing for a database to be in all manners of chaos states. It was purely a 'go

Re: [sqlite] error message: [FireDAC][Phys][SQLite] Database is locked

2018-10-15 Thread R Smith
On 2018/10/15 5:05 AM, Rowan Worth wrote: On Sat, 13 Oct 2018 at 02:20, Lars Frederiksen wrote: Any ideas? Not sure if this got resolved off-list, but based on the code you've posted I wonder if there is an "fdqGloser" as well as an "fdqGloser2", and if so what state it is in. Update: Thi

Re: [sqlite] error message: [FireDAC][Phys][SQLite] Database is locked

2018-10-14 Thread Rowan Worth
On Sat, 13 Oct 2018 at 02:20, Lars Frederiksen wrote: > I type info into some labeledits and by pressing "Append to DB" button > this code is executed (fdqGoser2 is a FDQuery) > > fdqGloser2.Open; > fdqGloser2.Append; > fdqGloser2.FieldByName('Graesk').AsString:= ledGræsk.Text; > ... > fd

Re: [sqlite] error message: [FireDAC][Phys][SQLite] Database is locked

2018-10-14 Thread Rowan Worth
On Sat, 13 Oct 2018 at 00:21, Chris Locke wrote: > > Database is locked > > Close your application. Is there a xxx-journal file in the same directory > as the database? (where xxx is the name of the database) > Try deleting this file. > For the record, "delete the journal file" is terrible advi

Re: [sqlite] error message: [FireDAC][Phys][SQLite] Database is locked

2018-10-12 Thread R Smith
On 2018/10/12 8:19 PM, Lars Frederiksen wrote: I type info into some labeledits and by pressing "Append to DB" button this code is executed (fdqGoser2 is a FDQuery) fdqGloser2.Open; fdqGloser2.Append; fdqGloser2.FieldByName('Graesk').AsString:= ledGræsk.Text; fdqGloser2.FieldByName(

Re: [sqlite] error message: [FireDAC][Phys][SQLite] Database is locked

2018-10-12 Thread Lars Frederiksen
ailinglists.sqlite.org] På vegne af Stephen Chrzanowski Sendt: 12. oktober 2018 19:47 Til: General Discussion of SQLite Database Emne: Re: [sqlite] error message: [FireDAC][Phys][SQLite] Database is locked FSCK is File System ChecK, so the equivalent in Windows Scandisk. Trace through the code to find o

Re: [sqlite] error message: [FireDAC][Phys][SQLite] Database is locked

2018-10-12 Thread Keith Medcalf
qlite-users [mailto:sqlite-users- >boun...@mailinglists.sqlite.org] On Behalf Of Lars Frederiksen >Sent: Friday, 12 October, 2018 06:26 >To: 'SQLite mailing list' >Subject: Re: [sqlite] error message: [FireDAC][Phys][SQLite] Database >is locked > >That is: I

Re: [sqlite] error message: [FireDAC][Phys][SQLite] Database is locked

2018-10-12 Thread Stephen Chrzanowski
FSCK is File System ChecK, so the equivalent in Windows Scandisk. Trace through the code to find out when exactly the SQLite is reporting the lock. Is it at a query, on opening, is it multi-thread or multi-application access? Is the query taking too long? If you're debugging and everything is w

Re: [sqlite] error message: [FireDAC][Phys][SQLite] Database is locked

2018-10-12 Thread Lars Frederiksen
se- Fra: sqlite-users [mailto:sqlite-users-boun...@mailinglists.sqlite.org] På vegne af Chris Locke Sendt: 12. oktober 2018 18:22 Til: SQLite mailing list Emne: Re: [sqlite] error message: [FireDAC][Phys][SQLite] Database is locked > Database is locked Close your application. Is there a

Re: [sqlite] error message: [FireDAC][Phys][SQLite] Database is locked

2018-10-12 Thread Chris Locke
o filesystem corruption? Have you tried an >> fsck? >> >> >> - Original Message - >> From: R Smith >> To: sqlite-users@mailinglists.sqlite.org < >> sqlite-users@mailinglists.sqlite.org> >> Sent: Friday, October 12, 2018, 17:35:28 >&

Re: [sqlite] error message: [FireDAC][Phys][SQLite] Database is locked

2018-10-12 Thread Thomas Kurz
Could the problem arise due to filesystem corruption? Have you tried an fsck? - Original Message - From: R Smith To: sqlite-users@mailinglists.sqlite.org Sent: Friday, October 12, 2018, 17:35:28 Subject: [sqlite] error message: [FireDAC][Phys][SQLite] Database is locked On 2018/10/12

Re: [sqlite] error message: [FireDAC][Phys][SQLite] Database is locked

2018-10-12 Thread R Smith
On 2018/10/12 2:44 PM, Lars Frederiksen wrote: I have tried that too! - I must admit that right now I am turning to a KISS solution: String-based database with functions and procedures in a class that handles the different jobs you do on a table. After all these old-fashioned DB's are not so p

Re: [sqlite] error message: [FireDAC][Phys][SQLite] Database is locked

2018-10-12 Thread Radovan Antloga
? /Lars -Oprindelig meddelelse- Fra: sqlite-users [mailto:sqlite-users-boun...@mailinglists.sqlite.org] På vegne af Radovan Antloga Sendt: 12. oktober 2018 10:10 Til: sqlite-users@mailinglists.sqlite.org Emne: Re: [sqlite] error message: [FireDAC][Phys][SQLite] Database is locked Try to

Re: [sqlite] error message: [FireDAC][Phys][SQLite] Database is locked

2018-10-12 Thread Lars Frederiksen
- Fra: sqlite-users [mailto:sqlite-users-boun...@mailinglists.sqlite.org] På vegne af Stephen Chrzanowski Sendt: 12. oktober 2018 14:37 Til: General Discussion of SQLite Database Emne: Re: [sqlite] error message: [FireDAC][Phys][SQLite] Database is locked How about moving the databases else

Re: [sqlite] error message: [FireDAC][Phys][SQLite] Database is locked

2018-10-12 Thread Stephen Chrzanowski
t; wrote: > > > Hello, > > > > I have made (in Delphi) a program that writes to a sqlite database. This > is > > a simple stand-alone solution. Now something is blocking for the programs > > attempt to writing to the databse. There is a an error message: > >

Re: [sqlite] error message: [FireDAC][Phys][SQLite] Database is locked

2018-10-12 Thread Lars Frederiksen
Database Emne: Re: [sqlite] error message: [FireDAC][Phys][SQLite] Database is locked Change the timeout value on the connection to 5 seconds or so. The DB will retry. The AV has its grip on it, doing a scan, and won't let anything else touch it until its done. On Fri, Oct 12, 2018 at 3:11 AM

Re: [sqlite] error message: [FireDAC][Phys][SQLite] Database is locked

2018-10-12 Thread Lars Frederiksen
@mailinglists.sqlite.org Emne: Re: [sqlite] error message: [FireDAC][Phys][SQLite] Database is locked Try to change database name (extension). For example: mydb.sqlite mydb.sdb mydb.db3 I would use .sqlite extension and exclude that files from antivirus check. Regards Lars Frederiksen je 12.10.2018 ob

Re: [sqlite] error message: [FireDAC][Phys][SQLite] Database is locked

2018-10-12 Thread Stephen Chrzanowski
that writes to a sqlite database. This is > a simple stand-alone solution. Now something is blocking for the programs > attempt to writing to the databse. There is a an error message: > [FireDAC][Phys][SQLite] Database is locked. > > A friend of mine has analysed the scenario and

Re: [sqlite] error message: [FireDAC][Phys][SQLite] Database is locked

2018-10-12 Thread Lars Frederiksen
ites to a sqlite database. This is > a simple stand-alone solution. Now something is blocking for the programs > attempt to writing to the databse. There is a an error message: > [FireDAC][Phys][SQLite] Database is locked. > > A friend of mine has analysed the scenario and tells me t

Re: [sqlite] error message: [FireDAC][Phys][SQLite] Database is locked

2018-10-12 Thread Radovan Antloga
. This is a simple stand-alone solution. Now something is blocking for the programs attempt to writing to the databse. There is a an error message: [FireDAC][Phys][SQLite] Database is locked. A friend of mine has analysed the scenario and tells me that BitDefender is the Problem. In BitDefender

[sqlite] error message: [FireDAC][Phys][SQLite] Database is locked

2018-10-12 Thread Lars Frederiksen
Hello, I have made (in Delphi) a program that writes to a sqlite database. This is a simple stand-alone solution. Now something is blocking for the programs attempt to writing to the databse. There is a an error message: [FireDAC][Phys][SQLite] Database is locked. A friend of mine has analysed

Re: [sqlite] Database is locked

2018-03-02 Thread Frank Millman
On 2/28/18 3:18 PM, Frank Millman wrote: > > On 2/28/18 2:53 PM, Richard Damon wrote: > > > > > On 2/28/18 6:59 AM, Frank Millman wrote: > > > Hi all > > > > > > I am using Python 3.6.0 and sqlite3 3.20.1. I am getting the message > > > ‘database is locked’ which, from reading the docs, I thin

Re: [sqlite] Database is locked

2018-02-28 Thread Frank Millman
On 2/28/18 2:53 PM, Richard Damon wrote: > > On 2/28/18 6:59 AM, Frank Millman wrote: > > Hi all > > > > I am using Python 3.6.0 and sqlite3 3.20.1. I am getting the message > > ‘database is locked’ which, from reading the docs, I think is coming from > > an SQL_BUSY error. > > > > It does not

Re: [sqlite] Database is locked

2018-02-28 Thread Richard Damon
On 2/28/18 6:59 AM, Frank Millman wrote: Hi all I am using Python 3.6.0 and sqlite3 3.20.1. I am getting the message ‘database is locked’ which, from reading the docs, I think is coming from an SQL_BUSY error. It does not behave in the way I expect. I tested using two concurrent connections

[sqlite] Database is locked

2018-02-28 Thread Frank Millman
Hi all I am using Python 3.6.0 and sqlite3 3.20.1. I am getting the message ‘database is locked’ which, from reading the docs, I think is coming from an SQL_BUSY error. It does not behave in the way I expect. I tested using two concurrent connections – call them conn_1 and conn_2. 1. conn_1 p

[sqlite] "Database is locked" in diagnostic tools C#

2018-02-16 Thread Wojciech Slabik (Voitec)
Hi everyone, I have managed to successfully replace SQLCE with System.Data.SQLite in a mid-size application. Everything works fine but now that I started optimizing the old code and replaced own connection pooling with SQLite connection pooling I am getting an occasional Program Output "Databa

Re: [sqlite] Database is locked

2017-03-01 Thread Hick Gunter
esendet: Mittwoch, 01. März 2017 21:45 An: SQLite mailing list Betreff: Re: [sqlite] Database is locked On Wed, 1 Mar 2017, Stephen Chrzanowski wrote: > Where is the database being stored? What OS is the software running > under? If Windows, I'd suggest looking up SysInternals and &

Re: [sqlite] Database is locked

2017-03-01 Thread Simon Slavin
On 1 Mar 2017, at 9:17pm, Bob Friesenhahn wrote: > I am not sure of all of the conditions which might result in "Database is > locked". For example, if the results of a query are being iterated through > and the reader stops iterating part way through the result set, might this > cause "Data

Re: [sqlite] Database is locked

2017-03-01 Thread Bob Friesenhahn
On Wed, 1 Mar 2017, Simon Slavin wrote: On 1 Mar 2017, at 7:27pm, Bob Friesenhahn wrote: What is the recommended approach to diagnosing "Database is locked" errors and determining the guilty party? Are you checking the result codes returned by all SQLite commands you give to make sure th

Re: [sqlite] Database is locked

2017-03-01 Thread Simon Slavin
On 1 Mar 2017, at 7:27pm, Bob Friesenhahn wrote: > What is the recommended approach to diagnosing "Database is locked" errors > and determining the guilty party? Are you checking the result codes returned by all SQLite commands you give to make sure they are SQLITE_OK ? I’m not talking about

Re: [sqlite] Database is locked

2017-03-01 Thread Bob Friesenhahn
On Wed, 1 Mar 2017, Stephen Chrzanowski wrote: Where is the database being stored? What OS is the software running under? If Windows, I'd suggest looking up SysInternals and downloading the package to see what has its grubby hands on the database. If Linux, as root, run an LSOF (Lower case) a

Re: [sqlite] Database is locked

2017-03-01 Thread Stephen Chrzanowski
Where is the database being stored? What OS is the software running under? If Windows, I'd suggest looking up SysInternals and downloading the package to see what has its grubby hands on the database. If Linux, as root, run an LSOF (Lower case) and grep for the database or process accessing the

[sqlite] Database is locked

2017-03-01 Thread Bob Friesenhahn
We are sometimes encountering permanent "Database is locked" errors from sqlite 3.10.2. After the database gets in this state it is not possible to write to it or read from it. It is not possible to use sqlite's built in backup mechanism since it produces a backup file of zero bytes. What i

Re: [sqlite] Database is locked

2016-11-09 Thread Richard Hipp
You may not DETACH while a query is running. This is to prevent the DETACH from closing a database connection out from under the running query. On 11/9/16, Jean-Baptiste Gardette wrote: > On Window 7 with tcl/tk 8.6.6 and SQLite 3.13.0 > > The following tcl script craches : > > pack

[sqlite] Database is locked

2016-11-09 Thread Jean-Baptiste Gardette
On Window 7 with tcl/tk 8.6.6 and SQLite 3.13.0 The following tcl script craches : package require sqlite3 sqlite3 db1 dbfile1 db1 eval "SELECT A FROM TableA" { db1 eval "ATTACH DATABASE dbfile2 AS 'dbfile2'" db1 eval "SELEC

Re: [sqlite] Database is locked

2016-07-10 Thread Igor Korot
Dan, On Sun, Jul 10, 2016 at 11:57 AM, Dan Kennedy wrote: > On 07/10/2016 06:21 AM, Igor Korot wrote: >> >> Simon, >> >> On Sat, Jul 9, 2016 at 7:09 PM, Simon Slavin wrote: >>> >>> On 10 Jul 2016, at 12:06am, Igor Korot wrote: >>> I'm trying to write some software in C{++}. Everything work

Re: [sqlite] Database is locked

2016-07-10 Thread Dan Kennedy
On 07/10/2016 06:21 AM, Igor Korot wrote: Simon, On Sat, Jul 9, 2016 at 7:09 PM, Simon Slavin wrote: On 10 Jul 2016, at 12:06am, Igor Korot wrote: I'm trying to write some software in C{++}. Everything works fine except when I exit the program exit I get the error "Database is locked". I am

Re: [sqlite] Database is locked

2016-07-09 Thread Igor Korot
Simon, On Sat, Jul 9, 2016 at 7:09 PM, Simon Slavin wrote: > > On 10 Jul 2016, at 12:06am, Igor Korot wrote: > >> I'm trying to write some software in C{++}. Everything works fine except >> when I exit the program exit I get the error "Database is locked". >> I am only trying to retrieve the inf

Re: [sqlite] Database is locked

2016-07-09 Thread Simon Slavin
On 10 Jul 2016, at 12:06am, Igor Korot wrote: > I'm trying to write some software in C{++}. Everything works fine except > when I exit the program exit I get the error "Database is locked". > I am only trying to retrieve the information about the database (queries on > sqlite_master). What comm

[sqlite] Database is locked

2016-07-09 Thread Igor Korot
Hi, Here is my situation. I'm trying to write some software in C{++}. Everything works fine except when I exit the program exit I get the error "Database is locked". I am only trying to retrieve the information about the database (queries on sqlite_master). So here are my questions: 1. When the d

Re: [sqlite] sqlite database is locked when query SQLITE_MASTER table

2016-06-17 Thread Simon Slavin
Are you programming in a programming language ? If so, which language are you using and which library are you using to execute SQLite commands ? If you are scripting instead please tell us which scripting language you're using. If you are using multi-threading or multi-processing, please tell

[sqlite] sqlite database is locked when query SQLITE_MASTER table

2016-06-17 Thread Bhavesh Patel
I have the huge size of the database file (approx 5.5GB). I have two processes. 1.The first process: It executes master table query. (Ex. "SELECT "type", "tbl_name" FROM "SQLite_MASTER"). It creates the new table using the dump of the existing table and database file size has been increased af

[sqlite] database is locked when using SQLite3 and MPI to generate different databases

2016-05-09 Thread Rowan Worth
On 8 May 2016 at 10:14, just_rookie <925345468 at qq.com> wrote: > Obviously, I did not do incompatible things with a database at the same > time. > You are attempting to drop a table in databases 300_500.db and 600_900.db. Obviously another process must create that table, since your test code is

[sqlite] ?????? database is locked when using SQLite3 and MPI togenerate different databases

2016-05-08 Thread just_rookie
;; ??: Re: [sqlite] database is locked when using SQLite3 and MPI togenerate different databases On 8 May 2016, at 3:14am, just_rookie <925345468 at qq.com> wrote: > But when I ran the program in Linux, I got an error message from > sqlite3_exec() that ?database is locked?. You have

[sqlite] database is locked when using SQLite3 and MPI to generate different databases

2016-05-08 Thread just_rookie
Hi all, I would like to use SQLite3 and MPI to generate many databases, and different processes produce and process different databases. But when I ran the program in Linux, I got an error message from sqlite3_exec() that ?database is locked?. I know this message means I tried to do incompatib

[sqlite] database is locked when using SQLite3 and MPI to generate different databases

2016-05-08 Thread Simon Slavin
On 8 May 2016, at 3:14am, just_rookie <925345468 at qq.com> wrote: > But when I ran the program in Linux, I got an error message from > sqlite3_exec() that ?database is locked?. You have not set a timeout, so SQLite is quitting as soon as it is told that another thread/process has the database

[sqlite] Database is locked (wal) - purely from read-only connections/queries

2016-03-01 Thread Vince Scafaria
Jim, I am running simple select statements against views; I am not inserting into them or anything unusual like that. Also, my earlier comment re attach database was a red herring. I hit the "statement aborts" without that. Lastly, to be clear, the "SQLite error (17): statement aborts..." is deb

[sqlite] Database is locked (wal) - purely from read-only connections/queries

2016-03-01 Thread Vince Scafaria
Jim, I am running simple select statements against views; I am not inserting into them or anything unusual like that. Also, my earlier comment re attach database was a red herring. I hit the "statement aborts" without that. Lastly, to be clear, the "SQLite error (17): statement aborts..." is deb

[sqlite] Database is locked (wal) - purely from read-only connections/queries

2016-03-01 Thread Richard Hipp
On 2/29/16, Vince Scafaria wrote: > Richard, I can confirm that having a writable connection open first, prior > to trying any reads, does avoid the "database is locked" error. However, I > still do get "SQLite error (17): statement aborts" errors. What are the > rules I must follow to avoid get

[sqlite] Database is locked (wal) - purely from read-only connections/queries

2016-03-01 Thread Vince Scafaria
One possibility: Does ATTACH DATABASE count as a schema change? From: Vince Scafaria Sent: Monday, February 29, 2016 10:31 PM To: 'sqlite-users at mailinglists.sqlite.org' Subject: Database is locked (wal) - purely from read-only connections/queries Richard, I can confirm that having a writable

[sqlite] Database is locked (wal) - purely from read-only connections/queries

2016-03-01 Thread Vince Scafaria
Richard, I can confirm that having a writable connection open first, prior to trying any reads, does avoid the "database is locked" error. However, I still do get "SQLite error (17): statement aborts" errors. What are the rules I must follow to avoid getting these SQLITE_SCHEMA errors? I am n

[sqlite] Database is locked (wal) - purely from read-only connections/queries

2016-02-29 Thread Jim Callahan
Are you using any SQL VIEWs? "You cannot DELETE, INSERT, or UPDATE a view. Views are read-only in SQLite." http://sqlite.org/lang_createview.html Jim On Mon, Feb 29, 2016 at 10:31 PM, Vince Scafaria wrote: > Richard, I can confirm that having a writable connection open first, prior > to trying

[sqlite] Database is locked (wal) - purely from read-only connections/queries

2016-02-27 Thread Richard Hipp
On 2/26/16, Vince Scafaria wrote: > I am using System.Data.SQLite in .NET and encountering "database is locked" > with wal using multiple threads from the same process running simple select > statements with (separate) read-only connections. The first database connection (in any process) that ope

[sqlite] Database is locked (wal) - purely from read-only connections/queries

2016-02-26 Thread Vince Scafaria
I am using System.Data.SQLite in .NET and encountering "database is locked" with wal using multiple threads from the same process running simple select statements with (separate) read-only connections. Please see the link below and note the Visual Studio output window when it runs. https://driv

[sqlite] Database is locked

2016-01-15 Thread Werner Kleiner
Hello Richard, I am not a SQLITE expert. As I understand WAL it is especially made for transactions? But our application do not have transactions, just normal SQL queries like Select, Insert and Updates. So does WAL makes sense for that? 2016-01-14 14:20 GMT+01:00 Richard Hipp : > On 1/14/16,

[sqlite] Database is locked

2016-01-15 Thread Simon Slavin
On 15 Jan 2016, at 7:51am, Werner Kleiner wrote: > Takes your suggestion with PDO setAttribute(PDO:: ATTR_TIMEOUT, the same > effect as Richards with PRAGMA busy_timeout? > For example I do a: > > $dbConnection =$db->query('PRAGMA busy_timeout=6') ; > > instead of > > $dbConnection->setA

[sqlite] Database is locked

2016-01-15 Thread Werner Kleiner
Thanks a lot Simon. Now I understand a little bit better. Last question: (hopefully :-) ) Takes your suggestion with PDO setAttribute(PDO:: ATTR_TIMEOUT, the same effect as Richards with PRAGMA busy_timeout? For example I do a: $dbConnection =$db->query('PRAGMA busy_timeout=6') ; instead of

[sqlite] Database is locked

2016-01-15 Thread Richard Hipp
On 1/15/16, Werner Kleiner wrote: > Hello Richard, > I am not a SQLITE expert. > As I understand WAL it is especially made for transactions? > But our application do not have transactions, just normal SQL queries like > Select, Insert and Updates. Every "normal SQL query" is a transaction unto it

[sqlite] Database is locked

2016-01-14 Thread Simon Slavin
On 14 Jan 2016, at 1:42pm, Werner Kleiner wrote: > The windows application is written in C# and uses the sqlite.systemData.dll. I'm sure someone here can tell you how to set a timeout in that. > What does the timeout mean in detail for sqlite ? > Is this time (in your example 5 minutes) for ea

[sqlite] Database is locked

2016-01-14 Thread Werner Kleiner
Hello Simon, thank you for help. The windows application is written in C# and uses the sqlite.systemData.dll. What does the timeout mean in detail for sqlite ? Is this time (in your example 5 minutes) for each SQL query which is executed? 2016-01-14 14:25 GMT+01:00 Simon Slavin : > > On 14 Jan 2

[sqlite] Database is locked

2016-01-14 Thread Simon Slavin
On 14 Jan 2016, at 10:57am, Werner Kleiner wrote: > I have written a small Wep application with PHP (PDO Apache,). This web app > uses a sqlite db3 database. Also there is a Windows application which uses > the same database file. > Now we heard one time that there war a problem and in a log fil

[sqlite] Database is locked

2016-01-14 Thread Stephen Chrzanowski
As with the other suggestions, have a read of https://www.sqlite.org/howtocorrupt.html If you've got to distinct machines/OS's trying to touch the same file, you might be looking at other issues. Also, if you are indeed working over a network, your timeout might be set so low that SQLite just tim

[sqlite] Database is locked

2016-01-14 Thread Werner Kleiner
Hello I have written a small Wep application with PHP (PDO Apache,). This web app uses a sqlite db3 database. Also there is a Windows application which uses the same database file. Now we heard one time that there war a problem and in a log file we saw the error code "Database is locked" My questio

[sqlite] Database is locked

2016-01-14 Thread Richard Hipp
On 1/14/16, Werner Kleiner wrote: > Hello > I have written a small Wep application with PHP (PDO Apache,). This web app > uses a sqlite db3 database. Also there is a Windows application which uses > the same database file. > Now we heard one time that there war a problem and in a log file we saw t

Re: [sqlite] database is locked

2015-01-16 Thread Roman Fleysher
ubject: Re: [sqlite] database is locked Use the following code snippet (add error checking, set v_file to the full path name of your SQLite db file) to check. It attempts to take the same locks as SQLite would, but prints the pid of the blocking process. It also prints the journal mode.

Re: [sqlite] database is locked

2015-01-14 Thread Hick Gunter
,v_file, (v_ret = v_shared .l_pid)); if (v_ret == -1) printf("%s File:%s, \n",g_mode[v_mode] ,v_file); -Ursprüngliche Nachricht- Von: Roman Fleysher [mailto:roman.fleys...@einstein.yu.edu] Gesendet: Mittwoch, 14. Jänner 2015 18:

Re: [sqlite] database is locked

2015-01-14 Thread Roman Fleysher
ard Hipp [d...@sqlite.org] > Sent: Wednesday, January 14, 2015 1:26 PM > To: General Discussion of SQLite Database > Subject: Re: [sqlite] database is locked > > On 1/14/15, Roman Fleysher wrote: >> SQLite shell version 3.7.2 >> on Linux 2.6.18 >> NTFS > > On

Re: [sqlite] database is locked

2015-01-14 Thread Richard Hipp
ard Hipp [d...@sqlite.org] > Sent: Wednesday, January 14, 2015 1:26 PM > To: General Discussion of SQLite Database > Subject: Re: [sqlite] database is locked > > On 1/14/15, Roman Fleysher wrote: >> SQLite shell version 3.7.2 >> on Linux 2.6.18 >> NTFS > > On Linux, S

Re: [sqlite] database is locked

2015-01-14 Thread Roman Fleysher
From: sqlite-users-boun...@sqlite.org [sqlite-users-boun...@sqlite.org] on behalf of Richard Hipp [d...@sqlite.org] Sent: Wednesday, January 14, 2015 1:26 PM To: General Discussion of SQLite Database Subject: Re: [sqlite] database is locked On 1/14/15, Roman Fleysher wrote

Re: [sqlite] database is locked

2015-01-14 Thread Richard Hipp
__ > From: sqlite-users-boun...@sqlite.org [sqlite-users-boun...@sqlite.org] on > behalf of Richard Hipp [d...@sqlite.org] > Sent: Wednesday, January 14, 2015 12:50 PM > To: General Discussion of SQLite Database > Subject: Re: [sqlite] database is locked > > On 1/14/15,

Re: [sqlite] database is locked

2015-01-14 Thread Simon Slavin
On 14 Jan 2015, at 5:30pm, Roman Fleysher wrote: > Is there a way to figure out what is happening? Clear the lock? We would need specifics of your system to answer this absolutely correctly. But you can try these things in turn until one of them works: Unmount the volume the database is on,

Re: [sqlite] database is locked

2015-01-14 Thread Roman Fleysher
Subject: Re: [sqlite] database is locked On 1/14/15, Roman Fleysher wrote: > Dear SQLiters, > > There has been a lot of discussion, I remember, on this subject by others. > Please forgive me for asking this for a millionth time. > > I somehow got my database in a locked state.

Re: [sqlite] database is locked

2015-01-14 Thread Richard Hipp
On 1/14/15, Roman Fleysher wrote: > Dear SQLiters, > > There has been a lot of discussion, I remember, on this subject by others. > Please forgive me for asking this for a millionth time. > > I somehow got my database in a locked state. I updated a table yesterday and > I am rather sure that no on

[sqlite] database is locked

2015-01-14 Thread Roman Fleysher
Dear SQLiters, There has been a lot of discussion, I remember, on this subject by others. Please forgive me for asking this for a millionth time. I somehow got my database in a locked state. I updated a table yesterday and I am rather sure that no one on our multi-user system is updating it now

Re: [sqlite] "database is locked" for SQLITE_BUSY

2014-12-04 Thread Simon Slavin
On 4 Dec 2014, at 5:36pm, Jonathan Moules wrote: > Depending on the application, an end user likely won't see the error code, > but instead just the error message SQlite is not a program. It's an API, intended for use by a programmer. Those error codes should not be reported to the end use

Re: [sqlite] "database is locked" for SQLITE_BUSY

2014-12-04 Thread Jonathan Moules
cember 03, 2014 3:21 PM To: General Discussion of SQLite Database Subject: Re: [sqlite] "database is locked" for SQLITE_BUSY >From https://www.sqlite.org/rescode.html#busy In both cases there are specific extended codes that may further pinpoint the source just in case you do not know

Re: [sqlite] "database is locked" for SQLITE_BUSY

2014-12-03 Thread Simon Slavin
On 3 Dec 2014, at 3:20pm, Richard Hipp wrote: > https://www.sqlite.org/rescode.html#busy Thanks, Richard. I have somehow never seen that. I had no idea that the difference between _BUSY and _LOCKED was purely about whether the conflicting access was from the same connection. Simon.

Re: [sqlite] "database is locked" for SQLITE_BUSY

2014-12-03 Thread Keith Medcalf
al Discussion of SQLite Database >Subject: Re: [sqlite] "database is locked" for SQLITE_BUSY > >To me, a BUSY state would mean that everything up to actually reading or >writing the data out is valid, but, the response time coming back was >just >too long, so a timeo

Re: [sqlite] "database is locked" for SQLITE_BUSY

2014-12-03 Thread Richard Hipp
On Wed, Dec 3, 2014 at 10:18 AM, Simon Slavin wrote: > > On 3 Dec 2014, at 3:10pm, Hick Gunter wrote: > > > SQLITE_BUSY means that some connection is BUSY with a write transaction > and has locked the database file; presumably, it will be possible to write > to the database when the current writ

Re: [sqlite] "database is locked" for SQLITE_BUSY

2014-12-03 Thread Simon Slavin
On 3 Dec 2014, at 3:10pm, Hick Gunter wrote: > SQLITE_BUSY means that some connection is BUSY with a write transaction and > has locked the database file; presumably, it will be possible to write to the > database when the current writer has finished, just not now or within the > specified bu

Re: [sqlite] "database is locked" for SQLITE_BUSY

2014-12-03 Thread Hick Gunter
] Gesendet: Mittwoch, 03. Dezember 2014 12:01 An: 'General Discussion of SQLite Database' Betreff: [sqlite] "database is locked" for SQLITE_BUSY Hi, Just a quick request/suggestion. Currently SQLITE_BUSY events return an error of "Database is locked". Is it possible

Re: [sqlite] "database is locked" for SQLITE_BUSY

2014-12-03 Thread Stephen Chrzanowski
To me, a BUSY state would mean that everything up to actually reading or writing the data out is valid, but, the response time coming back was just too long, so a timeout hit which might mean that a retry later might be appropriate. To me, a timeout = busy, but, locked != busy. When something is

Re: [sqlite] "database is locked" for SQLITE_BUSY

2014-12-03 Thread Simon Slavin
On 3 Dec 2014, at 2:20pm, Stephen Chrzanowski wrote: > Although I think there is already an error result, one situation might be > when the DB is in a read only state. I just thought of the database /file/ being marked 'read-only'. But it turns out that there's a different SQLite result code

Re: [sqlite] "database is locked" for SQLITE_BUSY

2014-12-03 Thread Stephen Chrzanowski
Although I think there is already an error result, one situation might be when the DB is in a read only state. On Wed, Dec 3, 2014 at 6:15 AM, RSmith wrote: > > On 2014/12/03 13:00, Jonathan Moules wrote: > >> Hi, >> Just a quick request/suggestion. >> >> Currently SQLITE_BUSY events return an e

Re: [sqlite] "database is locked" for SQLITE_BUSY

2014-12-03 Thread RSmith
On 2014/12/03 13:00, Jonathan Moules wrote: Hi, Just a quick request/suggestion. Currently SQLITE_BUSY events return an error of "Database is locked". Is it possible to change this to "Database is busy" or something similar? I ask because when someone then goes googling for "SQLite database lo

[sqlite] "database is locked" for SQLITE_BUSY

2014-12-03 Thread Jonathan Moules
Hi, Just a quick request/suggestion. Currently SQLITE_BUSY events return an error of "Database is locked". Is it possible to change this to "Database is busy" or something similar? I ask because when someone then goes googling for "SQLite database locked", they'll end up thinking they're hitting

Re: [sqlite] Database is locked exceptions

2014-10-29 Thread Sohail Somani
On 2014-10-29, 12:13 PM, Mike McWhinney wrote: System.Windows.Forms.Control.ControlNativeWindow.OnThreadException(Exception e) at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam) at System.Windows.Forms.UnsafeNativeMethods.DispatchMessag

Re: [sqlite] Database is locked exceptions

2014-10-29 Thread Simon Slavin
On 29 Oct 2014, at 4:13pm, Mike McWhinney wrote: > "URI=file:mydb.db; default timeout=10; Pooling=True; Max Pool Size=100;"; Can you please change your timeout to 1 (really, 1ms == 10 seconds) and see if this makes the problems go away ? It may not be necessary to leave the setting li

[sqlite] Database is locked exceptions

2014-10-29 Thread Mike McWhinney
Hello, I have written a program in C# Visual Studio Winforms. In general the SQLite database is working quite well. However, lately we have been plagued with database locking errors: Here is the exeption: database is locked database is locked at System.Data.SQLite.SQLite3.Step(SQLiteStateme

Re: [sqlite] Database is locked !

2014-08-27 Thread Fabrice MAUPIN
SQLite Database' Cc : 'Alex Trucy' Objet : Re: [sqlite] Database is locked ! For information, you will find the "SQLiteJdbc" class used. I verified (normally) after each statement there is a db.close(). Fabrice -Message d'origine- De : sqlite-

Re: [sqlite] Database is locked !

2014-08-27 Thread Fabrice MAUPIN
di 27 août 2014 15:19 À : General Discussion of SQLite Database Cc : Alex Trucy Objet : Re: [sqlite] Database is locked ! Sounds like you have statements laying around that weren't properly destroyed... you say executed correctly, but then also released correctly? On Wed, Aug 27, 2014 at 6:1

Re: [sqlite] Database is locked !

2014-08-27 Thread J Decker
Sounds like you have statements laying around that weren't properly destroyed... you say executed correctly, but then also released correctly? On Wed, Aug 27, 2014 at 6:14 AM, Fabrice MAUPIN wrote: > Hi all, > > > > I try to execute an "INSERT" query and I obtain this message : "Database is > l

[sqlite] Database is locked !

2014-08-27 Thread Fabrice MAUPIN
Hi all, I try to execute an "INSERT" query and I obtain this message : "Database is locked". I verified all the previous connections which were opened were closed and all the previous statements were correctly executed (UPDATE, INSERT, .). The volume of data to be handled is very low.

Re: [sqlite] database is locked with create

2013-02-19 Thread Choi, David
- From: sqlite-users-boun...@sqlite.org [mailto:sqlite-users-boun...@sqlite.org] On Behalf Of Richard Hipp Sent: Tuesday, February 19, 2013 4:04 PM To: General Discussion of SQLite Database Subject: Re: [sqlite] database is locked with create On Tue, Feb 19, 2013 at 6:37 PM, Choi, David wrote: >

Re: [sqlite] database is locked with create

2013-02-19 Thread Richard Hipp
: -vfs > Use -help for a list of options. > > > Regards, > David J. Choi > > > -Original Message- > From: sqlite-users-boun...@sqlite.org [mailto: > sqlite-users-boun...@sqlite.org] On Behalf Of Richard Hipp > Sent: Tuesday, February 19, 2013 1:44 PM > To: G

Re: [sqlite] database is locked with create

2013-02-19 Thread Choi, David
x1 sqlite3: Error: unknown option: -vfs Use -help for a list of options. Regards, David J. Choi -Original Message- From: sqlite-users-boun...@sqlite.org [mailto:sqlite-users-boun...@sqlite.org] On Behalf Of Richard Hipp Sent: Tuesday, February 19, 2013 1:44 PM To: General Discussion

Re: [sqlite] database is locked with create

2013-02-19 Thread Richard Hipp
On Tue, Feb 19, 2013 at 4:39 PM, Choi, David wrote: > Hi Richard, > > I think your guess is highly possible because the error comes from > sqliteErrorFromPosixError(). In that case, how can I fix the issue? > Try adding the -vfs unix-none command-line option: sqlite3 -vfs unix-none ex1 Th

Re: [sqlite] database is locked with create

2013-02-19 Thread Choi, David
Richard Hipp Sent: Tuesday, February 19, 2013 9:44 AM To: General Discussion of SQLite Database Subject: Re: [sqlite] database is locked with create On Tue, Feb 19, 2013 at 12:01 PM, Choi, David wrote: > Hi all, > > I am new to sqlite. I build sqlite with buildroot without any issue.

  1   2   3   >