fabianonline / telegram_backup

Java app to download all your telegram data.
GNU General Public License v3.0
448 stars 91 forks source link

database is locked when running in daemon mode where new update received #53

Open aliakbarRashidi opened 7 years ago

aliakbarRashidi commented 7 years ago

org.sqlite.SQLiteException: [SQLITE_BUSY] The database file is locked (database is locked) at org.sqlite.core.DB.newSQLException(DB.java:909) at org.sqlite.core.DB.newSQLException(DB.java:921) at org.sqlite.core.DB.throwex(DB.java:886) at org.sqlite.core.DB.exec(DB.java:155) at org.sqlite.jdbc3.JDBC3Connection.commit(JDBC3Connection.java:174) at de.fabianonline.telegram_backup.Database.saveMessages(Database.java:276) at de.fabianonline.telegram_backup.TelegramUpdateHandler.onShortMessage(TelegramUpdateHandler.java:128) at com.github.badoualy.telegram.api.DefaultTelegramClient.onUpdates(DefaultTelegramClient.kt:330) at com.github.badoualy.telegram.mtproto.MTProtoHandler$handleMessage$1.run(MTProtoHandler.kt:458) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:748) Exception in thread "UpdatePool-thread-4" java.lang.RuntimeException: Exception shown above happened. at de.fabianonline.telegram_backup.Database.saveMessages(Database.java:280) at de.fabianonline.telegram_backup.TelegramUpdateHandler.onShortMessage(TelegramUpdateHandler.java:128) at com.github.badoualy.telegram.api.DefaultTelegramClient.onUpdates(DefaultTelegramClient.kt:330) at com.github.badoualy.telegram.mtproto.MTProtoHandler$handleMessage$1.run(MTProtoHandler.kt:458) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:748)