#1006966 gajim: Gajim won't start due to gajim.c.storage.cache error

Package:
gajim
Source:
gajim
Submitter:
Leandro Ramos
Date:
2022-03-20 13:09:05 UTC
Severity:
important
Tags:
#1006966#5
Date:
2022-03-09 13:12:18 UTC
From:
To:
Dear Maintainer,

   In the last week, Gajim does not start anymore.
   I executed gajim from the terminal and this is the response:

   (E) gajim.c.storage.cache      Error
   Traceback (most recent call last):
   File "/usr/lib/python3/dist-packages/gajim/common/storage/base.py", line
147, in _migrate_storage
   self._migrate()
   File "/usr/lib/python3/dist-packages/gajim/common/storage/cache.py", line
83, in _migrate
   user_version = self.user_version
   File "/usr/lib/python3/dist-packages/gajim/common/storage/base.py", line
118, in user_version
   return self._con.execute('PRAGMA user_version').fetchone()[0]
sqlite3.DatabaseError: file is not a database

#1006966#10
Date:
2022-03-15 06:26:41 UTC
From:
To:
Hello,

I just found this issue note on upstream project:
https://dev.gajim.org/gajim/gajim/-/issues/10779#note_204952

It's sounds quite similar. Maybe a corrupted internal gajim
db-file.

#1006966#15
Date:
2022-03-18 15:00:55 UTC
From:
To:
Hello Leandro,

I will reduce the severity from grave to important. I'm using
1.3.3-1~bpo11+1 on my laptop and it's working.

I also checked where the cache.db is stored.
file ~/.cache/gajim/cache.db says:
SQLite 3.x database, user version 6, last written using SQLite version 3034001

Anyway, I'm not sure if this is the reason of the problem or not.
It's just a guess. I will try to check with upstream.

#1006966#22
Date:
2022-03-20 13:04:53 UTC
From:
To:
Upstream also says there ist something weird with the cache file.