Sponsor: VoiceMeUp - Corporate & Wholesale VoIP Services

VoIP Mailing List Archives
Mailing list archives for the VoIP community
 SearchSearch 

[Freeswitch-users] Error database is locked


 
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> freeSWITCH Users
View previous topic :: View next topic  
Author Message
anthony.minessale at g...
Guest





PostPosted: Mon Oct 20, 2008 9:23 am    Post subject: [Freeswitch-users] Error database is locked Reply with quote

It's a harmless warning generated by sqlite due to it's design. It just means something was reading from the db while something else was writing.

On Sun, Oct 19, 2008 at 2:24 PM, Jon Bruel <jbr@consiglia.dk (jbr@consiglia.dk)> wrote:
Quote:
I have made an application using the fifo application which behaves as
the Asterisk queue: It rings to the members. I use javascript DB to
access the core database in various scripts, f.in the following script:
//This script is used to disconnect agents being rung from a queue when
abandoned by the customer before answered.
use("CoreDB");
var db = new CoreDB("core");
var sql="select uuid from channels where cid_num='"+argv+"' and
state='CS_EXECUTE';";
db.prepare(sql);
while(db.next()) {
rec = db.fetch();
apiExecute("uuid_kill", rec["uuid"]);
}
db.close();

My problem is that I get a message from the CLI: mod_spidermonkey.c:3300
js_api_use() Loading CoreDB, [ERR] mod_spidermonkey_core_db.c:250
db_prepare() Error database is locked.
The error does not occur every time.
I have closed the database in every script using it.
Is the anything I should be aware of to prevent this from happening?


_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org (Freeswitch-users@lists.freeswitch.org)
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org




--
Anthony Minessale II

FreeSWITCH http://www.freeswitch.org/
ClueCon http://www.cluecon.com/

AIM: anthm
MSN:anthony_minessale@hotmail.com ([email]MSN%3Aanthony_minessale@hotmail.com[/email])
GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com ([email]PAYPAL%3Aanthony.minessale@gmail.com[/email])
IRC: irc.freenode.net #freeswitch

FreeSWITCH Developer Conference
sip:888@conference.freeswitch.org ([email]sip%3A888@conference.freeswitch.org[/email])
iax:guest@conference.freeswitch.org/888
googletalk:conf+888@conference.freeswitch.org ([email]googletalk%3Aconf%2B888@conference.freeswitch.org[/email])
pstn:213-799-1400
Back to top
Display posts from previous:   
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> freeSWITCH Users All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group

VoiceMeUp - Corporate & Wholesale VoIP Services