Cookies and Cache becoming corrupt on Linux

Description of the issue:
On Linux (Ubuntu), browser cache and or cookies become corrupt after closing the browser and shutting down the computer.

**Steps to Reproduce (add as many as necessary):

  1. Install Brave
  2. Log into various sites
  3. Close the browser
  4. Shut down computer
  5. Turn on computer
  6. Open Brave
  7. Navigate to a site in which you should already be signed in

Actual Result (gifs and screenshots are welcome!):
Not logged in, website acts as if I have never been there

Expected result:
Logged in automatically, website should remember me and log me back in and save my preferences (dark mode, etc)

Reproduces how often:
At least once every 8 shut downs - doesn’t happen every time but it has become more frequent in the past month or so.

Operating System and Brave Version(See the About Brave page in the main menu):
KDE Neon (Ubuntu 18.04), Brave Version 0.62.51 Chromium: 73.0.3683.103 (Official Build) (64-bit)

Additional Information:
When I open Brave in a terminal window, I see lots of sql errors:

[10141:10168:0422/114208.887932:ERROR:database.cc(1808)] Cookie sqlite error 5, errno 0: database is locked, sql: PRAGMA auto_vacuum
[10141:10168:0422/114208.888000:ERROR:database.cc(1808)] Cookie sqlite error 5, errno 0: database is locked, sql: PRAGMA journal_mode=TRUNCATE
[10141:10168:0422/114208.888051:ERROR:database.cc(1808)] Cookie sqlite error 5, errno 0: database is locked, sql: SELECT name FROM sqlite_master WHERE type=? AND name=? COLLATE NOCASE
[10141:10168:0422/114208.888119:ERROR:database.cc(1808)] Cookie sqlite error 5, errno 0: database is locked, sql: SELECT name FROM sqlite_master WHERE type=? AND name=? COLLATE NOCASE
[10141:10168:0422/114208.888147:ERROR:database.cc(1808)] Cookie sqlite error 5, errno 0: database is locked, sql: CREATE TABLE meta(key LONGVARCHAR NOT NULL UNIQUE PRIMARY KEY, value LONGVARCHAR)
[10141:10168:0422/114208.888292:ERROR:database.cc(1808)] Cookie sqlite error 5, errno 0: database is locked, sql: PRAGMA auto_vacuum
[10141:10168:0422/114208.888328:ERROR:database.cc(1808)] Cookie sqlite error 5, errno 0: database is locked, sql: PRAGMA journal_mode=TRUNCATE
[10141:10168:0422/114208.888368:ERROR:database.cc(1808)] Cookie sqlite error 5, errno 0: database is locked, sql: SELECT name FROM sqlite_master WHERE type=? AND name=? COLLATE NOCASE
[10141:10168:0422/114208.888418:ERROR:database.cc(1808)] Cookie sqlite error 5, errno 0: database is locked, sql: SELECT name FROM sqlite_master WHERE type=? AND name=? COLLATE NOCASE
[10141:10168:0422/114208.888443:ERROR:database.cc(1808)] Cookie sqlite error 5, errno 0: database is locked, sql: CREATE TABLE meta(key LONGVARCHAR NOT NULL UNIQUE PRIMARY KEY, value LONGVARCHAR)
[10141:10169:0422/114209.877605:ERROR:https_everywhere_service.cc(132)] Level db open error /home/egee/.config/BraveSoftware/Brave-Browser/oofiananboodjbbmdelgdommihjbkfag/1.0.11/6.0/httpse.leveldb, error: IO error: /home/egee/.config/BraveSoftware/Brave-Browser/oofiananboodjbbmdelgdommihjbkfag/1.0.11/6.0/httpse.leveldb/LOCK: No further details. (ChromeMethodBFE: 15::LockFile::1)
[10141:10166:0422/114226.775444:ERROR:sandbox_origin_database.cc(193)] SandboxOriginDatabase failed at: Init@../../storage/browser/fileapi/sandbox_origin_database.cc:95 with error: IO error: /home/egee/.config/BraveSoftware/Brave-Browser/Default/File System/Origins/LOCK: No further details. (ChromeMethodBFE: 15::LockFile::1)
[10141:10166:0422/114228.434891:ERROR:sandbox_origin_database.cc(193)] SandboxOriginDatabase failed at: Init@../../storage/browser/fileapi/sandbox_origin_database.cc:95 with error: IO error: /home/egee/.config/BraveSoftware/Brave-Browser/Default/File System/Origins/LOCK: No further details. (ChromeMethodBFE: 15::LockFile::1)
[10141:10141:0422/114304.348575:ERROR:CONSOLE(1)] "Uncaught ReferenceError: brave_new_tab is not defined", source: chrome://newtab/ (1)
[10141:10296:0422/114305.964806:ERROR:leveldb_env.cc(115)] Failed to open LevelDB database from /home/egee/.config/BraveSoftware/Brave-Browser/Default/IndexedDB/https_mail.google.com_0.indexeddb.leveldb,IO error: /home/egee/.config/BraveSoftware/Brave-Browser/Default/IndexedDB/https_mail.google.com_0.indexeddb.leveldb/LOCK: No further details. (ChromeMethodBFE: 15::LockFile::1)
[10141:10296:0422/114306.966186:ERROR:leveldb_env.cc(115)] Failed to open LevelDB database from /home/egee/.config/BraveSoftware/Brave-Browser/Default/IndexedDB/https_mail.google.com_0.indexeddb.leveldb,IO error: /home/egee/.config/BraveSoftware/Brave-Browser/Default/IndexedDB/https_mail.google.com_0.indexeddb.leveldb/LOCK: No further details. (ChromeMethodBFE: 15::LockFile::1)
[10141:10478:0422/114318.726713:ERROR:leveldb_env.cc(115)] Failed to open LevelDB database from /home/egee/.config/BraveSoftware/Brave-Browser/Default/IndexedDB/https_mail.google.com_0.indexeddb.leveldb,IO error: /home/egee/.config/BraveSoftware/Brave-Browser/Default/IndexedDB/https_mail.google.com_0.indexeddb.leveldb/LOCK: No further details. (ChromeMethodBFE: 15::LockFile::1)
[10141:10478:0422/114319.729549:ERROR:leveldb_env.cc(115)] Failed to open LevelDB database from /home/egee/.config/BraveSoftware/Brave-Browser/Default/IndexedDB/https_mail.google.com_0.indexeddb.leveldb,IO error: /home/egee/.config/BraveSoftware/Brave-Browser/Default/IndexedDB/https_mail.google.com_0.indexeddb.leveldb/LOCK: No further details. (ChromeMethodBFE: 15::LockFile::1)

@egeeirl,
Thank you for bringing this to our attention. I’ll reach out to some team members about this – will let you know what I find out. Did this behavior just start presenting?

Did this behavior just start presenting?

Somewhat, I noticed it earlier this month and it seems to have gotten worse over time. I think it may have started near the end of March.

At first, I thought maybe shutting my computer off while the browser was still open was causing it, but lately I’ve been closing all my tabs one-by-one, and then finally closing the browser manually. That doesn’t help though :frowning:

This topic was automatically closed after 30 days. New replies are no longer allowed.