This repository was archived by the owner on Apr 27, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 91
Error when upgrading database from 7 to 9Β #94
Copy link
Copy link
Closed
Labels
Description
Tried 1.1.2; get an error when upgrading the database:
Base directory for files: /home/<myhome>/.telegram_backup
Using only available account: <myphone>
Opening database...
Database version: 7
Creating a backup of your database as database.version_7.backup.sqlite
Updating to version 8...
Updating to version 9...
Updating supergroup channel message data (this might take some time)...
Cleaning up the database (this might also take some time, sorry)...
java.lang.RuntimeException: org.sqlite.SQLiteException: [SQLITE_ERROR] SQL error or missing database (cannot VACUUM - SQL statements in progress)
at de.fabianonline.telegram_backup.DatabaseUpdates.doUpdates(DatabaseUpdates.kt:87)
at de.fabianonline.telegram_backup.Database.<init>(Database.kt:234)
at de.fabianonline.telegram_backup.Database.<init>(Database.kt:50)
at de.fabianonline.telegram_backup.Database$Companion.init(Database.kt:766)
at de.fabianonline.telegram_backup.CommandLineController.<init>(CommandLineController.kt:102)
at de.fabianonline.telegram_backup.CommandLineRunnerKt.main(CommandLineRunner.kt:40)
Caused by: org.sqlite.SQLiteException: [SQLITE_ERROR] SQL error or missing database (cannot VACUUM - SQL statements in progress)
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.NativeDB._exec_utf8(Native Method)
at org.sqlite.core.NativeDB._exec(NativeDB.java:87)
at org.sqlite.jdbc3.JDBC3Statement.executeUpdate(JDBC3Statement.java:116)
at de.fabianonline.telegram_backup.DatabaseUpdate.execute(DatabaseUpdates.kt:148)
at de.fabianonline.telegram_backup.DB_Update_9._doUpdate(DatabaseUpdates.kt:409)
at de.fabianonline.telegram_backup.DatabaseUpdate.doUpdate(DatabaseUpdates.kt:135)
at de.fabianonline.telegram_backup.DatabaseUpdates.doUpdates(DatabaseUpdates.kt:84)
... 5 more
----- EXIT -----
Downloaded version 1.1.1 and it worked and converted the DB successfully. Then re-launched 1.1.2 and worked out fine.
Rapti and vanyasem