Comments (6)
- Which version of Firefox? I do not see "database disk image is malformed" with Firefox 120.0 on Ubuntu 22.04.
- Is Firefox completely closed when this happens? One way to check is
ps -ef |grep firefox
from bleachbit.
- 120.0.1, from the package of the unstable branch. It happens since at least 119.0.1.
- Yes. Here is the requested ps output after a fresh boot (5-10 minutes of uptime) where ff did not run at all. Also notice that it can word with the other database files with no issues.
$ ps -ef | grep firefox
user 2379 2374 0 18:11 pts/2 00:00:00 grep --color=auto firefox
Tbh, I would delete the file and call it a day, but I do not want to lose my history or bookmarks or the config settings from ff.
from bleachbit.
storage.sqlite
is not a primary database, and besides vacuuming, BleachBit 4.4.2 does not do anything to it. When cleaning history and bookmarks, other files are cleaned instead, so as a test, try this:
- Close Firefox
- Create a good backup of the whole
~/.mozilla
directory - Delete or rename the
storage.sqlite
file - Open Firefox to recreate the file and check what has changed (e.g., bookmarks, history)
- Close Firefox
- Run BleachBit again. Does the error happen again?
If you lose something important, restore the backup.
from bleachbit.
About that... and why I want to avoid it.
I once copied my entire profile folder, ~/.mozilla/firefox/whatever.default/, to another location to back it up and when I moved it back in place, ff started with everything at default values, as if the profile folder was not there. Recovering my favorites and history from that backed up folder and importing it to the new profile was a huge amount of work I do not plan on repeating, ever (because my bookmarks count in tens of thousands now).
As for the file itself, I copied it to my home and ran the following which is supposed to fix it
$ sqlite3 storage.sqlite "PRAGMA integrity_check;"
*** in database main ***
Tree 5 page 357: btreeInitPage() returns error code 11
Tree 5 page 350: btreeInitPage() returns error code 11
Tree 5 page 346: btreeInitPage() returns error code 11
Tree 5 page 354: btreeInitPage() returns error code 11
Tree 5 page 356: btreeInitPage() returns error code 11
Tree 5 page 347: btreeInitPage() returns error code 11
Tree 5 page 349: btreeInitPage() returns error code 11
Tree 5 page 355: btreeInitPage() returns error code 11
Tree 5 page 352: btreeInitPage() returns error code 11
Tree 5 page 345: btreeInitPage() returns error code 11
Tree 5 page 358: btreeInitPage() returns error code 11
Tree 5 page 348: btreeInitPage() returns error code 11
Tree 5 page 351: btreeInitPage() returns error code 11
Tree 5 page 359: btreeInitPage() returns error code 11
Tree 5 page 360: btreeInitPage() returns error code 11
Tree 5 page 353: btreeInitPage() returns error code 11
Tree 5 page 68: btreeInitPage() returns error code 11
Tree 5 page 67: btreeInitPage() returns error code 11
Tree 5 page 72: btreeInitPage() returns error code 11
Tree 5 page 65: btreeInitPage() returns error code 11
Tree 5 page 70: btreeInitPage() returns error code 11
Tree 6 page 66: btreeInitPage() returns error code 11
Tree 6 page 71: btreeInitPage() returns error code 11
Tree 6 page 69: btreeInitPage() returns error code 11
Error: stepping, database disk image is malformed (11)
but vaccuming it still fails
$ sqlite3 storage.sqlite "VACUUM;"
Error: stepping, database disk image is malformed (11)
I have no idea how sqlite3 works, the above is just commands I found online and I think I executed them correctly.
If there is no way of recovering it, I can close this and give up. I have a lot more than a problematic database to think these days :(
from bleachbit.
I had a... moment of bravery earlier and deleted storage.sqlite (after backing it up that is). I ran firefox and it simply recreated the file, so bleachbit's function works properly now.
$ bleachbit -c firefox.vacuum
Vacuum 12.3kB /home/user/.mozilla/firefox/bcqy1g9e.default/storage.sqlite
Vacuum 0B /home/user/.mozilla/firefox/bcqy1g9e.default/cookies.sqlite
Vacuum 0B /home/user/.mozilla/firefox/bcqy1g9e.default/protections.sqlite
Vacuum 98.3kB /home/user/.mozilla/firefox/bcqy1g9e.default/favicons.sqlite
Vacuum 0B /home/user/.mozilla/firefox/bcqy1g9e.default/content-prefs.sqlite
Vacuum 0B /home/user/.mozilla/firefox/bcqy1g9e.default/formhistory.sqlite
Vacuum 0B /home/user/.mozilla/firefox/bcqy1g9e.default/permissions.sqlite
Vacuum 0B /home/user/.mozilla/firefox/bcqy1g9e.default/storage-sync.sqlite
Vacuum 0B /home/user/.mozilla/firefox/bcqy1g9e.default/credentialstate.sqlite
Vacuum 0B /home/user/.mozilla/firefox/bcqy1g9e.default/webappsstore.sqlite
Vacuum 0B /home/user/.mozilla/firefox/bcqy1g9e.default/storage-sync-v2.sqlite
Vacuum 5.3MB /home/user/.mozilla/firefox/bcqy1g9e.default/places.sqlite
Disk space recovered: 5.5MB
Files deleted: 0
Special operations: 12
from bleachbit.
Thanks for the follow up
from bleachbit.
Related Issues (20)
- (FR) Please provide official FlatPak for BleachBit HOT 1
- Request: flatpak version of Chromium support.
- Shredding and Cloning HOT 5
- MSVCR100.dll not installed HOT 3
- Lost whole disk after wiping free space. HOT 4
- Add option for flush DNS cache
- flatpak
- I accidentely deleted too much files and files that are in write protected folders - v.4.6.0-win10-portable HOT 1
- Files and folders on desktop deleted HOT 3
- Lots of errors when installing or upgrading with python 3.12 [SyntaxWarning: invalid escape sequence] HOT 13
- It seems to me that a popup is missing on [X]
- SSD HOT 1
- Wiping free space makes the UI freeze and sometimes crashes HOT 1
- [Feature request] vesktop
- Please upload the new version of Bleachbit with the fix HOT 3
- Exception while running operation 'system': ''utf-8' codec can't encode character '\udcd6' in position 52: surrogates not allowed' HOT 3
- Visual signal before leaving HOT 2
- whenever i open bleachbit portable it shows this in red HOT 2
- Virus or false positive? HOT 11
- Message about anti-virus software could be in better English
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bleachbit.