Firefox places.sqlite - UNIQUE constraint failed: moz_hosts.host error

Bug #1487881 reported by danjackson1
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
BleachBit
Fix Released
Undecided
Unassigned

Bug Description

Cleaning with Bleachbit 1.8 on Debian Jessie gives an error "UNIQUE constraint failed: moz_hosts.host: /home/username/.mozilla/firefox/49jq2j7q.default-1434440667292/places.sqlite" This happens in multiple desktop environments on Debian (http://bleachbit.sourceforge.net/forum/three-errors-i-found-when-using-kde-linux). The error does not occur on Ubuntu 14.04 based distributions.

Tags: debian firefox
Revision history for this message
gravy45 (gravy45) wrote :

There is a unique constraint on the 'host' column in the moz_hosts..so look in that table in places.sqlite and see if you have two or more database records that have hosts with the same length/number of characters...if so, what is happening is that there is a database update statement attempted, and it is trying to write the same blob of 00s in more than one row.

https://bugs.launchpad.net/bleachbit/+bug/1464299

Revision history for this message
Andrew Ziem (ahziem1) wrote :

Fix committed in git commit c43077d for the next release. Thank you for reporting this bug.

Changed in bleachbit:
milestone: none → 1.12
status: New → Fix Committed
Revision history for this message
Andrew Ziem (ahziem1) wrote :

To confirm the fix, please test the fix in BleachBit 1.11 beta
https://www.bleachbit.org/news/bleachbit-1110-beta

Changed in bleachbit:
status: Fix Committed → Fix Released
Revision history for this message
danjackson1 (danjackson1) wrote :

Fix works for Firefox 45.0.2 in Debian Jessie - no unique constraint error. Thank you.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.