2012-11-25, 02:54 AM
getting sick of sqlite db file being locked.
opening "unlocker" it shows i have about 15 access from NRecord on the db, around 8 for NDigitalHost and thats it. no webserver or anything (I stopped IIS a few days ago as I thought this was causing the issue).
its just a stupid database, which locks itself if theres a journal open, if one thing tries to write to the database and then that process craps out and doesnt close it off, then the db is locked and you have to kill all processes to release it.
pita db,
using sqlce or localdb or something that doesnt need the user to install anything, but is still a more real database and can handle multiple connections correctly.
opening "unlocker" it shows i have about 15 access from NRecord on the db, around 8 for NDigitalHost and thats it. no webserver or anything (I stopped IIS a few days ago as I thought this was causing the issue).
its just a stupid database, which locks itself if theres a journal open, if one thing tries to write to the database and then that process craps out and doesnt close it off, then the db is locked and you have to kill all processes to release it.
pita db,
Code:
2012-11-25 15:49:22.674 [ERROR][56] Unexpected error in Stream.Channel(): System.Data.SQLite.SQLiteException: The database file is locked
database is locked
at System.Data.SQLite.SQLite3.Prepare(SQLiteConnection cnn, String strSql, SQLiteStatement previous, UInt32 timeoutMS, String& strRemain)
at System.Data.SQLite.SQLiteCommand.BuildNextCommand()
at System.Data.SQLite.SQLiteCommand.GetStatement(Int32 index)
at System.Data.SQLite.SQLiteDataReader.NextResult()
at System.Data.SQLite.SQLiteDataReader..ctor(SQLiteCommand cmd, CommandBehavior behave)
at System.Data.SQLite.SQLiteCommand.ExecuteReader(CommandBehavior behavior)
at System.Data.SQLite.SQLiteCommand.ExecuteNonQuery()
at System.Data.SQLite.SQLiteConnection.Open()
at NUtility.DatabaseHelper.GetConnection()
at NUtility.Channel.LoadForCaptureSource(Int32 forCaptureSourceOID, Int32 channelOID)
at NUtility.Channel.LoadAll()
at NShared.Extend.ChannelRequestHandler.GetListings(Dictionary`2 parameters)
2012-11-25 15:49:22.674 [DEBUG][56] <?xml version="1.0" encoding="utf-8" ?>
using sqlce or localdb or something that doesnt need the user to install anything, but is still a more real database and can handle multiple connections correctly.