Comments (7)
This looks like an error I have heard reported once on either Windows or Linux, but I have not reproduced it.
The SQL code that cleans history from Firefox/Mozilla places.sqlite is slightly complicated. One option is you could privately email me your places.sqlite file, and I could try to troubleshoot it here.
from bleachbit.
If you prefer to work on this yourself, look at the function delete_mozilla_url_history, and try to isolate the error to a specific SQL command
from bleachbit.
thank for reply :) , let me spend sometime working on it and will let you know if hit stone wall.
it is exactly same as below bug on Linux and same workaround works too.
https://bugs.launchpad.net/bleachbit/+bug/1464299
Workaround :
Disable "Overwrite files to hide contents".
from bleachbit.
This is what i am observing based on some debug, query with randomblob work but the next query with zeroblob fails.
Need somebody with SQL experience and expertise to guide as how to fix it Or explain as why we see this behavior.
SQL Query with randomblob works :)
#1
update moz_places set url = randomblob(length(url)),rev_host = randomblob(length(rev_host)),title = randomblob(length(title)) where id in (select moz_places.id from moz_places left join moz_bookmarks on moz_bookmarks.fk = moz_places.id where moz_bookmarks.id is null)
But the next command with zeroblob fails.
#2
update moz_places set url = zeroblob(length(url)),rev_host = zeroblob(length(rev_host)),title = zeroblob(length(title)) where id in (select moz_places.id from moz_places left join moz_bookmarks on moz_bookmarks.fk = moz_places.id where moz_bookmarks.id is null)
from bleachbit.
Zeroblob sets the existing data to zeros, and it makes sense that this could violate a constraint that the values are unique. In Special.py on line 47 try changing update %s
to update or ignore %s
. Does it help?
from bleachbit.
i found that best solution so far is to completed disable (commented out) the zeroblob section under shred_sqlite_char_columns in special.py
this is required for both Mac OSx and Windows.
#######
Change :
#######
def __shred_sqlite_char_columns(table, cols=None, where=""):
"""Create an SQL command to shred character columns"""
cmd = ""
if cols and options.get('shred'):
# cmd += "update %s set %s %s;" %
# (table, ",".join(["%s = zeroblob(length(%s))" % (col, col)
# for col in cols if col != "url"]), where)
cmd += "update %s set %s %s;" %
(table, ",".join(["%s = zeroblob(length(%s))" % (col, col)
for col in cols if col != "url"]), where)
from bleachbit.
I think this was fixed by c43077d
If you see this with later code, please reopen
from bleachbit.
Related Issues (20)
- Impossible to runn full clean from CLI
- bleahbit causes Office 2007 apps not work HOT 13
- Problem with configuration HOT 2
- No Disk Space Gained
- [FEATURE REQUEST] Add button for Expand / Collapse options of all apps
- Problem in download version 4.6.0 from deb package
- UAC getting wack
- Version 4.6 remove valid desktop links
- Can't run on session-less environment (non-systemd). HOT 4
- Windows 11 - Popup - Bleachbit is starting HOT 1
- [Feature Request] Kill process automatically when cleaning
- BleachBit No Longer Works HOT 3
- HOw do I get help? msvcr100.dll HOT 1
- Update error appears in Bleachbit app window when starting it with update option enabled HOT 4
- Ubuntu error appears when running Preview after selecting all options in Blechbit app HOT 2
- Please add select all option in Bleachbit app window
- Bleachbit app hanged when running Clean operation with selected all options after Preview was completed on Ubuntu 20 HOT 2
- Missing Company Name in bleachbit.exe Digital Certificate Causes Issue with Software Updater
- Windows long paths (paths > 260 characters) do not appear to be cleared
- Question on intended refactoring and code quality improvements: minimum supported python version? HOT 1
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.