You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
My machine crashed, upon restart opensnitch-ui gives:
Loading translations: /usr/local/lib/python3.8/dist-packages/opensnitch/i18n locale: en_US
QSqlQuery::value: not positioned on a valid record
None setQuery() exception: int() argument must be a string, a bytes-like object or a number, not 'NoneType'
setQuery() error: database disk image is malformed Unable to execute statement
Segmentation fault (core dumped)
I manually deleted the db file on disk and successfully restarted opensnitch-ui.
Maybe there should be an info popup saying sth like "db file /tmp/file.db is corrupted. pls remove and try again"
The text was updated successfully, but these errors were encountered:
themighty1
changed the title
after system crash opensnitch wont start because db is corrupted
after system crash opensnitch-ui wont start because db is corrupted
Jul 19, 2021
Yeah, besides showing a pop-up if the DB is corrupted, we could set some flags to ON if the DB file is gonna be written to disk:
PRAGMA journal_mode = ON
PRAGMA synchronous = ON
they're set to off now, I didn't take it into account when allowing to write events to disk.
By the way, can you recover to DB with: sqlite3 file.db ".recover" | sqlite3 new.db ?
My machine crashed, upon restart opensnitch-ui gives:
I manually deleted the db file on disk and successfully restarted opensnitch-ui.
Maybe there should be an info popup saying sth like "db file /tmp/file.db is corrupted. pls remove and try again"
The text was updated successfully, but these errors were encountered: