tdlib / td

Cross-platform library for building Telegram clients

Home Page:https://core.telegram.org/tdlib

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Application goes down with error: database disk image is malformed for database

pranavkulkarni7 opened this issue · comments

I store my user's session in a file whenever the java service needs restart.
While service comes up, the session file is restored.
At times, I get this issue due to which service goes down and can not come up unless I create a fresh session(and verification) for the user.

Log:
[Status.h:256][#1][!Td]	
Unexpected Status [Error : 0 : database disk image is malformed for database "/app/sqlite/user/db.sqlite"] in file /app/td/tddb/td/db/SqliteKeyValue.cpp at line 76

Is someone also facing this issue? Kindly help.

The file db.sqlite is malformed as the error states. You can't copy a file, which is used and actively changed by another program. Apps aren't supposed to interfere with the internal TDLib state, including the db.sqlite file.