Corrupted Internal DB for asterisk (Sqlite3)

Hi All,

I am facing a strange behavior with asterisk , I noticed that asterisk internal database has been corrupted and from nowhere .
with error “Error: database disk image is malformed”
I know how solve this , but I need to know why this keeps happening to my server ?

Thank You

I would expect this to happen, if Asterisk is not properly shut down. That could be it crashes, or gets killed.

I’ve also seen an error similar to that error, if the ownerships or permissions on the file were incorrect, and Asterisk could not read or write to it.

1 Like

Maybe your hard disk have physical error, so some file be locked or be damaged.

I have the correct file permissions , but it suddenly happens and I couldn’t figure it out .